/* =============================================================
   GD BIOTECH (基递生物) - Premium Design System v4.0
   Modern Biotech & Scientific Theme with Glassmorphism
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* --- Theme Variables --- */
:root[data-theme="dark"] {
    --bg-base: #07050e;
    --bg-page: #0a0715;
    --bg-card: rgba(18, 14, 32, 0.7);
    --bg-card-hover: rgba(26, 20, 46, 0.85);
    --bg-navbar: rgba(10, 7, 21, 0.75);
    --bg-input: rgba(15, 10, 30, 0.6);
    
    --primary: #c92c6f;          /* Electric magenta */
    --primary-glow: rgba(201, 44, 111, 0.4);
    --primary-subtle: #a01a52;
    --primary-dark: #0a0715;
    
    --accent: #00f5d4;           /* Biotech cyan */
    --accent-glow: rgba(0, 245, 212, 0.35);
    
    --gold: #f1c40f;             /* Vibrant gold */
    --gold-light: #fbe584;
    
    --text-title: #ffffff;
    --text-body: #cacedb;
    --text-muted: #8c8da6;
    
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(0, 245, 212, 0.3);
    
    --glass-glow: radial-gradient(circle at top left, rgba(201, 44, 111, 0.12), transparent 40%);
    --hero-bg-opacity: 0.55;
}

:root[data-theme="light"] {
    --bg-base: #ecd0d6;          /* Elegant light rose-pink, deepened for richer tint */
    --bg-page: #f5e4e8;          /* Soft off-white pink, deepened for richer tint */
    --bg-card: rgba(255, 255, 255, 0.75);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --bg-navbar: rgba(255, 255, 255, 0.8);
    --bg-input: rgba(235, 205, 215, 0.85); /* Harmonized light pinkish input background */
    
    --primary: #9b1b4b;          /* Professional maroon */
    --primary-glow: rgba(155, 27, 75, 0.15);
    --primary-subtle: #bf2d63;
    --primary-dark: #dfb6c2;     /* Richer light pinkish maroon for footer */
    
    --accent: #00b4d8;           /* Medical blue */
    --accent-glow: rgba(0, 180, 216, 0.2);
    
    --gold: #d4af37;
    --gold-light: #f3e5ab;
    
    --text-title: #1e1b29;
    --text-body: #494656;
    --text-muted: #848191;
    
    --border: rgba(155, 27, 75, 0.1);
    --border-hover: rgba(155, 27, 75, 0.25);
    
    --glass-glow: radial-gradient(circle at top left, rgba(155, 27, 75, 0.05), transparent 45%);
    --hero-bg-opacity: 0.45;
}

/* --- Base Reset & Setup --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    font-size: 16px;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-body);
    line-height: 1.75;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Global Layout Components --- */
.section {
    padding: 40px 0;
    position: relative;
    z-index: 2;
}

.section-alt {
    background: var(--bg-page);
    position: relative;
}

/* Animated grid lines behind site */
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(var(--border) 1px, transparent 1px),
                      linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

.section-header {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 12px;
    padding: 4px 12px;
    background: var(--primary-glow);
    border-radius: 20px;
    border: 1px solid rgba(201, 44, 111, 0.15);
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-title);
    line-height: 1.2;
    margin-top: 6px;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 18px;
    max-width: 650px;
}

/* --- Section Divider --- */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 10px 0 30px;
    max-width: 400px;
    margin: 0 auto;
}

.section-divider .divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.section-divider .divider-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    animation: rotatePulse 4s infinite linear;
}

@keyframes rotatePulse {
    0% { transform: rotate(0deg) scale(1); opacity: 0.4; }
    50% { transform: rotate(180deg) scale(1.15); opacity: 0.8; }
    100% { transform: rotate(360deg) scale(1); opacity: 0.4; }
}

/* --- Premium Glassmorphism Cards --- */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s ease,
                box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--glass-glow);
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
}

/* --- Scroll triggered fade-in styles --- */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }
.fade-in-delay-6 { transition-delay: 0.6s; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 30px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-subtle));
    color: #ffffff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
    filter: brightness(1.1);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-white {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-white:hover {
    background: #f8f6fc;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
}

.btn-ghost:hover {
    background: #ffffff;
    color: #07050e;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

:root[data-theme="light"] .btn-ghost {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-body);
    border: 1px solid var(--border);
}

:root[data-theme="light"] .btn-ghost:hover {
    background: var(--text-title);
    color: var(--bg-page);
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* =============================================================
   Header & Navigation
   ============================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    height: 80px;
    border-bottom: 1px solid transparent;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: var(--bg-navbar);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    height: 70px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-title);
    letter-spacing: 0.5px;
}

