:root {
    /* Color Palette */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-bg: #0a0a0f;
    --dark-card: #1a1a2e;
    --dark-card-hover: #252540;
    --text-primary: #ffffff;
    --text-secondary: #b8b8d1;
    --glow-color: #667eea;
    --glow-secondary: #00f2fe;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;

    /* Typography */
    --font-primary: 'Orbitron', sans-serif;
    --font-secondary: 'Inter', sans-serif;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Trending Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #667eea, #00f2fe);
    border-radius: 10px;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #764ba2, #4facfe);
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    padding: 1rem 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    cursor: pointer;
}

.header-logo {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(102, 126, 234, 0.3));
    transition: var(--transition-normal);
}

.logo-section:hover .header-logo {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.5));
}

.logo-text {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.event-name-mobile {
    display: none;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1.5px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: var(--transition-normal);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(102, 126, 234, 0.1);
}

.nav-link.active {
    color: var(--text-primary);
    background: rgba(102, 126, 234, 0.2);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    transition: var(--transition-normal);
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle:hover span {
    background: var(--glow-secondary);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.mobile-banner-wrapper {
    display: none;
    width: 100%;
    max-width: 600px;
    margin: 1.5rem auto;
    padding: 0 1rem;
    animation: fadeInDown 1s ease;
}

.mobile-banner-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    filter: drop-shadow(0 0 12px rgba(102, 126, 234, 0.3));
    object-fit: contain;
}

.college-logo {
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease;
}

.college-name-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-normal);
}

.college-icon {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.3));
    transition: var(--transition-normal);
}

.college-name-text {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 0.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.3));
}

.college-name-link:hover .college-name-text {
    filter: drop-shadow(0 0 20px rgba(0, 242, 254, 0.6));
    letter-spacing: 5px;
}

.department-info {
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.department-title {
    display: block;
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
}

.organized-by {
    font-size: 1.1rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    font-weight: 500;
}

/* Event Title - Main Attraction with Glow Effect */
.event-title-container {
    margin: 4rem 0;
    animation: fadeInUp 1s ease 0.4s both;
}

.event-title {
    font-family: var(--font-primary);
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 900;
    letter-spacing: 8px;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.glowing-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite, glow 2s ease-in-out infinite;
    text-shadow:
        0 0 10px rgba(102, 126, 234, 0.5),
        0 0 20px rgba(102, 126, 234, 0.3),
        0 0 30px rgba(102, 126, 234, 0.2);
    filter: drop-shadow(0 0 40px rgba(102, 126, 234, 0.6)) drop-shadow(0 0 80px rgba(0, 242, 254, 0.4));
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes glow {

    0%,
    100% {
        filter: drop-shadow(0 0 40px rgba(102, 126, 234, 0.6)) drop-shadow(0 0 80px rgba(0, 242, 254, 0.4));
    }

    50% {
        filter: drop-shadow(0 0 60px rgba(102, 126, 234, 0.8)) drop-shadow(0 0 120px rgba(0, 242, 254, 0.6));
    }
}

.title-underline {
    height: 4px;
    width: 200px;
    margin: 0 auto;
    background: var(--accent-gradient);
    border-radius: 2px;
    animation: expandWidth 1s ease 0.6s both;
}

@keyframes expandWidth {
    from {
        width: 0;
    }

    to {
        width: 200px;
    }
}

/* Eligibility Notice */
.eligibility-notice {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 0;
    padding: 0 1rem;
    letter-spacing: 1px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease 0.6s both;
}

/* Countdown Timer Styles */
.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(26, 26, 46, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), 0 0 20px rgba(102, 126, 234, 0.1);
    animation: fadeInUp 1s ease 0.6s both;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}

.countdown-value {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.5));
    margin-bottom: 0.5rem;
}

.countdown-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    font-weight: 500;
}

.countdown-divider {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(102, 126, 234, 0.5);
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .countdown-container {
        gap: 0.75rem;
        padding: 1.5rem 1rem;
        margin: 1.5rem 0;
    }

    .countdown-item {
        min-width: 60px;
    }

    .countdown-value {
        font-size: 1.8rem;
    }

    .countdown-label {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }

    .countdown-divider {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
}

/* Sponsors Marquee Section */
.sponsors-marquee {
    width: 100%;
    overflow: hidden;
    background: rgba(10, 10, 15, 0.4);
    padding: 1rem 0;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
    display: flex;
    white-space: nowrap;
}

.sponsors-marquee::before,
.sponsors-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.sponsors-marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--dark-bg), transparent);
}

