/* Modern CSS Reset and Base Styles - Updated: Mobile Fix v2 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors - ForzaSys Theme */
    --primary-color: #F4CB08;
    --primary-hover: #E6B800;
    --primary-light: #FFF4B3;
    --secondary-color: #1A1A1A;
    --secondary-hover: #333333;
    --accent-color: #0066FF;
    --accent-hover: #0052CC;
    
    /* Neutral Colors - Warm & Modern */
    --neutral-50: #FAFAFA;
    --neutral-100: #F5F5F5;
    --neutral-200: #E5E5E5;
    --neutral-300: #D4D4D4;
    --neutral-400: #A3A3A3;
    --neutral-500: #6B7280;
    --neutral-600: #4B5563;
    --neutral-700: #374151;
    --neutral-800: #2F2D2A;
    --neutral-900: #1F1E1B;
    
    /* Dark Surface Colors - Warm Charcoals */
    --dark-primary: #2A2823;
    --dark-secondary: #3D3A2F;
    --dark-accent: #4A453A;
    
    /* Surface Colors - Warm & Soft (Darker) */
    --surface-primary: linear-gradient(135deg, #FFFCF0 0%, #FFF6E3 60%, #F8F9FA 90%, #F5F6F7 100%);
    --surface-secondary: linear-gradient(135deg, #FFF8E1 0%, #FFF3D0 50%, #FAFBFC 80%, #F7F8F9 100%);
    --surface-warm: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 70%, #F8F9FA 100%);
    --surface-glass: rgba(255, 255, 255, 0.1);
    --surface-glass-dark: rgba(26, 26, 46, 0.9);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Font Sizes - Fluid Typography */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.3rem + 1vw, 1.875rem);
    --text-3xl: clamp(1.875rem, 1.6rem + 1.375vw, 2.25rem);
    --text-4xl: clamp(2.25rem, 1.9rem + 1.75vw, 3rem);
    --text-5xl: clamp(3rem, 2.5rem + 2.5vw, 4rem);
    --text-6xl: clamp(3.75rem, 3rem + 3.75vw, 5rem);
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;
    
    /* Border Radius */
    --radius-sm: 0.125rem;
    --radius-base: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-full: 9999px;
    
    /* Shadows - Modern Depth */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-base: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-backdrop: blur(20px);
    
    /* Transitions & Animations */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

/* HTML & Body */
html {
    scroll-behavior: smooth;
    font-size: 16px;
    line-height: 1.5;
}

body {
    font-family: var(--font-primary);
    color: var(--neutral-800);
    background: var(--surface-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--neutral-100);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* Selection Styling */
::selection {
    background: var(--primary-light);
    color: var(--neutral-800);
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* Mobile Breakpoints */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-4);
    }
    
    /* Mobile Typography Adjustments */
    h1 { font-size: var(--text-4xl); }
    h2 { font-size: var(--text-3xl); }
    h3 { font-size: var(--text-2xl); }
    
    /* Mobile Button Improvements */
    .btn {
        min-height: 44px;
        padding: var(--space-3) var(--space-5);
        font-size: var(--text-base);
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: var(--space-3);
        align-items: stretch;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
        font-size: var(--text-sm);
        padding: var(--space-3) var(--space-4);
    }
    
    /* Mobile styles for example-links (Forzify section buttons) */
    .example-links {
        flex-direction: column;
        gap: var(--space-3);
        align-items: stretch;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .example-links .btn {
        width: 100%;
        justify-content: center;
        font-size: var(--text-sm);
        padding: var(--space-3) var(--space-4);
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .hero-content {
        padding: var(--space-3) var(--space-2) var(--space-3) !important;
    }
    
    .title-main {
        font-size: clamp(1.3rem, 5.5vw, 1.8rem) !important;
        line-height: 1.0 !important;
    }
    
    .title-sub {
        font-size: clamp(0.7rem, 2.8vw, 0.9rem) !important;
        line-height: 1.1 !important;
    }
    
    .hero-description {
        font-size: clamp(0.7rem, 2.2vw, 0.8rem) !important;
        line-height: 1.3 !important;
        max-width: 95% !important;
    }
    
    .hero-badge {
        padding: var(--space-1) var(--space-2) !important;
        font-size: 0.65rem !important;
    }
    
    .badge-text {
        font-size: 0.65rem !important;
    }
    
    /* Extra small mobile button improvements */
    .example-links {
        max-width: 260px;
        gap: var(--space-2);
    }
    
    .example-links .btn {
        font-size: var(--text-xs);
        padding: var(--space-2) var(--space-3);
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-4);
    color: var(--neutral-900);
}

h1 { font-size: var(--text-5xl); font-weight: 800; }
h2 { font-size: var(--text-4xl); font-weight: 700; }
h3 { font-size: var(--text-3xl); font-weight: 600; }
h4 { font-size: var(--text-2xl); font-weight: 600; }
h5 { font-size: var(--text-xl); font-weight: 500; }
h6 { font-size: var(--text-lg); font-weight: 500; }

p {
    margin-bottom: var(--space-4);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--neutral-700);
}

/* Links */
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

.link-highlight {
    color: var(--primary-color);
    font-weight: 500;
    position: relative;
}

.link-highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition-normal);
}

.link-highlight:hover::after {
    width: 100%;
}

/* Modern Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: var(--text-base);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
    min-height: 48px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: var(--secondary-color);
    box-shadow: var(--shadow-md);
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    font-weight: 600;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.glass-btn {
    background: rgba(244, 203, 8, 0.2) !important;
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid rgba(244, 203, 8, 0.3);
    color: white !important;
}

.glass-btn:hover {
    background: rgba(244, 203, 8, 0.3) !important;
}

.btn-icon {
    width: 16px;
    height: 16px;
    transition: var(--transition-fast);
}

.btn:hover .btn-icon {
    transform: translateX(2px);
}

/* Utility Classes */
.gradient-text {
    background: linear-gradient(135deg, #F4CB08 0%, #E6B800 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-label {
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-color);
    margin-bottom: var(--space-2);
}

.section-title {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--neutral-900);
    margin-bottom: var(--space-6);
}

.divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
    border-radius: var(--radius-base);
    margin-bottom: var(--space-8);
}

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

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

.section-header-center .section-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--neutral-100);
    margin-bottom: var(--space-6);
}

