@import "https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700&family=Exo+2:wght@300;400;600&family=Sacramento&display=swap";
@import "https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Raleway:wght@300;400;500;600&display=swap";

:root {
    /* Alegria Exact Tokens & Global Theme */
    --gold: #e8ba30;
    --gold-light: #f6c155;
    --gold-dark: #8a6a31;
    --ocean-deep: #050b14;
    --ocean-mid: #0b1e33;
    --ocean-light: #1a3c5a;
    --cyan-glow: #33ffff;
    --teal-deep: #004b87;

    /* Theme Colors (HSL) */
    --background: 200 80% 5%;
    --foreground: 180 30% 95%;
    --primary: 45 80% 55%;
    --card: 200 60% 8%;

    /* Lenis Recommended */
    html.lenis {
        height: auto;
    }

    .lenis.lenis-smooth {
        scroll-behavior: auto;
    }

    .lenis.lenis-smooth [data-lenis-prevent] {
        overscroll-behavior: contain;
    }

    .lenis.lenis-stopped {
        overflow: hidden;
    }

    /* Shadows - Optimized */
    --shadow-gold: 0 0 15px rgba(232, 186, 48, 0.3);
    --shadow-cyan: 0 0 20px rgba(51, 255, 255, 0.2);
    --shadow-deep: 0 10px 30px rgba(3, 16, 23, 0.6);

    /* Fonts */
    --font-heading: 'Cinzel',
    serif;
    --font-decorative: 'Cinzel Decorative',
    cursive;
    --font-body: 'Exo 2',
    sans-serif;
    --font-script: 'Sacramento',
    cursive;
}

html {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    /* background-color: var(--midnight);  <-- Disabled to show fixed video background */
    background-color: transparent;
    color: white;
    overflow-x: hidden;
}

/* Global Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

body.loading {
    overflow: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-gold {
    color: var(--gold);
}

.glass {
    background: rgba(5, 20, 40, 0.95);
    /* High opacity solid-ish background */
    /* backdrop-filter: blur(8px); DISABLED FOR PERFORMANCE */
    /* -webkit-backdrop-filter: blur(8px); */
    border: 1px solid rgba(77, 184, 255, 0.15);
    transform: translateZ(0);
    /* Force GPU layer */
    will-change: transform;
}

.glow-text {
    text-shadow: 0 0 12px rgba(207, 160, 74, 0.5);
    will-change: text-shadow;
}

.glow-text:hover {
    text-shadow: 0 0 22px rgba(251, 191, 36, 0.9);
}

/* --- Holographic Logo Animation "Best" --- */
.hologram-container {
    perspective: 800px;
    will-change: transform;
}

.holo-img {
    filter: drop-shadow(0 0 8px var(--cyan-glow));
    animation: holoFloat 3s ease-in-out infinite, holoFlicker 4s infinite alternate;
    opacity: 0.9;
    will-change: transform, opacity;
}

/* Glitch Effect Layer */
.holo-glitch {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/cresence_holo.png') no-repeat center center/contain;
    opacity: 0.5;
    mix-blend-mode: overlay;
    display: none;
    /* Active on hover */
    will-change: transform, clip-path;
}

.hologram-container:hover .holo-glitch {
    display: block;
    animation: glitchAnim 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
    transform: translate(2px, -2px);
    filter: hue-rotate(90deg);
}

/* Base Light Projector */
.holo-base {
    position: absolute;
    bottom: -15px;
    left: 20%;
    width: 60%;
    height: 10px;
    background: radial-gradient(ellipse at center, rgba(51, 255, 255, 0.6) 0%, transparent 70%);
    filter: blur(5px);
    animation: pulseBase 2s infinite;
}

@keyframes holoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes holoFlicker {

    0%,
    100% {
        opacity: 0.9;
        filter: drop-shadow(0 0 8px var(--cyan-glow)) brightness(1);
    }

    5% {
        opacity: 0.7;
        filter: drop-shadow(0 0 2px var(--cyan-glow)) brightness(0.8);
    }

    10% {
        opacity: 0.9;
    }

    50% {
        opacity: 1;
        filter: drop-shadow(0 0 15px var(--cyan-glow)) brightness(1.2);
    }
}

@keyframes glitchAnim {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
        clip-path: inset(10% 0 80% 0);
    }

    40% {
        transform: translate(2px, -2px);
        clip-path: inset(80% 0 5% 0);
    }

    60% {
        transform: translate(0);
        clip-path: inset(40% 0 40% 0);
    }

    100% {
        transform: translate(0);
    }
}

