:root {
    /* === Premium White and Red Design System === */

    /* Background Colors - Light & Clean */
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-tertiary: #f5f5f5;
    --bg-card: #ffffff;
    --bg-card-elevated: #fefefe;
    --bg-glass: rgba(255, 255, 255, 0.95);

    /* Accent Colors - Blood Red Palette */
    --accent-primary: rgba(227, 24, 55, 1);
    --accent-secondary: rgba(180, 19, 44, 1);
    --accent-glow: rgba(227, 24, 55, 1);
    --accent-soft: rgba(227, 24, 55, 0.8);
    --accent-ultra: rgba(255, 50, 70, 1);

    /* Premium Gradients */
    --gradient-primary: linear-gradient(135deg, rgba(227, 24, 55, 1) 0%, rgba(180, 19, 44, 1) 50%, rgba(150, 15, 36, 1) 100%);
    --gradient-glow: linear-gradient(135deg, rgba(227, 24, 55, 1) 0%, rgba(200, 22, 50, 1) 100%);
    --gradient-text: linear-gradient(135deg, #2C2F33 0%, rgba(227, 24, 55, 1) 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.85) 100%);
    --gradient-metallic: linear-gradient(135deg, #0a0a0a 0%, #2c2f33 100%);
    --black-metallic: #0a0a0a;

    /* Text Colors - Gunpowder Metallic Black */
    --text-primary: #2C2F33;
    --text-secondary: #4a4d52;
    --text-muted: #6c6f75;
    --text-ultra-light: #ffffff;

    /* Border & Lines */
    --border: rgba(227, 24, 55, 0.2);
    --border-light: rgba(44, 47, 51, 0.15);
    --border-strong: rgba(227, 24, 55, 0.5);

    /* Shadow & Glow System */
    --shadow-xs: 0 2px 4px rgba(44, 47, 51, 0.05);
    --shadow-sm: 0 4px 6px rgba(44, 47, 51, 0.08);
    --shadow-md: 0 10px 20px rgba(44, 47, 51, 0.12);
    --shadow-lg: 0 20px 40px rgba(44, 47, 51, 0.15);
    --shadow-xl: 0 30px 60px rgba(44, 47, 51, 0.18);

    --glow-xs: 0 0 5px rgba(227, 24, 55, 0.2);
    --glow-sm: 0 0 10px rgba(227, 24, 55, 0.3);
    --glow-md: 0 0 20px rgba(227, 24, 55, 0.35);
    --glow-lg: 0 0 30px rgba(227, 24, 55, 0.4);
    --glow-xl: 0 0 50px rgba(227, 24, 55, 0.5);

    --glow-primary: rgba(227, 24, 55, 0.2);
    --glow-bright: rgba(227, 24, 55, 0.15);

    /* Spacing Scale */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    --spacing-4xl: 8rem;

    /* Container Widths */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1400px;

    /* Animation Timing */
    --transition-fast: 150ms;
    --transition-base: 300ms;
    --transition-slow: 500ms;
    --transition-slower: 700ms;

    /* Z-Index Scale */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
    --z-popover: 500;
    --z-tooltip: 600;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

.mono {
    font-family: 'JetBrains Mono', monospace;
}

/* Futuristic Grid Background */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(227, 24, 55, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(227, 24, 55, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

.content {
    position: relative;
    z-index: 1;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* === Top Bar - Midnight Obsidian === */
.top-bar {
    background: linear-gradient(135deg, #050505 0%, #0D0D0D 100%);
    border-bottom: 1px solid rgba(227, 24, 55, 0.15);
    padding: 0.5rem 5%;
    display: flex;
    justify-content: flex-end;
    font-size: 0.85rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.top-bar-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.top-bar-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.top-bar-links a:hover {
    color: rgb(227, 24, 55);
    text-shadow: 0 0 12px rgba(227, 24, 55, 0.3);
    transform: translateY(-1px);
}

/* Main Navigation - Frosted Glass HUD */
.main-nav {
    background: rgba(240, 240, 240, 0.90);
    /* Light Grey 90% opacity */
    backdrop-filter: blur(10px);
    /* diffuses content behind */
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(200, 200, 200, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05),
        0 1px 3px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    padding: 0.8rem 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    /* Pinned to top */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    /* Highest layer */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-nav:hover {
    background: rgba(240, 240, 240, 0.95);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Logo Container - Clean Transparent */
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    position: relative;
    padding: 0;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}



.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.logo-icon img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* mix-blend-mode: multiply; - Removed as requested to treat image as primary logo */
}



.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    color: #1a1a1a;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.logo-text span {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: rgba(30, 30, 30, 0.7);
    margin-top: 0.2rem;
}

/* Navigation Links - Clean Dark Text */
.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links a {
    color: #111111;
    text-decoration: none;
    font-size: 0.75rem !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem 0;
}

/* Futuristic Glowing Underline */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg,
            rgb(227, 24, 55) 0%,
            rgba(227, 24, 55, 0.6) 100%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 12px rgba(227, 24, 55, 0.5);
}

.nav-links a:hover {
    color: rgb(227, 24, 55);
    text-shadow: 0 0 8px rgba(227, 24, 55, 0.2);
    transform: translateY(-2px);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: rgb(227, 24, 55);
    font-weight: 700;
}

.nav-links a.active::after {
    width: 100%;
}

/* Dropdown Menu - Frosted White Glass */
.nav-links li {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(227, 24, 55, 0.15);
    border-radius: 16px;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.08),
        0 4px 12px rgba(227, 24, 55, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    list-style: none;
    padding: 1rem 0;
    margin: 0.5rem 0 0 0;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.nav-links li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: rgba(30, 30, 30, 0.75);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    background: linear-gradient(90deg,
            rgba(227, 24, 55, 0.08) 0%,
            rgba(227, 24, 55, 0.02) 100%);
    color: rgb(227, 24, 55);
    padding-left: 2rem;
    border-left-color: rgb(227, 24, 55);
    text-shadow: 0 0 8px rgba(227, 24, 55, 0.15);
    transform: translateX(3px);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: rgba(227, 24, 55, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(227, 24, 55, 0.2);
    border-radius: 8px;
    color: rgb(227, 24, 55);
    font-size: 1.2rem;
    padding: 0.6rem 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-btn:hover {
    background: rgba(227, 24, 55, 0.12);
    box-shadow: 0 4px 16px rgba(227, 24, 55, 0.15);
    transform: scale(1.05);
}

/* Mobile Menu Logic in CSS */
@media (max-width: 900px) {
    .top-bar {
        display: none;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(180deg,
                rgba(44, 47, 51, 0.98) 0%,
                rgba(44, 47, 51, 0.96) 100%);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(227, 24, 55, 0.2);
        height: 100vh;
        transition: all 0.3s ease-in-out;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    }

    /* Used by JS to toggle */
    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(44, 47, 51, 0.95);
        border: none;
        border-left: 2px solid rgba(227, 24, 55, 0.3);
        padding-left: 1.5rem;
        box-shadow: none;
        display: none;
        margin-top: 0.5rem;
        border-radius: 0;
    }

    .nav-links a {
        color: #ffffff;
        font-size: 1.1rem;
        width: 100%;
        display: block;
    }

    .dropdown-menu a {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
        color: rgba(255, 255, 255, 0.8);
    }

    /* Show dropdown on click/hover for mobile */
    .nav-links>li:hover .dropdown-menu,
    .nav-links>li:focus-within .dropdown-menu {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero {
        padding-top: 10rem;
        min-height: 60vh;
    }

    /* Fix Layouts for Mobile - Moved to bottom of file to proper cascade */

    .section-header {
        margin-bottom: 2rem;
    }

    .card {
        padding: 1.5rem;
    }
}

.nav-cta {
    padding: 0.6rem 1.25rem;
    background: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--accent-glow);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: none;
}

/* === Hero Section - Premium Edition === */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: clamp(11rem, 15vh, 12rem) clamp(1.5rem, 5%, 8rem) clamp(4rem, 8vh, 6rem);
    position: relative;
    background: url('../media/hero-premium-bg.png') no-repeat center center/cover;
    background-attachment: fixed;
    /* Parallax effect */
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-overlay);
    z-index: 1;
}

.hero-min {
    min-height: 50vh;
}

.hero-glow {
    position: absolute;
    top: 15%;
    right: 5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--glow-bright) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

.hero-glow-2 {
    position: absolute;
    bottom: 20%;
    left: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--glow-primary) 0%, transparent 70%);
    animation: pulse 10s ease-in-out infinite reverse;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.4;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.7;
    }
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(227, 24, 55, 0.1);
    border: 1px solid rgba(227, 24, 55, 0.3);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--accent-glow);
    margin-bottom: 1.5rem;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-glow);
    border-radius: 50%;
    animation: blink 2s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 10px var(--accent-glow);
    }

    50% {
        opacity: 0.3;
    }
}

