/* General Styling */
:root {
    --color-black: #000000;
    --color-charcoal: #1a1a1a;
    --color-deep-purple: #4a004a; /* A darker purple */
    --color-neon-purple: #bb00bb; /* Subtle neon glow for accents */
    --color-neon-blue: #00ffff; /* Another neon color for variety */
    --color-text-light: #e0e0e0;
    --color-text-muted: #a0a0a0;
    --font-sans-serif: 'Montserrat', sans-serif;
    --font-futuristic: 'Roboto Mono', monospace;
    --gradient-bg: linear-gradient(135deg, var(--color-black) 0%, var(--color-charcoal) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans-serif);
    background: var(--gradient-bg);
    color: var(--color-text-light);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative; /* Needed for pseudo-element positioning */
    z-index: 0;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 3px 3px; /* Adjust for desired grain size */
    z-index: -1; /* Place behind content */
    opacity: 0.2; /* Subtle opacity */
}

a {
    color: var(--color-neon-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-neon-purple);
}

/* Header */
header {
    background-color: transparent;
    padding: 1rem 2rem;
    border-bottom: 1px solid transparent;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000; /* Ensure it stays on top when scrolling */
    backdrop-filter: blur(0px);
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
}

header.scrolled {
    background-color: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(5px);
    border-bottom-color: var(--color-deep-purple);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

nav .logo {
    font-family: var(--font-futuristic);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-neon-blue);
    position: relative;
    text-shadow: 0 0 5px var(--color-neon-blue), 0 0 10px var(--color-neon-blue);
}

nav .logo .tagline {
    display: block;
    font-size: 0.8rem;
    font-family: var(--font-sans-serif);
    color: var(--color-text-muted);
    margin-top: 0.2rem;
    text-shadow: none;
}

nav ul.desktop-nav {
    list-style: none;
    display: flex;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
}

.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: #fff;
}

.mobile-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid var(--color-deep-purple);
    z-index: 999;
    transform: translateY(-150%);
    transition: transform 0.4s ease-in-out, visibility 0.4s;
    visibility: hidden;
}

.mobile-nav.open {
    transform: translateY(0);
    visibility: visible;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.mobile-nav ul li {
    margin: 0;
    border-bottom: 1px solid rgba(74, 0, 74, 0.5);
}

.mobile-nav ul li:last-child {
    border-bottom: none;
}

.mobile-nav ul li a {
    color: var(--color-text-light);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: block;
    padding: 1rem;
    transition: color 0.3s, background-color 0.3s;
}

.mobile-nav ul li a:hover {
    color: var(--color-neon-blue);
    background-color: rgba(74, 0, 74, 0.3);
}

.hamburger-menu.open {
    z-index: 1001;
}

.hamburger-menu.open .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.open .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.open .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
    nav {
        position: relative;
        justify-content: center; /* Center the logo container */
    }

    nav .logo {
        text-align: center;
    }

    nav ul.desktop-nav {
        display: none;
    }

    .hamburger-menu {
        display: block;
        position: absolute;
        right: 1rem; /* Adjust spacing from the edge */
        top: 50%;
        transform: translateY(-50%);
    }

    .verification-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* Force 2 columns on mobile */
    }
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--color-text-light);
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-neon-blue); /* Changed to blue for variety */
    transition: width 0.3s ease-out, transform 0.3s ease-out; /* Added transform to transition */
    transform: translateX(-100%); /* Start off-screen to the left */
}

nav ul li a:hover::after {
    width: 100%;
    transform: translateX(0); /* Slide in */
}

/* Main Content */
main {
    flex-grow: 1;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

section {
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: rgba(10, 10, 10, 0.7); /* Slightly transparent charcoal */
    border: 1px solid var(--color-deep-purple);
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(var(--color-neon-purple), 0.3);
}

h1, h2, h3 {
    font-family: var(--font-futuristic);
    color: var(--color-neon-blue);
    margin-bottom: 1rem;
    text-shadow: 0 0 5px rgba(var(--color-neon-blue), 0.5);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }

p {
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--color-charcoal);
    border-color: var(--color-neon-purple);
    box-shadow: 0 0 20px rgba(var(--color-neon-purple), 0.5);
    position: relative;
    overflow: hidden; /* For glow lines */
}

