/**
 * VHCI Lab Website - Style V2
 * Inspired by: Be More Colorful, Meta Reality Labs
 * Vibe: High-tech, colorful, engaging, FUN
 */

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    /* Brand Colors - Clean & Vibrant */
    --navy: #1a365d;
    --navy-light: #2d4a7c;
    --red: #e53e3e;
    --red-hover: #c53030;
    --orange: #ff6b35;
    --teal: #38b2ac;
    --purple: #805ad5;
    --yellow: #f6c744;
    
    /* Neutrals */
    --white: #ffffff;
    --off-white: #f7fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-400: #94a3b8;
    --gray-600: #475569;
    --gray-800: #1e293b;
    --black: #0f172a;
    
    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', var(--font-main);
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    
    /* Layout */
    --container-max: 1200px;
    --header-height: 80px;
    
    /* Effects */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --shadow-color: 0 10px 40px rgba(229, 62, 62, 0.15);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50px;
    --transition: 0.2s ease;
}

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

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

body {
    font-family: var(--font-main);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p {
    color: var(--gray-600);
    max-width: 65ch;
}

.text-center { text-align: center; }
.text-white { color: var(--white); }
.text-white p { color: rgba(255,255,255,0.85); }

/* Color accents for text */
.highlight-red { color: var(--red); }
.highlight-orange { color: var(--orange); }
.highlight-teal { color: var(--teal); }
.highlight-purple { color: var(--purple); }

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

section {
    padding: var(--space-20) 0;
}

.section-header {
    margin-bottom: var(--space-12);
}

.section-header.centered {
    text-align: center;
}

.section-header p {
    margin: var(--space-4) auto 0;
}

.section-tag {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--red);
    margin-bottom: var(--space-3);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--red);
    color: var(--white);
    box-shadow: var(--shadow-color);
}

.btn-primary:hover {
    background: var(--red-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(229, 62, 62, 0.25);
}

.btn-secondary {
    background: var(--white);
    color: var(--navy);
    border: 2px solid var(--gray-200);
}

.btn-secondary:hover {
    border-color: var(--navy);
    background: var(--off-white);
}

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

.btn-outline-white:hover {
    background: var(--white);
    color: var(--navy);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-100);
    transition: all var(--transition);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.nav-logo img {
    height: 45px;
    width: 45px;
    border-radius: var(--radius-sm);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
}

.logo-accent {
    color: var(--red);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    list-style: none;
}

.nav-link {
    font-weight: 500;
    color: var(--gray-600);
    transition: color var(--transition);
}

.nav-link:hover {
    color: var(--navy);
}

.nav-link.active {
    color: var(--red);
}

.nav-cta {
    padding: var(--space-3) var(--space-6);
    background: var(--red);
    color: var(--white) !important;
    border-radius: var(--radius-full);
}

.nav-cta:hover {
    background: var(--red-hover);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--navy);
    transition: all var(--transition);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(229, 62, 62, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-12);
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--off-white);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: var(--space-6);
}

.hero-tag-dot {
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    margin-bottom: var(--space-6);
}

.hero-title span {
    color: var(--red);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: var(--space-8);
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
}

.hero-image {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    min-height: 450px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    min-height: 450px;
    object-fit: cover;
}

/* Floating accent shapes */
.hero-shape {
    position: absolute;
    border-radius: var(--radius-md);
    z-index: -1;
}

.hero-shape-1 {
    width: 100px;
    height: 100px;
    background: var(--yellow);
    top: -20px;
    right: -20px;
    opacity: 0.8;
}

.hero-shape-2 {
    width: 60px;
    height: 60px;
    background: var(--teal);
    bottom: 40px;
    left: -30px;
    opacity: 0.8;
}

/* ==========================================================================
   Stats Bar
   ========================================================================== */
.stats-bar {
    background: var(--navy);
    padding: var(--space-12) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
    text-align: center;
}

.stat-item {
    color: var(--white);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    margin-bottom: var(--space-2);
}

.stat-number span {
    color: var(--red);
}

.stat-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.7);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.about-image {
    position: relative;
}

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

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    background: var(--orange);
    opacity: 0.15;
    border-radius: var(--radius-lg);
    z-index: -1;
}

.about-content h2 {
    margin-bottom: var(--space-6);
}

.about-content p {
    margin-bottom: var(--space-4);
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    margin-top: var(--space-8);
}