.hero h1 {
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.hero h1 .gradient {
    background: linear-gradient(135deg, var(--text-primary), var(--accent-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 700px;
}

.hero-ctas {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

/* === Premium Button Styles === */
.btn-primary {
    padding: 1rem 2.25rem;
    background: var(--gradient-primary);
    color: var(--text-ultra-light);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base) cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-lg), var(--glow-sm);
    position: relative;
    overflow: hidden;
}

.btn-primary::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 var(--transition-slow);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-xl), var(--glow-lg);
    background: var(--gradient-glow);
}

.btn-primary:active {
    transform: translateY(-1px) scale(1.02);
}

.btn-secondary {
    padding: 1rem 2.25rem;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-primary);
    border: 2px solid var(--border-strong);
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base) cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-glow);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.btn-secondary::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
}

.btn-secondary:hover {
    border-color: var(--accent-glow);
    color: var(--text-ultra-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), var(--glow-md);
}

.btn-secondary:hover::before {
    opacity: 0.15;
}

.btn-secondary:active {
    transform: translateY(-1px);
}

/* Stats Bar */
.stats-bar {
    padding: 3rem 5%;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-glow);
    margin-bottom: 0.25rem;
    font-family: 'JetBrains Mono', monospace;
    text-shadow: 0 0 10px var(--glow-primary);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === Section Styles - Proper Spacing === */