.hero::before, .hero::after {
    content: '';
    position: absolute;
    background: var(--color-neon-purple);
    opacity: 0.3;
    filter: blur(8px);
}

.hero::before {
    top: -50px;
    left: -50px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    animation: glow-move 10s infinite alternate;
}

.hero::after {
    bottom: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    animation: glow-move 12s infinite alternate-reverse;
}

@keyframes glow-move {
    0% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    50% { transform: translate(100px, 50px) scale(1.2); opacity: 0.5; }
    100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
}


.cta-button {
    background-color: var(--color-neon-purple);
    color: var(--color-black);
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(var(--color-neon-purple), 0.7);
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(var(--color-neon-purple), 0.7) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    z-index: -1;
}

.cta-button:hover::before {
    width: 200%;
    height: 200%;
    opacity: 1;
}

.cta-button:hover {
    color: var(--color-black); /* Ensure text stays readable */
    transform: translateY(-2px) translateX(2px); /* Shift button slightly */
    box-shadow: 0 0 20px rgba(var(--color-neon-purple), 0.9);
}

.secondary-button {
    background-color: transparent;
    color: var(--color-neon-blue);
    border: 1px solid var(--color-neon-blue);
    box-shadow: 0 0 10px rgba(var(--color-neon-blue), 0.7);
}

.secondary-button:hover {
    background-color: rgba(var(--color-neon-blue), 0.1);
    box-shadow: 0 0 20px rgba(var(--color-neon-blue), 0.9);
    color: var(--color-neon-blue); /* Keep text color consistent */
}

.secondary-button::before {
    background: radial-gradient(circle, rgba(var(--color-neon-blue), 0.7) 0%, transparent 70%);
}

.calculator-form button {
    margin-top: 1rem;
    padding: 0.9rem 2.5rem;
    font-size: 1.2rem;
    margin-right: 1rem;
}

.calculator-form button:last-child {
    margin-right: 0;
}

.features, .verification-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.feature-item, .verification-item {
    background-color: rgba(26, 26, 26, 0.8); /* Charcoal with transparency */
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid var(--color-deep-purple);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item, .verification-item, .product-item {
    background-color: rgba(26, 26, 26, 0.8); /* Charcoal with transparency */
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid var(--color-deep-purple);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden; /* Ensures pseudo-element stays within bounds */
    z-index: 0; /* Establishes a stacking context */
}

.product-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, rgba(var(--color-neon-blue), 0.2), rgba(var(--color-neon-purple), 0.2));
    transform: rotate(45deg);
    z-index: -1;
    filter: blur(50px); /* Soft glow effect */
    opacity: 0;
    transition: opacity 0.5s ease;
}

.product-item:hover::before {
    opacity: 1;
}

.feature-item:hover, .verification-item:hover, .product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(var(--color-neon-purple), 0.7);
}

.product-item p .purity-spec {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-neon-blue);
    margin-top: 0.5rem;
}

.faq-item {
    background-color: rgba(26, 26, 26, 0.8); /* Charcoal with transparency */
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid var(--color-deep-purple);
    margin-bottom: 1.5rem; /* Spacing between FAQ items */
}

.faq-item h2 {
    color: var(--color-neon-blue);
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    text-shadow: 0 0 3px rgba(var(--color-neon-blue), 0.3);
}

.faq-item p {
    color: var(--color-text-light);
    line-height: 1.5;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 250px 1fr; /* Sidebar width and content area */
    gap: 2rem;
    margin-top: 2rem;
}

.sidebar {
    padding: 1.5rem;
    background-color: rgba(10, 10, 10, 0.7);
    border: 1px solid var(--color-deep-purple);
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(var(--color-neon-purple), 0.3);
    height: fit-content; /* Make sidebar only as tall as its content */
    position: sticky; /* Keep sidebar in view when scrolling */
    top: 80px; /* Adjust based on header height */
}