/* Special styling for Research Projects section title */
#projects .section-header-center .section-title {
    color: var(--primary-color);
    text-shadow: 0 2px 4px rgba(244, 203, 8, 0.2);
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, #161f35 0%, #1a2340 50%, #161f35 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    transition: var(--transition-normal);
    border-bottom: 1px solid rgba(244, 203, 8, 0.3);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.08);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-2) var(--space-6);
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
}

.nav-logo .logo-img {
    height: 36px;
    width: auto;
    padding-top: 2px;
    transition: var(--transition-fast);
    filter: brightness(1.1);
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-4);
    align-items: center;
    position: relative;
}

.nav-link {
    font-weight: 500;
    color: var(--neutral-100);
    transition: var(--transition-fast);
    padding: var(--space-2) var(--space-3);
    position: relative;
    border-radius: var(--radius-base);
    text-transform: uppercase;
    font-size: var(--text-xs);
    letter-spacing: 0.05em;
}

/* Removed yellow underline effect */

.nav-link:hover {
    color: var(--neutral-50);
    background: rgba(244, 203, 8, 0.15);
    transform: translateY(-1px);
}

/* Removed yellow underline hover effect */

.nav-link.cta-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: var(--secondary-color);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(244, 203, 8, 0.3);
    border: 1px solid rgba(244, 203, 8, 0.4);
    font-size: var(--text-xs);
}

.nav-link.cta-btn::after {
    display: none;
}

.nav-link.cta-btn:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(244, 203, 8, 0.4);
}

/* Mobile Navigation */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: var(--space-3);
    border-radius: var(--radius-base);
    transition: var(--transition-fast);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hamburger:hover {
    background: rgba(244, 203, 8, 0.2);
    border-color: rgba(244, 203, 8, 0.3);
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--neutral-700);
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