section {
    padding: clamp(4rem, 8vw, 8rem) clamp(1.5rem, 5%, 8rem);
    max-width: 100vw;
    overflow-x: hidden;
}

section .grid-2,
section .grid-3 {
    max-width: var(--container-2xl);
    margin-left: auto;
    margin-right: auto;
}

.section-header {
    max-width: 700px;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent-glow);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.section-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1rem;
    height: 1px;
    background: var(--accent-glow);
    box-shadow: 0 0 5px var(--accent-glow);
}

.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

/* === Premium Card Styles with Glassmorphism === */
.card {
    background: var(--gradient-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    transition: all var(--transition-slow) cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-soft);
    box-shadow: var(--shadow-xl), var(--glow-md);
    background: var(--bg-card-elevated);
}

/* Premium top accent line */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-glow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-slow) cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover::before {
    transform: scaleX(1);
}

/* Subtle shine effect on hover */
.card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: translateX(-100%);
    transition: transform var(--transition-slower);
}

.card:hover::after {
    transform: translateX(100%);
}

.card h3,
.card h4 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.list-arrow li {
    position: relative;
    padding-left: 20px;
    list-style: none;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.list-arrow li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent-glow);
    font-family: 'JetBrains Mono', monospace;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-glow);
    box-shadow: 0 0 10px var(--glow-primary);
}

footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 4rem 5%;
    margin-top: 4rem;
    text-align: center;
    color: var(--text-secondary);
}

/* --- Blog Page Styles --- */

#blog-container {
    padding-top: 2rem;
}

.blog-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s;
}

.category-list a:hover,
.category-list a.active {
    background: rgba(227, 24, 55, 0.1);
    color: var(--accent-glow);
}

.popular-post-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.popular-post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.popular-post-item i {
    margin-top: 4px;
    color: var(--accent-glow);
}

.popular-post-item a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
    display: block;
    margin-bottom: 0.25rem;
    transition: color 0.3s;
}

.popular-post-item a:hover {
    color: var(--accent-glow);
}

.popular-post-item .post-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Blog Feed */
.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 2rem;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .blog-card {
        flex-direction: row;
    }

    .blog-img-placeholder {
        width: 300px;
        height: auto;
        flex-shrink: 0;
    }
}

.blog-card:hover {
    border-color: var(--accent-glow);
    transform: translateY(-3px);
}

.blog-img-placeholder {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: rgba(0, 0, 0, 0.1);
    font-size: 4rem;
}

.blog-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-meta i {
    color: var(--accent-glow);
}

.blog-content h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.blog-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.read-more {
    color: var(--accent-glow);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s;
}

.read-more:hover {
    gap: 0.75rem;
    text-shadow: 0 0 10px var(--glow-primary);
}

.pagination {
    margin-top: 3rem;
    text-align: center;
}

/* Sustainability Page Specifics */
.resource-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.resource-icon {
    font-size: 2rem;
    color: var(--text-muted);
    transition: color 0.3s;
}

.resource-info h4 {
    margin: 0;
    font-size: 1.1rem;
}

.resource-info span {
    font-size: 0.85rem;
    color: var(--accent-glow);
}

.resource-arrow {
    margin-left: auto;
    color: var(--text-muted);
    transition: all 0.3s;
}

.resource-card:hover .resource-icon,
.resource-card:hover .resource-arrow {
    color: var(--accent-glow);
}

.resource-card:hover .resource-arrow {
    transform: translateX(5px);
}

.feature-card .stats-list {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    list-style: none;
}

.feature-card .stats-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.feature-card .stats-list li i {
    color: var(--accent-glow);
}

.feature-card .stats-list li strong {
    color: var(--text-primary);
}

/* === PREMIUM SCROLL ANIMATIONS === */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* === ANIMATED GRADIENT BACKGROUND === */
@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.animated-bg {
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary), var(--bg-primary));
    background-size: 200% 200%;
    animation: gradient-shift 15s ease infinite;
}

/* === FLOATING PARTICLES (CSS-only) === */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent-glow);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s infinite;
    box-shadow: var(--glow-xs);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.3;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

/* === SCROLL INDICATOR === */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 2rem;
    color: var(--accent-glow);
    filter: drop-shadow(var(--glow-sm));
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* === BACK TO TOP BUTTON === */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: 2px solid var(--border-strong);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: var(--z-fixed);
    box-shadow: var(--shadow-lg), var(--glow-md);
    backdrop-filter: blur(10px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-xl), var(--glow-lg);
}

.back-to-top i {
    color: var(--text-ultra-light);
    font-size: 1.25rem;
}


/* === ACTIVE NAVIGATION HIGHLIGHT === */
.nav-links a.active {
    color: var(--accent-glow) !important;
    text-shadow: 0 0 8px var(--glow-sm);
    font-weight: 600;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-glow);
    box-shadow: 0 0 8px var(--glow-sm);
}


/* ===================================================================
   PROFESSIONAL GLOBAL FOOTER STYLES
   Centralized footer component with premium design
   =================================================================== */

.global-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

