/* ============================================
   CSS CUSTOM PROPERTIES
============================================ */
:root {
    --pink: #c8326e;
    --pink-dark: #a02858;
    --pink-light: #e84a88;
    --pink-bg: rgba(200, 50, 110, 0.06);
    --pink-bg-strong: rgba(200, 50, 110, 0.12);
    --gray-900: #1a1a2e;
    --gray-800: #2d2d44;
    --gray-700: #3a3a54;
    --gray-600: #555;
    --gray-500: #777;
    --gray-400: #999;
    --gray-300: #c4c4c4;
    --gray-200: #e8e8e8;
    --gray-100: #f5f5f7;
    --gray-50: #fafafe;
    --white: #ffffff;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
    --nav-height: 64px;
}

/* ============================================
   RESET & BASE (Mobile-First)
============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--pink);
    text-decoration: none;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}

a:hover { color: var(--pink-dark); }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   ANIMATIONS
============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(1.6); opacity: 0; }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Scroll reveal classes */
.reveal, .reveal-left, .reveal-right {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal { transform: translateY(40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }

.reveal.visible, .reveal-left.visible, .reveal-right.visible {
    opacity: 1;
    transform: translate(0);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .reveal, .reveal-left, .reveal-right { opacity: 1; transform: none; }
}

/* ============================================
   NAVIGATION (Mobile-First)
============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 0;
    transition: var(--transition);
    background: transparent;
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
    padding: 8px 0;
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 40px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

.nav-logo img {
    height: 36px;
    width: auto;
}

.nav-logo span {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--white);
    transition: var(--transition);
}

.nav.scrolled .nav-logo span {
    color: var(--gray-900);
}

/* Mobile nav overlay */
.nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 999;
    padding: 80px 40px;
}

.nav-links.open {
    opacity: 1;
    visibility: visible;
}

.nav-links li {
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.nav-links.open li {
    transform: translateY(0);
    opacity: 1;
}

.nav-links.open li:nth-child(1) { transition-delay: 0.05s; }
.nav-links.open li:nth-child(2) { transition-delay: 0.1s; }
.nav-links.open li:nth-child(3) { transition-delay: 0.15s; }
.nav-links.open li:nth-child(4) { transition-delay: 0.2s; }
.nav-links.open li:nth-child(5) { transition-delay: 0.25s; }
.nav-links.open li:nth-child(6) { transition-delay: 0.3s; }
.nav-links.open li:nth-child(7) { transition-delay: 0.35s; }

.nav-links a {
    color: var(--gray-800);
    font-size: 1.3rem;
    font-weight: 600;
    padding: 12px 0;
    display: block;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--pink);
    border-radius: 1px;
    transition: var(--transition);
}

.nav-links a:hover { color: var(--pink); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
    background: var(--pink) !important;
    color: var(--white) !important;
    padding: 12px 32px !important;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem !important;
    margin-top: 8px;
    display: inline-block !important;
}

.nav-cta:hover {
    background: var(--pink-dark) !important;
    color: var(--white) !important;
}

.nav-cta::after { display: none !important; }

/* Hamburger */
.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}

.nav.scrolled .nav-toggle span { background: var(--gray-800); }

/* Hamburger animation */
.nav-toggle.active span { background: var(--gray-800); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   HERO (Mobile-First)
============================================ */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--gray-900);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(26, 26, 46, 0.92) 0%,
        rgba(200, 50, 110, 0.3) 50%,
        rgba(26, 26, 46, 0.85) 100%);
    z-index: 1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(200, 50, 110, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(200, 50, 110, 0.1) 0%, transparent 40%);
    z-index: 2;
    animation: gradient-shift 15s ease infinite;
    background-size: 200% 200%;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.06;
    background-image:
        linear-gradient(rgba(200, 50, 110, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200, 50, 110, 0.3) 1px, transparent 1px);
    background-size: 40px 40px;
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(200, 50, 110, 0.4);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; animation-duration: 7s; }
.particle:nth-child(2) { top: 60%; left: 25%; animation-delay: 1s; animation-duration: 5s; width: 5px; height: 5px; }
.particle:nth-child(3) { top: 30%; left: 70%; animation-delay: 2s; animation-duration: 8s; }
.particle:nth-child(4) { top: 75%; left: 80%; animation-delay: 0.5s; animation-duration: 6s; }
.particle:nth-child(5) { top: 45%; left: 50%; animation-delay: 3s; animation-duration: 9s; width: 4px; height: 4px; }
.particle:nth-child(6) { top: 85%; left: 40%; animation-delay: 1.5s; animation-duration: 7s; }
.particle:nth-child(7) { top: 15%; left: 90%; animation-delay: 2.5s; animation-duration: 6s; }
.particle:nth-child(8) { top: 55%; left: 5%; animation-delay: 4s; animation-duration: 8s; }

