/* Iteration 4: Biotech Aurora (Vibrant Dark Mode, Smooth Entrance Animations, Asymmetrical Sticky Layouts) */

:root {
    --bg-primary: #0a0a14;              /* Deep Space dark background */
    --bg-secondary: #111122;            /* Darker violet/slate for containers */
    --bg-card: #16162d;                 /* Card base background */
    --text-primary: #f8fafc;            /* Crisp white for headers */
    --text-secondary: #94a3b8;          /* Slate 400 for body text */
    --color-primary: #6366f1;           /* Electric Indigo */
    --color-primary-hover: #4f46e5;
    --color-secondary: #d946ef;         /* Aurora Fuchsia */
    --color-accent: #06b6d4;            /* Bio-Medical Cyan */
    --border-color: rgba(99, 102, 241, 0.15);
    --border-focus: #06b6d4;
    --card-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
    --glow-shadow: 0 10px 30px -10px rgba(217, 70, 239, 0.25), 0 0 20px rgba(6, 182, 212, 0.2);
    --transition-speed: 0.3s;
    --font-family: 'Plus Jakarta Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Subtle background dynamic light spots (aurora effect) */
body::before, body::after {
    content: "";
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    pointer-events: none;
    opacity: 0.15;
    z-index: -1;
}
body::before {
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 80%);
}
body::after {
    bottom: -10%;
    right: -10%;
    background: radial-gradient(circle, var(--color-secondary) 0%, transparent 80%);
}

/* Common Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-header h2 {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, var(--text-secondary) 50%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* Scroll reveal animation styles */
.reveal-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-element.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Badge styling */
.badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(217, 70, 239, 0.15) 100%);
    color: #ffffff;
    padding: 6px 18px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(217, 70, 239, 0.4);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn-outline:hover {
    background-color: rgba(6, 182, 212, 0.1);
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header & Navigation */
.header {
    background-color: rgba(10, 10, 20, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -1px;
}

.logo-accent {
    color: var(--color-primary);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-speed) ease;
}

.nav-link:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.nav-btn {
    padding: 10px 22px;
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    padding: 120px 0;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.hero-content h1 {
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 24px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff 30%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    text-align: justify;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Floating animation keyframes */
.float-animation {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

/* Asymmetrical Sticky Layout for About Section */
.about-section {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.about-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.about-sticky {
    position: sticky;
    top: 130px;
}

.about-sticky h2 {
    font-size: 2.75rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-sticky p {
    font-size: 1.15rem;
    color: var(--text-secondary);
}

.model-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.model-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed) ease, border-color var(--transition-speed) ease;
}

.model-card:hover {
    border-color: var(--color-primary);
    transform: translateX(5px);
}

.model-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
    color: var(--color-accent);
    border-radius: 12px;
    margin-bottom: 30px;
}

.model-card h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.model-card p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1.05rem;
}

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

.model-list li {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.model-list li::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: #ffffff;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 800;
    margin-right: 14px;
}

/* Catalog Section */
.catalog-section {
    background-color: var(--bg-primary);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 40px;
}

.product-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1), border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-secondary);
    box-shadow: var(--glow-shadow);
}