/* Main Footer Content */
.footer-main {
    padding: 4rem clamp(1.5rem, 5%, 8rem) 3rem;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(6, 1fr);
    gap: 1.5rem;
    max-width: var(--container-2xl);
    margin: 0 auto;
    align-items: baseline;
}

/* Company Brand Column */
.footer-brand {
    padding-right: 2rem;
}

.footer-brand .footer-heading {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    line-height: 1.2;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-base);
    position: relative;
}

.social-link:hover {
    background: var(--accent-primary);
    border-color: var(--accent-glow);
    color: var(--text-ultra-light);
}

.social-link i {
    font-size: 1rem;
}

/* Footer Column Headings */
.footer-heading {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 0.75rem;
    white-space: nowrap;
    text-align: left;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient-glow);
    box-shadow: var(--glow-sm);
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.footer-links li {
    margin-bottom: 0.75rem;
    text-align: left;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-glow);
}

/* Footer Bottom - Copyright Section */
.footer-bottom {
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    padding: 1.75rem clamp(1.5rem, 5%, 8rem);
}

.footer-bottom-content {
    max-width: var(--container-2xl);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-bottom-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
    color: var(--accent-glow);
}

.footer-bottom-links .separator {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
        padding-right: 0;
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 3rem 1.5rem 2rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-main {
        padding: 2rem 1rem 1.5rem;
    }

    .footer-bottom {
        padding: 1.25rem 1rem;
    }

    .footer-brand .footer-heading {
        font-size: 1.25rem;
    }

    .footer-social {
        justify-content: flex-start;
    }
}

/* Animation on Scroll */
.footer-column {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.footer-column:nth-child(1) {
    animation-delay: 0.1s;
}

.footer-column:nth-child(2) {
    animation-delay: 0.2s;
}

.footer-column:nth-child(3) {
    animation-delay: 0.3s;
}

.footer-column:nth-child(4) {
    animation-delay: 0.4s;
}

.footer-column:nth-child(5) {
    animation-delay: 0.5s;
}

.footer-column:nth-child(6) {
    animation-delay: 0.6s;
}

.footer-column:nth-child(7) {
    animation-delay: 0.7s;
}

.footer-column:nth-child(8) {
    animation-delay: 0.8s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Premium Glow Effect on Footer */
.global-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--accent-glow) 50%,
            transparent 100%);
    opacity: 0.5;
    box-shadow: 0 0 20px var(--glow-md);
}

/* === Mobile Overrides (Moved for Cascade) === */
@media (max-width: 900px) {

    .grid-2,
    .grid-3,
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
}

/* =========================================================
   RESPONSIVE TUNE-UP (Added)
   Safe global improvements without breaking existing design
   ========================================================= */

/* Media elements should never overflow the viewport */
img, video, canvas, svg {
    max-width: 100%;
    height: auto;
}

iframe, embed, object {
    max-width: 100%;
}

/* Long code/text should not create horizontal scroll on the page */
pre, code {
    max-width: 100%;
}

