/* =========================================
   1. UNIVERSAL CSS (MERGED & OPTIMIZED)
   ========================================= */

:root {
    --text-dark: #2d3436;
    --text-light: #ffffff;
    --accent: #ffeb3b; 
    --modal-width-wide: 800px;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
body { overflow-x: hidden; width: 100%; background-color: #000; } 

/* --- BACKGROUND --- */
.gradient-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: -1;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    will-change: background-position;
}
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.uni-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/c/c8/Mjpru_admin_block.jpg/1200px-Mjpru_admin_block.jpg');
    background-size: cover; background-position: center;
    opacity: 0.2; mix-blend-mode: overlay;
}

#hero-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero-content { position: relative; z-index: 2; }
.year { text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); -webkit-text-stroke: 2px white; color: transparent; }

/* --- NAVBAR --- */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 8%; position: fixed; width: 100%; z-index: 100;
    backdrop-filter: blur(10px); background: rgba(255, 255, 255, 0.5);
}
.logo { font-size: 1.5rem; font-weight: 700; color: white; letter-spacing: 1px; }
.highlight { color: var(--accent); }
.nav-links { display: flex; list-style: none; gap: 30px; align-items: center; }
.nav-links a { text-decoration: none; color: white; font-weight: 500; transition: 0.3s; font-size: 1rem; }

.btn-nav { 
    padding: 8px 25px; background: linear-gradient(45deg, #FFD700, #FDB931); 
    color: #333 !important; border-radius: 20px; font-weight: 800 !important; 
    transition: 0.3s; border: 2px solid #FDB931; box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    cursor: pointer; display: inline-block;
}
.btn-nav:hover { transform: scale(1.1); background: white; box-shadow: 0 0 20px rgba(255, 215, 0, 0.8); }
.hamburger { display: none; background: transparent; border: none; cursor: pointer; color: white; font-size: 1.8rem; padding: 5px; }

/* --- HERO --- */
header { min-height: 90vh; display: flex; align-items: center; justify-content: center; text-align: center; color: white; padding: 100px 20px 20px; }
h1 { font-family: 'Playfair Display', serif; font-size: 4.5rem; line-height: 1; text-shadow: 0 5px 15px rgba(0,0,0,0.2); margin: 20px 0; }
.tagline { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-style: italic; }

/* --- EVENT CARDS --- */
.events-section { padding: 80px 8%; text-align: center; content-visibility: auto; contain-intrinsic-size: 600px; }
.cards-container { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }

.event-card-wide { 
    background: white; border-radius: 15px; overflow: hidden; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); display: flex; flex-direction: column; 
    height: 100%; border: 1px solid rgba(0,0,0,0.05); transition: transform 0.3s ease; 
    width: 350px; text-align: left;
}
.event-card-wide:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(112, 0, 255, 0.15); }

.card-img-holder { height: 200px; overflow: hidden; }
.card-img-holder img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.event-card-wide:hover .card-img-holder img { transform: scale(1.1); }

.card-content { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.card-content h3 { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: #2d3436; margin-bottom: 5px; }
.card-content p { color: #666; font-size: 0.95rem; margin-bottom: 15px; }

/* Schedule & Details */
.schedule-info {
    background: #fff0f5; color: #d63384; padding: 5px 10px;
    border-radius: 5px; font-size: 0.85rem; font-weight: 600;
    display: inline-block; margin-bottom: 10px; border: 1px solid #f8d7da;
}
.schedule-info i { margin-right: 5px; }

/* Rules Box */
.rules-box {
    display: none; background: #f8f9fa; padding: 15px; border-radius: 8px;
    margin-bottom: 15px; font-size: 0.85rem; color: #555;
    text-align: left; border-left: 4px solid #7000ff;
    animation: fadeIn 0.5s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.rules-box ul { padding-left: 20px; margin: 0; }
.rules-box li { margin-bottom: 3px; }

/* Button */
.btn-join { 
    width: 100%; padding: 12px; background: linear-gradient(45deg, #7000ff, #e73c7e); 
    color: white; border: none; font-weight: bold; font-size: 1rem; border-radius: 8px; 
    cursor: pointer; transition: 0.3s; text-transform: uppercase; letter-spacing: 1px; 
}
.btn-join:hover { background: linear-gradient(45deg, #e73c7e, #ffeb3b); color: #000; box-shadow: 0 5px 15px rgba(231, 60, 126, 0.4); }

/* --- MOBILE FAB --- */
.mobile-join-fab {
    display: none; position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    z-index: 999; width: 90%; max-width: 400px; background: linear-gradient(45deg, #7000ff, #e73c7e);
    color: white; text-align: center; padding: 15px; border-radius: 30px; font-size: 1.2rem; font-weight: bold;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4); text-decoration: none; border: 2px solid white; animation: pulseFab 2s infinite;
}
@keyframes pulseFab { 0% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.05); } 100% { transform: translateX(-50%) scale(1); } }

 /* --- RESPONSIVE FIXES --- */
@media (max-width: 768px) {
    h1 { font-size: 3rem !important; }
    
    .hamburger { 
        display: block; 
        z-index: 101; /* Menu ke upar dikhne ke liye */
    }

    .nav-links { 
        display: flex; /* Display flex hi rahega */
        position: fixed; /* Screen par fix rahega */
        top: -100%; /* Default mein screen ke upar chupa rahega */
        left: 0; 
        width: 100%; 
        height: auto;
        background: linear-gradient(180deg, rgba(112, 0, 255, 0.98), rgba(231, 60, 126, 0.98)) !important; 
        flex-direction: column; 
        padding: 80px 0 30px 0; /* Top padding navbar space ke liye */
        backdrop-filter: blur(10px); 
        transition: 0.5s ease-in-out; /* Slide animation */
        z-index: 100;
        opacity: 0;
    }

    /* Jab active class JS se add hogi */
    .nav-links.active { 
        top: 0; 
        opacity: 1;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        margin: 10px 0;
    }

    .nav-links .btn-nav { 
        display: inline-block; /* Mobile menu ke andar dikhane ke liye */
        margin-top: 10px;
    }

    .mobile-join-fab { display: block; }
    .event-card-wide { width: 100%; }
}