.about-feature {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.about-feature-icon {
    width: 40px;
    height: 40px;
    background: var(--off-white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    font-size: 1.25rem;
}

.about-feature span {
    font-weight: 500;
    color: var(--navy);
}

/* ==========================================================================
   What We Do Section
   ========================================================================== */
.what-we-do {
    background: var(--off-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.service-card {
    background: var(--white);
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-6);
    background: var(--off-white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    width: 50px;
    height: 50px;
}

.service-card:nth-child(1) .service-icon { background: rgba(229, 62, 62, 0.1); }
.service-card:nth-child(2) .service-icon { background: rgba(56, 178, 172, 0.1); }
.service-card:nth-child(3) .service-icon { background: rgba(128, 90, 213, 0.1); }

.service-card h3 {
    margin-bottom: var(--space-4);
}

.service-card p {
    margin: 0 auto;
}

/* ==========================================================================
   Featured Project
   ========================================================================== */
.featured-project {
    background: var(--navy);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.featured-project::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(ellipse at right, rgba(229, 62, 62, 0.2) 0%, transparent 70%);
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
    position: relative;
    z-index: 2;
}

.featured-content .section-tag {
    color: var(--orange);
}

.featured-content h2 {
    color: var(--white);
    margin-bottom: var(--space-6);
}

.featured-content p {
    color: rgba(255,255,255,0.8);
    margin-bottom: var(--space-6);
}

.featured-stats {
    display: flex;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.featured-stat {
    text-align: center;
}

.featured-stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--orange);
}

.featured-stat-label {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
}

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

.featured-image img {
    width: 100%;
}

/* ==========================================================================
   Team Section
   ========================================================================== */
.team {
    background: var(--white);
}

.team-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--space-12);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-6);
}

.team-card {
    text-align: center;
    padding: var(--space-6);
    background: var(--off-white);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.team-card.director {
    grid-column: span 2;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-6);
    text-align: left;
    background: var(--navy);
    color: var(--white);
}

.team-card.director h4 { color: var(--white); }
.team-card.director p { color: rgba(255,255,255,0.8); }

.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto var(--space-4);
    border: 3px solid var(--white);
    box-shadow: var(--shadow-sm);
}

.team-card.director .team-avatar {
    width: 140px;
    height: 140px;
    margin: 0;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-400);
}

.team-card h4 {
    margin-bottom: var(--space-1);
}

.team-role {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.team-card.director .team-role {
    color: var(--orange);
    font-weight: 500;
}

/* ==========================================================================
   Partners
   ========================================================================== */
.partners {
    background: var(--off-white);
    padding: var(--space-12) 0;
}

.partners-label {
    text-align: center;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-400);
    margin-bottom: var(--space-8);
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-12);
    flex-wrap: wrap;
}

.partner-logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-400);
    opacity: 0.6;
    transition: opacity var(--transition);
}

.partner-logo:hover {
    opacity: 1;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta {
    background: linear-gradient(135deg, var(--red) 0%, var(--orange) 100%);
    text-align: center;
    color: var(--white);
}

.cta h2 {
    color: var(--white);
    margin-bottom: var(--space-4);
}

.cta p {
    color: rgba(255,255,255,0.9);
    margin: 0 auto var(--space-8);
    max-width: 500px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--navy);
    color: var(--white);
    padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    margin-top: var(--space-4);
}

.footer-col h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: var(--space-4);
}

.footer-col a {
    display: block;
    color: rgba(255,255,255,0.7);
    margin-bottom: var(--space-2);
    transition: color var(--transition);
}

.footer-col a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.social-link:hover {
    background: var(--red);
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: var(--white);
}

.footer-bottom {
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-item {
    transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-container,
    .about-grid,
    .featured-grid {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }
    
    .hero-visual {
        order: -1;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .team-grid[style*="repeat(5"] {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .team-card.director {
        grid-column: span 3;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .publications-grid,
    .insights-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Projects grid responsive */
@media (max-width: 1024px) {
    .projects [style*="grid-template-columns: repeat(3"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .projects [style*="grid-template-columns: repeat"] {
        grid-template-columns: 1fr !important;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr !important;
    }
    
    .publications-grid,
    .insights-grid {
        grid-template-columns: 1fr !important;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: var(--space-6);
        gap: var(--space-4);
        border-bottom: 1px solid var(--gray-100);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
    
    .services-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .team-card.director {
        grid-column: span 1;
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .team-card.director .team-avatar {
        margin: 0 auto var(--space-4);
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Location/Map Section */
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
}

@media (max-width: 768px) {
    .location-grid {
        grid-template-columns: 1fr;
    }
}