.sidebar h4 {
    font-family: var(--font-futuristic);
    color: var(--color-neon-blue);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-shadow: 0 0 3px rgba(var(--color-neon-blue), 0.3);
}

.search-bar {
    margin-bottom: 1.5rem;
}

#product-search {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--color-deep-purple);
    background-color: var(--color-black);
    color: var(--color-text-light);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#product-search:focus {
    outline: none;
    border-color: var(--color-neon-purple);
    box-shadow: 0 0 8px rgba(var(--color-neon-purple), 0.5);
}

.category-list {
    list-style: none;
}

.category-list li a {
    display: block;
    padding: 0.7rem 0.5rem;
    color: var(--color-text-light);
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 4px;
}

.category-list li a:hover {
    background-color: rgba(var(--color-deep-purple), 0.3);
    color: var(--color-neon-blue);
}

.category-list li a.active {
    background-color: var(--color-deep-purple);
    color: var(--color-neon-blue);
    font-weight: 600;
    box-shadow: 0 0 8px rgba(var(--color-neon-purple), 0.3);
}

/* Adjust product grid for catalog layout */
.catalog-content .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Responsive adjustments for catalog layout */
@media (max-width: 992px) {
    .catalog-layout {
        grid-template-columns: 1fr; /* Stack sidebar and products on smaller screens */
    }

    .sidebar {
        position: static; /* Remove sticky behavior on smaller screens */
        width: 100%;
    }
}

/* Cart Icon and Drawer */
.cart-icon-container {
    position: relative;
    margin-left: 1.25rem; /* Approximately 20px */
}

.cart-icon {
    color: var(--color-text-light);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cart-icon:hover {
    color: var(--color-neon-blue);
    transform: scale(1.1);
}

.cart-icon svg {
    width: 28px;
    height: 28px;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--color-neon-purple);
    color: var(--color-black);
    font-family: var(--font-futuristic);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 50%;
    padding: 0.2em 0.5em;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 0 8px rgba(var(--color-neon-purple), 0.7);
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 350px;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.95);
    border-left: 1px solid var(--color-deep-purple);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
    z-index: 2000;
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    transform: translateX(0);
}

.cart-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-deep-purple);
}

.cart-drawer-header h2 {
    color: var(--color-neon-blue);
    font-family: var(--font-futuristic);
    font-size: 1.8rem;
    margin-bottom: 0;
    text-shadow: 0 0 5px rgba(var(--color-neon-blue), 0.3);
}

.close-cart-btn {
    background: none;
    border: none;
    color: var(--color-text-light);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-cart-btn:hover {
    color: var(--color-neon-purple);
}

.cart-items-list {
    flex-grow: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.empty-cart-message {
    color: var(--color-text-muted);
    text-align: center;
    padding-top: 2rem;
}

.cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed rgba(var(--color-deep-purple), 0.5);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-info h4 {
    color: var(--color-text-light);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    font-family: var(--font-sans-serif);
}

.cart-item-info p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.cart-item-price {
    color: var(--color-neon-blue);
    font-family: var(--font-futuristic);
    font-size: 1.1rem;
    font-weight: 600;
    margin-left: 1rem;
}

.cart-drawer-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--color-deep-purple);
    text-align: right;
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-neon-blue);
    font-family: var(--font-futuristic);
}

.cart-subtotal .subtotal-amount {
    color: var(--color-neon-purple);
    text-shadow: 0 0 5px rgba(var(--color-neon-purple), 0.5);
}

.checkout-button {
    width: 100%;
    padding: 1rem;
    font-size: 1.2rem;
}

.checkout-section {
    padding: 1.5rem;
    border-top: 1px solid var(--color-deep-purple);
    margin-top: auto; /* Pushes it to the bottom above the cart-drawer-footer */
}