@keyframes pulseBase {

    0%,
    100% {
        opacity: 0.4;
        transform: scaleX(1);
    }

    50% {
        opacity: 0.8;
        transform: scaleX(1.2);
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.3s;
    opacity: 0;
}

.delay-2 {
    animation-delay: 0.6s;
    opacity: 0;
}

/* Highlighted Letters Animation */
.highlight-letter {
    display: inline-block;
    color: var(--gold-light);
    text-shadow: 0 0 15px var(--gold);
    animation: pulseLetter 2s infinite ease-in-out;
}

@keyframes pulseLetter {

    0%,
    100% {
        transform: scale(1);
        text-shadow: 0 0 15px var(--gold);
        color: var(--gold-light);
    }

    50% {
        transform: scale(1.1);
        text-shadow: 0 0 25px var(--cyan-glow), 0 0 10px var(--gold);
        color: #ffffff;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    background: rgba(11, 30, 51, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
    background: rgba(11, 30, 51, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 0.8rem 2rem;
}



.event-btn {
    margin-top: auto;
    background: transparent;
    border: 1px solid var(--cyan-glow);
    color: var(--cyan-glow);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto !important;
    /* Critical Fix */
    z-index: 100;
    position: relative;
}

.event-btn:hover {
    background: var(--cyan-glow);
    color: var(--ocean-deep);
    box-shadow: 0 0 15px var(--cyan-glow);
}

/* 3D Carousel Styles */
.carousel-container {
    perspective: 1500px;
    width: 100%;
    height: 600px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-top: -2rem;
}

.carousel-track {
    position: relative;
    width: min(90vw, 340px);
    height: min(130vw, 480px);
    transform-style: preserve-3d;
}

.carousel-card {
    position: absolute;
    width: min(85vw, 330px);
    height: min(120vw, 460px);
    left: 0;
    top: 0;
    /* Glass Effect from Reference */
    background: rgba(15, 23, 43, 0.6);
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: 30px;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    backdrop-filter: blur(24px);
    overflow: hidden;
    box-shadow: 0 20px 50px hsla(195, 100%, 50%, 0.1);
}

/* Internal Caustics/Glow Overlay */
.carousel-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.05), transparent 70%);
    pointer-events: none;
}

.carousel-card.active {
    z-index: 100;
    opacity: 1;
    transform: scale(1);
    box-shadow:
        0 30px 60px hsla(195, 100%, 50%, 0.35),
        0 0 80px hsla(195, 100%, 50%, 0.15),
        inset 0 0 60px hsla(195, 100%, 50%, 0.05);
    border-color: rgba(34, 211, 238, 0.6);
}

/* Icon Container - Glowing Circle */
.card-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: hsla(210, 80%, 12%, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: 0 0 30px hsla(195, 100%, 50%, 0.3);
    border: 1px solid rgba(34, 211, 238, 0.3);
    z-index: 2;
    transition: transform 0.3s ease;
    margin-bottom: 2rem;
    box-shadow: 0 0 30px hsla(195, 100%, 50%, 0.3);
    border: 1px solid rgba(34, 211, 238, 0.3);
    z-index: 2;
    transition: transform 0.3s ease;
}

.card-icon svg {
    width: 44px;
    height: 44px;
    color: hsl(199, 89%, 75%);
    filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.8));
    transition: transform 0.3s ease;
}

.carousel-card:hover .card-icon {
    transform: scale(1.05);
}

.carousel-card:hover .card-icon svg {
    transform: scale(1.1);
}

.carousel-card h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 5vw, 2rem);
    font-weight: 700;
    color: hsl(199, 89%, 85%);
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(34, 211, 238, 0.3);
    z-index: 2;
}

.carousel-card p {
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.6;
    color: hsl(199, 40%, 75%);
    margin-bottom: auto;
    /* Push button to bottom */
    z-index: 2;
    padding: 0 0.5rem;
}

.carousel-card.active {
    z-index: 10;
    opacity: 1;
    transform: translateX(0) translateZ(0) rotateY(0);
    box-shadow: 0 20px 50px rgba(34, 211, 238, 0.2);
    border-color: rgba(34, 211, 238, 0.8);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--gold);
    text-shadow: 0 0 20px rgba(232, 186, 48, 0.5);
}