@media (max-width: 768px) {
    /* Mobile Navigation */
    .nav-container {
        padding: var(--space-2) var(--space-4);
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 68px;
        flex-direction: column;
        background: linear-gradient(135deg, #161f35 0%, #1a2340 50%, #161f35 100%);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: var(--transition-normal);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        padding: var(--space-6) var(--space-4);
        border-top: 2px solid rgba(244, 203, 8, 0.4);
        border-bottom: 1px solid rgba(244, 203, 8, 0.2);
        z-index: 999;
        max-height: calc(100vh - 68px);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
        animation: slideIn 0.3s ease-out;
    }
    
    @keyframes slideIn {
        from {
            left: -100%;
            opacity: 0;
        }
        to {
            left: 0;
            opacity: 1;
        }
    }

    .nav-item {
        margin: var(--space-2) 0;
        width: 100%;
    }
    
    .nav-link {
        padding: var(--space-4) var(--space-6);
        font-size: var(--text-base);
        display: block;
        border-radius: var(--radius-lg);
        margin: 0 var(--space-2);
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(244, 203, 8, 0.2);
        transition: var(--transition-normal);
    }
    
    .nav-link:hover {
        background: rgba(244, 203, 8, 0.2);
        border-color: rgba(244, 203, 8, 0.4);
        transform: translateY(-1px);
    }
    
    .nav-link.cta-btn {
        margin: var(--space-4) var(--space-2);
        padding: var(--space-4) var(--space-6);
        font-size: var(--text-base);
        background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
        border: 2px solid var(--primary-color);
        box-shadow: 0 4px 15px rgba(244, 203, 8, 0.3);
    }
    
    .nav-link.cta-btn:hover {
        background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(244, 203, 8, 0.4);
    }

    .hamburger {
        display: flex;
    }
    
    .bar {
        background: #FFFFFF;
    }

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

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    /* Mobile Hero Section */
    .hero {
        min-height: 100vh;
        padding-top: 70px; /* Account for fixed navbar */
        height: 100vh;
        overflow: hidden;
    }
    
    .hero-content {
        padding: var(--space-4) var(--space-3) var(--space-4) !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        min-height: calc(100vh - 70px) !important;
        height: calc(100vh - 70px) !important;
        position: relative !important;
        z-index: 10 !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }
    
    .hero-badge {
        padding: var(--space-1) var(--space-3);
        margin-bottom: var(--space-3);
        font-size: 0.7rem;
    }
    
    .badge-text {
        font-size: 0.7rem;
    }
    
    .hero-title {
        margin-bottom: var(--space-4);
        width: 100%;
    }
    
    .title-main {
        font-size: clamp(1.5rem, 6vw, 2rem) !important;
        line-height: 1.1 !important;
        margin-bottom: var(--space-2) !important;
        word-wrap: break-word !important;
        hyphens: auto !important;
        overflow-wrap: break-word !important;
        max-width: 95% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .title-sub {
        font-size: clamp(0.8rem, 3vw, 1rem) !important;
        margin-bottom: var(--space-4) !important;
        line-height: 1.2 !important;
        max-width: 90% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .hero-description {
        font-size: clamp(0.75rem, 2.5vw, 0.9rem) !important;
        margin-bottom: var(--space-6) !important;
        padding: 0 var(--space-2) !important;
        line-height: 1.4 !important;
        text-align: center !important;
        max-width: 90% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .hero-buttons {
        margin-bottom: var(--space-4);
        width: 100%;
        max-width: 300px;
    }
    
    .scroll-indicator {
        bottom: var(--space-4);
        position: absolute;
    }
    
    .scroll-text {
        font-size: 0.6rem;
    }
}

/* Hero Section - Desktop */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Ensure desktop styles are preserved */
@media (min-width: 769px) {
    .hero {
        height: 100vh;
        padding-top: 0;
        overflow: hidden;
    }
    
    .hero-content {
        padding: 0 var(--space-6);
        max-width: 900px;
        text-align: center;
        color: white;
        position: relative;
        z-index: 1;
        height: auto;
        min-height: auto;
    }
    
    .title-main {
        font-size: var(--text-6xl);
        font-weight: 900;
        line-height: 1.1;
        color: #FFFFFF;
    }
    
    .title-sub {
        font-size: var(--text-2xl);
        font-weight: 400;
        opacity: 0.95;
        color: #FFFFFF;
    }
    
    .hero-description {
        font-size: var(--text-lg);
        opacity: 0.95;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
        line-height: 1.6;
        color: #FFFFFF;
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(244, 203, 8, 0.6), rgba(22, 31, 53, 0.9));
}

/* Removed - moved to desktop media query for better organization */

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-2) var(--space-4);
    background: rgba(244, 203, 8, 0.2);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid rgba(244, 203, 8, 0.3);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-6);
}

.badge-text {
    font-size: var(--text-sm);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.title-main {
    display: block;
    font-size: var(--text-6xl);
    font-weight: 900;
    margin-bottom: var(--space-4);
    line-height: 1.1;
    color: #FFFFFF;
}

.title-sub {
    display: block;
    font-size: var(--text-2xl);
    font-weight: 400;
    opacity: 0.95;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #FFFFFF;
}

.hero-description {
    font-size: var(--text-lg);
    margin-bottom: var(--space-10);
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    color: #FFFFFF;
}

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

/* Base styles for example-links (Forzify section buttons) */
.example-links {
    display: flex;
    gap: var(--space-4);
    justify-content: flex-start;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    text-align: center;
    color: white;
    opacity: 0.8;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid white;
    border-radius: var(--radius-xl);
    position: relative;
    margin: 0 auto var(--space-3);
}

.scroll-wheel {
    width: 2px;
    height: 8px;
    background: white;
    border-radius: var(--radius-full);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-animation 2s infinite;
}

.scroll-text {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@keyframes scroll-animation {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(16px);
    }
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

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

/* Initial states for animated elements */
.animate-slide-up,
.animate-slide-left,
.animate-slide-right,
.animate-scale-in,
.animate-bounce-in {
    opacity: 0;
    transform: translateY(30px);
}

.animate-slide-left {
    transform: translateX(-60px);
}

.animate-slide-right {
    transform: translateX(60px);
}

.animate-scale-in {
    transform: scale(0.8);
}

.animate-bounce-in {
    transform: scale(0.3);
}

/* Animation trigger states */
.animate-slide-up.animate,
.animate-slide-left.animate,
.animate-slide-right.animate,
.animate-scale-in.animate,
.animate-bounce-in.animate {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Fallback for no JavaScript - ensure content is visible */
.no-js .animate-slide-up,
.no-js .animate-slide-left,
.no-js .animate-slide-right,
.no-js .animate-scale-in,
.no-js .animate-bounce-in {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Emergency fallback - show content after 3 seconds */
@media (min-width: 1px) {
    .animate-slide-up,
    .animate-slide-left,
    .animate-slide-right,
    .animate-scale-in,
    .animate-bounce-in {
        animation-delay: 3s;
        animation-fill-mode: both;
    }
    
    .animate-slide-up {
        animation: fadeInUp 0.6s ease-out 3s both;
    }
    
    .animate-slide-left {
        animation: fadeInLeft 0.6s ease-out 3s both;
    }
    
    .animate-slide-right {
        animation: fadeInRight 0.6s ease-out 3s both;
    }
    
    .animate-scale-in {
        animation: fadeInScale 0.6s ease-out 3s both;
    }
    
    .animate-bounce-in {
        animation: fadeInBounce 0.6s ease-out 3s both;
    }
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInBounce {
    from {
        opacity: 0;
        transform: scale(0.3);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Welcome Section */
.welcome-section {
    padding: var(--space-24) 0;
    background: var(--surface-secondary);
    position: relative;
    overflow: hidden;
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 80% 20%, rgba(244, 203, 8, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(244, 203, 8, 0.02) 0%, transparent 60%);
    pointer-events: none;
}

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

.welcome-content {
    text-align: left;
}

.welcome-logo {
    margin: var(--space-8) 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-main {
    max-width: 520px;
    height: auto;
    transition: var(--transition-normal);
}

/* Specific styling for welcome section logo */
.welcome-logo .logo-main {
    max-width: 200px;
}

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

/* Enhanced styling for video elements */
.logo-main video,
video.logo-main {
    width: 100%;
    max-width: 520px;
    height: auto;
    object-fit: cover;
}

/* Specific styling for welcome section video */
.welcome-logo video.logo-main {
    max-width: 200px;
}

/* Specific styling for Forzify videos - larger size */
.forzify-video {
    max-width: 600px;
    width: 100%;
    height: auto;
    transition: var(--transition-normal);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.forzify-video:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
}

/* Deployment section styling */
.deployment-logo {
    text-align: center;
    margin-bottom: var(--space-6);
}

.deployment-img {
    max-width: 120px;
    height: auto;
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
}

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

.deployment-description {
    font-size: var(--text-base);
    color: var(--neutral-200);
    margin-bottom: var(--space-6);
    text-align: center;
}

/* Adjust testimonial content for deployments */
.testimonial-content h3 {
    text-align: center;
    margin-bottom: var(--space-4);
    color: var(--neutral-50);
    font-size: var(--text-xl);
}

.testimonial-content .btn {
    margin-top: var(--space-4);
    display: inline-block;
    text-align: center;
}

/* Carousel button states */
.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.welcome-description {
    font-style: italic;
    font-size: var(--text-lg);
    color: var(--neutral-600);
    margin-bottom: 0;
}

.welcome-text {
    font-size: var(--text-base);
    line-height: 1.8;
    color: var(--neutral-700);
}

@media (max-width: 768px) {
    /* Mobile Welcome Section */
    .welcome-section {
        padding: var(--space-16) 0;
    }
    
    .welcome-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        text-align: left;
    }
    
    .welcome-content {
        text-align: left;
    }
    
    .welcome-logo {
        text-align: center;
        margin: var(--space-6) 0;
    }
    
    .welcome-logo .logo-main {
        max-width: 150px;
    }
    
    .welcome-description {
        font-size: var(--text-base);
        padding: 0 var(--space-2);
        text-align: left;
    }
    
    .welcome-text {
        font-size: var(--text-sm);
        line-height: 1.6;
        text-align: left;
    }
}

/* Forzify Section */
.forzify-section {
    padding: var(--space-16) 0;
    background: linear-gradient(135deg, #161f35 0%, #1a2340 30%, #1f2846 70%, #161f35 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.forzify-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(244, 203, 8, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(230, 184, 0, 0.08) 0%, transparent 50%);
    pointer-events: none;
}


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

.forzify-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.feature-icon img {
    width: 64px;
    height: 64px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.forzify-description {
    font-size: var(--text-base);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
}

.forzify-media {
    position: relative;
}

.video-container {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}

.demo-video {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    /* Mobile Forzify Section */
    .forzify-section {
        padding: var(--space-12) 0;
    }
    
    .forzify-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        /* Reverse order in mobile to show title first */
        display: flex;
        flex-direction: column-reverse;
    }
    
    .forzify-media .section-header {
        text-align: center;
        margin-bottom: var(--space-6);
    }
    
    .forzify-media {
        order: -1; /* Ensure title/video section appears first */
    }
    
    .forzify-content {
        order: 1; /* Description appears after */
        margin-top: var(--space-4);
    }
    
    .forzify-description {
        font-size: var(--text-sm);
        line-height: 1.6;
        text-align: left;
    }
    
    .video-container {
        border-radius: var(--radius-lg);
        margin-bottom: var(--space-4);
    }
}

/* Team Section */
.team-section {
    padding: var(--space-16) 0;
    background: var(--surface-secondary);
    position: relative;
    overflow: hidden;
}

.team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(244, 203, 8, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(244, 203, 8, 0.015) 0%, transparent 60%);
    pointer-events: none;
}

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

.team-image {
    position: relative;
}

.team-photo {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
}

.team-photo:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
}

.team-content {
    text-align: left;
}

.team-description {
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--neutral-700);
}

.team-section .section-title,
.team-section .section-label {
    color: var(--neutral-700);
}

/* Dark sections text visibility */
.forzify-section .section-title,
.forzify-section .section-label,
.testimonials-section .section-title,
.testimonials-section .section-label {
    color: var(--neutral-100) !important;
}

/* Careers page specific styling for white text visibility */
.careers-section .forzify-content p,
.careers-section .feature-list li {
    color: white !important;
}

@media (max-width: 768px) {
    /* Mobile Team Section */
    .team-section {
        padding: var(--space-12) 0;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        text-align: center;
    }
    
    .team-photo {
        height: 250px;
        border-radius: var(--radius-lg);
    }
    
    .team-description {
        font-size: var(--text-sm);
        text-align: left;
        line-height: 1.6;
    }
}

/* Testimonials Section */
.testimonials-section {
    padding: var(--space-16) var(--space-12);
    background: linear-gradient(135deg, #161f35 0%, #1a2340 30%, #1f2846 70%, #161f35 100%);
    color: white;
    position: relative;
    overflow: visible;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 70% 30%, rgba(244, 203, 8, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 30% 70%, rgba(230, 184, 0, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.testimonials-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: visible;
    width: 100%; /* Ensure full width utilization */
    height: 500px; /* Fixed height to prevent size variations */
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
    width: 400%; /* 4 testimonials * 100% each */
    height: 100%; /* Take full height of carousel container */
    overflow: hidden; /* Hide content overflow, but allow arrows to show */
}

.testimonial {
    flex: 0 0 25%; /* Each testimonial takes 25% of track width (100% / 4 testimonials) */
    width: 25%;
    min-width: 0; /* Prevent flex item overflow */
    height: 100%; /* Take full height of container */
    display: flex;
    flex-direction: column;
}

/* Removed .testimonial.active rule as track-based approach doesn't need it */

.testimonial-content {
    text-align: center;
    padding: var(--space-4) var(--space-6) var(--space-6) var(--space-6);
    background: var(--surface-secondary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: var(--space-4); /* Add margin to prevent edge touching */
    max-height: calc(100% - var(--space-8)); /* Account for margin */
}

.testimonial blockquote {
    font-size: var(--text-base);
    line-height: 1.5;
    margin-bottom: var(--space-4);
    color: var(--neutral-700);
    font-style: italic;
    flex: 1; /* Take available space */
    overflow-y: auto; /* Handle long content if still needed */
    display: flex;
    align-items: center; /* Center the text vertically */
}

/* Styling for deployment cards in testimonials section */
.testimonial h3 {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: var(--space-2);
    margin-top: var(--space-4);
}

.testimonial .deployment-description {
    font-size: var(--text-base);
    color: var(--neutral-700);
    margin-bottom: var(--space-4);
    line-height: 1.5;
}

/* Feature list styling */
.feature-list {
    list-style: none;
    padding: 0;
    margin: var(--space-4) 0;
}

.feature-list li {
    position: relative;
    padding-left: var(--space-6);
    margin-bottom: var(--space-2);
    color: var(--neutral-700);
    line-height: 1.6;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: var(--text-sm);
}

/* Add more space before Forzify TAGGING section */
.forzify-grid:nth-child(4) {
    margin-top: var(--space-16);
}

/* Desktop testimonial navigation */
.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-8);
    position: relative;
    z-index: 10;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    flex-shrink: 0; /* Don't shrink author section */
    min-height: 70px; /* Consistent height for author area */
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background-size: cover;
    background-position: center;
    border: 2px solid var(--primary-color);
}

.author-info h4 {
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-1);
    color: var(--neutral-800);
}

.author-info p {
    font-size: var(--text-xs);
    color: var(--neutral-500);
    margin: 0;
    line-height: 1.4;
}

    /* Mobile testimonial nav - moved inside mobile media query */
    
    .nav-dot {
        width: 10px;
        height: 10px;
        background: rgba(255, 255, 255, 0.5);
        border: 1px solid var(--primary-color);
    }
    
    .nav-dot.active {
        background: var(--primary-color);
        transform: scale(1.2);
    }

/* Desktop nav dots - only apply on larger screens */
@media (min-width: 769px) {
    .nav-dot {
        width: 12px;
        height: 12px;
        border-radius: var(--radius-full);
        border: none;
        background: var(--neutral-300);
        cursor: pointer;
        transition: var(--transition-fast);
    }

    .nav-dot.active,
    .nav-dot:hover {
        background: var(--primary-color);
    }
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 1px solid var(--primary-color);
    background: var(--surface-secondary);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 20px;
    color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-fast);
    z-index: 9999;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    box-shadow: var(--shadow-lg);
}

.prev-btn {
    left: -30px;
}

.next-btn {
    right: -30px;
}

@media (max-width: 768px) {
    /* Mobile Testimonials Section */
    .testimonials-section {
        padding: var(--space-12) var(--space-2);
    }
    
    .carousel-btn {
        display: none !important;
    }
    
    .testimonials-carousel {
        max-width: 100%;
        height: 400px;
        min-height: 400px;
        padding: 0 var(--space-1);
        overflow: hidden;
        position: relative;
    }
    
    .testimonial-nav {
        display: flex !important;
        justify-content: center;
        gap: var(--space-2);
        margin-top: var(--space-6);
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
    }
    
    .testimonial-track {
        width: 400%; /* 4 testimonials * 100% each */
        flex-direction: row;
        height: 100%;
        transition: transform 0.5s ease;
    }
    
    .testimonial {
        flex: 0 0 25%; /* Each testimonial takes 25% of track width */
        width: 25%;
        margin-bottom: 0;
        min-height: 350px;
    }
    
    .testimonial-content {
        padding: var(--space-4) var(--space-3);
        margin: 0 var(--space-2);
        height: auto;
        min-height: 300px;
        width: calc(100% - var(--space-4));
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .testimonial blockquote {
        font-size: 0.85rem;
        line-height: 1.5;
        text-align: left;
        overflow-wrap: break-word;
        word-wrap: break-word;
        hyphens: auto;
        margin-bottom: var(--space-3);
    }
    
    .testimonial-author {
        flex-direction: row;
        text-align: left;
        gap: var(--space-2);
        min-height: auto;
        padding-top: var(--space-3);
        justify-content: flex-start;
    }
    
    /* Touch-friendly carousel improvements */
    .testimonials-carousel {
        touch-action: pan-y pinch-zoom;
    }
    
    .testimonial-track {
        will-change: transform;
    }
    
    .author-image {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }
    
    .author-info {
        flex: 1;
        text-align: left;
    }
    
    .author-info h4 {
        font-size: 0.9rem;
        margin-bottom: var(--space-1);
        line-height: 1.2;
    }
    
    .author-info p {
        font-size: 0.8rem;
        line-height: 1.3;
        margin: 0;
    }
    
    /* Mobile deployment box sizing fixes */
    .deployment-logo {
        height: 80px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .deployment-img {
        max-height: 60px;
        width: auto;
        object-fit: contain;
    }
    
    .testimonial-content {
        min-height: 400px;
    }
    
    .testimonial h3 {
        min-height: 2.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .testimonial .deployment-description {
        min-height: 3rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .testimonial-content .btn {
        margin-top: auto;
        align-self: center;
    }
}

/* Extra small mobile devices - optimized text for testimonials */
@media (max-width: 480px) {
    .testimonial blockquote {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .testimonial-content {
        padding: var(--space-4) var(--space-3);
        min-height: 300px;
    }
    
    .author-info h4 {
        font-size: 0.85rem;
    }
    
    .author-info p {
        font-size: 0.75rem;
    }
    
    .author-image {
        width: 38px;
        height: 38px;
    }
}

/* Partners Section */
.partners-section {
    padding: var(--space-12) 0;
    background: var(--surface-secondary);
    overflow: hidden;
}

.partners-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.partners-track {
    display: flex;
    gap: var(--space-12);
    animation: scroll-left 30s linear infinite;
    width: max-content;
}

.partners-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 120px;
    min-width: 200px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    /* Mobile Partners Section */
    .partners-section {
        padding: var(--space-8) 0;
    }
    
    .partners-track {
        gap: var(--space-6);
        animation-duration: 20s;
    }
    
    .partner-logo {
        min-width: 150px;
        height: 80px;
        padding: var(--space-4);
    }
    
    .partner-logo img {
        max-height: 40px;
        max-width: 120px;
    }
}

.partner-logo:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 1);
}

.partner-img {
    max-width: 140px;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.partner-logo:hover .partner-img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .partners-track {
        gap: var(--space-8);
        animation-duration: 25s;
    }
    
    .partner-logo {
        height: 100px;
        min-width: 160px;
        padding: var(--space-4);
    }
    
    .partner-img {
        max-width: 120px;
        max-height: 60px;
    }
}

@media (max-width: 480px) {
    .partners-track {
        gap: var(--space-6);
        animation-duration: 20s;
    }
    
    .partner-logo {
        height: 80px;
        min-width: 140px;
        padding: var(--space-3);
    }
    
    .partner-img {
        max-width: 100px;
        max-height: 50px;
    }
}

/* Resources Section */
.resources-section {
    padding: var(--space-16) 0;
    background: var(--surface-secondary);
    position: relative;
    overflow: hidden;
}

.resources-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 60% 40%, rgba(244, 203, 8, 0.025) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(244, 203, 8, 0.02) 0%, transparent 60%);
    pointer-events: none;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-8);
}

.resource-card {
    background: var(--surface-secondary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

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

.resource-image {
    height: 240px;
    overflow: hidden;
}

.resource-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.resource-card:hover .resource-image img {
    transform: scale(1.05);
}

.resource-content {
    padding: var(--space-6);
}

.resource-content h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-3);
    color: var(--neutral-800);
}

.resource-content p {
    font-size: var(--text-base);
    color: var(--neutral-700);
    margin-bottom: var(--space-4);
}

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

/* Footer */
.footer {
    background: linear-gradient(135deg, #161f35 0%, #1a2340 50%, #161f35 100%);
    color: white;
    padding: var(--space-12) 0 var(--space-6);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 50% 0%, rgba(244, 203, 8, 0.08) 0%, transparent 70%),
        radial-gradient(circle at 50% 100%, rgba(230, 184, 0, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

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

.footer-logo-img {
    height: 48px;
    width: auto;
    margin-bottom: var(--space-4);
}

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

.footer-section h4 {
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: var(--space-4);
    color: white;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.contact-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.contact-item a,
.contact-item span {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-fast);
}

.contact-item a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-8);
    border-top: 1px solid var(--neutral-700);
}

.footer-bottom p {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        text-align: left;
    }
    
    .footer-logo {
        text-align: center;
        margin-bottom: var(--space-4);
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .footer-section {
        text-align: left;
    }
    
    .contact-item {
        justify-content: flex-start;
        text-align: left;
    }
    
    .contact-item a,
    .contact-item span {
        text-align: left;
    }
    
    .footer-bottom {
        text-align: center;
    }
}

/* Team Members Grid Styles */
.team-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-8);
}

.team-member {
    background: var(--surface-glass);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    text-align: center;
    transition: var(--transition-smooth);
    height: 100%; /* Ensure uniform height */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-member:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: var(--brand-primary-rgb) / 0.3;
}

.team-member-image {
    margin-bottom: var(--space-4);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--brand-primary);
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.member-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.team-member:hover .team-member-image {
    border-color: var(--brand-accent);
    transform: scale(1.05);
}

.team-member-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-member-info h3 {
    color: var(--neutral-100);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.member-role {
    color: var(--neutral-300);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.4;
}

/* Publications Styles */
.publications-list {
    display: grid;
    gap: var(--space-4);
    max-width: 1000px;
    margin: 0 auto;
}

.publication-item {
    background: var(--surface-glass);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: var(--transition-smooth);
}

.publication-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-elegant);
    border-color: var(--brand-primary-rgb) / 0.3;
}

.publication-item h4 {
    color: var(--brand-primary);
    margin-bottom: var(--space-2);
    font-size: 1.125rem;
    font-weight: 600;
}

.publication-item p {
    color: var(--neutral-300);
    font-size: 0.875rem;
    margin: 0;
}

/* Timeline Improvements */
.timeline-grid {
    display: grid;
    gap: var(--space-6);
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-item {
    background: var(--surface-glass);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    position: relative;
    transition: var(--transition-smooth);
}

.timeline-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
    border-color: var(--brand-primary-rgb) / 0.3;
}

.timeline-year {
    background: var(--brand-primary);
    color: var(--neutral-100);
    font-weight: 700;
    font-size: 1.125rem;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius);
    display: inline-block;
    margin-bottom: var(--space-4);
}

.timeline-content h3 {
    color: var(--neutral-100);
    margin-bottom: var(--space-4);
    font-size: 1.375rem;
    font-weight: 600;
}

.timeline-image {
    max-width: 200px;
    height: auto;
    border-radius: var(--radius);
    margin: var(--space-4) 0;
    display: block;
    border: 1px solid var(--surface-border);
}

.timeline-content p {
    color: var(--neutral-300);
    line-height: 1.6;
    margin: 0;
}

/* Feature Title Styles */
.feature-title {
    color: var(--neutral-100);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-4);
}

/* Feature List Styles */
.feature-list {
    list-style: none;
    padding: 0;
    margin: var(--space-6) 0;
}

.feature-list li {
    position: relative;
    padding: var(--space-2) 0 var(--space-2) var(--space-6);
    color: var(--neutral-700);
    transition: var(--transition-smooth);
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: var(--space-2);
    color: var(--brand-primary);
    font-weight: bold;
}

.feature-list li:hover {
    color: var(--neutral-600);
    padding-left: var(--space-8);
}

/* Location Styles */
.locations-grid {
    display: grid;
    gap: var(--space-8);
    margin-top: var(--space-8);
}

.location-card {
    background: var(--surface-glass);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.location-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: var(--brand-primary-rgb) / 0.3;
}

.location-info {
    padding: var(--space-6);
}

.location-info h3 {
    color: var(--neutral-100);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-4);
}

