/* =========================================
   VARIABLES & DESIGN SYSTEM
========================================= */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600;1,700&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@400,500,700,900&display=swap');

:root {
    --bg-base: #07070a;
    --bg-base-alt: #0d0d12;
    --card-bg: rgba(255, 255, 255, 0.02);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --accent-purple: #8b5cf6;
    --accent-cyan: #06b6d4;
    --accent-blue: #3b82f6;
    --border-color: rgba(255, 255, 255, 0.06);
    --border-color-light: rgba(255, 255, 255, 0.12);
    --container-width: 1600px;
    --container-width-wide: 1800px;
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --radius-lg: 32px;
    --radius-md: 20px;
    
    /* Typography */
    --font-heading: 'Satoshi', sans-serif;
    --font-body: 'Manrope', sans-serif;
    --font-accent: 'Playfair Display', serif;
    
    /* Spacing */
    --space-sm: 1.25rem;
    --space-md: 2.5rem;
    --space-lg: 5rem;
    --space-xl: 8rem;

    /* Transitions */
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s ease;
}

/* =========================================
   RESET & GLOBAL
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
    position: relative;
    line-height: 1.65;
}

/* =========================================
   BACKGROUND GRAPHICS & EFFECTS
========================================= */

/* Main Background Infrastructure */
.bg-grid {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -3;
    pointer-events: none;
    opacity: 0.4;
}

/* Subtle Line Pattern Overlay */
.bg-pattern {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 100px,
        rgba(255, 255, 255, 0.01) 100px,
        rgba(255, 255, 255, 0.01) 101px
    );
    z-index: -4;
    pointer-events: none;
}

/* Sophisticated Noise Texture Layer */
.bg-grid::after {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    z-index: -5;
    pointer-events: none;
}

/* Animated Floating Blobs - More Dynamic */
.bg-blobs {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, rgba(10, 10, 15, 0.8) 0%, var(--bg-base) 100%);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
    animation: drift 30s infinite alternate ease-in-out;
}

.blob-purple {
    top: 0%; left: 10%;
    width: 45vw; height: 45vw;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15), transparent 60%);
}

.blob-cyan {
    bottom: -5%; right: 10%;
    width: 50vw; height: 50vw;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1), transparent 60%);
    animation-delay: -8s;
}

.blob-pink {
    top: 40%; left: 40%;
    width: 40vw; height: 40vw;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.1), transparent 60%);
    animation-delay: -15s;
}

@keyframes drift {
    0% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.1) translate(5%, 5%); }
    100% { transform: scale(0.9) translate(-5%, -5%); }
}

/* Light beams / Section Glows */
.light-beam {
    position: absolute;
    width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.4), transparent);
    z-index: -1;
    opacity: 0.6;
}

.section-glow {
    position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1), transparent 70%);
    filter: blur(60px);
    z-index: -1;
    pointer-events: none;
}

/* Cursor Glow */
.cursor-glow {
    position: fixed;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 60%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 1000;
    mix-blend-mode: overlay;
    transition: width 0.3s, height 0.3s;
}

/* =========================================
   TYPOGRAPHY SYSTEM
========================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

/* REFINED, LESS EXAGGERATED SIZES */
h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1.25rem; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); margin-bottom: 1.25rem; }
h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); margin-bottom: 1rem; }

p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 60ch;
}

/* The Accent Font for beautiful contrast */
.font-accent {
    font-family: var(--font-accent);
    font-style: italic;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.text-gradient {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-purple) 60%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.text-gradient-subtle {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    color: transparent;
}

.text-gradient-zivra {
    background: linear-gradient(135deg, var(--accent-blue), #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

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

.text-center { text-align: center; }
.text-secondary { color: var(--text-secondary); }
.mt-sm { margin-top: var(--space-sm); }

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

.container-wide {
    max-width: var(--container-width-wide);
    margin: 0 auto;
    padding: 0 60px;
    width: 100%;
}

/* Typography Fluidity - Rebalanced for Elegance */
h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); line-height: 1.3; }
p { font-size: clamp(0.95rem, 1.1vw, 1.1rem); color: var(--text-secondary); line-height: 1.7; max-width: 70ch; }

/* Spacing Utilities - Normalized */
.mb-lg { margin-bottom: clamp(2.5rem, 4vw, 4rem); }
.mb-md { margin-bottom: clamp(1.2rem, 2vw, 2rem); }
.mb-sm { margin-bottom: clamp(0.6rem, 1vw, 1rem); }
.mt-xl { margin-top: clamp(4rem, 8vw, 8rem); }
.mt-lg { margin-top: clamp(2.5rem, 5vw, 5rem); }
.section-padding { padding: clamp(2.5rem, 4vw, 5rem) 0; }

/* Buttons Engine - Redefined */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 80px;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: #FFFFFF;
    color: #000000;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.05);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
    background: #fcfcfc;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.1);
}

