/* ===================================================== */
/* BASE & GLOBAL PAGE STYLES */
/* ===================================================== */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    position: relative;
    padding-bottom: 100px;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url('../images/background-alt.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.25;
    z-index: -1;
}

#main-content-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    padding: 100px 0 50px;
    box-sizing: border-box;
}

/* ===================================================== */
/* HERO BANNER */
/* ===================================================== */
.hero-banner {
    position: relative;
    width: 100%;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.hero-banner::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('../images/banner.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    z-index: -1;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%);
}

.hero-content {
    margin-bottom: 40px;
}

.hero-title {
    margin: 0 0 10px 0;
    padding: 0;
}

.h2-computing {
    font-family: 'Quantico', sans-serif;
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 700;
    color: #FFB841;
    font-style: italic;
    text-transform: none;
    letter-spacing: 2px;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.8);
    display: block;
    line-height: 1.1;
}

.hero-subtitle {
    margin: 10px 0;
    padding: 0;
}

.at-asrjc {
    font-family: 'Quantico', sans-serif;
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 700;
    color: white;
    font-style: italic;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.8);
    display: block;
    line-height: 1.1;
}

.hero-code {
    font-size: clamp(1.2rem, 4vw, 2.2rem);
    font-family: 'Consolas', monospace;
    color: #00D9FF;
    font-weight: 600;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
    margin: 20px 0 0 0;
    letter-spacing: 1px;
}

.hero-tagline {
    position: relative;
    width: 100%;
    margin: 30px 0;
    background: radial-gradient(ellipse at center,
        rgba(192, 192, 192, 0.7) 0%,
        rgba(192, 192, 192, 0.5) 30%,
        rgba(192, 192, 192, 0.3) 60%,
        rgba(0, 0, 0, 0.1) 100%
    );
    padding: 30px 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    box-sizing: border-box;
    overflow: visible;
}

/* Silver radial outward effect */
.hero-tagline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle,
        rgba(192, 192, 192, 0.8) 0%,
        rgba(192, 192, 192, 0.4) 30%,
        rgba(192, 192, 192, 0.1) 60%,
        transparent 100%
    );
    transform: translate(-50%, -50%);
    animation: radialOutward 1.5s ease-out forwards;
    z-index: -1;
}

@keyframes radialOutward {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 300%;
        height: 300%;
        opacity: 0;
    }
}

.hero-mission-heading {
    font-family: 'Kaushan Script', cursive;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    color: #FFB841;
    margin: 0 0 25px 0;
    text-align: center;
    line-height: 1.2;
    width: 100%;
    position: relative;
    z-index: 2;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.8);
}

.hero-mission-description {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    font-weight: 400;
    color: white;
    margin: 0;
    text-align: center;
    line-height: 1.5;
    width: 100%;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-mission-description .highlight-orange {
    font-weight: 700;
    color: #FF8C00;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-mission-description .highlight-lime {
    font-weight: 700;
    color: #32CD32;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-divider {
    width: 2px;
    height: 120px;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(255, 184, 65, 0.3) 20%,
        rgba(255, 184, 65, 0.8) 50%,
        rgba(255, 184, 65, 0.3) 80%,
        transparent 100%);
    margin: 0 20px;
    border-radius: 1px;
}

/* Gradient text animation effect */
.hero-tagline .gold-char {
    display: inline-block;
    opacity: 0;
    transform: translateX(-50px);
    font-family: 'Quantico', sans-serif;
    background: linear-gradient(
        90deg,
        #FFB841 0%,
        #FFD700 25%,
        #FFED4E 50%,
        #FFD700 75%,
        #FFB841 100%
    );
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.8))
            drop-shadow(0 0 15px rgba(255, 215, 0, 0.6));
    position: relative;
    padding: 0 1px;
    margin: 0;
    overflow: visible;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform-style: preserve-3d;
    letter-spacing: normal;
    word-spacing: normal;
}

/* Text animation for scroll trigger - fade and slide from left */
.hero-tagline.fade-up-element .gold-char {
    animation: textFadeSlideIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Text fade and slide in from left animation */
@keyframes textFadeSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-50px);
        background-position: 0% 50%;
    }
    100% {
        opacity: 1;
        transform: translateX(0);
        background-position: 100% 50%;
    }
}
}