.sponsors-marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--dark-bg), transparent);
}

.marquee-content {
    display: flex;
    gap: 5rem;
    width: max-content;
    animation: scrollMarquee 25s linear infinite;
    padding-left: 5rem;
    align-items: center;
}

.coming-soon-text {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px rgba(184, 184, 209, 0.5);
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transition-normal);
    white-space: normal;
    text-align: center;
    line-height: 1.3;
}

.coming-soon-text:hover {
    color: var(--text-primary);
    -webkit-text-stroke: 0;
    filter: drop-shadow(0 0 15px rgba(102, 126, 234, 0.6));
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.sponsor-card {
    width: 120px;
    height: 120px;
    perspective: 1000px;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsor-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
}

.sponsor-card.flipped .sponsor-card-inner {
    transform: rotateY(180deg);
}

.sponsor-card-front,
.sponsor-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;

    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.sponsor-card-back {
    transform: rotateY(180deg);
    background: rgba(37, 37, 64, 0.95);
    border-color: var(--glow-secondary);
    padding: 0.5rem;
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(0, 242, 254, 0.3),
        inset 0 0 10px rgba(102, 126, 234, 0.2);
}

.sponsor-info-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--glow-secondary);
    margin-bottom: 0.2rem;
    white-space: normal;
    text-transform: uppercase;
}

.sponsor-info-desc {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    white-space: normal;
    line-height: 1.2;
}

.sponsor-location-btn {
    font-size: 0.65rem;
    background: var(--primary-gradient);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.sponsor-location-btn:hover {
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
}

/* Pause animation on hover */
.sponsors-marquee:hover .marquee-content {
    animation-play-state: paused;
}

/* Dim un-hovered cards and blur them slightly */
.marquee-content:hover .sponsor-card:not(:hover) {
    opacity: 0.4;
    filter: grayscale(80%) blur(2px);
    transform: scale(0.95);
}

.sponsor-card:hover {
    transform: translateY(-8px) scale(1.05);
    /* Pop out effect */
    z-index: 10;
}

.sponsor-img {
    height: 100%;
    width: 100%;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(223, 170, 60, 0.4));
    transition: var(--transition-normal);
    position: relative;
    z-index: 1;
}

.sponsor-img:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(223, 170, 60, 0.8));
}

.sponsor-logo-white {
    background: white;
    padding: 10%;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
}

/* Responsiveness for Scroll bar items */
@media (max-width: 768px) {
    .marquee-content {
        gap: 1.5rem;
        padding-left: 1.5rem;
    }

    .sponsor-card {
        width: 100px;
        height: 100px;
    }

    .sponsor-info-title {
        font-size: 0.75rem;
    }

    .sponsor-info-desc {
        font-size: 0.6rem;
        margin-bottom: 0.3rem;
    }

    .sponsor-location-btn {
        font-size: 0.55rem;
        padding: 2px 6px;
    }

    .coming-soon-text {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }


}

@media (max-width: 480px) {
    .marquee-content {
        gap: 1rem;
        padding-left: 1rem;
    }

    .sponsor-card {
        width: 80px;
        height: 80px;
    }

    .sponsor-info-title {
        font-size: 0.6rem;
    }

    .sponsor-info-desc {
        font-size: 0.5rem;
        margin-bottom: 0.2rem;
        line-height: 1;
    }

    .sponsor-location-btn {
        font-size: 0.45rem;
        padding: 1px 4px;
    }

    .coming-soon-text {
        font-size: 0.75rem;
    }


}

@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.rules-marquee-override {
    padding: 1rem 0;
    background: transparent;
    border-top: 1px solid rgba(0, 242, 254, 0.2);
    border-bottom: 1px solid rgba(0, 242, 254, 0.2);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.1) inset;
}

.rules-marquee-speed {
    animation: scrollMarquee 30s linear infinite;
}

.rules-marquee-text {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--glow-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
    display: inline-flex;
    align-items: center;
    transition: var(--transition-normal);
}

