:root {
    --bg-center: #ffd1dc; 
    --bg-edge: #4a0014; 
    --brand-maroon: #8a0026; 
    --gold: #d4af37; 
    --glass: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(138, 0, 38, 0.15);
    --shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

/* Better touch targets for mobile */
@media (max-width: 768px) {
    a, button, .domain-glass, .carousel-dot, .faq-row {
        min-height: 44px;
        min-width: 44px;
    }
}

body {
    background: radial-gradient(circle at center, var(--bg-center) 0%, #f0aebf 40%, var(--bg-edge) 130%) no-repeat fixed;
    background-size: cover;
    color: var(--brand-maroon);
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
}

/* --- Majestic Floating Intro Overlay --- */
#intro-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Deep black-maroon backdrop */
    backdrop-filter: blur(25px); /* Heavy elite blur */
    z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 1s ease;
}

#vid-container {
    position: relative;
    width: 100%;            /* Use percentage for fluid scaling */
    max-width: 1400px;     /* Professional limit for big screens */
    aspect-ratio: 16 / 9;  /* LOCKED Cinematic Ratio */
    transform: translateY(20px); /* Nudge down for visual balance */
}

@media (max-width: 768px) {
    #vid-container {
        width: 95%;
        transform: translateY(0);
    }
}

/* THE CLIPPER: Absolute edge control */
.video-clipper {
    width: 100%;
    height: 100%;
    border-radius: 40px;   /* Majestic deep curves */
    overflow: hidden;
    border: 2px solid var(--gold);
    box-shadow: 0 40px 100px rgba(0,0,0,0.8);
    background: #000;
    /* The "No Peeking" Hack for Safari/Chrome */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
}

#intro-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fills the 16:9 container perfectly */
    border-radius: 38px;
}

/* --- THE FLOATING CLOSE BUTTON --- */
#close-intro-top {
    position: absolute;
    /* Pushes button ABOVE and to the RIGHT of the video frame */
    top: -25px; 
    right: -25px;
    
    width: 50px;
    height: 50px;
    background: var(--brand-maroon);
    border: 2px solid var(--gold);
    border-radius: 50%;
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10010;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

#close-intro-top:hover {
    background: var(--gold);
    color: var(--brand-maroon);
    transform: scale(1.1) rotate(90deg); /* Majestic spin */
    box-shadow: 0 0 30px var(--gold);
}

#intro-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Fix for Ultrawide or very small height screens */
@media (max-height: 700px) {
    #vid-container {
        width: auto;
        height: 70vh;
    }
}

@media (max-width: 768px) and (max-height: 700px) {
    #vid-container {
        width: 95%;
        height: auto;
    }
}

/* --- Selection Popup Styling --- */
#selection-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    z-index: 9998; /* Just below intro-video, but above everything else */
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.popup-container {
    position: relative;
    max-width: 1100px; /* Adjust based on your image size */
    width: 100%;
    text-align: center;
    animation: popupScale 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--gold);
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.3);
    margin-bottom: 25px;
}

.image-wrapper img {
    width: 100%;
    display: block;
}

/* --- THE HOTSPOT LOGIC --- */
.image-link-hotspot {
    position: absolute;
    /* ADJUST THESE % VALUES TO MATCH THE TEXT IN YOUR IMAGE */
    top: 70%;      
    left: 10%;     
    width: 80%;    
    height: 10%;   
    background: rgba(255, 255, 255, 0); /* Invisible but clickable */
    cursor: pointer;
}

#close-popup {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: 1px solid var(--gold);
    color: var(--gold);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

#close-popup:hover {
    background: var(--gold);
    color: #000;
}

/* Mobile Fix for Popup */
@media (max-width: 768px) {
    .popup-container { 
        width: 95%; 
        max-width: 95%;
    }
    
    .image-wrapper {
        border-radius: 15px;
    }
    
    #close-popup {
        top: -40px;
        right: 5px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* --- Elite Tech Network Background --- */
#particles-js {
    position: fixed;
    width: 100%; height: 100%;
    z-index: -1;
    /* filter: drop-shadow(0 0 3px var(--gold)); */
    filter: drop-shadow(0 0 60px --gold);
}

/* --- STABLE HEADER --- */
header {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    height: 90px; padding: 0 5%;
    background: rgba(112, 0, 32, 0.85); /* royal maroon */
    backdrop-filter: blur(12px);
    backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--glass-border);
    display: flex; justify-content: space-between; align-items: center;
    justify-content: flex-end; 
}

.nav-logo img {
    height: 200px; /* Adjusted to fit header perfectly */
    width: auto;
    transform: translate(-60px, -30px);
    filter: drop-shadow(0 4px 10px rgba(138, 0, 38, 0.35));
}