/* Mobile hero layout */
.hero-content {
    position: relative;
    z-index: 10;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 100px 20px 60px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    text-align: center;
}

.hero-text {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(200, 50, 110, 0.15);
    border: 1px solid rgba(200, 50, 110, 0.25);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--pink-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

.hero-badge .pulse-dot {
    width: 7px;
    height: 7px;
    background: var(--pink-light);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.hero-badge .pulse-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--pink-light);
    animation: pulse-ring 2s ease-out infinite;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--pink-light), #ff6b9d, var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    background: var(--pink);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(200, 50, 110, 0.35);
}

.btn-primary:hover {
    background: var(--pink-light);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(200, 50, 110, 0.45);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.btn-outline:hover {
    border-color: var(--pink-light);
    color: var(--pink-light);
    transform: translateY(-2px);
}

/* Hero visual */
.hero-visual {
    position: relative;
    animation: fadeIn 1.2s ease-out 0.6s both;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.hero-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.hero-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.hero-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(26, 26, 46, 0.95));
}

.hero-card-overlay span {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--pink-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-card-overlay p {
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    margin-top: 2px;
}

/* Floating stats - hidden on mobile */
.float-stat {
    display: none;
}

/* ============================================
   STATS BAR (Mobile-First)
============================================ */
.stats-bar {
    background: var(--white);
    padding: 0;
    position: relative;
    z-index: 10;
    margin-top: -30px;
}

.stats-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 16px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.stat-item {
    padding: 24px 16px;
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.stat-item:hover { background: var(--pink-bg); }

/* Vertical dividers */
.stat-item:nth-child(odd)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: var(--gray-200);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--pink);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* ============================================
   SECTIONS SHARED (Mobile-First)
============================================ */
section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--pink);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.section-tag::before,
.section-tag::after {
    content: '';
    width: 20px;
    height: 2px;
    background: var(--pink);
    border-radius: 1px;
    opacity: 0.4;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   ABOUT (Mobile-First)
============================================ */
.about { background: var(--gray-50); }

.about-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.about-image { position: relative; }

.about-image-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image-main img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.about-image-float {
    position: absolute;
    bottom: -20px;
    right: 16px;
    width: 140px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--white);
}

.about-image-float img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.about-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--pink);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.about-tag::before {
    content: '';
    width: 20px;
    height: 2px;
    background: var(--pink);
    border-radius: 1px;
}

.about h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
    margin-bottom: 16px;
}

.about-text p {
    color: var(--gray-600);
    margin-bottom: 16px;
    font-size: 0.92rem;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: var(--white);
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.highlight-item:active { border-color: var(--pink); }

.highlight-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pink-bg);
    border-radius: var(--radius-sm);
}

.highlight-item h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 2px;
}

.highlight-item p {
    font-size: 0.78rem;
    color: var(--gray-500);
    line-height: 1.4;
    margin: 0;
}

/* ============================================
   RESEARCH (Mobile-First)
============================================ */
.research { background: var(--white); }

.research-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.research-card {
    position: relative;
    padding: 24px 20px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    overflow: hidden;
    border-left: 4px solid var(--pink);
}

.research-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--pink-bg-strong);
    line-height: 1;
    margin-bottom: 8px;
}

.research-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pink-bg);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.research-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 10px;
    line-height: 1.4;
}

.research-card p {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.7;
}

.research-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.research-tags span {
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 500;
    background: var(--pink-bg);
    color: var(--pink);
    border-radius: 999px;
}

/* ============================================
   LAB / EQUIPMENT (Mobile-First)
============================================ */
.lab {
    background: var(--gray-900);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.lab::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 50%, rgba(200, 50, 110, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 90% 20%, rgba(200, 50, 110, 0.08) 0%, transparent 40%);
}

.lab .section-tag { color: var(--pink-light); }
.lab .section-title { color: var(--white); }
.lab .section-subtitle { color: rgba(255, 255, 255, 0.5); }

.lab-gallery {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.lab-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.lab-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.lab-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(26, 26, 46, 0.9));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    opacity: 1; /* Always visible on mobile */
}

.lab-item-overlay h4 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 2px;
}

.lab-item-overlay p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
}

.lab-item.featured { grid-row: auto; }

/* Equipment grid */
.equipment-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 32px;
}

