@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-main: #0a0a0a;
    --bg-secondary: #121212;
    --grad-dark: #3E0A0F;
    --grad-light: #7B0D12;
    --neon-red: #d11a2a;
    /* Muted red */
    --text-main: #ffffff;
    --text-muted: #b3b3b3;
    --glass-bg: rgba(20, 20, 25, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

html {
    scroll-behavior: smooth;
}

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

/* Red and White Gradient Animation for Main Texts */
.gradient-text {
    background: linear-gradient(45deg, #ffffff, #ffffff, #ff4b4b, #ffffff, #ffffff, #ff4b4b);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 4s ease infinite;
    display: inline-block;
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* --- Professional Loader Styles --- */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.8s;
}

.loader-wrapper.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.loader-logo-container {
    position: relative;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.loader-logo {
    width: 70%;
    height: 70%;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
    animation: logo-float 3s ease-in-out infinite;
    z-index: 2;
}

.loader-shimmer {
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.2),
        rgba(255, 255, 255, 0.05),
        transparent
    );
    animation: shimmer-sweep 2s infinite;
    z-index: 3;
}

.loader-progress-wrap {
    width: 140px;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.loader-progress {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--neon-red), transparent);
    animation: progress-slide 1.5s infinite;
}

.loader-text {
    font-size: 0.7rem;
    letter-spacing: 6px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 1.2rem;
    animation: text-glow 2s ease-in-out infinite;
}

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

@keyframes shimmer-sweep {
    0% { left: -150%; }
    100% { left: 150%; }
}

@keyframes progress-slide {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes text-glow {
    0%, 100% { color: rgba(255, 255, 255, 0.3); text-shadow: none; }
    50% { color: rgba(255, 255, 255, 0.8); text-shadow: 0 0 10px rgba(255, 255, 255, 0.2); }
}

/* Background Elements */
.site-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-main);
    /* Graphical engineering background: dots and subtle grid */
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -3;
}

.particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    /* Subtler glow */
    z-index: -1;
    pointer-events: none;
    animation: drift 20s infinite alternate ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    top: -10%;
    left: -10%;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(209, 26, 42, 0.2);
    /* Subtle red */
    bottom: -10%;
    right: -5%;
    animation-delay: -5s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.1);
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(50px, -50px) scale(1.1);
    }

    100% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3%;
    z-index: 1000;
    transition: 0.4s ease-in-out;
}

.glass-nav {
    background: rgba(10, 10, 12, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    will-change: padding, background;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo-img {
    height: 45px;
    /* Increased size */
    object-fit: contain;
}

.logo-text-wrap {
    display: flex;
    flex-direction: column;
}

.logo-text-wrap h2 {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: white;
    line-height: 1.1;
    margin: 0;
}

.initiative-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: white;
    transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
}

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

.menu-icon {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-main);
    transition: 0.3s;
}

.menu-icon:hover {
    color: white;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(25px);
    z-index: 2000;
    padding: 6rem 3rem;
    transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu.active {
    right: 0;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.8);
}

.close-menu {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2rem;
    cursor: pointer;
    transition: 0.3s;
    color: var(--text-muted);
}

.close-menu:hover {
    color: white;
    transform: rotate(90deg);
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu li {
    margin-bottom: 2rem;
}

.mobile-menu a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: 0.3s;
}

.mobile-menu a:hover {
    color: white;
    letter-spacing: 2px;
}

/* Hero Slider Overhaul */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background: #000;
}

#hero-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    /* Behind everything but above site-bg */
    pointer-events: none;
}

.slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

/* Bottom dark fade - blends into background */
.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35%;
    background: linear-gradient(to top, #000000 0%, rgba(0, 0, 0, 0.7) 40%, transparent 100%);
    z-index: 10;
    pointer-events: none;
}



.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    will-change: opacity, transform;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 3;
}

.slide.outgoing {
    opacity: 1;
    z-index: 2;
    transition: none !important;
}

