:root {
    --bg-dark: #05050a;
    --primary:  #00d2ff;
    --secondary: #9d50bb;
    --accent: #ff00c1;
    --text: #ffffff;
    --glass: rgba(255, 255, 255, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; scroll-behavior: smooth; }
body { background: var(--bg-dark); color: var(--text); overflow-x: hidden; }

#starfield { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }

.navbar {
    display: flex; justify-content: space-between; align-items: center; padding: 1rem 5%;
    background: rgba(5, 5, 10, 0.85); backdrop-filter: blur(15px); position: fixed; width: 100%; z-index: 1000;
}
.logo { font-size: 1.8rem; font-weight: bold; }
.logo span { color:var(--primary);}
.nav-links { display: flex; list-style: none; align-items: center; }
.nav-links li a { color: white; text-decoration: none; margin: 0 1rem; font-size: 0.9rem; transition: 0.3s; }
.btn-register { background: linear-gradient(45deg, var(--primary), var(--secondary)); padding: 0.8rem 1.5rem; border-radius: 50px; }

.hero { height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero h1 { font-size: 5rem; text-shadow: 0 0 20px rgba(0, 210, 255, 0.5); }
.tagline { color: var(--primary); letter-spacing: 5px; margin: 15px 0; }

/* Countdown */
.countdown-container { display: flex; justify-content: center; gap: 20px; margin: 30px 0; }
.time-box { background: var(--glass); border: 1px solid var(--primary); padding: 15px; border-radius: 12px; min-width: 80px; }
.time-box span { font-size: 2rem; color: var(--primary); display: block; }
.time-box p { font-size: 0.7rem; }

/* Events */
.section { padding: 80px 10%; text-align: center; }
.event-tabs { margin-bottom: 40px; }
.tab-btn { background: none; border: 1px solid var(--primary); color: white; padding: 10px 20px; cursor: pointer; border-radius: 5px; margin: 5px; }
.tab-btn.active { background: var(--primary); color: black; }
.tab-content { display: none; }
.tab-content.active { display: block; }
.event-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.event-card { background: var(--glass); padding: 30px; border-radius: 15px; border: 1px solid transparent; transition: 0.3s; }
.event-card:hover { transform: translateY(-10px); border-color: var(--primary); box-shadow: 0 0 15px var(--primary); }

/* Modal & Form */
.modal { display: none; position: fixed; z-index: 2000; width: 100%; height: 100%; top: 0; left: 0; background: rgba(0,0,0,0.9); backdrop-filter: blur(10px); }
.modal-content { background: #0f0f1a; margin: 5% auto; padding: 40px; border: 1px solid var(--primary); max-width: 500px; border-radius: 20px; }
.form-group { margin-bottom: 20px; }
input, select { width: 100%; padding: 12px; background: rgba(7, 0, 0, 0.862); border: 1px solid #00d2ff; color: white; border-radius: 8px; }
.btn-primary { background: var(--primary); border: none; padding: 15px 30px; cursor: pointer; color: black; font-weight: bold; border-radius: 8px; width: 100%; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; text-align: left; }
.footer { padding: 30px; text-align: center; border-top: 1px solid var(--glass); }
/* Contact Page Enhancements */
.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 50px;
    border-radius: 20px;
    border: 1px solid rgba(0, 210, 255, 0.3);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info-box h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
}

.info-item i {
    color: var(--primary);
    font-size: 1.2rem;
}

.contact-form-box input, 
.contact-form-box select, 
.contact-form-box textarea {
    width: 100%;
    margin-bottom: 15px;
    background: rgba(26, 1, 1, 0.975);
    border: 1px solid #00d2ff;
    color: #ffffff;
    padding: 15px;
    border-radius: 8px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.contact-form-box textarea {
    resize: none;
}

.social-links {
    margin-top: 40px;
    display: flex;
    gap: 20px;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: 0.3s;
}

.social-links a:hover {
    color: var(--primary);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; }
}

/* Brochure Section Styles */
.brochure-container {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 20px;
    text-align: left;
}

.brochure-preview {
    position: relative;
    flex: 1;
    height: 350px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--primary);
    overflow: hidden;
}

.brochure-mockup {
    text-align: center;
    padding: 20px;
}

.brochure-mockup h3 { font-size: 2.5rem; color: var(--primary); margin-bottom: 10px; }
.brochure-mockup hr { border: 0; height: 1px; background: var(--primary); margin: 15px 0; }

.preview-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5, 5, 10, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.4s;
}

.brochure-preview:hover .preview-overlay {
    opacity: 1;
}

.brochure-info {
    flex: 1.2;
}

.brochure-features {
    list-style: none;
    margin-top: 20px;
}

.brochure-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brochure-features i { color: var(--primary); }

@media (max-width: 768px) {
    .brochure-container { flex-direction: column; text-align: center; }
}
/* Thank You Animation Styles */
.thank-you-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5, 5, 10, 0.95);
    z-index: 3000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.rocket-container {
    font-size: 5rem;
    color: var(--primary);
    margin-bottom: 20px;
    position: relative;
    animation: shake 0.5s infinite;
}

.launch-animation {
    animation: launch 1.5s ease-in forwards !important;
}

@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    20% { transform: translate(-1px, -2px) rotate(-1deg); }
    40% { transform: translate(-3px, 0px) rotate(1deg); }
    60% { transform: translate(3px, 2px) rotate(0deg); }
    80% { transform: translate(1px, -1px) rotate(1deg); }
    100% { transform: translate(-1px, 2px) rotate(-1deg); }
}

@keyframes launch {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-100vh); opacity: 0; }
}

.thank-you-overlay h2 {
    color: var(--primary);
    letter-spacing: 5px;
    margin-top: 20px;
}