/* Carousel Buttons */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    background: rgba(0, 42, 78, 0.5);
    border: 1px solid rgba(34, 211, 238, 0.3);
    color: #22d3ee;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.carousel-nav-btn:hover {
    background: rgba(34, 211, 238, 0.2);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.4);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

@media (min-width: 768px) {
    .prev-btn {
        left: 10%;
    }

    .next-btn {
        right: 10%;
    }
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-logo {
    width: 80px;
    height: 80px;
    /* Use the new logo here too */
    background: url('../assets/cresence_holo.png') no-repeat center center/contain;
    margin-bottom: 20px;
    animation: holoFlicker 2s infinite alternate;
}

.loader-text {
    font-family: 'Cinzel Decorative', cursive;
    color: #f5e6ca;
    /* Cream/Pale Gold to match reference */
    font-size: 2.5rem;
    /* Reduced size */
    letter-spacing: 0.15em;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(245, 230, 202, 0.3);
    /* Soft warm glow */
    animation: fadeText 4s infinite alternate;
    margin-top: 1rem;
    text-transform: uppercase;
}

@keyframes fadeText {
    from {
        opacity: 0.9;
        text-shadow: 0 0 10px rgba(245, 230, 202, 0.2);
    }

    to {
        opacity: 1;
        text-shadow: 0 0 20px rgba(245, 230, 202, 0.6);
    }
}

/* Highlighted Letters Animation (C, S, E) */
.highlight-letter {
    display: inline-block;
    color: #ffd700;
    /* Rich Gold for highlights */
    text-shadow:
        0 0 10px rgba(255, 215, 0, 0.5),
        0 0 20px rgba(255, 215, 0, 0.3);
    animation: majesticPulse 3s infinite alternate;
    font-size: 3.5rem;
    /* Reduced but larger than base text */
}

@keyframes majesticPulse {
    0% {
        transform: scale(1);
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
    }

    100% {
        transform: scale(1.05);
        /* Subtle scale */
        text-shadow: 0 0 25px rgba(255, 215, 0, 0.8), 0 0 40px rgba(255, 215, 0, 0.4);
    }
}

/* --- Timeline Section --- */
.timeline-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, transparent, var(--gold), transparent);
    transform: translateX(-50%);
    box-shadow: 0 0 15px var(--shadow-gold);
}

.timeline-item {
    position: relative;
    width: 50%;
    margin-bottom: 4rem;
    padding: 0 40px;
    box-sizing: border-box;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--gold);
    z-index: 10;
}

.timeline-item.left .timeline-dot {
    right: -10px;
}

.timeline-item.right .timeline-dot {
    left: -10px;
}

.timeline-content {
    padding: 2rem;
    border-radius: 1rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(232, 186, 48, 0.1);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(51, 255, 255, 0.2);
    border-color: var(--cyan-glow);
}

.timeline-content h3 {
    color: var(--cyan-glow);
    margin: 0.5rem 0;
    font-size: 1.5rem;
}

.timeline-content .date {
    color: var(--gold-light);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.timeline-content p {
    color: #e2e8f0;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .timeline-line {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        text-align: left;
    }

    .timeline-item.right {
        left: 0;
    }

    .timeline-item.left {
        left: 0;
    }

    .timeline-item.left .timeline-dot,
    .timeline-item.right .timeline-dot {
        left: 10px;
        right: auto;
    }
}

/* --- Team Section (Hexagon Redesign) --- */
.team-card {
    position: relative;
    padding: 2rem;
    /* Removed border-radius */
    text-align: center;
    transition: all 0.3s ease;
    background: transparent;
    /* Clean look */
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-card .member-img {
    width: 100%;
    max-width: 160px;
    aspect-ratio: 4/5;
    height: auto;
    /* Rectangle Ratio */
    margin: 0 auto 1.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #0b1e33, #1a3c5a);
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gold);
    box-shadow: 0 0 15px rgba(232, 186, 48, 0.2);
}

.team-card .member-img::before {
    content: '';
    position: absolute;
    inset: 3px;
    /* Inner border width */
    background: #0b1e33;
    /* Background for image */
    border-radius: 10px;
    z-index: -1;
}

.team-card:hover .member-img {
    filter: drop-shadow(0 0 15px var(--cyan-glow));
    transform: scale(1.05);
}

.team-card .member-img span {
    font-size: 4rem;
    opacity: 0.8;
    z-index: 2;
}