nav ul { display: flex; list-style: none; gap: 30px; }
nav ul li a { text-decoration: none; color: #ffd1dc; font-size: 0.9rem; font-family: 'Cinzel'; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
nav ul li a:hover { color: var(--gold); }

/* --- HERO SECTION (STABLE) --- */
#home { 
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    padding-top: 100px;
    text-align: center;
}

/* College Header Wrapper */
.college-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    transform: translateY(-40px);
}

.college-logo-img {
    height: 130px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
    transform: translate(30px, 15px);
}

.college-title {
    font-family: 'Cinzel', serif;
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: 10px;
    color: var(--brand-maroon);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    transform: translateX(-60px);
}

.college-text-group {
    display: flex;
    flex-direction: column;   /* ⬅ stacks text vertically */
    align-items: center;      /* center under main title */
    transform: translateY(60px);
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;    /* Bold and Majestic size */
    font-weight: 700;
}

@media (max-width: 768px) {
    .college-text-group {
        transform: translateY(0);
        font-size: 0.8rem;
    }
}

.college-subtitle {
    margin-left: -120px;
}

@media (max-width: 768px) {
    .college-subtitle {
        margin-left: 0;
        font-size: 0.7rem;
        text-align: center;
    }
}

.present-line {
    display: block;
    margin-top: 40px; /* adjust spacing here */
    font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-size: 26px ;
    margin-right: 150px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .present-line {
        margin-top: 20px;
        font-size: 16px;
        margin-right: 0;
    }
}

.hero-title-wrap {
    display: flex; align-items: center; justify-content: center;
    font-family: 'Cinzel'; font-size: clamp(2.5rem, 8vw, 6rem);
    color: var(--brand-maroon); font-weight: 700; margin: 20px 0;
    transform: translateY(-30px);
}

@media (max-width: 768px) {
    .hero-title-wrap {
        font-size: clamp(1.8rem, 6vw, 3rem);
        transform: translateY(0);
        flex-wrap: wrap;
    }
}

.logo-d {
    height: 1.7em;
    width: auto;
    margin: 0 2px;
    vertical-align: middle;
    transform: translateY(-8px);
    filter: drop-shadow(0 6px 12px rgba(138, 0, 38, 0.3));
}

.logo-h{
    height: 100px;
    width: auto;
    margin: 0 2px;
    transform: translate(-15px, -50px);
    filter: drop-shadow(0 6px 12px rgba(138, 0, 38, 0.3));
}

@media (max-width: 768px) {
    .logo-h {
        height: 60px;
        transform: translate(0, -20px);
    }
}

.collab-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;              /* space between logos */
    transform: translateY(-50px); /* move up if needed */
}

@media (max-width: 768px) {
    .collab-logos {
        gap: 20px;
        transform: translateY(-20px);
        flex-wrap: wrap;
    }
}

.collab-logos img {
    height: 60px;
    width: auto;           /* uniform size */
    object-fit: contain;
    transform: none ;
    margin: 0;
    filter: drop-shadow(0 6px 12px rgba(138, 0, 38, 0.3));
}

@media (max-width: 768px) {
    .collab-logos img {
        height: 40px;
    }
}

/* --- REVEAL SECTIONS (Scrolling Pages) --- */
section:not(#home) { 
    min-height: 100vh; 
    padding: 140px 10% 80px; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}

@media (max-width: 768px) {
    section:not(#home) {
        padding: 100px 5% 60px;
        min-height: auto;
    }
}

.reveal { opacity: 0; transform: translateY(50px); transition: 1.3s cubic-bezier(0.17, 0.67, 0.83, 0.67) all; }
.reveal.active { opacity: 1; transform: translateY(0); }
h2 { font-family: 'Cinzel'; font-size: 3.5rem; text-align: center; margin-bottom: 60px; letter-spacing: 6px; color: var(--brand-maroon); }
/* .reveal { opacity: 0; transform: translateY(40px); transition: 1s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); } */

/* --- Components --- */
.countdown-container { display: flex; justify-content: center; gap: 20px; margin: 30px 0; }
.countdown-box {
    background: var(--glass); border: 1px solid var(--glass-border);
    padding: 20px; border-radius: 15px; min-width: 110px; text-align: center;
}
.countdown-box span { display: block; font-size: 2.5rem; font-family: 'Cinzel'; font-weight: bold; }

@media (max-width: 768px) {
    .countdown-container {
        gap: 10px;
        flex-wrap: wrap;
    }
    .countdown-box {
        padding: 15px;
        min-width: 80px;
    }
    .countdown-box span {
        font-size: 1.8rem;
    }
    .countdown-box label {
        font-size: 0.7rem;
    }
}