.nav-logo svg,
.nav-logo img {
    height: 48px;
    width: auto;
    border-radius: 6px;
    filter: drop-shadow(0 0 8px var(--primary-glow));
    transition: transform 0.4s ease;
}

.nav-logo:hover svg {
    transform: rotate(45deg);
}

.nav-logo:hover img {
    transform: scale(1.05);
}

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    position: relative;
    padding: 8px 0;
    letter-spacing: 0.3px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s ease, left 0.3s ease;
    border-radius: 1px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-title);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
    left: 0;
}

/* Nav Actions (Theme Toggle & Lang) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-title);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    border-color: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
    transform: scale(1.05);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

:root[data-theme="light"] .sun-icon {
    display: none;
}
:root[data-theme="dark"] .moon-icon {
    display: none;
}

.theme-toggle:hover svg {
    transform: rotate(30deg);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--text-title);
    border-radius: 1px;
    transition: all 0.3s ease;
}

/* Unscrolled Navbar overrides over the dark hero banner */
.navbar:not(.scrolled) .nav-links a {
    color: rgba(255, 255, 255, 0.75) !important;
}
.navbar:not(.scrolled) .nav-links a:hover,
.navbar:not(.scrolled) .nav-links a.active {
    color: #ffffff !important;
}
.navbar:not(.scrolled) .nav-logo {
    color: #ffffff !important;
}

/* =============================================================
   Hero Section
   ============================================================= */
.hero {
    /* Force deep dark navy blue theme for the hero section to match ubigene.com */
    --bg-base: #060f24;
    --text-title: #ffffff;
    --text-body: #cacedb;
    --text-muted: #8c8da6;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(0, 245, 212, 0.3);
    --hero-bg-opacity: 0.55;

    padding-top: 140px;
    padding-bottom: 90px;
    min-height: 700px;
    background-color: var(--bg-base);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Rotating Ambient Lights */
.hero-bg-glows {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.hero-glow-1 {
    position: absolute;
    top: 20%;
    right: 5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 44, 111, 0.1) 0%, transparent 70%);
    animation: orbit 20s infinite linear;
}

.hero-glow-2 {
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 245, 212, 0.08) 0%, transparent 70%);
    animation: orbit 15s infinite linear reverse;
}

@keyframes orbit {
    0% { transform: rotate(0deg) translate(50px) rotate(0deg); }
    100% { transform: rotate(360deg) translate(50px) rotate(-360deg); }
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.hero-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 720px;
    z-index: 3;
}

/* Visual logo wrap */
.hero-logo-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

/* Responsive hero logo sizing */
.hero-logo-wrap svg,
.hero-logo-wrap .hero-logo {
    height: 72px;
    width: auto;
    border-radius: 8px;
    filter: drop-shadow(0 0 15px var(--primary-glow));
    transition: transform 0.4s ease;
}

.hero-logo-wrap .hero-logo:hover {
    transform: scale(1.05);
}

.hero-logo-wrap svg {
    animation: spinSlow 12s infinite linear;
}

@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-logo-line {
    width: 4px;
    height: 56px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.hero-logo-text-wrap {
    display: flex;
    flex-direction: column;
}

.hero-company-name {
    font-family: 'Outfit', sans-serif;
    font-size: 3.6rem;
    font-weight: 800;
    color: var(--text-title);
    line-height: 1.15;
    letter-spacing: -1px;
}

.hero-company-en {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 6px;
    margin-top: 4px;
}

.hero-subtitle {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-title);
    margin: 16px 0 8px 0;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-subtitle::before {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary);
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 24px;
    max-width: 540px;
}

.hero-cta {
    position: relative;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding-bottom: 15px;
}