.address h4 {
    color: var(--brand-primary);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.address p {
    color: var(--neutral-300);
    line-height: 1.6;
    margin: 0;
}

.location-map {
    height: 300px;
    overflow: hidden;
}

.location-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    transition: var(--transition-smooth);
}

/* Removed the iframe scale transform to prevent jarring animation effects */

/* Responsive adjustments for locations */
@media (min-width: 768px) {
    .locations-grid {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }
    
    .location-card {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
    
    .location-card:nth-child(even) {
        direction: rtl;
    }
    
    .location-card:nth-child(even) .location-info {
        direction: ltr;
    }
    
    .location-map {
        height: 400px;
    }
}

/* Fancy Demo Request Page Styles */

/* Video Hero Section */
.video-hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(244, 203, 8, 0.6), rgba(22, 31, 53, 0.9));
    z-index: 2;
}

.video-hero-section .container {
    position: relative;
    z-index: 3;
}

.video-hero-section .fancy-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: calc(60px + var(--space-8)) 0 var(--space-12);
}

.video-hero-section .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: rgba(244, 203, 8, 0.25);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(244, 203, 8, 0.4);
    border-radius: var(--radius-full);
    color: #F4CB08;
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-4);
    animation: glow 3s ease-in-out infinite alternate;
}

.video-hero-section .badge-icon {
    width: 16px;
    height: 16px;
}