/* --- 14 Domains: Professional Glassmorphism --- */
/* .domain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 25px; }
.domain-glass {
    background: rgba(255, 255, 255, 0.6); 
    border: 1px solid var(--glass-border);
    padding: 40px 25px; border-radius: 25px; text-align: center;
    transition: 0.5s; cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.domain-glass:hover { transform: scale(1.05); background: white; border-color: var(--gold); }
.domain-glass h3 { font-family: 'Cinzel'; margin-bottom: 12px; font-size: 1.2rem; } */

/* --- Majestic Domain Grid --- */
.domain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.domain-glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 40px 25px;
    border-radius: 30px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow);
}

@media (max-width: 768px) {
    .domain-glass {
        padding: 30px 20px;
        backdrop-filter: blur(20px);
    }
}

.domain-glass:hover {
    transform: translateY(-15px);
    background: rgb(167, 119, 119);
    border-color: var(--gold);
}

.domain-icon i {
    color: var(--brand-maroon); /* Your majestic maroon */
    transition: 0.3s;
}


/* Animated Domain Icon */
.domain-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--brand-maroon);
    filter: drop-shadow(0 0 10px rgba(138, 0, 38, 0.2));
    transition: 0.5s;
    animation: iconFloat 3s ease-in-out infinite;
}

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

.domain-glass:hover .domain-icon {
    color: var(--gold);
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px var(--gold));
}

.domain-glass h3 {
    font-family: 'Cinzel';
    font-size: 1.3rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.domain-glass p {
    font-family: 'Cinzel';
    font-size: 0.85rem;
    line-height: 1.6;
    opacity: 0.8;
    font-weight: 700;
}

.btn-ps {
    margin-top: 20px;
    padding: 10px 20px;
    border: 1px solid var(--brand-maroon);
    background: transparent;
    color: var(--brand-maroon);
    font-family: 'Cinzel';
    font-size: 0.7rem;
    letter-spacing: 1px;
    transition: 0.3s;
}

.domain-glass:hover .btn-ps {
    background: var(--brand-maroon);
    color: white;
}

/* --- Horizontal Zig-Zag Timeline --- */
.timeline-horizontal {
    position: relative;
    padding: 270px 0 230px;
    margin-top: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* The Central Maroon Line */
.timeline-track {
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    height: 4px;
    background: var(--brand-maroon);
    z-index: 1;
    transform: translateY(500%);
}

.timeline-wrapper {
    display: flex;
    justify-content: space-between;
    width: 90%;
    position: relative;
    z-index: 2;
}

.timeline-point {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20%; /* 5 items = 100/5 */
}
.node {
    width: 18px;
    height: 18px;
    background: var(--brand-maroon);
    /* border: 3px solid var(--gold); */
    border-radius: 50%;
    box-shadow: 0 0 10px var(--brand-maroon);
    top: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    left: 50%;
    z-index: 4;
}
/* The Cards */
.timeline-card-majestic {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    padding: 50px 30px;
    border-radius: 25px;
    width: 260px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: 0.4s ease;
    position: absolute;
}

.timeline-card-majestic:hover {
    background: white;
    transform: scale(1.05);
}

.timeline-card-majestic h4 {
    font-family: 'Montserrat';
    font-weight: 700;
    color: var(--brand-maroon);
    margin: 10px 0 5px;
    font-size: 1.1rem;
}

.timeline-card-majestic p {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.8;
}

.timeline-card-majestic .icon {
    font-size: 2.5rem;
}

/* Alternating Up and Down Positioning */
.timeline-point:nth-child(odd) .timeline-card-majestic {
    bottom: 60px; /* Positioned Above the line */
}

.timeline-point:nth-child(even) .timeline-card-majestic {
    top: 60px; /* Positioned Below the line */
}

/* Responsive: Stack vertically on mobile */
@media (max-width: 1024px) {
    .timeline-horizontal {
        flex-direction: column;
        padding: 40px 0;
    }
    .timeline-track {
        left: 20px;
        width: 4px;
        height: 90%;
        top: 5%;
        transform: none;
    }
    .timeline-wrapper {
        flex-direction: column;
        width: 100%;
        padding-left: 50px;
        gap: 80px;
    }
    .timeline-point {
        width: 100%;
        flex-direction: row;
        height: auto;
    }
    .node {
        left: -41px;
        top: 20px;
    }
    .timeline-card-majestic {
        position: relative !important;
        top: 0 !important;
        bottom: 0 !important;
        width: 80%;
        text-align: left;
    }
}

/* --- Majestic 3D Carousel --- */
#gallery {
    perspective: 2000px; /* Enhanced depth for 5 frames */
    overflow: hidden;
    padding-bottom: 100px;
}

.carousel-viewport {
    width: 100%;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transform-style: preserve-3d;
    margin-top: 50px;
}

.carousel-card {
    position: absolute;
    width: 480px;  /* Landscape Width */
    height: 300px; /* Landscape Height */
    border-radius: 20px;
    background: white;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    /* transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1); */
    user-select: none;
    will-change: transform, opacity;
    transition: transform 0.7s ease, opacity 0.5s ease;
}

.carousel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

/* --- THE 5-FRAME LOGIC --- */

/* 1. Center Frame */
.carousel-card.active {
    transform: translateX(0) translateZ(200px) rotateY(0deg);
    opacity: 1;
    z-index: 10;
    border: 2px solid var(--gold);
    box-shadow: 0 20px 50px rgba(138, 0, 38, 0.3);
}

/* 2. Immediate Sides (Prev 1 / Next 1) */
.carousel-card.p1 {
    transform: translateX(-80%) translateZ(0px) rotateY(35deg) scale(0.85);
    opacity: 0.7;
    z-index: 5;
}
.carousel-card.n1 {
    transform: translateX(80%) translateZ(0px) rotateY(-35deg) scale(0.85);
    opacity: 0.7;
    z-index: 5;
}

/* 3. Outer Sides (Prev 2 / Next 2) */
.carousel-card.p2 {
    transform: translateX(-135%) translateZ(-100px) rotateY(35deg) scale(0.75);
    opacity: 0.4;
    z-index: 2;
}
.carousel-card.n2 {
    transform: translateX(135%) translateZ(-100px) rotateY(-35deg) scale(0.75);
    opacity: 0.4;
    z-index: 2;
}

/* Hidden Cards */
.carousel-card.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.6);
}