/* ===================================================== */
/* TYPING TEXT (Legacy - kept for compatibility) */
/* ===================================================== */
.typing-container { font-size: 1.5rem; color: #ccc; margin-bottom: 0; text-align: center; }
.typing-container h1 { color: white; margin-bottom: 5px; }
.orange-text { color: orange; }

.cursor {
    display: inline-block; width: 8px; height: 1.2em;
    background-color: white; animation: blink 0.8s infinite;
    vertical-align: middle; margin-left: 2px;
}
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0;} }

/* ===================================================== */
/* FADE-UP ANIMATION */
/* ===================================================== */
.fade-up-element {
    opacity: 0;
    transform: translate3d(0, 80px, 0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up-element.in-view {
    opacity: 1 !important;
    transform: translate3d(0, 0, 0) !important;
}

/* Special slide-in animation for tagline */
#taglineContainer {
    opacity: 0;
    transform: translate3d(100px, 0, 0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

#taglineContainer.in-view {
    opacity: 1 !important;
    transform: translate3d(0, 0, 0) !important;
}

/* ===================================================== */
/* QUICK LINKS GRADIENT BARS */
/* ===================================================== */
.quick-links-section {
    width: 90%;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.quick-links-container {
    display: flex;
    gap: 25px;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
}

.gradient-bar {
    flex: 1;
    min-width: 280px;
    max-width: 380px;
    height: 140px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    padding: 30px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* 3D protruded effect */
    box-shadow:
        0 12px 0 rgba(0, 0, 0, 0.3),
        0 14px 25px rgba(0, 0, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* Ensure gradient bars respect fade-up animation but maintain their default transform */
.gradient-bar.fade-up-element {
    opacity: 0;
    transform: translate3d(0, 80px, 0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out !important;
}

.gradient-bar.fade-up-element.in-view {
    opacity: 1 !important;
    transform: translate3d(0, -2px, 0) !important;
}

/* About Bar - Darker Orange Gradient */
.about-bar {
    background: linear-gradient(135deg, #FF8C00 0%, #FF6B00 50%, #E55100 100%);
}

/* Opportunities Bar - Cyan/Blue Gradient */
.opportunities-bar {
    background: linear-gradient(135deg, #00D9FF 0%, #0099CC 50%, #006699 100%);
}

/* Resources Bar - Lime/Green Gradient */
.resources-bar {
    background: linear-gradient(135deg, #32CD32 0%, #228B22 50%, #006400 100%);
}

/* Animated gradient overlay */
.gradient-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.gradient-bar:hover::before {
    left: 100%;
}

/* Content styling */
.bar-content {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.bar-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.bar-icon svg {
    color: white;
    transition: transform 0.3s ease;
}

.bar-text {
    flex-grow: 1;
}

.bar-text h3 {
    font-family: 'Quantico', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin: 0 0 5px 0;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
}

.bar-text p {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Hover effects with gradual buildup */
.gradient-bar {
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                height 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                padding 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gradient-bar:hover {
    transform: translateY(-8px) scale(1.06) scaleX(1.01);
    /* Enhanced 3D pop-up effect with aurora */
    box-shadow:
        0 20px 0 rgba(0, 0, 0, 0.4),
        0 25px 40px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(255, 184, 65, 0.8),
        0 0 100px rgba(255, 140, 0, 0.6),
        0 0 150px rgba(255, 215, 0, 0.4),
        inset 0 3px 0 rgba(255, 255, 255, 0.5),
        inset 0 -3px 0 rgba(0, 0, 0, 0.4);
    /* Expand the box */
    width: calc(100% + 15px);
    height: 150px;
    padding: 33px;
}

.bar-icon {
    transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                background 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bar-icon svg {
    transition: color 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gradient-bar:hover .bar-icon {
    transform: scale(1.12);
    background: rgba(255, 215, 0, 0.25);
    border-color: rgba(255, 215, 0, 0.5);
}

.gradient-bar:hover .bar-icon svg {
    transform: scale(1);
    color: #FFD700;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
}

.bar-text h3 {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gradient-bar:hover .bar-text h3 {
    transform: translateX(5px);
}

/* Enhanced aurora effects for each button type */
.about-bar:hover {
    box-shadow:
        0 20px 0 rgba(139, 69, 19, 0.5),
        0 25px 40px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(255, 140, 0, 1),
        0 0 120px rgba(255, 184, 65, 0.8),
        0 0 180px rgba(255, 215, 0, 0.6),
        inset 0 3px 0 rgba(255, 255, 255, 0.5),
        inset 0 -3px 0 rgba(0, 0, 0, 0.4);
}

.opportunities-bar:hover {
    box-shadow:
        0 20px 0 rgba(0, 51, 102, 0.5),
        0 25px 40px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(0, 153, 204, 1),
        0 0 120px rgba(0, 217, 255, 0.8),
        0 0 180px rgba(255, 215, 0, 0.6),
        inset 0 3px 0 rgba(255, 255, 255, 0.5),
        inset 0 -3px 0 rgba(0, 0, 0, 0.4);
}

.resources-bar:hover {
    box-shadow:
        0 20px 0 rgba(0, 64, 0, 0.5),
        0 25px 40px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(34, 139, 34, 1),
        0 0 120px rgba(50, 205, 50, 0.8),
        0 0 180px rgba(255, 215, 0, 0.6),
        inset 0 3px 0 rgba(255, 255, 255, 0.5),
        inset 0 -3px 0 rgba(0, 0, 0, 0.4);
}

/* Enhanced pulse animation on hover */
@keyframes pulse {
    0% {
        box-shadow:
            0 20px 0 rgba(139, 69, 19, 0.5),
            0 25px 40px rgba(0, 0, 0, 0.5),
            0 0 60px rgba(255, 184, 65, 0.8),
            0 0 100px rgba(255, 140, 0, 0.6),
            0 0 150px rgba(255, 215, 0, 0.4),
            inset 0 3px 0 rgba(255, 255, 255, 0.5),
            inset 0 -3px 0 rgba(0, 0, 0, 0.4);
    }
    50% {
        box-shadow:
            0 20px 0 rgba(139, 69, 19, 0.5),
            0 25px 40px rgba(0, 0, 0, 0.5),
            0 0 80px rgba(255, 184, 65, 1),
            0 0 120px rgba(255, 140, 0, 0.8),
            0 0 180px rgba(255, 215, 0, 0.6),
            inset 0 3px 0 rgba(255, 255, 255, 0.5),
            inset 0 -3px 0 rgba(0, 0, 0, 0.4);
    }
    100% {
        box-shadow:
            0 20px 0 rgba(139, 69, 19, 0.5),
            0 25px 40px rgba(0, 0, 0, 0.5),
            0 0 60px rgba(255, 184, 65, 0.8),
            0 0 100px rgba(255, 140, 0, 0.6),
            0 0 150px rgba(255, 215, 0, 0.4),
            inset 0 3px 0 rgba(255, 255, 255, 0.5),
            inset 0 -3px 0 rgba(0, 0, 0, 0.4);
    }
}

.about-bar:hover {
    animation: pulse 2s infinite;
}

/* Mobile responsiveness */
@media (max-width: 767px) {
    .quick-links-section {
        width: 95%;
        margin: 40px auto;
        padding: 0 15px;
    }

    .quick-links-container {
        flex-direction: column;
        gap: 20px;
    }

    .gradient-bar {
        max-width: none;
        height: 120px;
        padding: 25px;
    }

    .bar-content {
        gap: 15px;
    }

    .bar-icon {
        width: 50px;
        height: 50px;
    }

    .bar-text h3 {
        font-size: 1.5rem;
    }

    .bar-text p {
        font-size: 0.9rem;
    }
}

/* Medium screens - keep in same row but adjust sizing */
@media (max-width: 1100px) and (min-width: 768px) {
    .gradient-bar {
        min-width: 240px;
        padding: 25px;
    }

    .quick-links-container {
        gap: 20px;
    }

    .bar-text h3 {
        font-size: 1.6rem;
    }

    .bar-text p {
        font-size: 0.95rem;
    }
}

/* ===================================================== */
/* CONTENT SECTIONS (Video & Highlights) */
/* ===================================================== */
.video-container { width: 95%; max-width: 1400px; padding: 20px; margin: 20px 0 60px 0; text-align: center; color: white; }
.video-caption {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 600;
    color: white;
    text-align: center;
    margin: 30px 0 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transform: translateX(-50px);
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

.video-container.fade-up-element.in-view .video-caption {
    opacity: 1;
    transform: translateX(0);
}
.video-wrapper { position: relative; width: 100%; padding-top: 56.25%; margin-top: 20px; overflow: hidden; border-radius: 15px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8); background: #000; }
.video-wrapper iframe,
.video-wrapper video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.content-section {
    width: 90%;
    max-width: 1000px;
    margin: 50px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}
.section-title {
    font-family: 'Quantico', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: #FFB841;
    margin-bottom: 40px;
    text-align: center;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
    font-style: italic;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.highlight-card {
    position: relative; /* Essential for the ::before element */
    background-color: rgba(0, 0, 0, 0.6); /* Darker overlay for text contrast */
    border: 1px solid rgba(255, 255, 255, 0.1);

    border-radius: 12px;
    padding: 40px 20px;
    color: white;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.3s;
    overflow: hidden; /* To contain the pseudo-element */
}

/* New: Background Image and Blur */
.highlight-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1; /* Behind the content */
    opacity: 1; /* Fully opaque for better readability */
    transition: opacity 0.3s ease, transform 0.3s ease;
    will-change: transform, opacity;

    /* Set background properties based on the data attribute */
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;

    /* No blur filter */
    pointer-events: none; /* Ignore clicks */
}

/* Enhanced Content Wrapper with better text shadows */
.highlight-card h3, .highlight-card p {
    position: relative;
    z-index: 2; /* Over the ::before element */
    text-shadow: 4px 4px 12px rgba(0, 0, 0, 1),
                 2px 2px 8px rgba(0, 0, 0, 1),
                 1px 1px 4px rgba(0, 0, 0, 1);
    transition: all 0.3s ease;
}

.highlight-card h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #E0F2F1;
    line-height: 1.3;
}

.highlight-card p {
    font-size: 1.3rem;
    font-weight: 700;
    color: #FFB841;
    line-height: 1.5;
    font-style: normal;
    text-shadow: 4px 4px 12px rgba(0, 0, 0, 1),
                 2px 2px 8px rgba(0, 0, 0, 1),
                 1px 1px 4px rgba(0, 0, 0, 1);
}

/* Style specifically for "click for details" text */
.highlight-card .click-details {
    display: block;
    font-size: 0.9rem;
    font-weight: 300;
    color: #FFFFFF;
    opacity: 0.8;
    margin-top: 8px;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
}

/* Enhanced Hover effect - removes blur and enhances text */
.highlight-card:hover::before {
    transform: scale(1.08); /* More prominent zoom effect */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.highlight-card:hover h3 {
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 1),
                 0 0 30px rgba(255, 215, 0, 0.8),
                 2px 2px 6px rgba(0, 0, 0, 1);
    transform: translateY(-2px);
    color: #FFED4E;
}

.highlight-card:hover p {
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 1),
                 0 0 20px rgba(255, 255, 255, 0.5),
                 1px 1px 4px rgba(0, 0, 0, 1);
    transform: translateY(-2px);
    color: #FFFFFF;
}

/* Card transform animation with diffuse white glow */
.highlight-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6),
                0 0 60px rgba(255, 215, 0, 0.4),
                0 0 80px rgba(255, 255, 255, 0.6),
                0 0 100px rgba(255, 255, 255, 0.4),
                0 0 120px rgba(255, 255, 255, 0.2),
                0 0 20px rgba(255, 255, 255, 0.3),
                inset 0 0 20px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Imageless Cards - Premium black card with dark silver gradient */
.highlight-card.imageless-card {
    background: linear-gradient(135deg,
        #000000 0%,
        #1a1a1a 15%,
        #2d2d2d 30%,
        #4a4a4a 45%,
        #5a5a5a 60%,
        #4a4a4a 75%,
        #2d2d2d 90%,
        #0a0a0a 100%);
    border: 2px solid rgba(192, 192, 192, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7),
                inset 0 2px 0 rgba(255, 255, 255, 0.15),
                inset 0 -2px 0 rgba(0, 0, 0, 0.8),
                0 0 30px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

/* Enhanced texture overlay for premium metal feel */
.highlight-card.imageless-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(45deg, transparent 45%, rgba(255, 255, 255, 0.08) 50%, transparent 55%),
        linear-gradient(-45deg, transparent 45%, rgba(255, 255, 255, 0.06) 50%, transparent 55%),
        linear-gradient(90deg, transparent 48%, rgba(192, 192, 192, 0.04) 50%, transparent 52%);
    background-size: 6px 6px, 8px 8px, 12px 12px;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: overlay;
}

/* Elegant silver hover effect with diffuse white glow */
.highlight-card.imageless-card:hover {
    background: linear-gradient(135deg,
        #2d2d2d 0%,
        #4a4a4a 20%,
        #6a6a6a 35%,
        #808080 50%,
        #969696 65%,
        #808080 80%,
        #6a6a6a 95%,
        #4a4a4a 100%);
    border: 2px solid rgba(192, 192, 192, 0.8);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8),
                0 0 60px rgba(255, 255, 255, 0.6),
                0 0 80px rgba(255, 255, 255, 0.4),
                0 0 100px rgba(255, 255, 255, 0.2),
                0 0 40px rgba(192, 192, 192, 0.4),
                inset 0 2px 0 rgba(255, 255, 255, 0.3),
                inset 0 -2px 0 rgba(0, 0, 0, 0.4);
    transform: translateY(-8px) scale(1.02);
}

/* Enhanced glow effect on hover */
.highlight-card.imageless-card:hover::after {
    background:
        linear-gradient(45deg, transparent 48%, rgba(192, 192, 192, 0.1) 50%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(192, 192, 192, 0.1) 50%, transparent 52%);
    background-size: 6px 6px;
}

/* Silver tint overlay on hover */
.highlight-card.imageless-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(192, 192, 192, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 2;
}

.highlight-card.imageless-card:hover::before {
    opacity: 1;
}

/* ===================================================== */
/* MODAL / POPUP STYLES */
/* ===================================================== */

/* Overlay */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 200; 
    display: flex; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }

/* Modal Content Box */
.modal-content {
    width: 90%;
    max-width: 500px;

    /* Layout for Scrolling Text */
    max-height: 85vh;
    display: flex;
    flex-direction: column;

    background-color: rgba(40, 40, 40, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    position: relative;
    color: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    transform-origin: top left;
}

/* Image Wrapper - Fixed Height/Cover Mode */
.modal-image-wrapper {
    width: 100%;
    height: 270px;
    background-color: #333;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    display: flex; justify-content: center; align-items: center;
    position: relative;
    flex-shrink: 0;
}
.modal-image-wrapper img {
    width: 100%; height: 100%; 
    object-fit: cover; 
    transition: opacity 0.2s ease-in-out;
}

/* Text Wrapper (Scrollable) */
.modal-text-wrapper {
    overflow-y: auto; 
    flex-grow: 1;     
    padding-right: 10px; 
}
.modal-text-wrapper::-webkit-scrollbar { width: 6px; }
.modal-text-wrapper::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.1); border-radius: 3px; }
.modal-text-wrapper::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.3); border-radius: 3px; }
.modal-text-wrapper::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.5); }

/* Modal Text Formatting */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 10px;
}
.modal-content h3 { margin: 0; font-size: 1.8rem; flex-grow: 1; }
.modal-content p, .modal-content div {
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 16px;
}

/* Better paragraph formatting for modal descriptions */
#modalDesc {
    text-align: left;
    line-height: 1.7;
    font-size: 1rem;
}

#modalDesc p {
    margin-bottom: 16px;
    text-indent: 0;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#modalDesc p:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

#modalDesc br {
    display: block;
    margin: 12px 0;
    content: "";
}

/* Achievement names in descriptions - bold and gold */
#modalDesc b,
#modalDesc strong {
    color: #FFB841;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* Style for team names and specific achievement mentions */
#modalDesc .team-name {
    color: #FFD700;
    font-weight: 700;
    font-size: 1.1em;
    display: block;
    margin: 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Achievement highlights */
#modalDesc .achievement-highlight {
    color: #FFB841;
    font-weight: 600;
    font-style: italic;
}

/* External Link Button */
.external-link-btn {
    display: inline-block;
    background-color: orange;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color 0.3s;
    align-self: center;
}
.external-link-btn:hover { background-color: #e69500; }

/* Close Button */
.modal-close-btn {
    position: absolute; top: 15px; right: 20px;
    font-size: 2.5rem; color: white; cursor: pointer; line-height: 1; z-index: 5;
    width: 50px; height: 50px;
    display: flex; justify-content: center; align-items: center;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-weight: bold;
}
.modal-close-btn:hover {
    color: orange;
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 165, 0, 0.5);
}

/* Bottom Close Button */
.modal-close-bottom {
    background: #0066cc;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 20px;
    width: 100%;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.modal-close-bottom:hover {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.modal-close-bottom:active {
    transform: translateY(0);
}

/* Carousel Buttons */
.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5); color: white;
    border: none; font-size: 1.5rem; padding: 10px;
    cursor: pointer; z-index: 10; border-radius: 50%;
    width: 40px; height: 40px;
    display: flex; justify-content: center; align-items: center;
    transition: background-color 0.3s;
}
.carousel-btn:hover { background-color: rgba(255, 165, 0, 0.8); }
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }


/* ===================================================== */
/* SCROLL ARROW & MOBILE MENU */
/* ===================================================== */
.scroll-down-wrapper {
    position: fixed; bottom: 30px; left: 50%;
    transform: translateX(-50%);
    z-index: 90; opacity: 1; transition: opacity 0.3s ease-out; cursor: pointer;
}
.scroll-arrow {
    width: 20px; height: 20px;
    border-right: 4px solid white; border-bottom: 4px solid white;
    transform: rotate(45deg); animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(45deg); }
    40% { transform: translateY(-10px) rotate(45deg); }
    60% { transform: translateY(-5px) rotate(45deg); }
}



/* ===================================================== */
/* MEDIA QUERIES */
/* ===================================================== */
@media (min-width: 768px) {
    .nav-button { display: none; }
    .desktop-nav-links { display: flex; }
    .mobile-menu { display: none !important; }
        #main-content-wrapper { padding-top: 0; justify-content: flex-start; }
    .typing-container { margin-top: 80px; }
    .hero-banner { min-height: 90vh; }
    .hero-tagline {
        flex-direction: row;
        gap: 10px;
        align-items: center;
        justify-content: center;
    }
    .hero-mission-heading {
        flex: 1;
        text-align: right;
        margin: 0;
    }
    .hero-mission-description {
        flex: 1;
        text-align: left;
        margin: 0;
    }
}
@media (max-width: 767px) {
    .desktop-nav-links { display: none; }
    #main-content-wrapper { padding-top: 0; padding-bottom: 50px; }
    .hero-banner { min-height: 80vh; padding: 0; }
    .hero-tagline {
        margin: 30px auto;
        padding: 25px 20px;
        width: 95%;
        max-width: none;
        overflow: visible;
    }
    .hero-divider {
        width: 60%;
        height: 2px;
        background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 184, 65, 0.3) 20%,
            rgba(255, 184, 65, 0.8) 50%,
            rgba(255, 184, 65, 0.3) 80%,
            transparent 100%);
        margin: 15px 0;
    }
    .hero-tagline p {
        font-size: clamp(1rem, 3.5vw, 1.3rem);
        letter-spacing: 0.5px;
    }
    .video-container {
        width: 95%;
        max-width: none;
        padding: 20px 15px;
        margin: 15px 0 40px 0;
    }
    .highlights-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
        padding: 0 15px;
    }
    .modal-content {
        max-height: 90vh;
        width: 95%;
        padding: 15px;
    }
}

/* ===================================================== */
/* FOOTER STYLES */
/* ===================================================== */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 100;
    background: linear-gradient(90deg,
        #2d2d2d 0%,
        #808080 25%,
        #a8a8a8 50%,
        #808080 75%,
        #2d2d2d 100%);
    background-size: 200% 100%;
    animation: gradientWave 6s linear infinite;
    border-top: 1px solid rgba(192, 192, 192, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 100%, 0 100%);
    display: inline-block;
}

.footer-content {
    font-family: 'Quantico', sans-serif;
    font-size: clamp(0.7rem, 1.8vw, 0.8rem);
    font-weight: 400;
    color: #e0e0e0;
    text-align: left;
    padding: 6px 40px 6px 20px;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.3px;
    line-height: 1.2;
}

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

/* Mobile footer adjustments */
@media (max-width: 767px) {
    .site-footer {
        clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 100%, 0 100%);
    }
    .footer-content {
        text-align: center;
        padding: 5px 25px 5px 15px;
        font-size: 0.7rem;
    }
}