@keyframes glow {
    from { box-shadow: 0 0 20px rgba(244, 203, 8, 0.4); }
    to { box-shadow: 0 0 40px rgba(244, 203, 8, 0.7); }
}

/* Simple Demo Title */
.video-hero-section .simple-demo-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin: var(--space-4) 0 0 0;
    text-align: center;
    color: white;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, #F4CB08 0%, #FFE066 50%, #F4CB08 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(244, 203, 8, 0.3);
}

.video-hero-section .hero-features {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-8);
}

.video-hero-section .feature-chip {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: rgba(244, 203, 8, 0.25);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(244, 203, 8, 0.4);
    border-radius: var(--radius-full);
    color: rgba(255, 255, 255, 0.95);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: var(--transition-normal);
}

.video-hero-section .feature-chip:hover {
    background: rgba(244, 203, 8, 0.35);
    border-color: rgba(244, 203, 8, 0.5);
    transform: translateY(-2px);
}

.video-hero-section .chip-icon {
    width: 16px;
    height: 16px;
}

/* Fancy Form Section - Overlay Style */
.fancy-form-section {
    position: relative;
    padding: var(--space-24) 0;
    margin-top: -550px;
    z-index: 10;
}

/* Slide-up animation for form elements */
@keyframes slideUpFromBottom {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}