/* --- Overlay --- */
.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(138, 0, 38, 0.9), transparent 80%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    color: white;
    opacity: 0;
    transition: 0.3s;
}

/* --- Elite Carousel Dots --- */
.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brand-maroon);
    opacity: 0.3;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.carousel-dot.active {
    opacity: 1;
    width: 25px; /* Elite pill shape for active state */
    border-radius: 10px;
    background: var(--gold);
    box-shadow: 0 0 10px var(--gold);
}
.carousel-card.active:hover .card-overlay { opacity: 1; }
.card-overlay h3 { font-family: 'Cinzel'; font-size: 1.2rem; letter-spacing: 2px; }

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .carousel-card { width: 350px; height: 220px; }
    .carousel-card.p2, .carousel-card.n2 { display: none; } 
}

@media (max-width: 768px) {
    .carousel-viewport {
        height: 300px;
    }
    .carousel-card {
        width: 280px;
        height: 180px;
    }
}

/* --- Guidelines --- */
.guideline-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.guide-box { background: rgba(255, 255, 255, 0.5); border: 1px solid var(--glass-border); padding: 40px; border-radius: 25px; transition: 0.4s; }
.guide-box:hover { background: white; border-color: var(--gold); transform: translateY(-5px); }
.guide-box h4 { font-family: 'Cinzel'; margin-bottom: 15px; color: var(--brand-maroon); letter-spacing: 2px; }
.guide-box ul { list-style: none; }
.guide-box li { font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; position: relative; padding-left: 20px; opacity: 0.9; line-height: 1.5; color: black; }
.guide-box li::before { content: '◈'; position: absolute; left: 0; color: var(--gold); }

/* --- Majestic Rising Podium --- */
.prize-podium { 
    display: flex; 
    justify-content: center; 
    align-items: flex-end; 
    gap: 30px; 
    height: 700px; 
    margin-top: 50px; 
}

.pillar {
    position: relative; 
    background: var(--glass); 
    backdrop-filter: blur(15px); 
    border: 1px solid var(--glass-border);
    width: 310px; 
    border-radius: 25px 25px 0 0; 
    display: flex; 
    flex-direction: column;
    height: 0; 
    opacity: 0; 
    overflow: hidden; /* Start at 0 for Live Rise */
    transition: height 1.5s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.5s ease;
}

.reveal-prizes.active .pillar { 
    opacity: 1; 
}

.reveal-prizes.active .pillar.runner-1 { 
    height: 500px; 
    border-top: 5px solid silver;
    border-bottom: 5px solid silver; 
}

.reveal-prizes.active .pillar.champion { 
    height: 650px; 
    border-top: 5px solid var(--gold);
    border-bottom: 5px solid var(--gold); 
    background: rgba(255,255,255,0.6); 
}

.reveal-prizes.active .pillar.runner-2 { 
    height: 400px; 
    border-top: 5px solid #552c03; 
    border-bottom: 5px solid #552c03; 
}

.pillar-content { 
    opacity: 0; 
    transform: translateY(20px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 25px; 
    transition: all 0.8s ease 1s; 
}

.reveal-prizes.active .pillar-content { 
    opacity: 1; 
    transform: translateY(0); 
}

.reward-list {
    list-style: none;
    text-align: left;
    margin-top: 30px;
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
}

.reward-list li {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.reward-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--gold);
}