.equip-card {
    padding: 18px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
}

.equip-icon {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.equip-card h4 {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 2px;
}

.equip-card p {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.4;
}

/* ============================================
   TEAM (Mobile-First)
============================================ */
.team { background: var(--gray-50); }

.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.team-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.team-avatar {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, var(--pink), var(--pink-dark));
    position: relative;
}

.team-avatar-circle {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--pink);
    border: 3px solid var(--white);
    box-shadow: var(--shadow-sm);
}

.team-info {
    padding: 30px 12px 18px;
    text-align: center;
}

.team-info h4 {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 2px;
    line-height: 1.3;
}

.team-info .role {
    font-size: 0.68rem;
    color: var(--pink);
    font-weight: 500;
    margin-bottom: 2px;
}

.team-info .dept {
    font-size: 0.65rem;
    color: var(--gray-400);
    line-height: 1.3;
}

.team-section-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 16px;
    margin-top: 36px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-section-title .count {
    background: var(--pink-bg);
    color: var(--pink);
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 600;
}

/* ============================================
   SERVICES (Mobile-First)
============================================ */
.services { background: var(--white); }

.services-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-card {
    padding: 28px 24px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pink-bg);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ============================================
   CONTACT (Mobile-First)
============================================ */
.contact { background: var(--gray-50); }

.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-info h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.contact-info > p {
    color: var(--gray-500);
    margin-bottom: 28px;
    font-size: 0.92rem;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.contact-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pink-bg);
    border-radius: var(--radius-sm);
}

.contact-item h4 {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 2px;
}

.contact-item p {
    font-size: 0.82rem;
    color: var(--gray-500);
    line-height: 1.5;
}

.contact-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 280px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    min-height: 280px;
}

/* ============================================
   FOOTER (Mobile-First)
============================================ */
.footer {
    background: var(--gray-900);
    color: rgba(255, 255, 255, 0.5);
    padding: 48px 0 24px;
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-brand img {
    height: 42px;
    margin-bottom: 12px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    font-size: 0.85rem;
    line-height: 1.7;
    max-width: 320px;
}

.footer h4 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 14px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--pink-light);
    padding-left: 4px;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
    font-size: 0.78rem;
}

/* ============================================
   BACK TO TOP
============================================ */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: var(--pink);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 4px 20px rgba(200, 50, 110, 0.35);
    -webkit-tap-highlight-color: transparent;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--pink-dark);
}

/* ============================================
   TABLET  (>=600px)
============================================ */
@media (min-width: 768px) {
    .container { padding: 0 24px; }
    .nav-inner { padding: 0 24px; }

    .hero-content { padding: 120px 24px 70px; }
    .hero h1 { font-size: 2.5rem; }
    .hero-description { font-size: 1.05rem; }
    .hero-card img { height: 320px; }

    section { padding: 80px 0; }
    .section-header { margin-bottom: 48px; }
    .section-title { font-size: 2rem; }

    .about-image-main img { height: 350px; }
    .about h2 { font-size: 1.75rem; }
    .about-highlights { grid-template-columns: 1fr 1fr; display: grid; gap: 14px; }

    .research-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .research-card { padding: 28px 24px; border-left: 1px solid var(--gray-200); }
    .research-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 0;
        background: var(--pink);
        border-radius: 0 2px 2px 0;
        transition: height 0.4s ease;
    }
    .research-card:hover::before { height: 100%; }

    .lab-gallery { grid-template-columns: 1fr 1fr; gap: 16px; }
    .lab-item img { height: 240px; }
    .equipment-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }

    .team-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }

    .services-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .contact-grid { gap: 48px; }
    .contact-map { min-height: 350px; }
    .contact-map iframe { min-height: 350px; }

    .footer-top {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr;
        gap: 40px;
    }
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ============================================
   DESKTOP (>=1024px)