.academic-hero {
    width: 100%;
    height: 400px;
    margin-top: 85px; /* Offset for the fixed navbar */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

@media (max-width: 1024px) {
    .academic-hero {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .academic-hero {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .academic-hero {
        height: 220px;
    }
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: none;
    opacity: 1;
}

.slide.active .slide-bg {
    opacity: 1;
    transform: none;
    animation: none;
}

.slide-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Darker tint with pronounced darkening at the sides */
    background: linear-gradient(90deg,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0.3) 30%,
            rgba(0, 0, 0, 0.3) 70%,
            rgba(0, 0, 0, 0.9) 100%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.1), transparent 40%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    align-items: center;
    padding: 0 6%;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    z-index: 10;
}

.hero-content h1 {
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero-content p {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: #ffffff;
    margin-bottom: 2rem;
    max-width: 550px;
    border-left: 3px solid var(--neon-red);
    padding-left: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Glass Buttons */
.glass-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.primary-btn:hover {
    transform: translateY(-5px);
    background: white;
    color: var(--bg-main);
    border-color: white;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* Text Animations for Slider */
.animate-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform, opacity;
}

.slide.active .animate-text {
    opacity: 1;
    transform: translateY(0);
}

.slide.active .animate-text:nth-child(1) {
    transition-delay: 0.2s;
}

.slide.active .animate-text:nth-child(2) {
    transition-delay: 0.4s;
}

.slide.active .animate-text:nth-child(3) {
    transition-delay: 0.6s;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 5%;
    right: 5%;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider-controls button {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
}

.slider-controls button:hover {
    color: var(--neon-red);
    transform: scale(1.2);
}

.dots {
    display: flex;
    gap: 0.8rem;
}

.dot {
    width: 30px;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: 0.4s;
}

.dot.active {
    width: 50px;
    background: white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Support Hub / Features */
.features {
    padding: 8rem 5%;
    position: relative;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 10, 0.8) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    max-width: 1300px;
    margin: 0 auto;
}

/* Glass Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    will-change: transform, border-color, box-shadow;
}

.card-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(209, 26, 42, 0.15) 0%, transparent 70%);
    top: -75px;
    right: -75px;
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0;
    transition: 0.6s;
    z-index: 0;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.glass-card:hover .card-glow {
    opacity: 1;
}

.card-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
    will-change: transform, background;
}

.card-icon i {
    font-size: 2.2rem;
    color: white;
    transition: 0.4s;
}

.glass-card:hover .card-icon {
    transform: rotateY(180deg) scale(1.1);
    background: white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.glass-card:hover .card-icon i {
    color: var(--bg-main);
    transform: rotateY(-180deg);
}

.card-content {
    position: relative;
    z-index: 1;
}

.card-content h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: white;
}

.card-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.glass-card:hover .card-link {
    gap: 1rem;
    color: var(--neon-red);
}

/* Footer */
.glass-footer {
    background: rgba(5, 5, 5, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6rem 5% 2rem;
    position: relative;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.footer-col ul {
    list-style: none;
}

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

.footer-col ul a {
    color: var(--text-muted);
    transition: 0.3s;
}

.footer-col ul a:hover {
    color: white;
    padding-left: 5px;
}

.socials {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: 0.4s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    background: white;
    border-color: white;
    color: var(--bg-main);
    transform: translateY(-8px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- New Sections Common --- */
.section-tag {
    color: var(--neon-red);
    font-size: 0.9rem;
    letter-spacing: 3px;
    font-weight: 600;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.red-line-divider {
    width: 60px;
    height: 3px;
    background: var(--neon-red);
    margin: 1.5rem auto 0;
}

/* --- Why This Platform --- */
.why-platform {
    position: relative;
    padding: 6rem 5%;
    background: transparent;
    /* Changed to transparent to reveal particles */
    overflow: hidden;
}

.why-platform::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(209, 26, 42, 0.03) 0%, transparent 50%, rgba(255, 255, 255, 0.02) 100%);
    background-size: 200% 200%;
    animation: slowGradient 15s ease infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes slowGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.why-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.why-card {
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--neon-red);
    transform: scaleY(0);
    transition: 0.5s;
    transform-origin: bottom;
}

.why-card:hover {
    background: #161616;
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.why-card:hover::before {
    transform: scaleY(1);
}

.why-num {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(209, 26, 42, 0.3);
    line-height: 1;
    transition: 0.5s;
}

.why-card:hover .why-num {
    color: var(--neon-red);
    transform: scale(1.1);
}

.why-content h3 {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 0.8rem;
    transition: 0.3s;
}

.why-card:hover .why-content h3 {
    color: var(--neon-red);
}

.why-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Live Feed --- */
.live-feed {
    position: relative;
    padding: 6rem 5%;
    background: transparent;
    /* Changed to transparent to reveal particles */
    overflow: hidden;
}

.live-feed::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 75, 75, 0.05) 0%, transparent 40%);
    animation: rotateGlow 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.live-feed::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.01) 10px, rgba(255, 255, 255, 0.01) 20px);
    pointer-events: none;
    z-index: 0;
}

@keyframes rotateGlow {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.1);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* Scrollable wrapper: shows ~5 items, rest scroll inside */
.feed-scroll-wrapper {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    /* Height for ~5 items (each ~110px + 16px gap) */
    max-height: 620px;
    overflow-y: auto;
    border-radius: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--neon-red) rgba(255,255,255,0.05);
    scroll-behavior: smooth;
}

.feed-scroll-wrapper::-webkit-scrollbar {
    width: 4px;
}
.feed-scroll-wrapper::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.03);
    border-radius: 4px;
}
.feed-scroll-wrapper::-webkit-scrollbar-thumb {
    background: var(--neon-red);
    border-radius: 4px;
}