/* --- Majestic Organic FAQ Styling --- */
.enquiry-wrapper {
    max-width: 900px;
    margin: 50px auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.faq-row {
    display: flex;
    align-items: center;
    width: 100%;
    cursor: pointer;
    transition: transform 0.4s ease;
}

.faq-row:hover {
    transform: translateX(10px);
}

.faq-row.right-side {
    flex-direction: row-reverse;
}

.faq-row.right-side:hover {
    transform: translateX(-10px);
}

/* The Icon Circle */
.faq-icon-circle {
    width: 80px;          /* same as height */
    height: 80px;         /* same as width */
    min-width: 80px;      /* prevents shrinking */
    min-height: 80px;     /* prevents shrinking */
    background: var(--brand-maroon);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    box-shadow: var(--shadow);
    border: 3px solid var(--gold);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
    font-size: 2rem;
    color: white;
}

.faq-icon-circle i, .faq-icon-circle span {
    font-size: 2.5rem;
    color: white;
}

/* The Organic Neck Joint */
.faq-pill {
    background: var(--glass);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 20px 40px;
    margin-left: -45px; /* Overlap for the neck look */
    flex-grow: 1;
    z-index: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.right-side .faq-pill {
    margin-left: 0;
    margin-right: -40px;
    text-align: right;
}

.faq-pill h4 {
    font-family: 'Cinzel';
    font-size: 1.3rem;
    color: var(--brand-maroon);
    margin: 0;
    transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Initial state for Left items */
    text-align: left;
    padding-left: 65px; 
    padding-right: 20px;
}

/* Initial state for Right items */
.right-side .faq-pill h4 {
    text-align: right;
    padding-left: 20px;
    padding-right: 65px;
}


/* The Accordion Answer Area */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    opacity: 0;
    padding: 0 40px;
    /* text-align: justify; */
    color: var(--brand-maroon);
    font-weight: 500;
}

.faq-row.active .faq-pill {
    background: white;
    border-radius: 40px;
    padding: 30px 20px;
    box-shadow: 0 20px 50px rgba(138, 0, 38, 0.15);
}

.right-side .faq-answer {
    /* text-align: justify; */
    margin-left: 100px ;
    transform: translateX(-50px);
}

/* Glide text to the center */
.faq-row.active .faq-pill h4 {
    text-align: center;
    padding-left: 0;
    padding-right: 0;
    transform: scale(1.1); /* Subtle grow for majesty */
}

/* The Answer - Fades in centered */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    text-align: center; /* Always center the answer */
    transition: all 0.5s ease;
    color: var(--brand-maroon);
    font-weight: 500;
    line-height: 1.6;
}


/* Active State */
.faq-row.active .faq-pill {
    background: white;
    border-radius: 40px; /* Morph from pill to rounded box */
    border-color: var(--gold);
}

.faq-row.active .faq-answer {
    max-height: 300px;
    opacity: 1;
    padding-top: 20px;
}

.faq-row.active .faq-icon-circle {
    transform: scale(1.1) rotate(10deg);
}

.faq-row.active .faq-icon-circle i, 
.faq-row.active .faq-icon-circle span {
    color: var(--brand-maroon);
}

/* Mobile Fix */
@media (max-width: 768px) {
    .faq-icon-circle { width: 70px; height: 70px; min-width: 70px; min-height: 70px; }
    .faq-icon-circle i, .faq-icon-circle span { font-size: 2rem; }
    .faq-pill h4 { font-size: 1rem; }
    .faq-pill { padding: 15px 30px; }
    .faq-answer { font-size: 0.85rem; }
}

/* Registeration Button */
.btn-reg {
    padding: 22px 70px; border: 2px solid var(--brand-maroon); background: transparent;
    color: var(--brand-maroon); font-family: 'Cinzel'; letter-spacing: 5px; cursor: pointer;
    font-weight: bold; transition: 0.5s; font-size: 1.1rem; border-radius: 5px;
}
.btn-reg:hover { background: var(--brand-maroon); color: white; box-shadow: 0 10px 30px rgba(138, 0, 38, 0.4); }

@media (max-width: 768px) {
    .btn-reg {
        padding: 16px 40px;
        font-size: 0.9rem;
        letter-spacing: 3px;
    }
}

/* --- Majestic Aetheric Etching Finale --- */
#grand-finale {
    min-height: 80vh; /* Reduced height to ensure the observer triggers */
    /* background: radial-gradient(circle at center, #ffd1dc 0%, #f0aebf 30%, #9d66bf 100%) no-repeat fixed; */
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    padding-bottom: 50px;
}