============================================ */
@media (min-width: 1024px) {
    :root { --nav-height: 72px; }

    .nav { padding: 14px 0; }
    .nav.scrolled { padding: 10px 0; }
    .nav-logo img { height: 42px; }
    .nav-logo span { font-size: 1.25rem; }

    /* Desktop nav: horizontal links */
    .nav-links {
        position: static;
        flex-direction: row;
        background: transparent;
        opacity: 1;
        visibility: visible;
        padding: 0;
        gap: 28px;
    }

    .nav-links li {
        transform: none;
        opacity: 1;
        transition: none;
    }

    .nav-links a {
        font-size: 0.9rem;
        font-weight: 500;
        padding: 4px 0;
        color: rgba(255, 255, 255, 0.85);
    }

    .nav-links a::after {
        left: 0;
        transform: none;
    }

    .nav.scrolled .nav-links a { color: var(--gray-700); }
    .nav-links a:hover { color: var(--white); }
    .nav.scrolled .nav-links a:hover { color: var(--pink); }

    .nav-cta {
        padding: 10px 24px !important;
        font-size: 0.85rem !important;
        margin-top: 0 !important;
    }

    .nav-toggle { display: none; }

    /* Hero: two columns */
    .hero-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        align-items: center;
        text-align: left;
        padding: 140px 24px 80px;
    }

    .hero h1 { font-size: clamp(2.5rem, 4.5vw, 3.8rem); }
    .hero-description { margin-left: 0; margin-right: 0; font-size: 1.1rem; }
    .hero-buttons { justify-content: flex-start; }
    .hero-card img { height: 420px; }
    .btn { padding: 14px 28px; font-size: 0.95rem; }

    .float-stat {
        display: block;
        position: absolute;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: var(--radius-md);
        padding: 16px 20px;
        animation: float 5s ease-in-out infinite;
        z-index: 5;
    }
    .float-stat.stat-1 { top: -20px; right: -20px; }
    .float-stat.stat-2 { bottom: 60px; left: -30px; animation-delay: 1.5s; }
    .float-stat .stat-number {
        font-family: var(--font-display);
        font-size: 1.6rem;
        font-weight: 700;
        color: var(--white);
    }
    .float-stat .stat-label {
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.6);
        font-weight: 500;
    }

    .stats-bar { margin-top: -50px; }
    .stats-grid { grid-template-columns: repeat(4, 1fr); border-radius: var(--radius-xl); }
    .stat-item { padding: 36px 24px; }
    .stat-item:nth-child(odd)::after { display: none; }
    .stat-item:not(:last-child)::after {
        content: '';
        display: block;
        position: absolute;
        right: 0;
        top: 25%;
        height: 50%;
        width: 1px;
        background: var(--gray-200);
    }
    .stat-number { font-size: 2.25rem; }
    .stat-label { font-size: 0.85rem; }

    section { padding: 100px 0; }
    .section-header { margin-bottom: 64px; }
    .section-title { font-size: clamp(2rem, 4vw, 2.75rem); }

    /* About: 2 columns */
    .about-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 80px;
        align-items: center;
    }
    .about-image-main img { height: 450px; }
    .about-image-float { width: 200px; bottom: -30px; right: -30px; border-width: 4px; }
    .about-image-float img { height: 140px; }
    .about h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
    .about-text p { font-size: 1.02rem; }

    .research-card {
        padding: 36px;
        border-left: 1px solid var(--gray-200);
    }
    .research-card:hover {
        border-color: transparent;
        box-shadow: var(--shadow-lg);
        transform: translateY(-4px);
    }
    .research-number { font-size: 3rem; }

    .lab-gallery { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .lab-item.featured { grid-row: span 2; }
    .lab-item.featured img { height: 100%; }
    .lab-item img { height: 280px; }
    .lab-item-overlay { opacity: 0; transition: var(--transition); }
    .lab-item:hover .lab-item-overlay { opacity: 1; }
    .lab-item:hover img { transform: scale(1.08); }

    .team-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
    .team-avatar { height: 60px; }
    .team-avatar-circle { width: 56px; height: 56px; bottom: -28px; font-size: 1.1rem; }
    .team-info { padding: 40px 20px 24px; }
    .team-info h4 { font-size: 0.9rem; }
    .team-info .role { font-size: 0.78rem; }
    .team-info .dept { font-size: 0.72rem; }
    .team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }

    .service-card:hover {
        background: var(--white);
        border-color: var(--pink);
        box-shadow: var(--shadow-lg);
        transform: translateY(-4px);
    }
    .service-card:hover .service-icon {
        background: var(--pink);
        transform: scale(1.1);
    }

    .contact-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        align-items: start;
    }
    .contact-info h2 { font-size: 2rem; }
    .contact-item:hover { border-color: var(--pink); box-shadow: var(--shadow-sm); }
    .contact-map { min-height: 400px; height: 100%; }
    .contact-map iframe { min-height: 400px; }

    .footer { padding: 60px 0 30px; }
    .footer-top { gap: 60px; margin-bottom: 48px; }
    .footer-brand img { height: 50px; }

    .back-to-top { width: 48px; height: 48px; bottom: 30px; right: 30px; }
    .back-to-top:hover { transform: translateY(-3px); }
}