/* Premium Glass Cards - Refined Proportions */
.card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2.5rem;
    transition: var(--transition-smooth);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 
        0 4px 24px -1px rgba(0, 0, 0, 0.2), 
        inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.04), transparent 40%);
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 
        0 20px 40px -10px rgba(0, 0, 0, 0.4), 
        0 0 40px rgba(139, 92, 246, 0.05);
}

.card:hover::before {
    opacity: 1;
}

/* Specific Card Layout Utilities Fix */
.stat-card h3 {
    font-size: 2.5rem !important; /* Forces smaller size */
    margin-bottom: 0.5rem;
}

.timeline-node .node-dot {
    width: 60px; height: 60px;
    font-size: 1.5rem;
}

/* Navigation - Elegant Scale */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 0.8rem 0;
    background: rgba(7, 7, 10, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-color);
}

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

@media (max-width: 1024px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; }
}

@media (max-width: 480px) {
    .nav-container { padding: 0 25px; }
}

.logo img {
    height: 32px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
    letter-spacing: 0.03em;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 0%; height: 1px;
    background: var(--text-primary);
    transition: var(--transition-smooth);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 100001;
    padding: 0;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 1.2px;
    background-color: var(--text-primary);
    margin: 4px 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none; /* Let clicks pass through to button */
}

/* Close Trigger inside Menu */
.menu-close-trigger {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.menu-close-trigger:hover {
    color: var(--text-primary);
}

.menu-close-trigger i {
    font-size: 1.2rem;
}

.nav-cta {
    display: inline-block !important; /* Force visibility or use @media */
}

@media (max-width: 991px) {
    .nav-cta { display: none !important; }
}

.mobile-menu-btn span:last-child {
    width: 60%;
}

.mobile-menu-btn.active span:first-child {
    transform: translateY(7.5px) rotate(45deg);
    width: 100%;
}

.mobile-menu-btn.active span:last-child {
    transform: translateY(-7.5px) rotate(-45deg);
    width: 100%;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex !important;
    }
}

@media (max-width: 1024px) {
    .nav-links {
        display: none !important;
    }
}

/* Grid Stacking Engine */
.grid-2-mobile-stack {
    display: grid !important;
    grid-template-columns: var(--grid-cols, 1fr 1fr) !important;
    gap: var(--grid-gap, 4rem) !important;
    align-items: center;
}

@media (max-width: 991px) {
    .grid-2-mobile-stack {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }
}

/* Impact Slider Styles (About Page) */
.horizontal-slider-wrapper {
    width: 100%;
    overflow: hidden; /* Changed from auto to hidden for JS control */
    padding-bottom: 2rem;
    position: relative;
}

.slider-track {
    display: flex;
    gap: 2rem;
    padding: 0 2rem;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
}

.slide-card {
    flex: 0 0 calc(70vw);
    height: 500px;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.slide-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-card:hover img {
    transform: scale(1.08);
}

@media (max-width: 768px) {
    .horizontal-slider-wrapper {
        overflow-x: hidden; /* Programmatic slide only */
    }
    .slider-track {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 1.2rem;
        padding: 0 1.2rem;
        width: max-content;
    }
    .slide-card {
        height: 380px;
        flex: 0 0 82vw;
        border-radius: 16px;
    }
}

/* Sections */
section {
    padding: var(--space-xl) 0;
    position: relative;
    z-index: 1;
}

/* Specific Section Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Hero Slideshow Engine */
.hero-slideshow {
    position: absolute;
    inset: 0;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    filter: grayscale(100%) contrast(1.1) brightness(0.7);
}

.slide.active {
    opacity: 0.18;
}

/* Blank Space Filler - Ticker Animation */
@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.15s; }
.stagger-3 { transition-delay: 0.2s; }

/* Custom Overrides for Clean Design */
.hero { padding-top: 150px; min-height: auto; padding-bottom: 80px; }
.hero-content { display: flex; flex-direction: column; align-items: center; justify-content: center;}

/* Footer Elements Scaled Down */
footer {
    border-top: 1px solid var(--border-color);
    padding: var(--space-md) 0 var(--space-sm) 0;
    background: linear-gradient(to bottom, transparent, rgba(139, 92, 246, 0.015));
}

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