pre {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Tables on small screens: scroll instead of breaking layout */
table {
    width: 100%;
}

@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Improve readability + spacing on small screens */
@media (max-width: 768px) {
    section {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .card {
        border-radius: 14px;
    }
}

/* Disable parallax fixed background on mobile (performance) */
@media (max-width: 900px) {
    .hero {
        background-attachment: scroll;
    }
}

/* Ensure dropdown menus and long nav labels wrap nicely on small screens */
@media (max-width: 900px) {
    .nav-links a {
        white-space: normal;
        line-height: 1.4;
    }
}

/* Small phone tweaks */
@media (max-width: 480px) {
    .hero {
        min-height: auto;
        padding-top: 9rem;
    }

    .hero-ctas a {
        width: 100%;
        text-align: center;
    }
}

/* ===========================
   NAVBAR TEXT VISIBILITY FIX
   Fix: link text disappearing after click/hover (e.g., ABOUT US)
   Safe override for all states.
   =========================== */

/* Desktop / default */
.main-nav .nav-links a,
.main-nav .nav-links a:visited {
  color: #111111;
  -webkit-text-fill-color: currentColor;
}

.main-nav .nav-links a:hover,
.main-nav .nav-links a:active,
.main-nav .nav-links a:focus,
.main-nav .nav-links a:focus-visible,
.main-nav .nav-links a.active,
.main-nav .nav-links li.active > a {
  color: var(--accent-primary);
  -webkit-text-fill-color: currentColor;
}

/* Mobile menu (dark background) */
@media (max-width: 900px) {
  .main-nav .nav-links a,
  .main-nav .nav-links a:visited {
    color: #ffffff;
    -webkit-text-fill-color: currentColor;
  }

  .main-nav .nav-links a:hover,
  .main-nav .nav-links a:active,
  .main-nav .nav-links a:focus,
  .main-nav .nav-links a:focus-visible,
  .main-nav .nav-links a.active,
  .main-nav .nav-links li.active > a {
    color: var(--accent-primary);
    -webkit-text-fill-color: currentColor;
  }
}
:root {
    /* === Premium White and Red Design System === */

    /* Background Colors - Light & Clean */
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-tertiary: #f5f5f5;
    --bg-card: #ffffff;
    --bg-card-elevated: #fefefe;
    --bg-glass: rgba(255, 255, 255, 0.95);

    /* Accent Colors - Blood Red Palette */
    --accent-primary: rgba(227, 24, 55, 1);
    --accent-secondary: rgba(180, 19, 44, 1);
    --accent-glow: rgba(227, 24, 55, 1);
    --accent-soft: rgba(227, 24, 55, 0.8);
    --accent-ultra: rgba(255, 50, 70, 1);

    /* Premium Gradients */
    --gradient-primary: linear-gradient(135deg, rgba(227, 24, 55, 1) 0%, rgba(180, 19, 44, 1) 50%, rgba(150, 15, 36, 1) 100%);
    --gradient-glow: linear-gradient(135deg, rgba(227, 24, 55, 1) 0%, rgba(200, 22, 50, 1) 100%);
    --gradient-text: linear-gradient(135deg, #2C2F33 0%, rgba(227, 24, 55, 1) 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.85) 100%);
    --gradient-metallic: linear-gradient(135deg, #0a0a0a 0%, #2c2f33 100%);
    --black-metallic: #0a0a0a;

    /* Text Colors - Gunpowder Metallic Black */
    --text-primary: #2C2F33;
    --text-secondary: #4a4d52;
    --text-muted: #6c6f75;
    --text-ultra-light: #ffffff;

    /* Border & Lines */
    --border: rgba(227, 24, 55, 0.2);
    --border-light: rgba(44, 47, 51, 0.15);
    --border-strong: rgba(227, 24, 55, 0.5);

    /* Shadow & Glow System */
    --shadow-xs: 0 2px 4px rgba(44, 47, 51, 0.05);
    --shadow-sm: 0 4px 6px rgba(44, 47, 51, 0.08);
    --shadow-md: 0 10px 20px rgba(44, 47, 51, 0.12);
    --shadow-lg: 0 20px 40px rgba(44, 47, 51, 0.15);
    --shadow-xl: 0 30px 60px rgba(44, 47, 51, 0.18);

    --glow-xs: 0 0 5px rgba(227, 24, 55, 0.2);
    --glow-sm: 0 0 10px rgba(227, 24, 55, 0.3);
    --glow-md: 0 0 20px rgba(227, 24, 55, 0.35);
    --glow-lg: 0 0 30px rgba(227, 24, 55, 0.4);
    --glow-xl: 0 0 50px rgba(227, 24, 55, 0.5);

    --glow-primary: rgba(227, 24, 55, 0.2);
    --glow-bright: rgba(227, 24, 55, 0.15);

    /* Spacing Scale */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    --spacing-4xl: 8rem;

    /* Container Widths */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1400px;

    /* Animation Timing */
    --transition-fast: 150ms;
    --transition-base: 300ms;
    --transition-slow: 500ms;
    --transition-slower: 700ms;

    /* Z-Index Scale */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
    --z-popover: 500;
    --z-tooltip: 600;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

.mono {
    font-family: 'JetBrains Mono', monospace;
}

/* Futuristic Grid Background */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(227, 24, 55, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(227, 24, 55, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

.content {
    position: relative;
    z-index: 1;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* === Top Bar - Midnight Obsidian === */
.top-bar {
    background: linear-gradient(135deg, #050505 0%, #0D0D0D 100%);
    border-bottom: 1px solid rgba(227, 24, 55, 0.15);
    padding: 0.5rem 5%;
    display: flex;
    justify-content: flex-end;
    font-size: 0.85rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.top-bar-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.top-bar-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.top-bar-links a:hover {
    color: rgb(227, 24, 55);
    text-shadow: 0 0 12px rgba(227, 24, 55, 0.3);
    transform: translateY(-1px);
}

/* Main Navigation - Frosted Glass HUD */
.main-nav {
    background: rgba(240, 240, 240, 0.90);
    /* Light Grey 90% opacity */
    backdrop-filter: blur(10px);
    /* diffuses content behind */
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(200, 200, 200, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05),
        0 1px 3px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    padding: 0.8rem 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    /* Pinned to top */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    /* Highest layer */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-nav:hover {
    background: rgba(240, 240, 240, 0.95);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Logo Container - Clean Transparent */
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    position: relative;
    padding: 0;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}



.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.logo-icon img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* mix-blend-mode: multiply; - Removed as requested to treat image as primary logo */
}



.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    color: #1a1a1a;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.logo-text span {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: rgba(30, 30, 30, 0.7);
    margin-top: 0.2rem;
}

/* Navigation Links - Clean Dark Text */
.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links a {
    color: #111111;
    text-decoration: none;
    font-size: 0.75rem !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem 0;
}

/* Futuristic Glowing Underline */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg,
            rgb(227, 24, 55) 0%,
            rgba(227, 24, 55, 0.6) 100%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 12px rgba(227, 24, 55, 0.5);
}

.nav-links a:hover {
    color: rgb(227, 24, 55);
    text-shadow: 0 0 8px rgba(227, 24, 55, 0.2);
    transform: translateY(-2px);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: rgb(227, 24, 55);
    font-weight: 700;
}

.nav-links a.active::after {
    width: 100%;
}

/* Dropdown Menu - Frosted White Glass */
.nav-links li {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(227, 24, 55, 0.15);
    border-radius: 16px;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.08),
        0 4px 12px rgba(227, 24, 55, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    list-style: none;
    padding: 1rem 0;
    margin: 0.5rem 0 0 0;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.nav-links li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: rgba(30, 30, 30, 0.75);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    background: linear-gradient(90deg,
            rgba(227, 24, 55, 0.08) 0%,
            rgba(227, 24, 55, 0.02) 100%);
    color: rgb(227, 24, 55);
    padding-left: 2rem;
    border-left-color: rgb(227, 24, 55);
    text-shadow: 0 0 8px rgba(227, 24, 55, 0.15);
    transform: translateX(3px);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: rgba(227, 24, 55, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(227, 24, 55, 0.2);
    border-radius: 8px;
    color: rgb(227, 24, 55);
    font-size: 1.2rem;
    padding: 0.6rem 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-btn:hover {
    background: rgba(227, 24, 55, 0.12);
    box-shadow: 0 4px 16px rgba(227, 24, 55, 0.15);
    transform: scale(1.05);
}

/* Mobile Menu Logic in CSS */
@media (max-width: 900px) {
    .top-bar {
        display: none;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(180deg,
                rgba(44, 47, 51, 0.98) 0%,
                rgba(44, 47, 51, 0.96) 100%);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(227, 24, 55, 0.2);
        height: 100vh;
        transition: all 0.3s ease-in-out;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    }

    /* Used by JS to toggle */
    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(44, 47, 51, 0.95);
        border: none;
        border-left: 2px solid rgba(227, 24, 55, 0.3);
        padding-left: 1.5rem;
        box-shadow: none;
        display: none;
        margin-top: 0.5rem;
        border-radius: 0;
    }

    .nav-links a {
        color: #ffffff;
        font-size: 1.1rem;
        width: 100%;
        display: block;
    }

    .dropdown-menu a {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
        color: rgba(255, 255, 255, 0.8);
    }

    /* Show dropdown on click/hover for mobile */
    .nav-links>li:hover .dropdown-menu,
    .nav-links>li:focus-within .dropdown-menu {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero {
        padding-top: 10rem;
        min-height: 60vh;
    }

    /* Fix Layouts for Mobile - Moved to bottom of file to proper cascade */

    .section-header {
        margin-bottom: 2rem;
    }

    .card {
        padding: 1.5rem;
    }
}

.nav-cta {
    padding: 0.6rem 1.25rem;
    background: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--accent-glow);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: none;
}

/* === Hero Section - Premium Edition === */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: clamp(11rem, 15vh, 12rem) clamp(1.5rem, 5%, 8rem) clamp(4rem, 8vh, 6rem);
    position: relative;
    background: url('../media/hero-premium-bg.png') no-repeat center center/cover;
    background-attachment: fixed;
    /* Parallax effect */
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-overlay);
    z-index: 1;
}

.hero-min {
    min-height: 50vh;
}

.hero-glow {
    position: absolute;
    top: 15%;
    right: 5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--glow-bright) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

.hero-glow-2 {
    position: absolute;
    bottom: 20%;
    left: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--glow-primary) 0%, transparent 70%);
    animation: pulse 10s ease-in-out infinite reverse;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.4;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.7;
    }
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(227, 24, 55, 0.1);
    border: 1px solid rgba(227, 24, 55, 0.3);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--accent-glow);
    margin-bottom: 1.5rem;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-glow);
    border-radius: 50%;
    animation: blink 2s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 10px var(--accent-glow);
    }

    50% {
        opacity: 0.3;
    }
}

.hero h1 {
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.hero h1 .gradient {
    background: linear-gradient(135deg, var(--text-primary), var(--accent-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 700px;
}

.hero-ctas {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

/* === Premium Button Styles === */
.btn-primary {
    padding: 1rem 2.25rem;
    background: var(--gradient-primary);
    color: var(--text-ultra-light);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base) cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-lg), var(--glow-sm);
    position: relative;
    overflow: hidden;
}

.btn-primary::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 var(--transition-slow);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-xl), var(--glow-lg);
    background: var(--gradient-glow);
}

.btn-primary:active {
    transform: translateY(-1px) scale(1.02);
}

.btn-secondary {
    padding: 1rem 2.25rem;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-primary);
    border: 2px solid var(--border-strong);
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base) cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-glow);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.btn-secondary::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
}