.fancy-form-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.form-glass-container {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(244, 203, 8, 0.2);
    border-radius: var(--radius-2xl);
    padding: var(--space-12);
    box-shadow: 
        0 25px 50px rgba(244, 203, 8, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
    animation: slideUpFromBottom 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(50px);
}

.form-glass-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(244, 203, 8, 0.05) 0%, transparent 50%, rgba(244, 203, 8, 0.05) 100%);
    pointer-events: none;
}

.form-header-fancy {
    text-align: center;
    margin-bottom: var(--space-12);
    position: relative;
    z-index: 2;
    animation: slideUpFromBottom 0.8s ease-out 0.2s forwards;
    opacity: 0;
    transform: translateY(50px);
}

.header-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-6);
    background: linear-gradient(135deg, #F4CB08, #FFE066);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(244, 203, 8, 0.3);
}

.header-icon svg {
    width: 28px;
    height: 28px;
    color: #1a1a2e;
}

.form-title-fancy {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--neutral-900);
    margin-bottom: var(--space-4);
    font-family: var(--font-heading);
}

.form-subtitle-fancy {
    font-size: var(--text-lg);
    color: var(--neutral-700);
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

.fancy-demo-form {
    position: relative;
    z-index: 2;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    margin-bottom: var(--space-8);
    animation: slideUpFromBottom 0.8s ease-out 0.4s forwards;
    opacity: 0;
    transform: translateY(50px);
}

@media (max-width: 768px) {
    /* Mobile Form Styles */
    .fancy-form-section {
        padding: var(--space-16) 0;
        margin-top: -200px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .form-glass-container {
        padding: var(--space-6);
        border-radius: var(--radius-xl);
    }
    
    .form-title-fancy {
        font-size: var(--text-2xl);
    }
    
    .form-subtitle-fancy {
        font-size: var(--text-base);
    }
    
    .video-hero-section .hero-features {
        gap: var(--space-2);
    }
    
    .video-hero-section .feature-chip {
        font-size: var(--text-xs);
        padding: var(--space-2) var(--space-3);
    }
    
    .video-hero-section .simple-demo-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin: var(--space-2) 0;
    }
    
    .floating-input-group input, 
    .floating-textarea-group textarea {
        padding: var(--space-4) var(--space-3) var(--space-3) var(--space-10);
        font-size: var(--text-sm);
    }
    
    .floating-input-group label, 
    .floating-textarea-group label {
        left: var(--space-10);
        font-size: var(--text-sm);
    }
    
    .input-icon {
        left: var(--space-3);
        width: 18px;
        height: 18px;
    }
    
    .fancy-submit-btn {
        font-size: var(--text-base);
    }
    
    .btn-content {
        padding: var(--space-4) var(--space-8);
    }
}

/* Floating Input Styles */
.floating-input-group, .floating-textarea-group {
    position: relative;
    margin-bottom: var(--space-2);
}

.floating-input-group input, 
.floating-textarea-group textarea {
    width: 100%;
    padding: var(--space-5) var(--space-4) var(--space-3) var(--space-12);
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(244, 203, 8, 0.2);
    border-radius: var(--radius-lg);
    color: var(--neutral-900);
    font-size: var(--text-base);
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
}

.floating-input-group input:focus, 
.floating-textarea-group textarea:focus {
    outline: none;
    border-color: #F4CB08;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 0 0 3px rgba(244, 203, 8, 0.2),
        0 10px 40px rgba(244, 203, 8, 0.1);
    transform: translateY(-2px);
}

.floating-input-group label, 
.floating-textarea-group label {
    position: absolute;
    left: var(--space-12);
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(90deg, rgba(242, 235, 223, 0.9) 0%, transparent 100%);
    padding: 0 var(--space-2);
    color: var(--neutral-600);
    font-size: var(--text-base);
    font-weight: 500;
    transition: all var(--transition-normal);
    pointer-events: none;
    backdrop-filter: blur(5px);
}

.floating-textarea-group label {
    top: var(--space-5);
    transform: translateY(0);
}

.floating-input-group input:focus + label,
.floating-input-group input:not(:placeholder-shown) + label,
.floating-textarea-group textarea:focus + label,
.floating-textarea-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: var(--space-8);
    transform: translateY(0);
    font-size: var(--text-sm);
    color: #F4CB08;
    font-weight: 600;
}