.footer-brand img {
    height: 28px;
    margin-bottom: 1.5rem;
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 1rem; }
.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-primary);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: var(--space-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive Fixes */
@media (max-width: 1024px) {
    .grid-2 { grid-template-columns: 1fr; gap: 3rem; }
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .card { padding: 1.5rem; border-radius: 16px; }
    .btn { padding: 0.8rem 1.6rem; font-size: 0.9rem; }
}

/* Better Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(7, 7, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.close-menu {
    position: absolute;
    top: 2rem; right: 2rem;
    font-size: 2rem; color: white; cursor: pointer;
}

.mobile-nav-list a {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    display: block;
    text-align: center;
    color: var(--text-primary);
}

/* =========================================
   PAGE LOADER
========================================= */
.page-loader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--bg-base);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    animation: loaderPulse 2s ease-in-out infinite;
}

.loader-bar {
    width: 160px;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.loader-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
    border-radius: 2px;
    animation: loaderFill 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes loaderFill {
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes loaderPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* =========================================
   SCROLL TO TOP BUTTON
========================================= */
#scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

#scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scroll-top:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--border-highlight);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.15);
}

/* =========================================
   STAT COUNTER ANIMATION
========================================= */
.stat-number {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

/* =========================================
   SMOOTH PAGE ENTRY
========================================= */
body {
    animation: pageEntry 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* =========================================
   NAV LINK ACTIVE GLOW
========================================= */
.nav-link.active {
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

/* =========================================
   HOVER LIFT UTILITY
========================================= */
.hover-lift {
    transition: var(--transition-smooth);
}

.hover-lift:hover {
    transform: translateY(-2px);
}

/* =========================================
   ARTICLE CARD HOVER EFFECTS
========================================= */
.card a.text-gradient {
    position: relative;
}

.card a.text-gradient::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 1px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover a.text-gradient::after {
    width: 100%;
}

/* =========================================
   EXTRA SPACING UTILITIES
========================================= */
.pt-xl { padding-top: var(--space-xl); }
.pb-xl { padding-bottom: var(--space-xl); }

/* =========================================
   ENHANCED MOBILE MENU (Slide from right)
========================================= */
.mobile-menu-overlay {
    transform: translateX(100%);
    opacity: 1;
}

.mobile-menu-overlay.active {
    transform: translateX(0);
}

/* =========================================
   UNIVERSAL RESPONSIVE SYSTEM
========================================= */

/* 1. Large Monitors (1600px+) */
@media (min-width: 1600px) {
    .container { max-width: var(--container-width-wide); }
}

/* 2. Standard Desktop / Wide Screen (1200px - 1599px) */
@media (max-width: 1599px) {
    .container { max-width: var(--container-width); }
}

/* 3. Laptops / Smaller Desktops (992px - 1199px) */
@media (max-width: 991px) {
    .container { max-width: 720px; padding: 0 25px; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 2.5rem; }
    .grid-2-mobile-stack { grid-template-columns: 1fr; gap: 3rem; }
    .navbar { padding: 1rem 0; }
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex !important; }
    
    .hero { padding-top: 100px; text-align: center; }
    .hero h1 { font-size: 3.5rem; }
    .section-padding { padding: 5rem 0; }
}

/* 5. Portrait Mobile / Small Phones (Below 768px) */
@media (max-width: 768px) {
    .container, .container-wide { padding: 0 24px; }
    h1 { font-size: 2.5rem; line-height: 1.2; }
    h2 { font-size: 2rem; line-height: 1.3; }
    h3 { font-size: 1.6rem; }
    
    .section-padding { padding: 4rem 0; }
    
    .card { padding: 1.8rem; border-radius: 24px; }
    .btn { width: 100%; padding: 1.2rem; }
    
    .navbar { padding: 1.2rem 0; background: rgba(7, 7, 10, 0.8); backdrop-filter: blur(10px); }
    .mobile-menu-btn { display: flex !important; }
    
    .grid-2-mobile-stack { grid-template-columns: 1fr; gap: 2.5rem; }
    
    /* Global Mobile Spacing Fixes */
    .grid-2, .grid-3 { gap: 1.5rem !important; }
}

/* 6. Extra Small Screens (Below 425px) */
@media (max-width: 425px) {
    h1 { font-size: 2.4rem; }
    .hero p { font-size: 1rem; }
    .section-glow { width: 300px; height: 300px; }
}

/* =========================================
   MOBILE MENU OVERLAY & COMPONENTS
========================================= */
/* =========================================
   MOBILE MENU PANEL (PREMIUM TAKEOVER)
========================================= */

/* --- FINAL VERIFIED COMPACT MOBILE MENU UI --- */
.mobile-menu-panel {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    background: #07070a;
    z-index: 9999;
    display: none; /* Managed by JS */
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    flex-direction: column;
    padding: 2.5rem;
    overflow-y: auto;
}

.mobile-menu-panel.active {
    opacity: 1;
    transform: translateY(0);
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3.5rem;
}

.menu-logo {
    height: 35px;
    opacity: 0.9;
}

.menu-close-trigger {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.menu-close-trigger:hover {
    color: var(--text-primary);
}

.menu-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-nav {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.menu-link {
    font-size: clamp(2.5rem, 10vw, 4rem);
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.4s ease;
    opacity: 0.3;
    position: relative;
    width: fit-content;
}

.menu-link.active {
    opacity: 1;
    padding-left: 2rem;
}

.menu-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--accent-purple);
    border-radius: 50%;
}

.menu-link:hover {
    opacity: 1;
    padding-left: 1rem;
}

.menu-footer {
    margin-top: auto;
    padding-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.menu-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.menu-contact a {
    font-size: 1.15rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    opacity: 0.8;
}

.menu-socials {
    display: flex;
    gap: 2rem;
}

.menu-socials a {
    font-size: 1.5rem;
    color: var(--text-primary);
    opacity: 0.5;
    transition: var(--transition-smooth);
}

.menu-socials a:hover {
    opacity: 1;
    transform: translateY(-3px);
    color: var(--accent-purple);
}

@media (max-height: 700px) {
    .menu-link { font-size: clamp(2rem, 8vh, 3rem); }
    .menu-header { margin-bottom: 2rem; }
}

@media (max-width: 480px) {
    .mobile-menu-panel { padding: 2rem; }
    .menu-link { font-size: 2.5rem; }
}
/* --- FINAL VERIFIED COMPACT MOBILE MENU UI --- */
.mobile-menu-panel {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    background: rgba(7, 7, 10, 0.98);
    backdrop-filter: blur(25px);
    z-index: 9999;
    display: none;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    flex-direction: column;
    padding: 2.5rem;
    overflow-y: auto;
}

.mobile-menu-panel.active {
    opacity: 1;
    transform: translateY(0);
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3.5rem;
}

.menu-logo {
    height: 35px;
    opacity: 0.9;
}

.menu-close-trigger {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: #fff;
    transition: var(--transition-smooth);
}

.menu-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.menu-link {
    font-size: clamp(2.5rem, 10vw, 4.5rem);
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.4s ease;
    opacity: 0.3;
}

.menu-link.active {
    opacity: 1;
    padding-left: 2rem;
    color: var(--accent-purple);
}

.menu-footer {
    margin-top: auto;
    padding-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.menu-contact {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
}

.menu-contact a {
    font-size: 1.2rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
}

.menu-socials {
    display: flex;
    gap: 2rem;
}

.menu-socials a {
    font-size: 1.8rem;
    color: var(--text-primary);
    opacity: 0.6;
}

/* --- PILLAR: MOBILE MENU & RESPONSIVENESS --- */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10001;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #ffffff !important;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(255,255,255,0.3);
}

.mobile-menu-btn.active span:first-child {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active span:last-child {
    transform: translateY(-8px) rotate(-45deg);
}

/* Landscape Zoom Fixes */
@media (max-width: 900px) and (orientation: landscape) {
    .hero { min-height: 140vh !important; }
    .card img, .slide-card img, .gallery-item img {
        object-fit: contain !important;
        max-height: 280px !important; /* Forces images to breathe in landscape */
        width: auto !important;
        margin: 0 auto;
        display: block;
    }
}

@media (max-width: 1024px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
}

/* --- STANDARDIZED PREMIUM FOOTER --- */
footer {
    padding: 8rem 0 3rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: linear-gradient(to bottom, transparent, rgba(139, 91, 246, 0.02));
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 4rem;
    margin-bottom: 5rem;
}

.footer-logo img {
    height: 45px;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.footer-tagline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 300px;
    line-height: 1.6;
}

.footer-heading {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-weight: 700;
}

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

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
    font-size: 1rem;
}

.footer-links a:hover {
    color: var(--text-primary);
    padding-left: 5px;
}

.footer-address {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-bottom {
    padding-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.6;
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.footer-socials a {
    color: var(--text-primary);
    opacity: 0.4;
    font-size: 1.25rem;
    transition: var(--transition-smooth);
}

.footer-socials a:hover {
    opacity: 1;
    transform: translateY(-3px);
    color: var(--accent-purple);
}

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

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