.team-card h3 {
    color: var(--gold);
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.team-card p {
    color: var(--cyan-glow);
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border-top: 1px solid rgba(232, 186, 48, 0.3);
    border-bottom: 1px solid rgba(232, 186, 48, 0.3);
    padding: 0.5rem 0;
    display: inline-block;
}

.social-links a {
    color: var(--gold);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    opacity: 0.8;
    margin: 0 0.5rem;
}

.social-links a:hover {
    color: var(--cyan-glow);
    transform: scale(1.2) rotate(360deg);
    /* Spin effect */
    opacity: 1;
    text-shadow: 0 0 10px var(--cyan-glow);
}

/* --- Event Tabs & Grid Layout --- */
.event-tabs-container {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 10;
}

.event-tabs {
    display: inline-flex;
    padding: 0.5rem;
    border-radius: 50px;
    gap: 1rem;
    background: rgba(0, 42, 78, 0.4);
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--gold);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.tab-btn:hover {
    background: rgba(34, 211, 238, 0.1);
    color: #fff;
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--teal-deep), var(--cyan-glow));
    color: #000;
    /* Dark text for contrast on cyan */
    border-color: var(--cyan-glow);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.4);
    font-weight: 700;
}


.events-grid-display {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* --- Zig-Zag Card Design --- */
.event-zigzag-card {
    display: flex;
    flex-direction: row;
    height: 350px;
    background: rgba(15, 23, 43, 0.6);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 4px;
    /* Techy sharp corners */
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
}

/* Alternating Layout */
.event-zigzag-card:nth-child(even) {
    flex-direction: row-reverse;
}

.event-zigzag-card:hover {
    border-color: var(--cyan-glow);
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.15);
    transform: translateY(-5px);
}

.zigzag-img-wrapper {
    flex: 1;
    position: relative;
    background-size: cover;
    background-position: center;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%);
    /* Angled cut */
}

.event-zigzag-card:nth-child(even) .zigzag-img-wrapper {
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
    /* Angled cut reversed */
}

.img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(11, 30, 51, 0.2), #0b1e33);
}

.zigzag-content {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.zigzag-content h3 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.3);
}

.zigzag-content p {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 90%;
}

.zigzag-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 0.9rem;
}

/* Decoration Line */
.content-decoration {
    position: absolute;
    top: 2rem;
    left: 3rem;
    width: 50px;
    height: 3px;
    background: var(--gold);
}

.event-zigzag-card:nth-child(even) .content-decoration {
    left: auto;
    right: 3rem;
}

.event-zigzag-card:nth-child(even) .zigzag-content {
    text-align: right;
    align-items: flex-end;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .event-zigzag-card {
        flex-direction: column !important;
        /* Force column on mobile */
        height: auto;
    }

    .zigzag-img-wrapper {
        height: 200px;
        clip-path: none !important;
    }

    .zigzag-content {
        padding: 2rem;
        text-align: center !important;
        align-items: center !important;
    }

    .content-decoration {
        display: none;
    }
}

.event-display-card {
    background: rgba(15, 23, 43, 0.7);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(16px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.27), border-color 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.event-display-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(34, 211, 238, 0.2);
    border-color: var(--cyan-glow);
}

.card-image-top {

    width: 100%;
    height: 250px;
    /* Increased height for better visibility */
    background-size: cover;
    background-position: center center;
    /* Ensure center focus */
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.card-image-top::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 43, 1), transparent);
}

.card-category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: var(--cyan-glow);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid var(--cyan-glow);
    z-index: 2;
    backdrop-filter: blur(4px);
}

.event-card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
    position: relative;
}

.event-card-content h3 {
    color: var(--cyan-glow);
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    margin-bottom: 0.8rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.3);
}

.event-card-content p {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.register-btn-main {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 1px solid var(--gold);
    border-radius: 50px;
    color: var(--gold);
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.register-btn-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--gold);
    z-index: -1;
    transition: width 0.3s ease;
}

.register-btn-main:hover::before {
    width: 100%;
}

.register-btn-main:hover {
    color: var(--ocean-deep);
    box-shadow: 0 0 20px var(--gold);
}

/* --- Responsive Navigation & Layout --- */

/* Default Desktop Styles (Replacing Inline) */
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links li {
    position: relative;
    list-style: none;
}

.nav-links a {
    font-weight: 700;
    font-size: 1.2rem;
    transition: color 0.3s, text-shadow 0.3s;
}