/* 1. Animation Container - Must not block clicks */
.etch-container {
    position: relative;
    width: 350px;  /* Logo width */
    height: 350px; /* Logo height */
    display: flex;
    justify-content: center;
    align-items: center;

    /* CHANGE 1: Set margin to 0 to center it */
    margin: 0 auto; 
    
    /* CHANGE 2: Nudge it left slightly (change -30px to 0 for perfect center) */
    transform: translateX(-30px); 
    transform: translateY(-50px); 
    
    pointer-events: none; /* Keeps links below clickable */
    z-index: 5;
}

/* THE SCANNING LINES */
.scan-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--gold), #fff, var(--gold), transparent);
    box-shadow: 0 0 30px var(--gold);
    opacity: 0;
    z-index: 10;
}
.line-h { width: 150%; height: 2px; left: -25%; }
.line-v { height: 150%; width: 2px; top: -25%; background: linear-gradient(0deg, transparent, var(--gold), #fff, var(--gold), transparent); }

/* THE LOGO REVEAL */
.etch-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    filter: brightness(0) blur(20px);
    transform: scale(0.9);
    transition: all 2s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 5;
}

/* --- THE ACTIVE STATE (Triggered by JS) --- */
#grand-finale.active .line-h { animation: hScan 1.5s ease-in-out forwards; }
#grand-finale.active .line-v { animation: vScan 1.5s ease-in-out 0.2s forwards; }
#grand-finale.active .etch-logo {
    opacity: 1;
    filter: brightness(1) blur(0px);
    transform: scale(1);
}

@keyframes hScan {
    0% { top: 0%; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}
@keyframes vScan {
    0% { left: 0%; opacity: 0; }
    50% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* 2. Text & Social Links - Must be on top */
.finale-credits {
    text-align: center;
    margin-top: 20px;
    position: relative;
    z-index: 100; /* Higher than everything else */
    pointer-events: auto; /* Forces clickability */
}

.finale-credits h2 {
    font-family: 'Cinzel';
    font-size: 2.8rem;
    letter-spacing: 15px;
    color: var(--brand-maroon);
    margin-bottom: 5px;
}

.social-links-cinematic {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 25px;
}

.social-links-cinematic a {
    color: var(--brand-maroon);
    font-size: 2rem;
    transition: 0.4s;
    opacity: 0.8;
    text-decoration: none;
    cursor: pointer;
}

.social-links-cinematic a:hover {
    color: var(--gold);
    transform: scale(1.3) translateY(-5px);
}

/* --- Unstop Image Logo Alignment --- */
.unstop-logo-img {
    height: 2rem;           /* Matches the font-size of your FontAwesome icons */
    width: auto;
    display: inline-block;
    vertical-align: middle;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Optional: If the unstop logo is colorful, this filter makes it look like a 
       Maroon icon to match your theme. Remove it if you want the original logo colors. */
    filter: sepia(1) saturate(5) hue-rotate(310deg) brightness(0.6); 
}

/* --- Hover Effect --- */
.social-links-cinematic a:hover .unstop-logo-img {
    transform: scale(1.3) translateY(-5px);
    /* Glow effect on hover */
    filter: drop-shadow(0 0 10px var(--gold));
}

/* --- Elite Sponsors Section --- */
.sponsor-tier-group {
    margin-bottom: 70px;
    text-align: center;
}

.tier-label {
    font-family: 'Cinzel';
    font-size: 0.85rem;
    letter-spacing: 4px;
    margin-bottom: 30px;
    font-weight: 700;
}

.platinum { color: var(--gold); }
.gold { color: #b8860b; }
.silver { color: #707070; }

.sponsor-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.sponsor-card {
    /* Solid light background so brand colors pop */
    background: rgba(255, 255, 255, 0.9); 
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow);
    padding: 20px;
}

/* Sizing per Tier */
.platinum-grid .sponsor-card { width: 360px; height: 200px; border: 2px solid var(--gold); }
.gold-grid .sponsor-card { width: 360px; height: 200px; }
.silver-grid .sponsor-card { width: 360px; height: 200px; }
.hiring-grid .sponsor-card.mini { width: 360px; height: 200px; background: white; }

.sponsor-card img {
    max-width: 85%;
    max-height: 80%;
    object-fit: contain;
    /* NO grayscale filter here so colors stay natural */
    transition: transform 0.4s ease;
}

.fix-sizes {
    transform: scale(1.3) !important; /* Increase from 1.0 to 1.3, 1.4, etc. */
}
.fix-size {
    transform: scale(2.5) !important; /* Increase from 1.0 to 1.3, 1.4, etc. */
    margin-bottom: 50px;
}
.fixed-sizes{
    transform: scale(1.8) !important;
}
.fixed{
    transform: scale(3.0) !important;
    margin-bottom: 80px;
}
.sponsor-card:hover {
    transform: translateY(-10px);
    background: #ffffff; /* Pure white on hover */
    box-shadow: 0 15px 30px rgba(138, 0, 38, 0.2);
}

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

/* Hiring Section Special Box */
.hiring-section {
    margin-top: 50px;
    padding: 50px 30px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    text-align: center;
}

@media (max-width: 768px) {
    .sponsor-card {
        width: 48% !important;   /* This makes 2 boxes fit side-by-side */
        height: 120px !important; /* Increase this for taller boxes on phone */
        padding: 10px;
    }
    
    .platinum-grid .sponsor-card {
        width: 100% !important;  /* This makes Platinum boxes full-width on phone */
        height: 180px !important;
    }

    .sponsor-card img {
        max-width: 90%;
        max-height: 85%;
    }
}

/* ===== MOBILE NAVBAR ===== */

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    position: absolute;
    left: 20px;
    top: 25px;
    z-index: 2000;
}

.mobile-menu-btn span {
    width: 28px;
    height: 3px;
    background: var(--gold);
    border-radius: 3px;
    transition: 0.4s;
}

/* Mobile Nav Style */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(112, 0, 32, 0.95);
        backdrop-filter: blur(20px);
        transition: 0.6s cubic-bezier(0.77, 0, 0.175, 1);
        padding-top: 100px;
        z-index: 1999;
    }

    nav ul {
        flex-direction: column;
        gap: 25px;
        align-items: center;
    }

    nav ul li a {
        font-size: 1rem;
        padding: 10px 20px;
        display: block;
    }

    nav.active {
        right: 0;
    }
}