.btn-secondary:hover {
    border-color: var(--accent-glow);
    color: var(--text-ultra-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), var(--glow-md);
}

.btn-secondary:hover::before {
    opacity: 0.15;
}

.btn-secondary:active {
    transform: translateY(-1px);
}

/* Stats Bar */
.stats-bar {
    padding: 3rem 5%;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-glow);
    margin-bottom: 0.25rem;
    font-family: 'JetBrains Mono', monospace;
    text-shadow: 0 0 10px var(--glow-primary);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === Section Styles - Proper Spacing === */
section {
    padding: clamp(4rem, 8vw, 8rem) clamp(1.5rem, 5%, 8rem);
    max-width: 100vw;
    overflow-x: hidden;
}

section .grid-2,
section .grid-3 {
    max-width: var(--container-2xl);
    margin-left: auto;
    margin-right: auto;
}

.section-header {
    max-width: 700px;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent-glow);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.section-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1rem;
    height: 1px;
    background: var(--accent-glow);
    box-shadow: 0 0 5px var(--accent-glow);
}

.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

/* === Premium Card Styles with Glassmorphism === */
.card {
    background: var(--gradient-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    transition: all var(--transition-slow) cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-soft);
    box-shadow: var(--shadow-xl), var(--glow-md);
    background: var(--bg-card-elevated);
}