.product-visual {
    background-color: rgba(16, 16, 32, 0.5);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.product-img {
    width: 130px;
    height: 130px;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.product-card:hover .product-img {
    transform: scale(1.12) rotate(2deg);
}

.product-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.product-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.product-specs {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.85rem;
}

.product-specs span {
    display: flex;
    justify-content: space-between;
}

.product-specs strong {
    color: #ffffff;
}

/* Compliance Section */
.compliance-section {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.compliance-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.compliance-text {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.compliance-text h2 {
    font-size: 2.75rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 auto 24px auto;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.compliance-text p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    text-align: justify;
    line-height: 1.7;
    margin: 0 auto;
}


/* Contact Section */
.contact-section {
    background-color: var(--bg-primary);
}

.contact-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
    align-items: start;
}

.contact-header h2 {
    font-size: 2.75rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-header p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.direct-contact {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

.direct-contact p {
    font-size: 1.05rem;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.direct-contact p strong {
    color: #ffffff;
}

.direct-contact p:last-child {
    margin-bottom: 0;
}

.direct-contact a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 700;
}

.direct-contact a:hover {
    text-decoration: underline;
}

.contact-form-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

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

.form-group label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 18px;
    font-size: 0.95rem;
    font-family: var(--font-family);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--bg-primary);
    color: #ffffff;
    outline: none;
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.2);
}

.form-feedback {
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 10px;
    text-align: center;
    display: none;
}

.form-feedback.success {
    color: var(--color-accent);
}

.form-feedback.error {
    color: #ef4444;
}

/* Footer styling */
.footer {
    background-color: #05050a;
    color: var(--text-secondary);
    padding: 80px 0 40px 0;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.footer-brand {
    text-align: center;
}

.footer-brand .logo {
    color: #ffffff;
    font-size: 2.25rem;
}

.footer-brand p {
    font-size: 1rem;
    margin-top: 10px;
}

.footer-links {
    display: flex;
    gap: 50px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-speed) ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-copy {
    border-top: 1px solid var(--border-color);
    width: 100%;
    text-align: center;
    padding-top: 30px;
    font-size: 0.85rem;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(5, 5, 10, 0.97);
    backdrop-filter: blur(12px);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 800px;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--border-color);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #94a3b8;
    font-size: 40px;
    font-weight: 700;
    transition: color 0.2s ease;
    cursor: pointer;
    user-select: none;
}

.lightbox-close:hover {
    color: var(--color-secondary);
}

.lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 800px;
    text-align: center;
    color: #f8fafc;
    padding: 20px 0;
    font-size: 1.25rem;
    font-weight: 700;
}

/* Hamburger Toggle Button */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 6px;
    z-index: 110;
}

.nav-toggle .bar {
    width: 26px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-toggle.open .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.nav-toggle.open .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ==========================================================================
   Responsive Breakpoints for All Mobile, Tablet & Desktop Screen Sizes
   ========================================================================== */

/* Preventing horizontal scrollbars across all devices */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Large Screens & Laptops (1200px and below) */
@media (max-width: 1200px) {
    .container {
        padding: 0 32px;
    }
    
    .hero-container {
        gap: 40px;
    }
    
    .about-container {
        gap: 60px;
    }
}

/* Tablets & Small Laptops (992px and below) */
@media (max-width: 992px) {
    .hero-container,
    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .hero-visual {
        order: -1;
        max-width: 520px;
        width: 100%;
        margin: 0 auto;
    }
    
    .about-sticky {
        position: static;
        text-align: center;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 30px;
    }
}

/* Tablets & Mobile Screens (768px and below) */
@media (max-width: 768px) {
    .header-container {
        height: 76px;
        padding: 0 20px;
        position: relative;
    }

    .logo {
        font-size: 1.5rem;
    }
    
    /* Mobile Menu Toggle */
    .nav-toggle {
        display: flex;
    }
    
    /* Slide-down Mobile Navigation Overlay */
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(10, 10, 20, 0.96);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border-color);
        padding: 30px 24px;
        flex-direction: column;
        align-items: center;
        gap: 24px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    }
    
    .nav.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 6px 0;
    }

    .nav-btn {
        width: 100%;
        max-width: 240px;
        text-align: center;
    }
    
    /* Section paddings for mobile */
    .section {
        padding: 70px 0;
    }

    .hero {
        padding: 80px 0 60px 0;
    }

    .hero-content h1 {
        font-size: clamp(2.2rem, 7vw, 3rem);
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 16px;
    }
    
    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-form-container {
        padding: 28px 20px;
    }

    .compliance-text h2,
    .section-header h2 {
        font-size: clamp(2rem, 6vw, 2.5rem);
    }
}

/* Small Mobile Screens (480px and below) */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .logo {
        font-size: 1.3rem;
    }

    .header-container {
        height: 68px;
        padding: 0 16px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        padding: 20px;
    }

    .product-img-wrapper {
        height: 180px;
    }

    .contact-form-container {
        padding: 24px 16px;
        border-radius: 12px;
    }

    .contact-header h2 {
        font-size: 2rem;
    }

    .lightbox-caption {
        font-size: 1rem;
        width: 90%;
    }
}