.rules-marquee-text:hover {
    color: var(--text-primary);
    text-shadow: 0 0 15px rgba(0, 242, 254, 0.8);
    transform: scale(1.05);
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding: 0 1rem;
    animation: fadeInUp 1s ease 0.8s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition-normal);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--text-primary);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid;
    border-image: var(--accent-gradient) 1;
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.2);
}

.btn-secondary:hover {
    background: rgba(0, 242, 254, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 242, 254, 0.4);
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.2rem;
}

.btn-icon {
    font-size: 1.3rem;
    transition: var(--transition-fast);
}

.btn:hover .btn-icon {
    transform: translateX(5px);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Styles */
.description-section,
.rules-section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-accent {
    height: 3px;
    width: 100px;
    margin: 0 auto;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.description-content {
    max-width: 900px;
    margin: 0 auto;
    perspective: 1000px;
}

.scroll-reveal {
    transform-style: preserve-3d;
    will-change: transform, opacity, filter;
}

.description-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.highlight-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding: 3rem;
    background: rgba(26, 26, 46, 0.5);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.highlight-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.highlight-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-5px);
}

.highlight-number {
    display: block;
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.highlight-label {
    display: block;
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Brochure Section */
.brochure-section {
    padding: 6rem 0;
    position: relative;
    background: rgba(10, 10, 15, 0.4);
}

.brochure-content {
    text-align: center;
    margin-top: 3rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.brochure-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(102, 126, 234, 0.3);
    transition: var(--transition-normal);
}

.brochure-image:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.2);
}

/* Rules Section */
.rules-content {
    max-width: 900px;
    margin: 0 auto;
}

/* Rules Section Enhancements */
.rules-content {
    max-width: 1100px;
    margin: 0 auto;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.rule-card {
    background: rgba(26, 26, 46, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.rule-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0.5;
    transition: var(--transition-normal);
}

.rule-card:hover {
    transform: translateY(-5px) scale(1.02);
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 20px rgba(102, 126, 234, 0.1);
}

.rule-card:hover::before {
    width: 6px;
    opacity: 1;
}

.rule-icon {
    font-size: 2rem;
    min-width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    transition: var(--transition-normal);
}

.rule-card:hover .rule-icon {
    transform: rotate(10deg);
    background: rgba(102, 126, 234, 0.2);
}

.rule-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
    transition: var(--transition-normal);
}

.rule-card:hover .rule-text {
    color: var(--text-primary);
}

.rule-highlight {
    color: var(--glow-secondary);
    font-weight: 600;
}

.general-rules-section {
    padding: 2rem 0 6rem;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 2rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    width: 100%;
    max-width: 800px;
    position: relative;
}

.modal-content {
    background: rgba(26, 26, 46, 0.9);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: var(--radius-lg);
    padding: 3rem;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(102, 126, 234, 0.2);
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color, #667eea) rgba(10, 10, 15, 0.5);
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(10, 10, 15, 0.5);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.8);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(102, 126, 234, 0.1);
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.modal-close:hover {
    background: var(--secondary-gradient);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-info {
    margin-top: 1rem;
}

.event-rules-detailed {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
}

.event-rules-detailed h4 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.event-rules-detailed ul {
    list-style: none;
}

.event-rules-detailed li {
    padding: 1rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    font-size: 1.1rem;
}

.event-rules-detailed li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--glow-secondary);
    font-weight: bold;
}

.modal-footer {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

/* Events Page Styles */
.events-hero {
    padding: 10rem 0 4rem;
    text-align: center;
    background: radial-gradient(circle at 50% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%);
}

.page-title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.events-grid-section {
    padding: 4rem 0 6rem;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
    justify-content: center;
}

.event-card {
    background: rgba(26, 26, 46, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.event-card:hover::before {
    transform: scaleX(1);
}

.event-card:hover {
    background: rgba(37, 37, 64, 0.8);
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.5);
}

.event-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    transition: var(--transition-normal);
}

.event-card:hover .event-icon {
    background: rgba(102, 126, 234, 0.2);
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
    transform: rotate(10deg);
}

.event-name {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.event-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.event-btn {
    background: var(--accent-gradient);
    color: var(--text-primary);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    width: 100%;
}

.event-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.4);
}

.event-rules {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    margin-top: 1.5rem;
}

.event-rules.active {
    max-height: 500px;
}