.checkout-section h4 {
    color: var(--color-neon-blue);
    font-family: var(--font-futuristic);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.payment-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.payment-btn {
    background-color: var(--color-charcoal);
    color: var(--color-text-light);
    border: 1px solid var(--color-deep-purple);
    padding: 0.8rem 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.payment-btn:hover {
    border-color: var(--color-neon-purple);
    box-shadow: 0 0 10px rgba(var(--color-neon-purple), 0.5);
    color: var(--color-neon-purple);
}

.crypto-btn:hover {
    color: var(--color-neon-blue);
    border-color: var(--color-neon-blue);
    box-shadow: 0 0 10px rgba(var(--color-neon-blue), 0.5);
}

.research-confirmation {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.research-confirmation input[type="checkbox"] {
    margin-right: 0.7rem;
    width: 18px;
    height: 18px;
    accent-color: var(--color-neon-purple); /* Styles the checkbox itself */
    cursor: pointer;
}

.research-confirmation label {
    cursor: pointer;
}

.checkout-button:disabled {
    background-color: var(--color-charcoal);
    color: var(--color-text-muted);
    border: 1px solid var(--color-deep-purple);
    cursor: not-allowed;
    box-shadow: none;
}

.checkout-button:disabled:hover {
    transform: none;
    box-shadow: none;
}

@media (max-width: 400px) {
    .cart-drawer {
        width: 100%;
    }
}


.research-kits-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    text-align: center;
}

.research-kits-content h1 {
    font-size: 3rem;
    color: var(--color-neon-blue);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(var(--color-neon-blue), 0.5);
}

.research-kits-content .subheading {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
}

.kit-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.kit-card {
    display: flex;
    align-items: center;
    background-color: rgba(10, 10, 10, 0.7);
    border: 1px solid var(--color-deep-purple);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(var(--color-neon-purple), 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(var(--color-neon-purple), 0.5);
}

.kit-card .watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    color: rgba(var(--color-deep-purple), 0.2);
    font-size: 10rem;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

.kit-card .watermark svg {
    width: 200px;
    height: 200px;
    stroke: currentColor;
}

.kit-info-left {
    flex: 2;
    text-align: left;
    z-index: 1;
}

.kit-title {
    font-size: 2.2rem;
    color: var(--color-neon-blue);
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-shadow: 0 0 5px rgba(var(--color-neon-blue), 0.3);
}

.vial-count {
    font-size: 1.4rem;
    color: var(--color-text-light);
    font-weight: 400;
}

.kit-description-center {
    flex: 3;
    text-align: center;
    padding: 0 2rem;
    color: var(--color-text-light);
    font-size: 1.1rem;
    line-height: 1.6;
    z-index: 1;
}

.kit-pricing-right {
    flex: 1.5;
    text-align: right;
    z-index: 1;
}

.single-vial-price {
    font-size: 1rem;
    color: var(--color-text-muted);
    text-decoration: line-through;
    margin-bottom: 0.2rem;
}

.bulk-kit-price {
    font-size: 2.5rem;
    color: var(--color-neon-purple);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 0 8px rgba(var(--color-neon-purple), 0.6);
}

.kit-pricing-right .cta-button {
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
}

/* Responsive adjustments for kits page */
@media (max-width: 992px) {
    .research-kits-content h1 {
        font-size: 2.5rem;
    }

    .research-kits-content .subheading {
        font-size: 1rem;
    }

    .kit-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .kit-info-left,
    .kit-description-center,
    .kit-pricing-right {
        flex: none;
        width: 100%;
        text-align: center;
        padding: 0;
    }

    .kit-info-left {
        margin-bottom: 1rem;
    }

    .kit-description-center {
        margin-bottom: 1.5rem;
    }

    .kit-pricing-right {
        margin-top: 1rem;
    }

    .kit-title {
        font-size: 1.8rem;
    }

    .vial-count {
        font-size: 1.2rem;
    }

    .bulk-kit-price {
        font-size: 2rem;
    }

    .kit-card .watermark {
        font-size: 7rem;
    }
}

@media (max-width: 600px) {
    .research-kits-content h1 {
        font-size: 2rem;
    }
}

/* COA Page Styles */
.coa-hero {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(10, 10, 10, 0.7);
    border: 1px solid var(--color-deep-purple);
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(var(--color-neon-purple), 0.3);
    margin-bottom: 3rem;
}

.coa-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--color-neon-blue);
    text-shadow: 0 0 10px rgba(var(--color-neon-blue), 0.5);
}

.coa-hero .subheading {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    max-width: 800px;
    margin: 0 auto;
}

.testing-protocol-section, .reports-understanding-section {
    padding: 2rem;
    background-color: rgba(10, 10, 10, 0.7);
    border: 1px solid var(--color-deep-purple);
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(var(--color-neon-purple), 0.3);
    margin-bottom: 3rem;
}

.testing-protocol-section h2, .reports-understanding-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.2rem;
    color: var(--color-neon-blue);
    text-shadow: 0 0 8px rgba(var(--color-neon-blue), 0.4);
}

