@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
    --navy: #0B1C2D;
    --blue: #1E88E5;
    --gold: #D4AF37;
    --white: #F8F9FA;
    --grey: #D1D5DB;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    /* Adapts to Navbar height */
}

body {
    background: var(--white);
    color: var(--navy);
}

/* Scroll Animation Base */
.section,
.committee-box,
.register,
.hero-content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

/* ================= NAVBAR ================= */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(225, 225, 225, 0.80);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 60px;
    z-index: 1000;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(11, 28, 45, 0.95);
    font-weight: 600;
    font-size: 18px;
}

.nav-left img {
    height: 40px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 28px;
}

nav ul li a {
    color: rgba(11, 28, 45, 0.95);
    text-decoration: none;
    font-weight: 500;
}

nav ul li a:hover {
    color: var(--gold);
}

.btn {
    background: linear-gradient(135deg, #0c1d2c, #204060);
    color: #ffffff;
    padding: 8px 25px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
    background: linear-gradient(135deg, #122b42, #2a527a);
}

.nav-left {
    display: flex;
    align-items: center;
}

.nav-left img {
    height: 45px;
    width: auto;
}

.nav-left img:nth-child(1) {
    margin-right: 14px;
    padding-right: 14px;
    position: relative;
}

.nav-left img:nth-child(1)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 5px;
    height: 80%;
    width: 2px;
    background-color: #0B1C2D;
    /* Navy blue */
}

.nav-left img:nth-child(2) {
    height: 65px;
    /* larger IMUN logo */
}


/* ================= HERO ================= */

.hero {
    height: 100vh;
    background: radial-gradient(circle at top, var(--blue), var(--navy));
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding-top: 80px;
}

.hero h1 {
    font-size: 58px;
    letter-spacing: 1px;
}

.hero h2 {
    margin: 15px 0;
    font-weight: 400;
    color: var(--gold);
}

.hero p {
    opacity: 0.9;
}

.hero-buttons {
    margin-top: 35px;
}

.btn-primary {
    background: linear-gradient(135deg, #0c1d2c, #204060);
    padding: 14px 32px;
    border-radius: 40px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    color: white;
    background: linear-gradient(135deg, #122b42, #2a527a);
}

/* ================= SECTIONS ================= */

.section {
    padding: 100px 80px;
    text-align: center;
}

.section.dark {
    background: var(--navy);
    color: white;
}

.section h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

#about p {
    text-align: justify;
    max-width: 1000px;
    margin: 0 auto 20px;
    line-height: 1.8;
    font-size: 16px;
}

/* ================= FEATURES ================= */

.features {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
}

.feature i {
    font-size: 42px;
    color: var(--gold);
}

/* ================= CARDS ================= */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.card {
    background: white;
    color: var(--navy);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    transition: 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
}

/* ================= TIMELINE ================= */

.timeline {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.timeline-item {
    background: #f1f5f9;
    padding: 30px;
    border-radius: 20px;
}

/* ================= AWARDS ================= */

.awards {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.award {
    background: linear-gradient(135deg, #0c1d2c, #204060);
    padding: 18px 28px;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.award:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #122b42, #2a527a);
}

/* ================= REGISTER ================= */

.register form {
    max-width: 420px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.register input,
.register select {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
}

/* ================= FOOTER ================= */

footer {
    background: var(--navy);
    color: var(--grey);
    text-align: center;
    padding: 35px;
}

/* ================= VIDEO HERO ================= */

.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

/* Video */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

/* Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(11, 28, 45, 0.85),
            rgba(11, 28, 45, 0.9));
    z-index: 2;
}

/* Content */
.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    padding-top: 120px;
}

.hero-content h1 {
    font-size: 60px;
    letter-spacing: 1px;
}

.hero-content h2 {
    color: var(--gold);
    margin: 15px 0;
    font-weight: 400;
}

@media (max-width: 768px) {
    .hero-video {
        display: none;
    }

    .hero {
        background: radial-gradient(circle at top, var(--blue), var(--navy));
    }
}


/* COMMITTEE SECTION */
.committee-section {
    background: rgba(11, 28, 45, 0.95);
    padding: 80px 20px;
}

/* LAYOUT */
.committee-wrapper {
    display: flex;
    max-width: 1200px;
    margin: auto;
    gap: 40px;
}

/* COMMON BOX STYLING */
.committee-box {
    border-radius: 18px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.04);
    transition: all 0.4s ease;
}

/* GOLD GLOW HOVER */
.committee-box:hover {
    box-shadow:
        0 0 20px rgba(212, 175, 55, 0.4),
        0 0 40px rgba(212, 175, 55, 0.3);
    transform: translateY(-6px);
}

/* IMAGE BOX */
.image-box {
    flex: 0 0 40%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-box img {
    width: 100%;
    height: auto;
    border-radius: 14px;
}

/* TEXT BOX */
.text-box {
    flex: 0 0 60%;
    color: #ffffff;
}

.text-box h3 {
    font-size: 32px;
    margin-bottom: 18px;
}

.text-box p {
    font-size: 16px;
    line-height: 1.8;
    color: #dbe7f3;
    margin-bottom: 16px;
    text-align: justify;
}

/* TAGS */
.committee-tags span {
    display: inline-block;
    padding: 8px 16px;
    margin-right: 10px;
    margin-top: 10px;
    border-radius: 20px;
    font-size: 14px;
    color: #d4af37;
    border: 1px solid rgba(212, 175, 55, 0.6);
    background: rgba(212, 175, 55, 0.08);
}

/* RESPONSIVE */
.hamburger {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--navy);
}

@media (max-width: 900px) {
    .committee-wrapper {
        flex-direction: column;
    }

    .image-box,
    .text-box {
        flex: 100%;
    }

    .text-box h3 {
        text-align: center;
    }
}

@media (max-width: 768px) {

    /* Navbar Mobile */
    nav {
        padding: 15px 20px;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 30px 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-links.active {
        display: flex;
    }

    /* Hero Fixes */
    .hero-video {
        display: none;
    }

    .hero {
        background: radial-gradient(circle at top, var(--blue), var(--navy));
        padding-top: 100px;
        /* More space for fixed header */
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    /* Features Stack */
    .features {
        flex-direction: column;
        align-items: center;
    }

    /* General Padding */
    .section {
        padding: 60px 20px;
    }

    .nav-left img {
        height: 35px;
    }
}

/* SCHEDULE SOON SECTION */
.schedule-soon {
    background: #f9fafb;
    text-align: center;
    padding: 100px 20px;
}

/* BOX */
.schedule-box {
    display: inline-block;
    padding: 50px 60px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* CLOCK */
.clock {
    margin-bottom: 30px;
}

.clock-face {
    width: 90px;
    height: 90px;
    border: 4px solid #0B1C2D;
    border-radius: 50%;
    position: relative;
    margin: auto;
}

/* HANDS */
.hand {
    position: absolute;
    left: 50%;
    bottom: 50%;
    transform-origin: bottom;
    background: #0B1C2D;
}

.hand.hour {
    width: 4px;
    height: 26px;
    animation: rotateHour 12s linear infinite;
}

.hand.minute {
    width: 2px;
    height: 36px;
    animation: rotateMinute 3s linear infinite;
}

/* CENTER DOT */
.center-dot {
    width: 8px;
    height: 8px;
    background: #0B1C2D;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* TEXT */
.schedule-box h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #0B1C2D;
}

.schedule-box p {
    font-size: 16px;
    color: #475569;
}

/* ANIMATIONS */
@keyframes rotateHour {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes rotateMinute {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.register-note {
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 15px;
    color: #475569;
    background: rgba(212, 175, 55, 0.1);
    border-left: 4px solid #d4af37;
    padding: 12px 16px;
    border-radius: 6px;
}

/* ================= FOOTER ================= */
footer {
    background: #081420;
    color: var(--white);
    text-align: center;
    padding: 30px 20px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 15px;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.socials a {
    text-decoration: none;
    color: inherit;
    display: flex;
    /* Ensures the anchor embraces the icon size */
    align-items: center;
}

.socials i {
    font-size: 20px;
    color: var(--white);
    transition: 0.3s;
    cursor: pointer;
}

.socials i:hover {
    color: var(--gold);
    transform: translateY(-3px);
}


/* ================= FLIP CARDS ================= */
.flip-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    padding: 0 20px;
}

.flip-card {
    background-color: transparent;
    width: 100%;
    height: 400px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    border-radius: 15px;
}

.flip-card.is-flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
}

.flip-card-front {
    background-color: #bbb;
    color: black;
}

.flip-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flip-card-back {
    background: linear-gradient(135deg, #0c1d2c, #204060);
    color: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.flip-card-back p {
    font-size: 14px;
    line-height: 1.6;
}

.flip-card-back h3 {
    margin-bottom: 15px;
    color: var(--gold);
}

/* ================= PAST EVENTS (FLIP & STATIC) ================= */
.past-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.past-flip-card {
    background-color: transparent;
    width: 260px;
    height: 340px;
    perspective: 1000px;
    cursor: pointer;
    border-radius: 18px;
    flex-shrink: 0;
}

.past-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.past-flip-card:hover {
    transform: translateY(-8px);
}

.past-flip-card.flipped .past-flip-inner {
    transform: rotateY(180deg);
}

.past-front,
.past-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 18px;
    overflow: hidden;
    padding: 15px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.past-front {
    display: flex;
    align-items: center;
    justify-content: center;
}

.past-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.past-back {
    background: #0B1C2D;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 20px;
}

.past-back h3 {
    font-size: 18px;
    color: var(--gold);
    margin-bottom: 15px;
}

.past-back p {
    font-size: 13px;
    line-height: 1.5;
    text-align: justify;
    color: #dbe7f3;
}

.past-event-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    width: 260px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.past-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.past-event-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.past-event-card h3 {
    font-size: 16px;
    color: #333;
    font-weight: 600;
    margin: 0;
}

/* ================= NAV ACTIVE & HOVER ================= */
nav ul li a {
    position: relative;
    color: rgba(11, 28, 45, 0.95);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    /* Required for transform */
}

/* Animated Underline */
nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    /* Thinner line */
    bottom: -2px;
    left: 0;
    background-color: #0b1c2d;
    /* Match text color */
    transition: width 0.3s ease-in-out;
    box-shadow: 0 0 2px rgba(212, 175, 55, 0.3);
    /* Reduced golden glow */
}

/* Hover & Active State */
nav ul li a:hover,
nav ul li a.active {
    color: #0b1c2d !important;
    /* Keep text dark */
    transform: translateY(-2px);
    /* Slight lift */
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Subtle shadow/glow on text */
}

/* Expand line on hover/active */
nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}