.event-rules h4 {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.event-rules ul {
    list-style: none;
    padding-left: 0;
    text-align: left;
    width: 100%;
}

.event-rules li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.event-rules li:last-child {
    border-bottom: none;
}

.event-rules li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--glow-secondary);
    font-weight: bold;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: rgba(26, 26, 46, 0.3);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-text {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background: rgba(10, 10, 15, 0.95);
    border-top: 1px solid rgba(102, 126, 234, 0.2);
    padding: 4rem 0 2rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-title {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-contact a {
    color: var(--glow-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-contact a:hover {
    color: var(--text-primary);
}

/* New Contact Section Styles */
.footer-contact-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: var(--transition-normal);
}

.contact-item:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateX(5px);
}

.contact-icon {
    font-size: 1.8rem;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-details {
    flex: 1;
}

.contact-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-link {
    color: var(--glow-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.contact-link:hover {
    color: var(--text-primary);
}

.contact-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
}

/* Footer Quick Links */
.footer-quick-links {
    margin: 2rem 0 1.5rem;
}

.footer-links-heading {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-links-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-normal);
    cursor: pointer;
}

.footer-link-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.footer-link-btn span {
    font-size: 1.1rem;
}

.footer-menu-btn {
    background: rgba(0, 242, 254, 0.1);
    border-color: rgba(0, 242, 254, 0.3);
}

.footer-menu-btn:hover {
    background: rgba(0, 242, 254, 0.2);
    border-color: rgba(0, 242, 254, 0.5);
    box-shadow: 0 4px 12px rgba(0, 242, 254, 0.2);
}

/* Footer Menu Dropdown */
.footer-menu-dropdown {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    transition: bottom 0.3s ease;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.footer-menu-dropdown.active {
    bottom: 0;
}

.footer-menu-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
}

.footer-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(102, 126, 234, 0.2);
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.footer-menu-close:hover {
    background: var(--secondary-gradient);
    transform: rotate(90deg);
}

.footer-menu-content h4 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    margin-bottom: 0.75rem;
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition-normal);
}

.footer-menu-item:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateX(5px);
}

/* Animations */
.footer-heading {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.location-info {
    color: var(--text-secondary);
    line-height: 1.8;
}

.map-container {
    width: 100%;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.map-container iframe {
    display: block;
    width: 100%;
}

.location-text {
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--glow-secondary);
}

.location-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--glow-secondary);
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 242, 254, 0.1);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 242, 254, 0.2);
    transition: var(--transition-normal);
}

.location-link:hover {
    color: var(--text-primary);
    background: rgba(0, 242, 254, 0.2);
    border-color: var(--glow-secondary);
    transform: translateX(5px);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 2rem 0;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
    text-align: center;
    color: var(--text-secondary);
}

.creator-info {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.creator-link {
    display: inline-inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    margin-left: 0.2rem;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: var(--radius-sm);
    color: var(--glow-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-normal);
}

.creator-link:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: var(--glow-secondary);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.2);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tablet Optimization (1024px) */
@media (max-width: 1024px) {

    .events-grid,
    .rules-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .container {
        padding: 0 2rem;
    }
}

