/* ========================================
   CSS Variables & Reset
   ======================================== */
:root {
    /* Primary Colors - Vibrant Cyan Blue */
    --primary: #00D4FF;
    --primary-dark: #0066CC;
    --primary-light: #66EEFF;
    --secondary: #00FFCC;
    --accent: #FFFFFF;
    
    /* Background Colors - Deep Ocean Theme */
    --dark: #020B18;
    --dark-light: #051530;
    --dark-lighter: #0A2A5A;
    
    /* Text Colors */
    --text: #FFFFFF;
    --text-muted: #B0E0FF;
    --text-secondary: #66EEFF;
    
    /* Effects */
    --border: rgba(0, 212, 255, 0.4);
    --glow: rgba(0, 212, 255, 0.8);
    --glow-secondary: rgba(0, 255, 204, 0.6);
    
    /* Neon Accent Colors */
    --neon-red: #FF3366;
    --neon-blue: #00D4FF;
    --neon-yellow: #FFFF00;
    --neon-purple: #AA66FF;
    --neon-green: #00FF88;
    --neon-pink: #FF66CC;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   Matrix Rain Canvas
   ======================================== */
#matrixCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.7;
    will-change: contents;
}

/* ========================================
   Neo Glow & Shiny Text Effects
   ======================================== */
.neo-glow {
    text-shadow: 
        /* 3D Depth layers */
        1px 1px 0 rgba(0, 100, 150, 0.8),
        2px 2px 0 rgba(0, 80, 120, 0.6),
        3px 3px 0 rgba(0, 60, 100, 0.4),
        /* Bright glow */
        0 0 10px var(--primary),
        0 0 20px var(--primary),
        0 0 40px var(--primary),
        0 0 60px var(--secondary),
        0 0 100px var(--secondary);
    animation: neoFlicker 4s infinite alternate;
}

@keyframes neoFlicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow: 
            1px 1px 0 rgba(0, 100, 150, 0.8),
            2px 2px 0 rgba(0, 80, 120, 0.6),
            3px 3px 0 rgba(0, 60, 100, 0.4),
            0 0 10px var(--primary),
            0 0 20px var(--primary),
            0 0 40px var(--primary),
            0 0 60px var(--secondary),
            0 0 100px var(--secondary);
    }
    20%, 24%, 55% {
        text-shadow: 
            1px 1px 0 rgba(0, 100, 150, 0.5),
            2px 2px 0 rgba(0, 80, 120, 0.3),
            0 0 5px var(--primary),
            0 0 10px var(--primary);
    }
}

.shiny-text {
    background: linear-gradient(
        90deg,
        var(--primary),
        var(--secondary),
        var(--neon-pink),
        var(--primary-light),
        var(--neon-blue),
        var(--primary)
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shineRainbow 3s linear infinite;
}

@keyframes shineRainbow {
    to {
        background-position: 200% center;
    }
}

/* Glitch effect */
.glitch {
    position: relative;
    animation: glitch 1s linear infinite;
}

@keyframes glitch {
    2%, 64% {
        transform: translate(2px, 0) skew(0deg);
    }
    4%, 60% {
        transform: translate(-2px, 0) skew(0deg);
    }
    62% {
        transform: translate(0, 0) skew(5deg);
    }
}

/* Scan line effect */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1),
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    animation: scanlines 0.5s linear infinite;
    will-change: background-position;
}

@keyframes scanlines {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 4px;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    border-bottom: 2px solid var(--primary);
    box-shadow: 0 0 30px var(--glow);
    z-index: 1000;
    padding: 1rem 0;
    overflow: hidden;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/kcg_college_of_technology_cover.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.navbar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(2, 11, 24, 0.7), rgba(2, 11, 24, 0.5));
    z-index: -1;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.nav-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.nav-logos {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.college-logo {
    height: 55px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
}

.iet-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.accreditation-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.nav-logo {
    width: 60px;
    height: 60px;
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px var(--primary)) drop-shadow(0 0 40px var(--secondary));
    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% {
        filter: drop-shadow(0 0 20px var(--primary)) drop-shadow(0 0 40px var(--secondary));
    }
    50% {
        filter: drop-shadow(0 0 30px var(--secondary)) drop-shadow(0 0 60px var(--primary));
    }
}