.menu-toggle {
    display: none;
    /* Hidden on Desktop */
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
    /* Above mobile menu */
    transition: transform 0.3s ease;
}

/* Mobile & Tablet Styles */
@media (max-width: 768px) {

    /* Navigation */
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden off-screen */
        width: 100%;
        height: 100vh;
        background: rgba(5, 11, 20, 0.98);
        /* Deep ocean background */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
        backdrop-filter: blur(15px);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 2rem;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    /* Stagger animation for links */
    .nav-links.active a {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.2s;
        /* Base delay */
    }

    /* --- Custom Cursor --- */
    .custom-cursor {
        position: fixed;
        width: 8px;
        height: 8px;
        background: var(--primary-gold);
        border-radius: 50%;
        pointer-events: none;
        z-index: 9999;
        transform: translate(-50%, -50%);
        mix-blend-mode: difference;
        transition: transform 0.1s;
    }

    .custom-cursor-follower {
        position: fixed;
        width: 40px;
        height: 40px;
        border: 1px solid var(--primary-cyan);
        border-radius: 50%;
        pointer-events: none;
        z-index: 9998;
        transform: translate(-50%, -50%);
        transition: transform 0.15s, background 0.2s;
    }

    .custom-cursor-follower.active {
        transform: translate(-50%, -50%) scale(1.5);
        background: rgba(51, 255, 255, 0.1);
        border-color: var(--primary-gold);
    }

    /* --- Click Burst Particles --- */
    .click-particle {
        position: fixed;
        width: 6px;
        height: 6px;
        background: var(--primary-gold);
        border-radius: 50%;
        pointer-events: none;
        z-index: 9999;
        transform: translate(-50%, -50%);
        animation: particleBurst 0.8s ease-out forwards;
    }

    @keyframes particleBurst {
        0% {
            transform: translate(-50%, -50%) scale(1);
            opacity: 1;
        }

        100% {
            transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0);
            opacity: 0;
        }
    }

    /* Base Styles */

    .nav-links.active li:nth-child(1) a {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(2) a {
        transition-delay: 0.3s;
    }

    .nav-links.active li:nth-child(3) a {
        transition-delay: 0.4s;
    }

    .nav-links.active li:nth-child(4) a {
        transition-delay: 0.5s;
    }

    /* Layout Adjustments */
    .container {
        padding: 0 1.5rem;
    }

    /* Hero Text Scaling */
    .hero h1 {
        font-size: clamp(2.5rem, 10vw, 4rem) !important;
    }

    .hero p {
        font-size: 1.2rem;
    }

    /* Events Scroller */
    .event-tabs-container {
        overflow-x: auto;
        padding-bottom: 1rem;
        justify-content: flex-start;
        /* Align left to prevent cut-off */
        padding-left: 1rem;
        -webkit-overflow-scrolling: touch;
    }

    .event-tabs {
        flex-wrap: nowrap;
        /* Keep single row scrolling */
        min-width: max-content;
    }

    /* Ensure modals are full width on mobile */
    .modal-content {
        width: 90% !important;
        margin: 1rem;
        max-height: 85vh;
        overflow-y: auto;
    }

    /* Timeline Adjustments */
    .timeline-item {
        margin-bottom: 3rem;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .navbar .logo span {
        font-size: 1.1rem !important;
        white-space: nowrap;
    }
}

/* Very Small Screens */
@media (max-width: 480px) {
    .event-display-card h3 {
        font-size: 1.4rem;
    }

    .team-card .member-img {
        width: 120px;
        height: 120px;
    }

    .team-card .member-img span {
        font-size: 3rem;
    }
}

/* --- Google Login Modal --- */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    /* Darker backdrop */
    z-index: 2000;
    display: flex;
    /* overridden by inline style */
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.login-modal-content {
    background: #ffffff;
    padding: 3rem 2rem;
    border-radius: 8px;
    width: 100%;
    max-width: 450px;
    text-align: center;
    position: relative;
    color: #202124;
    font-family: 'Roboto', sans-serif;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.27);
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-login {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #5f6368;
}

.google-logo-wrapper {
    margin-bottom: 1rem;
}

.login-modal-content h2 {
    font-family: 'Google Sans', sans-serif;
    /* Fallback to sans */
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #202124;
}

.login-modal-content p {
    color: #5f6368;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.account-chooser {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.account-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.account-item:hover {
    background: #f1f3f4;
}

.account-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1a73e8;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-weight: bold;
}