/* Mobile & Small Tablet Optimization (768px) */
@media (max-width: 768px) {
    .header {
        padding: 0.5rem 0;
    }

    .header-container {
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem 1.5rem;
        gap: 0.5rem;
    }

    .logo-section {
        gap: 0.5rem;
    }

    .header-logo {
        height: 30px;
    }

    .logo-text {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }

    .nav-menu {
        gap: 0.5rem;
    }

    .nav-link {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }

    /* Hero Branding Scaling */
    .college-name-link {
        gap: 0.75rem;
    }

    .college-icon {
        height: 40px;
    }

    .college-name-text {
        font-family: var(--font-primary);
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    .department-title {
        font-size: 1rem;
        letter-spacing: 1px;
        margin-top: 1rem;
    }

    .event-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .hero-section {
        padding: 6rem 1rem 3rem;
    }


    .college-logo {
        display: block;
        margin-bottom: 3rem;
    }

    .hero-container {
        padding: 0 0.5rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .events-hero {
        padding: 8rem 0 3rem;
    }

    .events-grid,
    .rules-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .highlight-box {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 0 1.5rem;
    }

    /* Mobile Footer Enhancements */
    .footer {
        padding: 3rem 0 2rem;
    }

    .footer-right {
        order: 1;
        /* Brand first, location second */
        padding: 0.5rem;
        background: transparent;
        border: none;
    }

    .footer-left {
        order: 0;
        padding: 0.5rem;
        background: transparent;
        border: none;
    }

    .footer-title {
        font-size: 1.8rem;
        text-align: center;
        margin-bottom: 1rem;
    }

    .footer-description {
        display: none;
        /* Simplify by hiding long description */
    }

    .footer-heading {
        font-size: 1.2rem;
        text-align: center;
        margin-bottom: 1.25rem;
    }

    .location-text {
        font-size: 0.9rem;
        text-align: center;
        padding: 0.5rem;
        color: var(--text-secondary);
    }

    .location-link {
        width: auto;
        display: inline-flex;
        justify-content: center;
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        margin: 0 auto;
        border-radius: var(--radius-sm);
        background: rgba(102, 126, 234, 0.1);
    }

    .footer-quick-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .footer-links-buttons {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
        margin-top: 1rem;
    }

    .footer-contact-section {
        gap: 1rem;
    }

    .contact-item {
        padding: 0.75rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
        background: transparent;
        border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    }

    .contact-item:last-child {
        border-bottom: none;
    }

    .contact-icon {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }

    .contact-label {
        font-size: 0.7rem;
        opacity: 0.7;
    }

    .contact-link,
    .contact-value {
        font-size: 0.95rem;
    }

    .footer-bottom {
        padding: 1.5rem 1.5rem 0;
        margin-top: 1rem;
    }

    .footer-bottom p {
        font-size: 0.9rem;
    }
}

/* Welcome Modal Specific Styles */
.welcome-modal-body {
    padding: 2rem;
    text-align: center;
}

.welcome-modal-icon {
    font-size: 3rem;
    width: 70px;
    height: 70px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.2);
}

.welcome-modal-title {
    margin: 0;
    font-size: 1.8rem;
}

.welcome-modal-list {
    list-style: none;
    padding: 0;
    text-align: left;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.welcome-modal-item {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    background: rgba(10, 10, 15, 0.4);
    border: 1px solid rgba(102, 126, 234, 0.2);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.welcome-modal-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(5px);
    border-color: rgba(102, 126, 234, 0.4);
}

.welcome-modal-item:last-child {
    margin-bottom: 0;
}

.welcome-modal-bullet {
    margin-right: 15px;
    font-size: 1.5rem;
    line-height: 1;
}

.welcome-item-content {
    flex: 1;
}

.welcome-item-content strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--glow-secondary);
    font-family: var(--font-primary);
    font-size: 1.1rem;
}

.welcome-subtext {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.pulse-animation {
    animation: pulseIcon 2s infinite;
}

@keyframes pulseIcon {
    0% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.2);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 35px rgba(102, 126, 234, 0.5);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.2);
    }
}