/* Hamburger Animation */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}


/* ============================
   MOBILE RESPONSIVE DESIGN
   ============================ */

/* Tablets & Medium Screens */
@media (max-width: 1024px) {

    header {
        height: 70px;
        padding: 0 3%;
    }

    nav ul {
        gap: 15px;
        font-size: 0.8rem;
    }

    .college-header {
        flex-direction: column;
        gap: 10px;
        transform: translateY(0);
        text-align: center;
        margin-bottom: 20px;
    }

    .college-logo-img {
        height: 90px;
        transform: none;
    }

    .college-title {
        font-size: 2rem;
        letter-spacing: 4px;
        transform: none;
    }

    .college-subtitle {
        margin-left: 0;
    }

    .present-line {
        margin-right: 0;
        font-size: 20px;
    }

    .hero-title-wrap {
        font-size: 3rem;
        flex-wrap: wrap;
        text-align: center;
        transform: translateY(0);
    }

    .logo-h {
        height: 70px;
        transform: none;
    }

    .collab-logos {
        flex-wrap: wrap;
        gap: 20px;
        transform: none;
    }

    .countdown-container {
        flex-wrap: wrap;
        gap: 10px;
    }

    .timeline-horizontal {
        padding: 100px 0;
    }

    .timeline-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 100px;
    }

    .timeline-track {
        display: none;
    }

    .timeline-point {
        width: 100%;
    }

    .timeline-card-majestic {
        position: relative;
        width: 90%;
        top: 0 !important;
        bottom: 0 !important;
    }

    .carousel-card {
        width: 320px;
        height: 200px;
    }

    .prize-podium {
        flex-direction: column;
        height: auto;
        gap: 20px;
        align-items: center;
    }

    .reveal-prizes.active .pillar.runner-1,
    .reveal-prizes.active .pillar.champion,
    .reveal-prizes.active .pillar.runner-2 {
        height: auto;
        min-height: 300px;
    }

    .pillar {
        width: 90%;
        border-radius: 20px;
    }

    .faq-row,
    .faq-row.right-side {
        flex-direction: column;
        align-items: center;
    }

    .faq-pill {
        margin: 0;
        border-radius: 30px;
        text-align: center;
    }

    .faq-pill h4 {
        padding: 0;
        text-align: center;
    }

    .right-side .faq-answer {
        margin-left: 0;
        transform: none;
    }
}