.btn-hero-tab {
    width: 120px;
    padding: 12px 0;
    text-align: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    z-index: 2;
    border-radius: 30px;
    
    /* Elegant solid red brand gradient background */
    background: linear-gradient(135deg, #bf2d63, #9b1b4b);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(155, 27, 75, 0.35);
}

.btn-hero-tab:hover {
    background: linear-gradient(135deg, #d83d78, #a81c51);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(155, 27, 75, 0.55);
    transform: translateY(-2px);
}

#btn-hero-products,
#btn-hero-services,
#btn-hero-consult {
    /* Styles unified in .btn-hero-tab */
}


.cta-bounce-indicator {
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 1.5px;
    box-shadow: 0 0 8px rgba(0, 245, 212, 0.5);
    animation: bounceIndicator 6s infinite cubic-bezier(0.77, 0, 0.175, 1);
    pointer-events: none;
    z-index: 1;
}

@keyframes bounceIndicator {
    0%, 100% {
        transform: translateX(45px);
    }
    33% {
        transform: translateX(185px);
    }
    66% {
        transform: translateX(325px);
    }
}

@media (max-width: 768px) {
    .hero-cta {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
        padding-bottom: 0;
        width: 100%;
    }
    .btn-hero-tab {
        width: calc(33.33% - 8px);
        max-width: 120px;
        min-width: 80px;
        font-size: 0.9rem;
        padding: 10px 0;
        white-space: nowrap;
    }
    .cta-bounce-indicator {
        display: none;
    }
}

/* --- Hero Right: Dynamic Interactive Canvas Section --- */
/* --- Hero Right / Carousel styling replaced with Full-Bleed Background Carousel --- */
.hero-bg-carousel {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    animation: heroBgCarousel 16s ease-in-out infinite;
}

.hero-bg-slide:nth-child(1) { animation-delay: 0s; }
.hero-bg-slide:nth-child(2) { animation-delay: 4s; }
.hero-bg-slide:nth-child(3) { animation-delay: 8s; }
.hero-bg-slide:nth-child(4) { animation-delay: 12s; }

@keyframes heroBgCarousel {
    0%      { opacity: 0; }
    5%      { opacity: var(--hero-bg-opacity, 0.18); }
    25%     { opacity: var(--hero-bg-opacity, 0.18); }
    30%     { opacity: 0; }
    100%    { opacity: 0; }
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to right, var(--bg-base) 45%, rgba(6, 15, 36, 0.15) 75%, transparent 100%);
}



/* =============================================================
   Cards & Grids
   ============================================================= */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

.card {
    padding: 36px 30px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

/* Left glowing accent strip */
.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    border-radius: 4px 0 0 4px;
    opacity: 0.3;
    transition: opacity 0.4s ease, width 0.4s ease;
}

.card:hover::after {
    opacity: 1;
    width: 6px;
}

.card-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-subtle));
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-card);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.card-icon-wrap {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.card-icon-wrap::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 14px;
    background: radial-gradient(circle, var(--primary-glow), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover .card-icon-wrap {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--primary);
    background: var(--primary-glow);
}

.card:hover .card-icon-wrap::before {
    opacity: 1;
}

.card-icon-wrap svg {
    width: 26px;
    height: 26px;
    color: var(--primary);
    position: relative;
    z-index: 2;
    transition: color 0.4s ease;
}

.card:hover .card-icon-wrap svg {
    color: var(--text-title);
}

.card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-title);
    margin-bottom: 12px;
    letter-spacing: -0.2px;
}

.card-desc {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 24px;
    flex: 1;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
    margin-top: auto;
}

.tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    background: var(--bg-input);
    color: var(--text-muted);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.card:hover .tag {
    border-color: var(--primary-glow);
    background: rgba(201, 44, 111, 0.04);
}

:root[data-theme="light"] .card:hover .tag {
    border-color: rgba(155, 27, 75, 0.25);
    background: rgba(155, 27, 75, 0.15);
}

.tag:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-subtle)) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 10px var(--primary-glow);
    transform: translateY(-1px);
}

/* --- Light Theme Card Icon & Tag Overrides (Deepened Pink) --- */
:root[data-theme="light"] .card-icon-wrap {
    background: rgba(155, 27, 75, 0.18) !important;
    border-color: rgba(155, 27, 75, 0.25);
}

:root[data-theme="light"] .card:hover .card-icon-wrap {
    background: rgba(155, 27, 75, 0.28) !important;
    border-color: var(--primary);
}

:root[data-theme="light"] .tag {
    background: rgba(155, 27, 75, 0.14) !important;
    border-color: rgba(155, 27, 75, 0.2);
    color: #8c123f;
}

:root[data-theme="light"] .card:hover .tag {
    background: rgba(155, 27, 75, 0.2) !important;
    border-color: rgba(155, 27, 75, 0.35);
    color: #7b0d36;
}

/* Background SVGs patterns in cards */
.bg-medical-pattern {
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 90px;
    height: 90px;
    opacity: 0.03;
    z-index: 0;
    pointer-events: none;
    color: var(--primary);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.card:hover .bg-medical-pattern {
    opacity: 0.08;
    transform: scale(1.15) rotate(-10deg);
}

/* =============================================================
   About Us Section
   ============================================================= */
.about-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 30px;
    align-items: center;
}

.about-text h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-title);
    line-height: 1.3;
}