.brand-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #00D4FF;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow:
        1px 1px 0 #006688,
        2px 2px 0 #004455,
        3px 3px 5px rgba(0, 0, 0, 0.5),
        0 0 15px rgba(0, 212, 255, 0.8),
        0 0 30px rgba(0, 212, 255, 0.5);
}

.brand-subtext {
    font-size: 0.9rem;
    color: var(--secondary);
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--neon-pink), var(--primary-light));
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--primary);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    text-shadow: 0 0 10px var(--glow);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: visible;
    padding-top: 120px;
    padding-bottom: 40px;
    background: var(--dark);
}

.hero-logo {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 0.5rem;
    animation: float 3s ease-in-out infinite, colorShift 5s ease-in-out infinite;
}

@keyframes colorShift {
    0%, 100% {
        filter: drop-shadow(0 0 60px var(--primary));
    }
    25% {
        filter: drop-shadow(0 0 60px var(--neon-blue));
    }
    50% {
        filter: drop-shadow(0 0 60px var(--neon-purple));
    }
    75% {
        filter: drop-shadow(0 0 60px var(--neon-red));
    }
}

.hero-logo-img {
    width: 180px;
    height: 180px;
    max-width: 180px;
    max-height: 180px;
    object-fit: contain;
    filter: drop-shadow(0 0 40px rgba(0, 212, 255, 0.9)) drop-shadow(0 0 80px rgba(0, 255, 204, 0.6));
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 0, 0, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(2, 16, 36, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 50% 20%, rgba(5, 38, 89, 0.2) 0%, transparent 40%),
        url('images/background_home.jpeg') center center / cover no-repeat;
    animation: bgPulse 8s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 51, 102, 0.2);
    border: 2px solid var(--neon-red);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    box-shadow: 0 0 20px rgba(255, 51, 102, 0.6), 0 0 40px rgba(255, 51, 102, 0.4), inset 0 0 20px rgba(255, 51, 102, 0.2);
    animation: alertPulse 1.5s ease-in-out infinite;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Countdown Timer */
.countdown-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.countdown-title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    background: rgba(0, 212, 255, 0.15);
    border: 2px solid var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 1rem;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4), 0 0 40px rgba(0, 212, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.countdown-title .pulse-dot {
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--primary);
    border-radius: 12px;
    min-width: 70px;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3), inset 0 0 10px rgba(0, 212, 255, 0.1);
}

.countdown-value {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-light);
    text-shadow: 0 0 20px var(--primary), 0 0 40px var(--primary);
    line-height: 1;
}

.countdown-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.25rem;
}

.countdown-separator {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary);
    animation: separatorPulse 1s ease-in-out infinite;
}

@keyframes separatorPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes alertPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 51, 102, 0.6), 0 0 40px rgba(255, 51, 102, 0.4), inset 0 0 20px rgba(255, 51, 102, 0.2);
        border-color: var(--neon-red);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 51, 102, 0.8), 0 0 60px rgba(255, 51, 102, 0.6), inset 0 0 30px rgba(255, 51, 102, 0.3);
        border-color: #ff6699;
    }
}

.pulse-dot {
    width: 12px;
    height: 12px;
    background: var(--neon-red);
    border-radius: 50%;
    animation: pulseDot 1s infinite;
    box-shadow: 0 0 15px var(--neon-red);
}

@keyframes pulseDot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
        background: var(--neon-red);
        box-shadow: 0 0 15px var(--neon-red);
    }
    50% {
        transform: scale(1.4);
        opacity: 0.9;
        background: #ff6699;
        box-shadow: 0 0 25px #ff6699;
    }
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.8rem, 6vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.gradient-text {
    background: linear-gradient(135deg, #00D4FF 0%, #00FFCC 35%, #FFFFFF 50%, #FF66CC 75%, #00D4FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.5));
}

.hero-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 1.5rem;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #00FFCC;
    text-shadow: 
        1px 1px 0 #007755,
        2px 2px 0 #005533,
        0 0 15px rgba(0, 255, 204, 0.8),
        0 0 30px rgba(0, 255, 204, 0.5),
        0 0 50px rgba(0, 255, 204, 0.3);
    animation: numberGlow 2s ease-in-out infinite;
}