.feed-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    z-index: 1;
    padding: 4px; /* prevent clipping of shadows */
}

.feed-item {
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--neon-red);
    border-radius: 8px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.2s ease;
}

.fade-in-feed {
    animation: fadeInFeed 0.5s ease forwards;
    opacity: 0;
}

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

.feed-item:hover {
    background: #1a1a1a;
    transform: translateX(10px) scale(1.01);
    box-shadow: -5px 10px 20px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
}

.feed-item--extra {
    opacity: 0.7;
    filter: grayscale(0.2);
}

.feed-item--extra:hover {
    opacity: 1;
    filter: grayscale(0);
}

.feed-dot {
    width: 8px;
    height: 8px;
    background: var(--neon-red);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-red);
    flex-shrink: 0;
    transition: 0.4s;
}

.feed-item:hover .feed-dot {
    box-shadow: 0 0 20px var(--neon-red);
    transform: scale(1.5);
}

.feed-content {
    flex-grow: 1;
}

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

.update-badge {
    background: rgba(209, 26, 42, 0.2);
    color: var(--neon-red);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--neon-red);
    box-shadow: 0 0 10px rgba(209, 26, 42, 0.3);
}

.feed-header h3 {
    font-size: 1.1rem;
    color: white;
    font-weight: 600;
    transition: 0.3s;
}

.feed-item:hover .feed-header h3 {
    color: var(--neon-red);
}

.feed-time {
    font-family: monospace;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.feed-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Our Missions --- */
.our-missions {
    position: relative;
    padding: 10rem 5%;
    background: #000;
}

.missions-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    /* Increased opacity */
    z-index: 0;
}

.missions-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Multi-directional gradient to fade completely to black at all edges */
    background: radial-gradient(circle at center, transparent 20%, #000 85%), linear-gradient(0deg, #000 0%, transparent 20%, transparent 80%, #000 100%);
    z-index: 1;
}

.our-missions .container {
    position: relative;
    z-index: 2;
}

.missions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.mission-card {
    background: rgba(13, 17, 21, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3rem 2rem;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    will-change: transform, background, border-color;
}

.mission-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(19, 24, 29, 0.95);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), inset 0 0 15px rgba(209, 26, 42, 0.1);
}

.mission-icon {
    font-size: 2.5rem;
    color: var(--neon-red);
    margin-bottom: 1.5rem;
    transition: 0.3s;
}

.mission-card:hover .mission-icon {
    transform: scale(1.2) rotate(5deg);
    text-shadow: 0 0 15px var(--neon-red);
}

.mission-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 800;
    letter-spacing: 1px;
}

.mission-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleUp {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 4rem;
    }

    .hero-overlay {
        padding: 0 5%;
    }
}

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

    .menu-icon {
        display: block;
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(10, 10, 12, 0.8) 0%, rgba(10, 10, 10, 0.9) 100%);
        text-align: center;
        justify-content: center;
    }

    .hero-content p {
        border-left: none;
        padding: 0;
        margin-left: auto;
        margin-right: auto;
    }

    .slider-controls {
        right: 50%;
        transform: translateX(50%);
        bottom: 3%;
    }

    .section-title {
        font-size: 2.8rem;
    }

    .footer-container {
        gap: 2.5rem;
    }
}