.welcome-modal-footer {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

/* Mobile Modal Stabilization */
@media (max-width: 768px) {
    .welcome-modal-body {
        padding: 0rem;
    }

    .welcome-modal-icon {
        width: 50px;
        height: 50px;
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .welcome-modal-title {
        font-size: 1.5rem;
    }

    .welcome-modal-list {
        font-size: 0.95rem;
    }

    .welcome-modal-item {
        margin-bottom: 12px;
        padding: 1rem;
    }

    .welcome-item-content strong {
        font-size: 1rem;
    }

    .welcome-subtext {
        font-size: 0.85rem;
    }

    .welcome-modal-footer {
        margin-top: 1.5rem;
    }

    .modal-overlay {
        padding: 1rem;
        box-sizing: border-box;
    }

    .modal-container {
        width: 100%;
        display: flex;
        justify-content: center;
        margin: 0 auto;
    }

    .modal-content {
        padding: 1.5rem;
        width: 100%;
        margin: 0;
        box-sizing: border-box;
        border-radius: var(--radius-md);
        max-height: 85vh;
        overflow-y: auto;
    }

    .modal-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 32px;
        height: 32px;
        font-size: 1.3rem;
    }

    .modal-header {
        margin-bottom: 1.25rem;
    }

    .modal-header .event-icon {
        font-size: 2.5rem;
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }

    .modal-header .section-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .modal-event-description {
        font-size: 0.95rem;
    }

    .event-rules-detailed {
        margin-top: 1.25rem;
        padding-top: 1.25rem;
    }

    .event-rules-detailed h4 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .event-rules-detailed li {
        font-size: 0.9rem;
        padding: 0.6rem 0 0.6rem 1.25rem;
        line-height: 1.5;
    }

    .modal-footer {
        margin-top: 1.5rem;
    }

    .modal-footer .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0.75rem 1.25rem;
    }

    .logo-text {
        display: none;
    }

    .header-logo {
        height: 40px;
    }

    .event-name-mobile {
        display: block;
        font-size: 1.3rem;
    }

    .nav-menu {
        gap: 0.5rem;
    }

    .nav-link {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .college-name-text {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }

    .department-title {
        font-size: 0.85rem;
        letter-spacing: 0.5px;
    }

    .organized-by {
        font-size: 0.9rem;
    }

    .event-title {
        font-size: clamp(2rem, 10vw, 3.5rem);
        letter-spacing: 4px;
    }

    .eligibility-notice {
        font-size: 0.95rem;
        padding: 0 1.5rem;
        margin-top: 1.5rem;
    }

    .cta-buttons {
        gap: 0.75rem;
        margin-top: 1.5rem;
        padding: 0 1.5rem;
    }

    .btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
        max-width: 280px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .event-card {
        padding: 2rem 1.5rem;
    }

    .event-icon {
        width: 60px;
        height: 60px;
        font-size: 3rem;
    }

    .description-text {
        font-size: 1rem;
    }
}

/* Mobile Menu Responsive Styles */
.mobile-nav-logo {
    display: none;
    /* hidden on desktop */
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 72px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 72px);
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem 1.5rem;
        gap: 0.5rem;
        border-left: 1px solid rgba(102, 126, 234, 0.3);
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        width: 100%;
        padding: 1rem 1.5rem;
        border-radius: var(--radius-md);
        font-size: 1.1rem;
        border: 1px solid rgba(102, 126, 234, 0.2);
        background: rgba(26, 26, 46, 0.4);
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(102, 126, 234, 0.2);
        border-color: rgba(102, 126, 234, 0.5);
    }

    /* Logo shown at bottom of mobile menu */
    .mobile-nav-logo {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-top: auto;
        padding-top: 2rem;
        border-top: 1px solid rgba(102, 126, 234, 0.15);
        gap: 0.6rem;
    }

    .mobile-nav-logo-img {
        width: 72px;
        height: 72px;
        object-fit: contain;
        filter: drop-shadow(0 0 12px rgba(102, 126, 234, 0.5));
        border-radius: 50%;
    }

    .mobile-nav-logo-text {
        font-family: var(--font-primary);
        font-size: 1rem;
        font-weight: 700;
        letter-spacing: 2px;
        background: var(--primary-gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
}

/* Brochure Section */
.brochure-section {
    padding: 5rem 0;
    position: relative;
}

.brochure-images {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: nowrap;
    max-width: 960px;
    margin: 0 auto;
}

.brochure-card {
    background: rgba(26, 26, 46, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(102, 126, 234, 0.25);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(102, 126, 234, 0.1);
    transition: var(--transition-normal);
    flex: 0 0 calc(50% - 1rem);
    max-width: calc(50% - 1rem);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.brochure-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 30px rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.6);
}

.brochure-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: calc(var(--radius-md) - 4px);
    object-fit: contain;
    transition: transform 0.3s ease;
}

.brochure-card:hover .brochure-img {
    transform: scale(1.02);
}

.brochure-zoom-hint {
    text-align: center;
    margin-top: 0.6rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
    opacity: 0.7;
}

/* Lightbox */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    animation: lightboxFadeIn 0.25s ease;
}

.lightbox-overlay.active {
    display: flex;
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    animation: lightboxZoom 0.25s ease;
}

@keyframes lightboxZoom {
    from {
        transform: scale(0.85);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-image {
    max-width: 90vw;
    max-height: 88vh;
    width: auto;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    object-fit: contain;
}

.lightbox-close {
    position: fixed;
    top: 1.2rem;
    right: 1.5rem;
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.4);
    color: #fff;
    font-size: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s, transform 0.2s;
    z-index: 10000;
}

.lightbox-close:hover {
    background: rgba(240, 80, 80, 0.5);
    transform: rotate(90deg) scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .brochure-section {
        padding: 3rem 0;
    }

    .brochure-images {
        flex-wrap: wrap;
        max-width: 100%;
    }

    .brochure-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
}