/* Mobile Responsive Adjustments */
.menu-icon {
    display: none; /* Hidden on Desktop */
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-icon {
        display: block; /* Show on Phone */
    }

    .nav-links {
        display: none; /* Hide by default on Phone */
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(5, 5, 10, 0.95);
        border-bottom: 1px solid var(--primary);
        padding: 20px 0;
        text-align: center;
    }

    /* Class to show menu when toggled */
    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .btn-register {
        display: inline-block;
        width: 80%; /* Makes button easier to tap on phone */
    }

    .hero h1 {
        font-size: 2.5rem; /* Shrink text for phone screens */
    }
}


/* --- Event Rulebook Specific Styles --- */

/* Ensures the entire card acts as a clickable link */
.event-card {
    text-decoration: none; 
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: var(--glass);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

/* Cosmic Hover Effect */
.event-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.3);
    background: rgba(0, 210, 255, 0.05);
}

/* Icon Styling */
.event-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

/* Title and Description */
.event-card h3 {
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text);
}

.event-card p {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #ccc;
    margin-bottom: 15px;
}

/* The Download Badge */
.download-label {
    background: rgba(0, 210, 255, 0.15);
    color: var(--primary);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: bold;
    border: 1px solid var(--primary);
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Hover effect for the badge */
.event-card:hover .download-label {
    background: var(--primary);
    color: #05050a;
}



/* Header Logo Styling */
.header-logo-container {
    display: flex;
    align-items: center;
    gap: 25px;
}

.univ-logo {
    height: 70px; /* Adjust height as needed */
    width: auto;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

.univ-logo:hover {
    transform: scale(1.1);
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}


/* Mobile Adjustments for Logo */
@media (max-width: 768px) {
    .univ-logo {
        height: 40px;
    }
    
    .logo-text {
        display: none; /* Hides text on small phones to save space */
    }
}



/* Navbar Layout */
.navbar {
    display: flex;
    justify-content: space-between; /* Aligns left, center, and right sections */
    align-items: center;
    padding: 0.5rem 3%;
    background: rgba(5, 5, 10, 0.95);
    backdrop-filter: blur(15px);
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 210, 255, 0.2);
}

/* Left Section */
.nav-left {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Center Section (UDAAN Logo) */
.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fest-logo-nav {
    height: 140px; /* Adjust based on your preference */
    width: auto;
    filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.4));
    transition: transform 0.3s ease;
}

.fest-logo-nav:hover {
    transform: scale(1.2);
}

/* Right Section */
.nav-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .desktop-only {
        display: none; /* Hides university text on smaller screens */
    }
}

@media (max-width: 768px) {
    .fest-logo-nav {
        height: 45px; /* Smaller fest logo on phones */
    }
    .univ-logo {
        height: 35px;
    }
}


/* Cursor Particle Style */
.cursor-particle {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background-color: var(--primary); /* Cosmic Blue */
    border-radius: 50%;
    pointer-events: none; /* Won't interfere with clicking buttons */
    z-index: 9999;
    opacity: 0.8;
    box-shadow: 0 0 10px var(--primary);
    transition: transform 0.1s ease-out, opacity 0.5s ease-out;
}


/* Warp Speed Hover Effect */
.event-card {
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.event-card::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
    z-index: -1;
}

.event-card:hover {
    transform: scale(1.05) perspective(1000px) rotateX(5deg);
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.6);
}

.event-card:hover::before {
    width: 300%;
    height: 300%;
    opacity: 0.2;
}

/* Add a glowing text effect on hover */
.event-card:hover h3 {
    text-shadow: 0 0 10px var(--primary);
    letter-spacing: 3px;
    transition: 0.4s;
}



/* Neon Breathing Nav Links */
.nav-links li a {
    position: relative;
    padding-bottom: 5px;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    transition: width 0.3s ease;
}

.nav-links li a:hover::after {
    width: 100%;
    animation: neonPulse 1.5s infinite ease-in-out;
}

@keyframes neonPulse {
    0%, 100% { box-shadow: 0 0 5px var(--primary); }
    50% { box-shadow: 0 0 20px var(--primary), 0 0 30px var(--primary); }
}



/* Pop-up Animation for Buttons */
@keyframes buttonPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1.05); }
}

.btn-primary:active {
    animation: buttonPop 0.3s ease-out forwards;
    box-shadow: 0 0 30px var(--primary);
}

/* Optional: Subtle hover pulse to encourage the click */
.btn-primary:hover {
    transform: translateY(-2px);
    transition: 0.3s;
    box-shadow: 0 0 15px var(--primary);
}


/* Mobile Adjustments for Logo Sizes */
@media (max-width: 768px) {
    /* Main UDAAN Fest Logo */
    .fest-logo-nav {
        height: 75px; /* Increased from 45px for better visibility */
        width: auto;
        padding: 5px 0;
        /* Ensures the logo doesn't overlap with links */
        max-width: 140px; 
    }

    /* University Logo on the Left */
    .univ-logo {
        height: 45px; /* Slightly larger to match the center logo */
        border-radius: 20%;
    }

    /* Adjust navbar padding for mobile to give logos room */
    .navbar {
        padding: 0.8rem 4%;
    }
}


/* Custom Pop Animation for the Link Button */
.btn-pop {
    display: inline-block;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-pop:active {
    transform: scale(1.2); /* Creates the "pop-up" effect on click */
    filter: brightness(1.2);
}

/* Ensure the button looks consistent on Mobile */
@media (max-width: 768px) {
    .btn-register {
        display: block;
        width: 85%;
        margin: 10px auto;
        padding: 12px;
        font-size: 1rem;
    }
}