.protocol-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.protocol-item {
    background-color: rgba(26, 26, 26, 0.8);
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid var(--color-deep-purple);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.protocol-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 18px rgba(var(--color-neon-purple), 0.6);
}

.protocol-item h3 {
    color: var(--color-neon-blue);
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    text-shadow: 0 0 5px rgba(var(--color-neon-blue), 0.3);
}

.protocol-item p {
    color: var(--color-text-light);
    font-size: 1rem;
    line-height: 1.5;
}

.reports-understanding-section p {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

.report-explanation-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.hplc-image-container {
    width: 100%;
    max-width: 600px;
    background-color: rgba(26, 26, 26, 0.8);
    border: 1px solid var(--color-deep-purple);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 0 15px rgba(var(--color-neon-purple), 0.3);
}

.blurred-image {
    width: 100%;
    height: auto;
    filter: blur(5px); /* Apply blur effect */
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.image-caption {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.explanation-text {
    background-color: rgba(26, 26, 26, 0.8);
    border: 1px solid var(--color-deep-purple);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 0 15px rgba(var(--color-neon-blue), 0.3);
    max-width: 800px;
}

.explanation-text h3 {
    color: var(--color-neon-blue);
    font-size: 1.6rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 5px rgba(var(--color-neon-blue), 0.3);
}

.explanation-text p {
    color: var(--color-text-light);
    text-align: left;
    font-size: 1rem;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .report-explanation-content {
        flex-direction: row;
        justify-content: center;
    }

    .hplc-image-container {
        flex: 1;
        margin-right: 2rem;
    }

    .explanation-text {
        flex: 1.5;
    }
}

/* Footer */
footer {
    background-color: var(--color-charcoal);
    color: var(--color-text-muted);
    padding: 3rem 2rem;
    margin-top: auto; /* Pushes footer to the bottom */
    border-top: 1px solid var(--color-deep-purple);
    position: relative;
    overflow: hidden; /* For glow effects */
}

/* Reconstitution Calculator */
.calculator-section {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: rgba(10, 10, 10, 0.7);
    border: 1px solid var(--color-deep-purple);
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(var(--color-neon-purple), 0.3);
    text-align: center;
}

.calculator-section h1 {
    font-size: 2.5rem;
    color: var(--color-neon-blue);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(var(--color-neon-blue), 0.5);
}

.calculator-section p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.form-group {
    width: 100%;
    max-width: 400px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-text-light);
    font-size: 1rem;
    font-weight: 600;
}

.form-group input[type="number"] {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--color-deep-purple);
    background-color: var(--color-black);
    color: var(--color-text-light);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="number"]:focus {
    outline: none;
    border-color: var(--color-neon-purple);
    box-shadow: 0 0 8px rgba(var(--color-neon-purple), 0.5);
}

#calculateBtn {
    margin-top: 1rem;
    padding: 0.9rem 2.5rem;
    font-size: 1.2rem;
}

.result-area {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background-color: rgba(26, 26, 26, 0.8);
    border: 1px solid var(--color-neon-blue);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(var(--color-neon-blue), 0.4);
    width: 100%;
    max-width: 400px;
}

.result-area h3 {
    color: var(--color-neon-blue);
    margin-bottom: 0.8rem;
    font-size: 1.5rem;
}

.result-text {
    font-family: var(--font-futuristic);
    color: var(--color-neon-purple);
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(var(--color-neon-purple), 0.7);
}