@keyframes numberGlow {
    0%, 100% {
        text-shadow: 
            1px 1px 0 #007755,
            2px 2px 0 #005533,
            0 0 15px rgba(0, 255, 204, 0.8),
            0 0 30px rgba(0, 255, 204, 0.5);
    }
    50% {
        text-shadow: 
            1px 1px 0 #007755,
            2px 2px 0 #005533,
            0 0 20px rgba(0, 212, 255, 1),
            0 0 40px rgba(0, 212, 255, 0.8),
            0 0 60px rgba(0, 212, 255, 0.5);
    }
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.5rem;
    background: transparent;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 50px;
    border: 2px solid var(--primary);
    box-shadow: 0 0 20px var(--glow), inset 0 0 20px rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    transition: 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 50px var(--glow);
}

.cta-button .arrow {
    transition: transform 0.3s ease;
}

.cta-button:hover .arrow {
    transform: translateX(5px);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-line {
    width: 2px;
    height: 50px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(20px);
        opacity: 0;
    }
}

/* ========================================
   Scroll Reveal Animations
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Stagger effect for event cards */
.events-grid .event-card:nth-child(1) { transition-delay: 0.1s; }
.events-grid .event-card:nth-child(2) { transition-delay: 0.2s; }
.events-grid .event-card:nth-child(3) { transition-delay: 0.3s; }
.events-grid .event-card:nth-child(4) { transition-delay: 0.4s; }
.events-grid .event-card:nth-child(5) { transition-delay: 0.5s; }
.events-grid .event-card:nth-child(6) { transition-delay: 0.6s; }

/* ========================================
   Events Section
   ======================================== */
.events-section {
    padding: 6rem 0;
    position: relative;
}

.events-section.events-page {
    padding-top: 120px;
    min-height: 100vh;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #00D4FF;
    text-shadow:
        1px 1px 0 #006688,
        2px 2px 0 #004455,
        0 0 15px rgba(0, 212, 255, 0.8),
        0 0 30px rgba(0, 212, 255, 0.5);
}

.title-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Filters */
.filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.7rem 1.5rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: var(--text);
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--glow);
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.event-card {
    background: rgba(10, 31, 26, 0.9);
    border: 1px solid var(--border);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--neon-pink), var(--primary-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.event-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 0 30px rgba(0, 212, 255, 0.3),
        0 20px 60px rgba(0, 0, 0, 0.5);
    border-color: var(--primary);
}

.event-card:hover::before {
    opacity: 1;
}

.event-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, var(--dark-lighter) 0%, var(--dark-light) 100%);
    display: block;
}

.event-image[src=""],
.event-image:not([src]) {
    display: none;
}

.event-content {
    padding: 1.5rem;
}

.event-category {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(0, 212, 255, 0.15);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    border: 1px solid var(--primary);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.event-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #00D4FF;
    text-shadow:
        1px 1px 0 #004466,
        0 0 10px rgba(0, 212, 255, 0.6),
        0 0 20px rgba(0, 212, 255, 0.3);
}

.event-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.detail-icon {
    color: var(--primary);
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.event-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary);
    text-shadow: 0 0 10px var(--secondary);
}

.event-price.free {
    color: var(--neon-green);
    text-shadow: 0 0 15px var(--neon-green);
}