.account-info {
    display: flex;
    flex-direction: column;
}

.account-info .name {
    font-weight: 500;
    font-size: 0.9rem;
    color: #3c4043;
}

.account-info .email {
    font-size: 0.8rem;
    color: #5f6368;
}

/* Spinner */
.google-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
}

.spinner-circle {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border-left-color: #1a73e8;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

/* --- Department Stats Cards --- */
.dept-stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dept-stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--gold);
    box-shadow: 0 5px 15px rgba(232, 186, 48, 0.2);
}

.dept-stat-card .stat-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 5px var(--cyan-glow));
}

.dept-stat-card .stat-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--gold);
    font-weight: bold;
}

.dept-stat-card .stat-label {
    font-size: 0.9rem;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Tech Text Reveal Animation --- */
.tech-reveal-text {
    opacity: 0;
    transform: translateY(20px);
    animation: techReveal 0.8s ease-out forwards;
}

@keyframes techReveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(5px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* --- Registration Modal Styles --- */
.neon-input {
    width: 100%;
    background: rgba(15, 23, 43, 0.8);
    border: 1px solid rgba(147, 51, 234, 0.3);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    outline: none;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.neon-input:focus {
    border-color: #d946ef;
    box-shadow: 0 0 15px rgba(217, 70, 239, 0.3);
    background: rgba(15, 23, 43, 0.95);
}

.form-group {
    margin-bottom: 1.2rem;
}

.file-upload-wrapper input[type=file] {
    font-size: 0.9rem;
}

.file-upload-wrapper input[type=file]::file-selector-button {
    background: #38bdf8;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    color: #0f172a;
    font-weight: bold;
    margin-right: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

/* --- Profile Dropdown & Animation --- */
#profile-dropdown {
    transform-origin: top right;
    animation: fadeInDropdown 0.2s ease-out;
    background: rgba(11, 30, 51, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

#profile-dropdown button:hover {
    color: var(--gold);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Success Animation Overlay */
.success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 43, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    z-index: 10;
    animation: fadeIn 0.5s ease;
}

.checkmark-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.27);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.5);
}

.checkmark {
    width: 40px;
    height: 40px;
    border-right: 5px solid white;
    border-bottom: 5px solid white;
    transform: rotate(45deg) translate(-2px, -2px);
    opacity: 0;
    animation: checkDraw 0.5s 0.3s forwards;
}

@keyframes popIn {
    0% {
        transform: scale(0);
    }

    80% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes checkDraw {
    0% {
        opacity: 0;
        width: 0;
        height: 0;
    }

    100% {
        opacity: 1;
        width: 40px;
        height: 40px;
    }
}

/* --- Navigation Dropdown --- */
.nav-links .dropdown {
    position: relative;
    padding-bottom: 10px;
    /* Bridge gap */
}

/* Show dropdown on hover */
.nav-links .dropdown:hover .dropdown-menu {
    display: block !important;
    animation: fadeInDropdown 0.3s ease;
}

.nav-links .dropdown-menu li {
    margin-left: 0 !important;
    margin-bottom: 5px;
}

.nav-links .dropdown-menu li:last-child {
    margin-bottom: 0;
}

.nav-links .dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--cyan-glow) !important;
    border-radius: 5px;
    padding-left: 15px !important;
    transition: all 0.3s;
}

/* --- Social Icons Hover --- */
.social-icon-link:hover {
    transform: translateY(-10px);
    text-shadow: 0 0 15px var(--gold);
}




.social-icon-link:hover img {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

/* --- Cyberpunk Grid Animation --- */
.cyber-grid {
    position: absolute;
    width: 200%;
    height: 200%;
    bottom: -50%;
    left: -50%;
    background-image:
        linear-gradient(#d946ef 1px, transparent 1px),
        linear-gradient(90deg, #d946ef 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center center;
    transform: rotateX(60deg);
    animation: gridFlow 4s linear infinite;
    mask-image: linear-gradient(to bottom, transparent 0%, black 40%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 40%);
    pointer-events: none;
    z-index: 2;
}

@keyframes gridFlow {
    0% {
        transform: rotateX(60deg) translateY(0);
    }

    100% {
        transform: rotateX(60deg) translateY(40px);
    }
}

/* --- Custom Cursor --- */
.custom-cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--cyan-glow);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--cyan-glow);
}

.custom-cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(51, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s;
}