/* Mobile Phones */
@media (max-width: 600px) {

    body {
        font-size: 14px;
    }

    header {
        height: 60px;
    }

    nav ul {
        gap: 10px;
        font-size: 0.7rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    #home {
        padding-top: 80px;
    }

    .college-title {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    .college-subtitle {
        font-size: 0.9rem;
    }

    .hero-title-wrap {
        flex-direction: column;
        font-size: 2.2rem;
        line-height: 1.1;
        text-align: center;
        margin-top: 20px;
    }

    .hero-title-wrap span {
        display: block;
    }

    .college-header {
        margin-top: 20px;
    }

    .collab-logos {
        margin-top: 20px;
        gap: 15px;
    }

    .logo-d {
        height: 1.2em;
    }

    p {
        font-size: 1rem !important;
        letter-spacing: 2px !important;
        transform: none !important;
        margin-right: 0 !important;
    }

    .logo-h {
        height: 50px;
    }

    .collab-logos img {
        height: 45px;
    }

    section:not(#home) {
        padding: 100px 6% 60px;
    }

    h2 {
        font-size: 2rem;
        letter-spacing: 3px;
        margin-bottom: 40px;
    }

    .domain-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .domain-glass {
        padding: 25px 20px;
        backdrop-filter: blur(25px);
        border-radius: 20px;
    }

    .guide-box,
    .faq-pill {
        border-radius: 20px;
        padding: 20px;
    }

    .guideline-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .carousel-card {
        width: 260px;
        height: 170px;
    }

    .faq-icon-circle {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .btn-reg {
        padding: 14px 40px;
        font-size: 0.9rem;
        letter-spacing: 3px;
    }

    .etch-container {
        width: 220px;
        height: 220px;
        transform: translateX(0) translateY(0);
    }

    .finale-credits h2 {
        font-size: 1.8rem;
        letter-spacing: 6px;
    }

    .social-links-cinematic {
        gap: 20px;
    }

    .countdown-container {
        transform: scale(0.9);
    }

    section {
        scroll-margin-top: 80px;
    }

    html {
        scroll-behavior: smooth;
    }

    #about > div > div {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    #about video {
        width: 100% !important;
        height: auto !important;
    }
}


/* Additional Mobile Optimizations */
@media (max-width: 768px) {
    /* Hero section inline styled paragraphs */
    #home p[style*="font-size: 1.2rem"] {
        font-size: 0.8rem !important;
        letter-spacing: 3px !important;
        margin-bottom: 20px !important;
        transform: translateY(-20px) !important;
    }
    
    #home p[style*="font-size: 1.8rem"] {
        font-size: 1rem !important;
        letter-spacing: 3px !important;
        margin-bottom: 20px !important;
        transform: translateY(-20px) !important;
    }
    
    #home p[style*="font-size: 1.8em"] {
        font-size: 1rem !important;
        margin-right: 0 !important;
        transform: translateY(-20px) !important;
    }
    
    /* About section grid */
    #about div[style*="grid-template-columns"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
    }
    
    #about p[style*="text-align: justify"] {
        font-size: 0.95rem !important;
        line-height: 1.8 !important;
        text-align: left !important;
    }
    
    #about video {
        height: 200px !important;
    }
    
    /* Sponsor section heading */
    #sponsors h2[style*="font-family"] {
        font-size: 1.8rem !important;
        margin-bottom: 40px !important;
    }
    
    /* Logo scaling fixes for mobile */
    .logo-sdg {
        height: 80px !important;
        margin-left: 0 !important;
    }
    
    .logo-ieee,
    .logo-cs,
    .logo-we,
    .logo-iic {
        height: 50px !important;
    }
    
    /* College logo adjustments */
    .college-logo-img {
        height: 80px !important;
        transform: translate(0, 0) !important;
    }
    
    .college-title {
        font-size: 1.2rem !important;
        transform: translateX(0) !important;
    }
    
    /* Finale section */
    .finale-credits h2[style*="letter-spacing"] {
        font-size: 1.8rem !important;
        letter-spacing: 6px !important;
    }
    
    .finale-credits p[style*="letter-spacing"] {
        letter-spacing: 4px !important;
        font-size: 0.8rem !important;
    }
    
    /* Prize podium inline styles */
    .pillar-content span[style*="font-family"] {
        font-size: 1.1rem !important;
    }
    
    .pillar-content div[style*="font-size: 3rem"],
    .pillar-content div[style*="font-size: 4rem"] {
        font-size: 2.5rem !important;
        margin: 10px 0 !important;
    }
    
    .pillar-content div[style*="font-size: 2.5rem"],
    .pillar-content div[style*="font-size: 2.2rem"] {
        font-size: 1.8rem !important;
    }
    
    /* Timeline card icons */
    .timeline-card-majestic .icon {
        font-size: 2rem !important;
    }
    
    .timeline-card-majestic h4 {
        font-size: 1rem !important;
    }
    
    .timeline-card-majestic p {
        font-size: 0.85rem !important;
    }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
    #home {
        min-height: auto;
        padding-top: 80px;
        padding-bottom: 40px;
    }
    
    .college-header {
        margin-bottom: 15px;
    }
    
    .countdown-container {
        margin: 15px 0;
    }
}

/* Very small screens */
@media (max-width: 375px) {
    .hero-title-wrap {
        font-size: clamp(1.5rem, 5vw, 2.5rem) !important;
    }
    
    .countdown-box {
        min-width: 70px;
        padding: 10px;
    }
    
    .countdown-box span {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.6rem !important;
    }
}