/* Premium top accent line */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-glow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-slow) cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover::before {
    transform: scaleX(1);
}

/* Subtle shine effect on hover */
.card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: translateX(-100%);
    transition: transform var(--transition-slower);
}

.card:hover::after {
    transform: translateX(100%);
}

.card h3,
.card h4 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.list-arrow li {
    position: relative;
    padding-left: 20px;
    list-style: none;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.list-arrow li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent-glow);
    font-family: 'JetBrains Mono', monospace;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-glow);
    box-shadow: 0 0 10px var(--glow-primary);
}

footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 4rem 5%;
    margin-top: 4rem;
    text-align: center;
    color: var(--text-secondary);
}

/* --- Blog Page Styles --- */

#blog-container {
    padding-top: 2rem;
}

.blog-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s;
}

.category-list a:hover,
.category-list a.active {
    background: rgba(227, 24, 55, 0.1);
    color: var(--accent-glow);
}

.popular-post-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.popular-post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.popular-post-item i {
    margin-top: 4px;
    color: var(--accent-glow);
}

.popular-post-item a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
    display: block;
    margin-bottom: 0.25rem;
    transition: color 0.3s;
}

.popular-post-item a:hover {
    color: var(--accent-glow);
}

.popular-post-item .post-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Blog Feed */
.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 2rem;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .blog-card {
        flex-direction: row;
    }

    .blog-img-placeholder {
        width: 300px;
        height: auto;
        flex-shrink: 0;
    }
}

.blog-card:hover {
    border-color: var(--accent-glow);
    transform: translateY(-3px);
}

.blog-img-placeholder {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: rgba(0, 0, 0, 0.1);
    font-size: 4rem;
}

.blog-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-meta i {
    color: var(--accent-glow);
}

.blog-content h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.blog-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.read-more {
    color: var(--accent-glow);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s;
}

.read-more:hover {
    gap: 0.75rem;
    text-shadow: 0 0 10px var(--glow-primary);
}

.pagination {
    margin-top: 3rem;
    text-align: center;
}

/* Sustainability Page Specifics */
.resource-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.resource-icon {
    font-size: 2rem;
    color: var(--text-muted);
    transition: color 0.3s;
}

.resource-info h4 {
    margin: 0;
    font-size: 1.1rem;
}

.resource-info span {
    font-size: 0.85rem;
    color: var(--accent-glow);
}

.resource-arrow {
    margin-left: auto;
    color: var(--text-muted);
    transition: all 0.3s;
}

.resource-card:hover .resource-icon,
.resource-card:hover .resource-arrow {
    color: var(--accent-glow);
}

.resource-card:hover .resource-arrow {
    transform: translateX(5px);
}

.feature-card .stats-list {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    list-style: none;
}

.feature-card .stats-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.feature-card .stats-list li i {
    color: var(--accent-glow);
}

.feature-card .stats-list li strong {
    color: var(--text-primary);
}

/* === PREMIUM SCROLL ANIMATIONS === */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* === ANIMATED GRADIENT BACKGROUND === */
@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.animated-bg {
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary), var(--bg-primary));
    background-size: 200% 200%;
    animation: gradient-shift 15s ease infinite;
}

/* === FLOATING PARTICLES (CSS-only) === */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent-glow);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s infinite;
    box-shadow: var(--glow-xs);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.3;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

/* === SCROLL INDICATOR === */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 2rem;
    color: var(--accent-glow);
    filter: drop-shadow(var(--glow-sm));
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* === BACK TO TOP BUTTON === */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: 2px solid var(--border-strong);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: var(--z-fixed);
    box-shadow: var(--shadow-lg), var(--glow-md);
    backdrop-filter: blur(10px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-xl), var(--glow-lg);
}

.back-to-top i {
    color: var(--text-ultra-light);
    font-size: 1.25rem;
}


/* === ACTIVE NAVIGATION HIGHLIGHT === */
.nav-links a.active {
    color: var(--accent-glow) !important;
    text-shadow: 0 0 8px var(--glow-sm);
    font-weight: 600;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-glow);
    box-shadow: 0 0 8px var(--glow-sm);
}


/* ===================================================================
   PROFESSIONAL GLOBAL FOOTER STYLES
   Centralized footer component with premium design
   =================================================================== */

.global-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

/* Main Footer Content */
.footer-main {
    padding: 4rem clamp(1.5rem, 5%, 8rem) 3rem;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(6, 1fr);
    gap: 1.5rem;
    max-width: var(--container-2xl);
    margin: 0 auto;
    align-items: baseline;
}