@media (max-width: 600px) {
    .calculator-section h1 {
        font-size: 2rem;
    }

    .calculator-section p {
        font-size: 1rem;
    }

    .form-group, .result-area {
        max-width: 90%;
    }

    #calculateBtn {
        font-size: 1rem;
        padding: 0.8rem 2rem;
    }

    .result-text {
        font-size: 1.5rem;
    }
}

/* Footer */
footer {
    background-color: var(--color-charcoal);
    color: var(--color-text-muted);
    padding: 3rem 2rem;
    margin-top: auto; /* Pushes footer to the bottom */
    border-top: 1px solid var(--color-deep-purple);
    position: relative;
    overflow: hidden; /* For glow effects */
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(var(--color-deep-purple), 0.5); /* Thin divider */
}

.footer-section {
    flex: 1;
    min-width: 150px;
}

.footer-section h4 {
    color: var(--color-neon-blue);
    font-family: var(--font-futuristic);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.6rem;
}

.footer-section ul li a {
    color: var(--color-text-muted);
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--color-neon-purple);
}

.footer-logo .logo-text {
    font-family: var(--font-futuristic);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-neon-blue);
    text-shadow: 0 0 5px rgba(var(--color-neon-blue), 0.5);
    margin-bottom: 0.5rem;
}

.footer-logo .tagline-footer {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.footer-signup form {
    display: flex;
    margin-bottom: 1rem;
}

.footer-signup input[type="email"] {
    flex-grow: 1;
    padding: 0.7rem;
    border: 1px solid var(--color-deep-purple);
    background-color: var(--color-black);
    color: var(--color-text-light);
    border-radius: 4px 0 0 4px;
    font-size: 0.9rem;
}

.footer-signup input[type="email"]:focus {
    outline: none;
    border-color: var(--color-neon-purple);
    box-shadow: 0 0 8px rgba(var(--color-neon-purple), 0.5);
}

.footer-signup button {
    background-color: var(--color-neon-purple);
    color: var(--color-black);
    border: none;
    padding: 0.7rem 1rem;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    font-weight: 600;
}

.footer-signup button:hover {
    background-color: var(--color-neon-blue);
    box-shadow: 0 0 10px rgba(var(--color-neon-blue), 0.7);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: var(--color-text-muted);
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: var(--color-neon-purple);
    transform: translateY(-3px);
}

.social-icons svg {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    font-size: 0.85rem;
}

.footer-bottom p {
    margin: 0.5rem 0;
}

.footer-bottom .disclaimer {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: center;
    max-width: 800px;
    margin: 1rem auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        margin-top: 1rem;
        flex-direction: column;
        width: 100%;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-section {
        margin-bottom: 1.5rem;
        min-width: unset;
        width: 100%;
    }

    .footer-signup form {
        width: 80%;
        margin: 0 auto 1rem auto;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }

    .hero {
        padding: 3rem 1rem;
    }

    .cta-button {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }

    section {
        padding: 1.5rem;
    }
}

/* Contact Form Specific Styles */
.contact-content {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: rgba(10, 10, 10, 0.7);
    border: 1px solid var(--color-deep-purple);
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(var(--color-neon-purple), 0.3);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: var(--color-neon-blue);
    font-family: var(--font-futuristic);
    font-size: 1.1rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    padding: 0.8rem;
    border: 1px solid var(--color-deep-purple);
    background-color: var(--color-black);
    color: var(--color-text-light);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-neon-purple);
    box-shadow: 0 0 8px rgba(var(--color-neon-purple), 0.5);
}

.contact-form textarea {
    resize: vertical; /* Allow vertical resizing */
    min-height: 100px;
}

.contact-form .cta-button {
    align-self: flex-start; /* Align button to the left */
    margin-top: 1rem;
}

/* Responsive adjustments for contact form */
@media (max-width: 480px) {
    .contact-content {
        padding: 1.5rem;
        margin: 1rem auto;
    }

    .form-group label {
        font-size: 1rem;
    }

    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form textarea {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
}