.register-btn,
.details-btn {
    padding: 0.6rem 1.5rem;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.register-btn::before,
.details-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

.register-btn:hover,
.details-btn:hover {
    color: var(--dark);
    box-shadow: 0 0 30px var(--glow);
}

.register-btn:hover::before,
.details-btn:hover::before {
    width: 300px;
    height: 300px;
}

.register-btn:disabled,
.details-btn:disabled {
    background: #333;
    border-color: #555;
    color: #666;
    cursor: not-allowed;
    opacity: 0.5;
}

/* ========================================
   About Section
   ======================================== */
.about-section {
    padding: 6rem 0;
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    z-index: 2;
}

.about-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/cyber_hands.png') center center / cover no-repeat;
    filter: blur(3px);
    opacity: 0.25;
    z-index: 0;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.about-wrapper {
    display: flex;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.about-image {
    flex: 1.2;
    max-width: 550px;
    min-width: 400px;
}

.about-img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    border: 2px solid var(--border);
    box-shadow: 
        0 0 20px rgba(0, 212, 255, 0.3),
        0 10px 40px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.about-img:hover {
    transform: scale(1.02);
    border-color: var(--primary);
    box-shadow: 
        0 0 30px rgba(0, 212, 255, 0.5),
        0 15px 50px rgba(0, 0, 0, 0.6);
}

.about-wrapper .about-content {
    flex: 1;
    text-align: left;
}

.about-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #00D4FF 0%, #00FFCC 50%, #00D4FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 3px;
    filter: drop-shadow(1px 1px 0 rgba(0, 100, 150, 0.5)) drop-shadow(0 0 6px rgba(0, 212, 255, 0.4));
}

.about-title .year-highlight {
    background: linear-gradient(135deg, #FF66CC 0%, #FFFF00 50%, #FF66CC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(255, 102, 204, 0.6));
}

.about-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 2rem;
    line-height: 1.9;
    letter-spacing: 0.5px;
    background: linear-gradient(180deg, #ffffff 0%, #B0E0FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    position: relative;
}

.about-text::first-letter {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary);
    -webkit-text-fill-color: var(--primary);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    padding: 2rem;
    background: var(--dark);
    border: 1px solid var(--border);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(123, 189, 232, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.feature p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--dark);
    padding: 3rem 0 1.5rem;
    border-top: 2px solid var(--primary);
    box-shadow: 0 -10px 40px rgba(0, 212, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: 3px;
}

.footer-brand p {
    color: var(--text-muted);
}

.footer-column h4 {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-column a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.footer-column a:hover {
    color: var(--primary);
    text-shadow: 0 0 10px var(--glow);
    padding-left: 10px;
}

.footer-column p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ========================================
   Modals
   ======================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: linear-gradient(135deg, rgba(2, 16, 36, 0.98) 0%, rgba(0, 0, 0, 0.98) 100%);
    border: 2px solid var(--primary);
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    position: relative;
    padding: 1.25rem;
    box-shadow: 
        0 0 50px rgba(0, 212, 255, 0.3),
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 0 30px rgba(0, 212, 255, 0.05);
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(123, 189, 232, 0.2);
    color: var(--primary);
    transform: scale(1.1);
}

/* Event Detail Modal */
.event-detail-header {
    margin-bottom: 0.75rem;
}

.event-detail-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.event-detail-description {
    color: var(--text-muted);
    line-height: 1.5;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.event-detail-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--dark);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.info-item-icon {
    color: var(--primary);
    font-size: 1rem;
}

.info-item-content strong {
    display: block;
    color: var(--text);
    font-size: 0.7rem;
    margin-bottom: 0.1rem;
}

.info-item-content span {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.modal-register-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: var(--text);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-register-btn:hover {
    background: var(--primary-dark);
    box-shadow: 0 5px 30px var(--glow);
}

.modal-btn-group {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.modal-register-btn {
    flex: 1;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--dark);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

.modal-register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.6);
}

/* Registration Form */
.registration-form-container h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.form-subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--dark);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(123, 189, 232, 0.2);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: var(--text);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--primary-dark);
    box-shadow: 0 5px 30px var(--glow);
}

/* Success Message */
.success-message {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--dark-light);
    border: 2px solid var(--primary);
    border-radius: 20px;
    padding: 2rem 3rem;
    text-align: center;
    z-index: 3000;
    box-shadow: 0 20px 60px rgba(123, 189, 232, 0.3);
}

.success-message.show {
    display: block;
    animation: successSlideIn 0.5s ease;
}

@keyframes successSlideIn {
    from {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(123, 189, 232, 0.1);
    border: 3px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary);
    margin: 0 auto 1rem;
}