/* Company Brand Column */
.footer-brand {
    padding-right: 2rem;
}

.footer-brand .footer-heading {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    line-height: 1.2;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-base);
    position: relative;
}

.social-link:hover {
    background: var(--accent-primary);
    border-color: var(--accent-glow);
    color: var(--text-ultra-light);
}

.social-link i {
    font-size: 1rem;
}

/* Footer Column Headings */
.footer-heading {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 0.75rem;
    white-space: nowrap;
    text-align: left;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient-glow);
    box-shadow: var(--glow-sm);
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.footer-links li {
    margin-bottom: 0.75rem;
    text-align: left;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-glow);
}

/* Footer Bottom - Copyright Section */
.footer-bottom {
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    padding: 1.75rem clamp(1.5rem, 5%, 8rem);
}

.footer-bottom-content {
    max-width: var(--container-2xl);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-bottom-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
    color: var(--accent-glow);
}

.footer-bottom-links .separator {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
        padding-right: 0;
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 3rem 1.5rem 2rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-main {
        padding: 2rem 1rem 1.5rem;
    }

    .footer-bottom {
        padding: 1.25rem 1rem;
    }

    .footer-brand .footer-heading {
        font-size: 1.25rem;
    }

    .footer-social {
        justify-content: flex-start;
    }
}

/* Animation on Scroll */
.footer-column {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.footer-column:nth-child(1) {
    animation-delay: 0.1s;
}

.footer-column:nth-child(2) {
    animation-delay: 0.2s;
}

.footer-column:nth-child(3) {
    animation-delay: 0.3s;
}

.footer-column:nth-child(4) {
    animation-delay: 0.4s;
}

.footer-column:nth-child(5) {
    animation-delay: 0.5s;
}

.footer-column:nth-child(6) {
    animation-delay: 0.6s;
}

.footer-column:nth-child(7) {
    animation-delay: 0.7s;
}

.footer-column:nth-child(8) {
    animation-delay: 0.8s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Premium Glow Effect on Footer */
.global-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--accent-glow) 50%,
            transparent 100%);
    opacity: 0.5;
    box-shadow: 0 0 20px var(--glow-md);
}

/* === Mobile Overrides (Moved for Cascade) === */
@media (max-width: 900px) {

    .grid-2,
    .grid-3,
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
}

/* =========================================================
   RESPONSIVE TUNE-UP (Added)
   Safe global improvements without breaking existing design
   ========================================================= */

/* Media elements should never overflow the viewport */
img, video, canvas, svg {
    max-width: 100%;
    height: auto;
}

iframe, embed, object {
    max-width: 100%;
}

/* Long code/text should not create horizontal scroll on the page */
pre, code {
    max-width: 100%;
}

pre {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Tables on small screens: scroll instead of breaking layout */
table {
    width: 100%;
}

@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Improve readability + spacing on small screens */
@media (max-width: 768px) {
    section {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .card {
        border-radius: 14px;
    }
}

/* Disable parallax fixed background on mobile (performance) */
@media (max-width: 900px) {
    .hero {
        background-attachment: scroll;
    }
}

/* Ensure dropdown menus and long nav labels wrap nicely on small screens */
@media (max-width: 900px) {
    .nav-links a {
        white-space: normal;
        line-height: 1.4;
    }
}

/* Small phone tweaks */
@media (max-width: 480px) {
    .hero {
        min-height: auto;
        padding-top: 9rem;
    }

    .hero-ctas a {
        width: 100%;
        text-align: center;
    }
}

/* ===========================
   NAVBAR TEXT VISIBILITY FIX
   Fix: link text disappearing after click/hover (e.g., ABOUT US)
   Safe override for all states.
   =========================== */

/* Desktop / default */
.main-nav .nav-links a,
.main-nav .nav-links a:visited {
  color: #111111;
  -webkit-text-fill-color: currentColor;
}

.main-nav .nav-links a:hover,
.main-nav .nav-links a:active,
.main-nav .nav-links a:focus,
.main-nav .nav-links a:focus-visible,
.main-nav .nav-links a.active,
.main-nav .nav-links li.active > a {
  color: var(--accent-primary);
  -webkit-text-fill-color: currentColor;
}

/* Mobile menu (dark background) */
@media (max-width: 900px) {
  .main-nav .nav-links a,
  .main-nav .nav-links a:visited {
    color: #ffffff;
    -webkit-text-fill-color: currentColor;
  }

  .main-nav .nav-links a:hover,
  .main-nav .nav-links a:active,
  .main-nav .nav-links a:focus,
  .main-nav .nav-links a:focus-visible,
  .main-nav .nav-links a.active,
  .main-nav .nav-links li.active > a {
    color: var(--accent-primary);
    -webkit-text-fill-color: currentColor;
  }
}
/* About Us button text red (all secondary buttons) */
.btn-secondary,
.btn-secondary:visited,
.btn-secondary:hover,
.btn-secondary:active,
.btn-secondary:focus {
  color: var(--accent, #d10b2f) !important;
  -webkit-text-fill-color: currentColor;
}