.about-text p {
    color: var(--text-body);
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.85;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    text-align: center;
    padding: 36px 24px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0.4;
    transition: opacity 0.4s ease;
}

.stat-card:hover::after {
    opacity: 1;
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* =============================================================
   Contact Us Section (Multi-Step Form Redesign)
   ============================================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 30px;
    align-items: start;
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: var(--border-hover);
    transform: translateX(5px);
}

.contact-item-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-item-icon svg {
    width: 20px;
    height: 20px;
}

.contact-item-text h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-title);
    margin-bottom: 6px;
}

.contact-item-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Consultation Multi-Step Form */
.consultation-form-card {
    padding: 40px;
    position: relative;
}

.form-steps-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 36px;
    position: relative;
}

.form-steps-indicator::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--border);
    z-index: 1;
}

.step-indicator-node {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-base);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.step-indicator-node.active {
    border-color: var(--primary);
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 0 12px var(--primary-glow);
}

.step-indicator-node.completed {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--bg-base);
    box-shadow: 0 0 12px var(--accent-glow);
}

/* Steps Contents */
.form-step-panel {
    display: none;
    animation: slideFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.form-step-panel.active {
    display: block;
}

@keyframes slideFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-step-panel h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-title);
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.form-group-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 18px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-title);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--bg-page);
    box-shadow: 0 0 12px var(--primary-glow);
}

/* Options Select box custom styling */
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%238c8da6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* Success Confirmation panel style */
.form-success-panel {
    text-align: center;
    padding: 40px 10px;
}

.success-icon-wrap {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent-glow);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
    border: 2px solid var(--accent);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(0, 245, 212, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(0, 245, 212, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 245, 212, 0); }
}

.success-icon-wrap svg {
    width: 40px;
    height: 40px;
}

.form-success-panel h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-title);
    margin-bottom: 12px;
}

.form-success-panel p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 400px;
    margin: 0 auto 30px auto;
}

/* =============================================================
   Interactive Modal Details View
   ============================================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 5, 14, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    width: 90%;
    max-width: 650px;
    max-height: 85vh;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-hover);
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-title);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    background: var(--primary);
    color: #ffffff;
    transform: rotate(90deg);
}

.modal-close-btn svg {
    width: 18px;
    height: 18px;
}

.modal-header-banner {
    height: 120px;
    background: linear-gradient(135deg, var(--primary), var(--primary-subtle));
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 24px 30px;
}

.modal-header-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

.modal-icon-container {
    position: absolute;
    bottom: -24px;
    left: 30px;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: var(--shadow);
    z-index: 2;
}

.modal-icon-container svg {
    width: 30px;
    height: 30px;
}

.modal-body {
    padding: 40px 30px 30px 30px;
    overflow-y: auto;
    flex: 1;
}

.modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-title);
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.modal-subtitle {
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.modal-desc {
    font-size: 1.05rem;
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 24px;
}

.modal-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-title);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-section-title svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.modal-subitems-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.modal-subitem-tag {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 8px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-title);
    transition: all 0.3s ease;
}

.modal-subitem-tag:hover {
    border-color: var(--primary);
    transform: translateX(4px);
}

.modal-subitem-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--accent);
}

/* =============================================================
   Footer Styling
   ============================================================= */
.footer {
    background-color: var(--primary-dark);
    color: var(--text-muted);
    padding: 80px 0 30px 0;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.9fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-col h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-title);
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 2px;
    background: var(--primary);
}

.footer-col p {
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-col a {
    display: block;
    margin-bottom: 14px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-col a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.footer-contact-icon {
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-contact-icon svg {
    width: 16px;
    height: 16px;
}

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

/* =============================================================
   Responsive Design Media Queries
   ============================================================= */
@media (max-width: 1024px) {
    .hero-container {
        justify-content: center;
        text-align: center;
    }
    
    .hero-left {
        align-items: center;
        max-width: 100%;
    }
    
    .hero-logo-wrap {
        justify-content: center;
    }
    
    .hero-subtitle {
        justify-content: center;
    }
    
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-bg-carousel {
        width: 100% !important;
    }

    .hero-bg-overlay {
        background: linear-gradient(to bottom, var(--bg-base) 0%, rgba(6, 15, 36, 0.6) 50%, var(--bg-base) 100%) !important;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-company-name {
        font-size: 2.8rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-base);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 36px;
        z-index: 999;
        transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        border-top: 1px solid var(--border);
        padding: 40px 0;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links a {
        font-size: 1.2rem;
    }
    
    .nav-actions {
        margin-right: 48px;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .form-group-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    /* Hamburger anims */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}