.input-icon {
    position: absolute;
    left: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--neutral-500);
    transition: var(--transition-normal);
}

.floating-textarea-group .input-icon {
    top: var(--space-5);
    transform: translateY(0);
}

.floating-input-group input:focus ~ .input-icon,
.floating-textarea-group textarea:focus ~ .input-icon {
    color: #F4CB08;
}

.optional {
    font-size: var(--text-xs);
    opacity: 0.7;
    font-weight: 400;
}

.floating-textarea-group textarea {
    resize: vertical;
    min-height: 120px;
    padding-top: var(--space-8);
}

.floating-textarea-group {
    animation: slideUpFromBottom 0.8s ease-out 0.6s forwards;
    opacity: 0;
    transform: translateY(50px);
}

/* Submit Section */
.submit-section {
    text-align: center;
    margin-top: var(--space-10);
    animation: slideUpFromBottom 0.8s ease-out 0.8s forwards;
    opacity: 0;
    transform: translateY(50px);
}

.fancy-submit-btn {
    position: relative;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: var(--text-lg);
    font-weight: 700;
    color: #1a1a2e;
    overflow: hidden;
    border-radius: var(--radius-xl);
    transition: var(--transition-normal);
    box-shadow: 0 10px 40px rgba(244, 203, 8, 0.3);
}

.btn-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #F4CB08 0%, #FFE066 50%, #F4CB08 100%);
    border-radius: var(--radius-xl);
    transition: var(--transition-normal);
}

.btn-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-5) var(--space-10);
}

.btn-icon-left, .btn-icon-right {
    width: 20px;
    height: 20px;
    transition: var(--transition-normal);
}

.fancy-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 60px rgba(244, 203, 8, 0.4);
}

.fancy-submit-btn:hover .btn-bg {
    background: linear-gradient(135deg, #FFE066 0%, #F4CB08 50%, #FFE066 100%);
}

.fancy-submit-btn:hover .btn-icon-right {
    transform: translateX(4px);
}

.fancy-submit-btn:active {
    transform: translateY(-1px);
}

.submit-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-6);
    font-size: var(--text-sm);
    color: var(--neutral-600);
    font-weight: 500;
}

.note-icon {
    width: 16px;
    height: 16px;
    color: #F4CB08;
}

/* Enhanced Success Message */
.fancy-success-message {
    text-align: center;
    padding: var(--space-12);
    background: rgba(34, 197, 94, 0.25);
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: var(--radius-xl);
    color: white;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.fancy-success-message::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.05) 0%, transparent 50%, rgba(34, 197, 94, 0.05) 100%);
    pointer-events: none;
}

.success-animation {
    margin-bottom: var(--space-8);
}

.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.3);
    animation: checkmarkBounce 0.6s ease-out;
}

@keyframes checkmarkBounce {
    0% { transform: scale(0) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
    100% { transform: scale(1) rotate(360deg); }
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: white;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) 0.3s forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: white;
    stroke-width: 3;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes stroke {
    100% { stroke-dashoffset: 0; }
}

.fancy-success-message h3 {
    font-size: var(--text-2xl);
    font-weight: 800;
    margin-bottom: var(--space-4);
    color: white;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.fancy-success-message p {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    margin-bottom: var(--space-8);
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.success-features {
    display: flex;
    gap: var(--space-6);
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.success-feature {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--text-sm);
    font-weight: 500;
}

.success-feature svg {
    width: 16px;
    height: 16px;
    color: #22c55e;
}

/* Publications Section Styles */
.publications-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Year Navigation */
.year-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
    padding: var(--space-6);
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-200);
}

.year-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 2px solid var(--primary-color);
    background: white;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-normal);
    color: var(--primary-color);
}