.custom-cursor-follower.active {
    width: 60px;
    height: 60px;
    background: rgba(51, 255, 255, 0.1);
    border-color: var(--cyan-glow);
}

/* Drag Sparkle Particle */
.drag-particle {
    position: fixed;
    pointer-events: none;
    background: var(--gold);
    border-radius: 50%;
    animation: fadeDispersion 1s ease-out forwards;
    z-index: 9997;
}

@keyframes fadeDispersion {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(0) translate(var(--tx), var(--ty));
        opacity: 0;
    }
}

/* Click Burst Particle */
.click-particle {
    position: fixed;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    animation: burstFade 0.8s ease-out forwards;
}

@keyframes burstFade {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }

}

/* --- Glitch Effect --- */
.glitch {
    position: relative;
    color: white;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            transparent 0%,
            rgba(255, 255, 255, 0.6) 50%,
            transparent 100%);
    transform: skewX(-25deg);
    animation: shine 3s infinite ease-in-out;
    pointer-events: none;
}

@keyframes shine {
    0% {
        left: -100%;
        opacity: 0;
    }

    20% {
        opacity: 0.5;
    }

    50% {
        left: 200%;
        opacity: 0;
    }

    100% {
        left: 200%;
        opacity: 0;
    }
}

/* --- Spotlight Overlay (Premium) --- */
.events-grid-display {
    position: relative;
    --mouse-x: 50%;
    --mouse-y: 50%;
}

.events-grid-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(300px circle at var(--mouse-x) var(--mouse-y), rgba(51, 255, 255, 0.08), transparent 40%);
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.5s;
    opacity: 0;
}

.events-grid-display:hover::before {
    opacity: 1;
}

/* --- Cyber Circuit Headers (Premium) --- */
h2 {
    position: relative;
    display: inline-block;
    padding: 0 1.5rem;
}

h2::before,
h2::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid var(--cyan-glow);
    transition: all 0.3s ease;
    opacity: 0.7;
}

h2::before {
    left: 0;
    border-right: none;
    border-bottom: none;
    transform: translateY(-50%);
}

h2::after {
    right: 0;
    border-left: none;
    border-top: none;
    transform: translateY(-50%);
}

h2:hover::before {
    transform: translateY(-50%) translateX(-5px);
    box-shadow: -2px -2px 10px var(--cyan-glow);
}

h2:hover::after {
    transform: translateY(-50%) translateX(5px);
    box-shadow: 2px 2px 10px var(--cyan-glow);
}

/* --- Glitch Reveal (Entry) --- */
.reveal-on-scroll {
    opacity: 0;
}

.reveal-active {
    animation: glitchReveal 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes glitchReveal {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        filter: hue-rotate(0deg);
    }

    20% {
        opacity: 1;
        transform: translateY(0) scale(1);
        clip-path: polygon(10% 0, 90% 0, 100% 90%, 0 100%);
        filter: hue-rotate(90deg);
    }

    40% {
        transform: translate(-5px, 0);
        clip-path: polygon(0 10%, 100% 0, 90% 100%, 0 90%);
        filter: hue-rotate(-90deg);
    }

    60% {
        transform: translate(5px, 0);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        filter: hue-rotate(0deg);
    }

    100% {
        opacity: 1;
        transform: translate(0, 0);
        clip-path: none;
        filter: none;
    }
}

/* --- RGB Shift Image Hover --- */
.zigzag-img-wrapper {
    position: relative;
    overflow: hidden;
}

.zigzag-img-wrapper:hover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    mix-blend-mode: hard-light;
    animation: rgbShift1 0.3s infinite;
    display: block;
}

.zigzag-img-wrapper:hover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    mix-blend-mode: hard-light;
    animation: rgbShift2 0.3s infinite;
    display: block;
}

@keyframes rgbShift1 {

    0%,
    100% {
        transform: translate(2px, 0);
        filter: hue-rotate(-10deg);
    }

    50% {
        transform: translate(-2px, 0);
        filter: hue-rotate(10deg);
    }
}

@keyframes rgbShift2 {

    0%,
    100% {
        transform: translate(-2px, 0);
        filter: hue-rotate(10deg);
    }

    50% {
        transform: translate(2px, 0);
        filter: hue-rotate(-10deg);
    }
}

/* --- Neon Pulse --- */
.register-btn-main {
    animation: neonPulse 2s infinite;
}