.success-content h3 {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.success-content p {
    color: var(--text-muted);
}

/* ========================================
   Responsive Design
   ======================================== */

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px var(--glow);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Tablet Styles */
@media (max-width: 992px) {
    .hero-logo-img {
        width: 140px;
        height: 140px;
        max-width: 140px;
        max-height: 140px;
    }

    .hero-title {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }

    .hero-subtitle {
        font-size: 0.9rem;
        padding: 0 1rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 1.3rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-logos {
        gap: 0.3rem;
    }

    .college-logo,
    .iet-logo,
    .accreditation-logo {
        height: 30px;
    }
    
    /* About section tablet fix */
    .about-wrapper {
        gap: 2rem;
    }
    
    .about-image {
        max-width: 400px;
        min-width: 300px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-logos {
        display: none;
    }

    .nav-left {
        flex-direction: row;
        align-items: center;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        border-left: 2px solid var(--primary);
        box-shadow: -10px 0 50px var(--glow);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .hero {
        padding-top: 70px;
        padding-bottom: 20px;
    }

    .hero-logo {
        margin-top: 0;
        margin-bottom: 0.3rem;
    }

    .hero-logo-img {
        width: 120px;
        height: 120px;
        max-width: 120px;
        max-height: 120px;
    }

    .hero-badge {
        padding: 0.3rem 1rem;
        font-size: 0.75rem;
        margin-bottom: 0.8rem;
    }

    .hero-title {
        font-size: clamp(1.3rem, 5vw, 2rem);
        letter-spacing: 1px;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1rem;
        padding: 0 0.5rem;
        line-height: 1.5;
    }

    .hero-stats {
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .stat-number {
        font-size: 1.2rem;
    }

    .stat-label {
        font-size: 0.6rem;
        letter-spacing: 1px;
    }

    .cta-button {
        padding: 0.5rem 1.2rem;
        font-size: 0.75rem;
        margin-top: 0;
    }

    .scroll-indicator {
        bottom: 1rem;
    }

    .scroll-line {
        height: 30px;
    }

    .events-section {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .event-image {
        height: 160px;
    }

    .event-content {
        padding: 1rem;
    }

    .filters {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }

    .filter-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
        max-height: 90vh;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .about-section {
        padding: 3rem 0;
    }

    .about-wrapper {
        flex-direction: column;
        gap: 2rem;
    }

    .about-image {
        max-width: 100%;
    }

    .about-wrapper .about-content {
        text-align: center;
    }

    .about-title {
        font-size: 1.8rem;
    }

    .about-text {
        font-size: 0.9rem;
    }

    .nav-logo {
        width: 45px;
        height: 45px;
        max-width: 45px;
        max-height: 45px;
    }

    .brand-text {
        font-size: 1.4rem;
        letter-spacing: 2px;
    }

    .navbar {
        padding: 0.7rem 0;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .hero {
        padding-top: 65px;
    }

    .hero-logo-img {
        width: 100px;
        height: 100px;
        max-width: 100px;
        max-height: 100px;
    }

    .hero-title {
        font-size: 1.2rem;
    }

    .hero-subtitle {
        font-size: 0.8rem;
    }

    .hero-stats {
        gap: 0.8rem;
    }

    .stat-item {
        min-width: 60px;
    }

    .stat-number {
        font-size: 1rem;
    }

    .stat-label {
        font-size: 0.55rem;
    }

    .cta-button {
        padding: 0.5rem 1rem;
        font-size: 0.7rem;
        letter-spacing: 1px;
    }

    .brand-text {
        font-size: 1.2rem;
    }

    .nav-logo {
        width: 40px;
        height: 40px;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .event-card {
        padding: 0;
        border-radius: 12px;
    }

    .event-image {
        height: 140px;
        border-radius: 12px 12px 0 0;
    }

    .event-content {
        padding: 0.8rem;
    }

    .event-title {
        font-size: 1.1rem;
    }

    .event-info {
        font-size: 0.85rem;
    }

    .event-description {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
    }

    .modal-content {
        padding: 1rem;
        margin: 0.5rem;
        border-radius: 12px;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        height: auto;
        padding: 70px 0 20px;
    }

    .hero-logo-img {
        width: 80px;
        height: 80px;
    }

    .hero-title {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        display: none;
    }

    .hero-stats {
        margin-bottom: 1rem;
    }

    .scroll-indicator {
        display: none;
    }
}

/* ========================================
   Performance Optimizations for Mobile
   ======================================== */
@media (max-width: 768px) {
    /* Disable expensive scanlines animation */
    body::before {
        display: none !important;
    }
    
    /* Reduce matrix canvas opacity */
    #matrixCanvas {
        opacity: 0.4;
    }
    
    /* Simplify navbar backdrop blur */
    .navbar {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        box-shadow: 0 0 15px var(--glow);
    }
    
    /* Simplify neo-glow effects */
    .neo-glow {
        text-shadow: 
            1px 1px 0 rgba(0, 100, 150, 0.6),
            0 0 8px var(--primary),
            0 0 15px var(--primary);
        animation: none;
    }
    
    /* Simplified flicker animation - removed for performance */
    .brand-text {
        animation: none;
    }
    
    /* Reduce modal backdrop blur */
    .modal {
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }
    
    /* Reduce nav-links backdrop effects */
    .nav-links {
        box-shadow: -5px 0 25px var(--glow);
    }
    
    /* Simplify event card effects */
    .event-card {
        box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
    }
    
    .event-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    }
    
    /* Simplify about-title glow */
    .about-title {
        filter: drop-shadow(0 0 4px rgba(0, 212, 255, 0.3));
    }
    
    /* Reduce footer effects */
    .footer {
        box-shadow: 0 -5px 20px rgba(0, 212, 255, 0.2);
    }
}

/* Extra performance for very small devices */
@media (max-width: 480px) {
    #matrixCanvas {
        opacity: 0.3;
    }
    
    .neo-glow {
        text-shadow: 
            0 0 5px var(--primary),
            0 0 10px var(--primary);
    }

    .about-image {
        min-width: auto;
        max-width: 100%;
    }
    
    .about-img {
        max-width: 100%;
        height: auto;
    }
}

/* ========================================
   Enhanced Mobile Responsiveness
   ======================================== */

/* Ensure smooth transitions between breakpoints */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Improve touch targets for mobile */
@media (max-width: 768px) {
    .nav-link {
        padding: 12px 20px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .cta-button {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .details-btn,
    .modal-register-btn {
        min-height: 44px;
        padding: 12px 24px;
    }
    
    /* Fix about image for mobile */
    .about-image {
        min-width: auto;
        max-width: 100%;
        width: 100%;
    }
    
    .about-img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
    
    .about-text {
        font-size: 1rem;
        line-height: 1.8;
    }
    
    /* Improve hero content spacing */
    .hero-content {
        padding: 0 15px;
    }
    
    /* Better countdown display on mobile */
    .countdown-container {
        padding: 0 10px;
    }
    
    .countdown-item {
        min-width: 50px;
    }
    
    .countdown-value {
        font-size: 1.2rem;
    }
    
    .countdown-label {
        font-size: 0.6rem;
    }
}

/* Fix very small screens */
@media (max-width: 360px) {
    .brand-text {
        font-size: 1rem;
        letter-spacing: 1px;
    }
    
    .hero-title {
        font-size: 1rem;
    }
    
    .stat-item {
        min-width: 50px;
        padding: 0.3rem;
    }
    
    .stat-number {
        font-size: 0.9rem;
    }
    
    .countdown-item {
        min-width: 40px;
    }
    
    .countdown-value {
        font-size: 1rem;
    }
    
    .about-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
}

/* Ensure images don't overflow on any device */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
}

/* Better modal on mobile */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-width: 95%;
        margin: 10px auto;
        max-height: 85vh;
        overflow-y: auto;
    }
    
    .event-detail-header {
        padding: 0;
    }
    
    .event-detail-title {
        font-size: 1.3rem;
    }
    
    .modal-btn-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-btn-group a,
    .modal-btn-group button {
        width: 100%;
        text-align: center;
    }
}