.year-nav-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.year-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: var(--neutral-300);
    color: var(--neutral-400);
}

.year-nav-btn svg {
    width: 20px;
    height: 20px;
}

.year-selector {
    position: relative;
}

.year-dropdown {
    padding: var(--space-3) var(--space-6);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-lg);
    background: white;
    color: var(--secondary-color);
    font-size: var(--text-lg);
    font-weight: 600;
    cursor: pointer;
    min-width: 120px;
    text-align: center;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23F4CB08' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right var(--space-2) center;
    background-size: 16px;
}

.year-dropdown:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(244, 203, 8, 0.2);
}

/* Year Indicators */
.year-indicators {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-8);
    flex-wrap: wrap;
}

.year-indicator {
    padding: var(--space-2) var(--space-4);
    border: 2px solid var(--neutral-300);
    background: white;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-normal);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--neutral-600);
    min-width: 60px;
    text-align: center;
}

.year-indicator:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.year-indicator.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(244, 203, 8, 0.3);
}

/* Projects Grid for Research Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-8);
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: linear-gradient(135deg, #161f35 0%, #1a253f 50%, #161f35 100%);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    border-left: 4px solid var(--primary-color);
    padding: var(--space-8);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #1a253f 0%, #202d4a 50%, #1a253f 100%);
}

.project-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-4);
    font-family: var(--font-heading);
    line-height: 1.3;
}

.project-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
    font-size: var(--text-base);
}

.year-section {
    margin-bottom: var(--space-12);
    background: white;
    border-radius: var(--radius-2xl);
    padding: var(--space-10);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    border: 1px solid var(--neutral-200);
}

.year-section:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.year-header {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-3);
    border-bottom: 3px solid var(--primary-color);
    position: relative;
    font-family: var(--font-heading);
}

.year-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
}

.publications-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.publication-item {
    margin-bottom: var(--space-6);
    padding: var(--space-6);
    background: var(--neutral-100);
    border-radius: var(--radius-xl);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition-normal);
    line-height: 1.7;
}

.publication-item:hover {
    background: var(--neutral-200);
    transform: translateX(8px);
    border-left-color: var(--secondary-color);
}

.publication-item:last-child {
    margin-bottom: 0;
}

.publication-title {
    font-weight: 700;
    font-style: italic;
    color: var(--secondary-color);
    margin-right: var(--space-2);
}

.publication-authors {
    color: var(--neutral-600);
    font-weight: 500;
}

.publication-venue {
    color: var(--neutral-500);
    font-style: italic;
}

.award-badge {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-color), #ffd700);
    color: var(--secondary-color);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    margin-left: var(--space-3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(244, 203, 8, 0.3);
}

/* Responsive Design for Publications and Projects */
@media (max-width: 768px) {
    .year-navigation {
        flex-direction: column;
        gap: var(--space-4);
        padding: var(--space-4);
    }
    
    .year-dropdown {
        min-width: 100px;
        font-size: var(--text-base);
    }
    
    .year-indicators {
        gap: var(--space-1);
    }
    
    .year-indicator {
        padding: var(--space-1) var(--space-3);
        font-size: var(--text-xs);
        min-width: 50px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .project-card {
        padding: var(--space-6);
    }
    
    .project-title {
        font-size: var(--text-lg);
    }
    
    .year-section {
        padding: var(--space-8);
        margin-bottom: var(--space-8);
    }
    
    .year-header {
        font-size: var(--text-2xl);
    }
    
    .publication-item {
        padding: var(--space-5);
        margin-bottom: var(--space-5);
    }
}

/* New Modern Animation Keyframes */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-10deg) scale(0.9);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Animation Classes */
.animate-slide-up {
    animation: slideInUp 0.8s ease-out;
}

.animate-slide-left {
    animation: slideInLeft 0.8s ease-out;
}

.animate-slide-right {
    animation: slideInRight 0.8s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out;
}

.animate-rotate-in {
    animation: rotateIn 0.8s ease-out;
}

.animate-bounce-in {
    animation: bounceIn 0.8s ease-out;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Staggered Animation Delays */
.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}

.animate-delay-4 {
    animation-delay: 0.4s;
}

.animate-delay-5 {
    animation-delay: 0.5s;
}

/* Intersection Observer Animation Classes */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

.slide-left-on-scroll {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s ease-out;
}

.slide-left-on-scroll.animate {
    opacity: 1;
    transform: translateX(0);
}

.slide-right-on-scroll {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.8s ease-out;
}

.slide-right-on-scroll.animate {
    opacity: 1;
    transform: translateX(0);
}

.scale-in-on-scroll {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease-out;
}

.scale-in-on-scroll.animate {
    opacity: 1;
    transform: scale(1);
}

/* Hover Animations */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.hover-scale {
    transition: transform 0.3s ease;
}

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

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(244, 203, 8, 0.3);
}

/* Shimmer Effect */
.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* Enhanced Button Animations */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

/* Card Hover Effects */
.resource-card {
    transition: all 0.3s ease;
}

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

/* Partner Logo Animations */
.partner-logo {
    transition: all 0.3s ease;
}

.partner-logo:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

/* Testimonial Card Animations */
.testimonial {
    transition: all 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Navigation Link Animations */
.nav-link {
    position: relative;
    overflow: hidden;
}

/* Removed yellow underline animation */

/* User Logos Grid Styles */
.user-logos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-8);
}

.user-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    background: var(--neutral-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--neutral-200);
    transition: all var(--transition-normal);
    min-height: 120px;
}

.user-logo:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.user-logo img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter var(--transition-normal);
}

.user-logo:hover img {
    filter: grayscale(0%);
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .user-logos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-8);
    }
    
    .user-logo {
        min-height: 140px;
    }
    
    .user-logo img {
        max-height: 100px;
    }
}

@media (min-width: 1024px) {
    .user-logos-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-10);
    }
    
    .user-logo {
        min-height: 160px;
    }
    
    .user-logo img {
        max-height: 120px;
    }
}

@media (min-width: 1280px) {
    .user-logos-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: var(--space-12);
    }
    
    .user-logo {
        min-height: 180px;
    }
    
    .user-logo img {
        max-height: 140px;
    }
}