@keyframes neonPulse {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(34, 211, 238, 0.5);
    }

    50% {
        box-shadow: 0 0 20px rgba(34, 211, 238, 0.8), 0 0 10px var(--cyan-glow);
    }
}

/* --- Cyber Grid Background --- */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: linear-gradient(rgba(34, 211, 238, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(34, 211, 238, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -999;
    animation: gridPan 100s linear infinite;
    pointer-events: none;
}

@keyframes gridPan {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(-50px, -50px) rotate(1deg);
    }
}

/* --- Custom Cursor --- */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 1px solid var(--cyan-glow);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10001;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
    mix-blend-mode: difference;
    box-shadow: 0 0 10px var(--cyan-glow);
}

.custom-cursor.click {
    transform: translate(-50%, -50%) scale(0.5);
    background: var(--cyan-glow);
}

/* --- Click Particle --- */
.click-particle {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10002;
    animation: particleFade 0.6s ease-out forwards;
}

@keyframes particleFade {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(0);
    }
}

/* --- 3D Tilt Glitch (Buttons) --- */
.btn-glitch-tilt {
    position: relative;
    overflow: hidden;
    transition: 0.2s;
}

.btn-glitch-tilt:hover {
    transform: scale(1.05) rotateX(10deg);
    box-shadow: 0 10px 20px rgba(34, 211, 238, 0.4);
}

.btn-glitch-tilt::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.4), transparent);
    transition: 0.5s;
}

.btn-glitch-tilt:hover::before {
    left: 100%;
}

/* --- Magnetic Text --- */
.magnetic-text {
    display: inline-block;
    transition: transform 0.3s ease-out;
}

/* --- Modal Events Grid & Event Item Cards --- */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    padding: 1rem;
    justify-items: center;
}

.event-item-card {
    width: 100%;
    max-width: 320px;
    background: rgba(15, 23, 43, 0.7);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(16px);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.event-item-card:hover {
    transform: translateY(-5px);
    border-color: var(--cyan-glow);
    box-shadow: 0 15px 40px rgba(34, 211, 238, 0.2);
}

.event-item-card h3 {
    color: var(--gold-light);
    font-size: 1.3rem;
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.event-item-card p {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-overlay {
    margin-top: auto;
}

.card-overlay .register-btn {
    width: 100%;
    padding: 0.8rem;
    background: transparent;
    border: 1px solid var(--cyan-glow);
    border-radius: 30px;
    color: var(--cyan-glow);
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.card-overlay .register-btn:hover {
    background: var(--cyan-glow);
    color: var(--ocean-deep);
    box-shadow: 0 0 15px var(--cyan-glow);
}

.card-img-wrapper {
    width: 100%;
    height: 140px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    margin-bottom: 1rem;
    background-size: cover;
    background-position: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Global Responsive Rules & Improvements --- */
@media (max-width: 768px) {
    /* Adjust Carousel for Tablet/Mobile */
    .carousel-container {
        height: 500px;
    }
    .carousel-card {
        padding: 1.5rem 1rem;
        height: min(120vw, 400px);
    }
    .carousel-card h3 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }
    .card-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
    }
    .card-icon svg {
        width: 30px;
        height: 30px;
    }

    /* Modal Events Grid */
    .modal-content {
        width: 95% !important;
        margin: 5% auto;
        padding: 1.5rem;
    }
    .events-grid {
        grid-template-columns: 1fr; /* Stack vertically on small screens */
        gap: 1.5rem;
        padding: 0.5rem;
    }
    
    .event-item-card {
        padding: 1.2rem;
        max-width: 100%; /* Stretch on mobile */
    }

    /* Dashboard Events List */
    .events-grid-display {
        gap: 2rem;
        padding: 0 0.5rem;
    }
    .event-zigzag-card {
        height: auto;
        flex-direction: column !important;
    }
    .zigzag-img-wrapper {
        min-height: 200px;
        clip-path: none !important;
    }
    .zigzag-content {
        padding: 1.5rem;
        text-align: center !important;
        align-items: center !important;
    }

    .hero-bg video {
        transform: scale(1.3); /* Ensure video covers safe area on stretch */
    }
}

@media (max-width: 480px) {
    /* Very Small Screens */
    .carousel-card {
        height: min(130vw, 360px);
    }
    
    .carousel-card p {
        font-size: 0.85rem;
    }

    .event-tabs {
        padding: 0.3rem;
        gap: 0.5rem;
    }
    
    .tab-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .event-item-card h3 {
        font-size: 1.2rem;
    }
}