@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Rajdhani:wght@300;500;700&display=swap');

:root {
    --primary-neon: #00f3ff;
    --secondary-neon: #ff00ff;
    --accent-neon: #bc13fe;
    --bg-dark: #050510;
    --glass-bg: rgba(10, 10, 20, 0.85);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --tech-bg: radial-gradient(circle at center, rgba(0, 243, 255, 0.1) 0%, rgba(5, 5, 16, 1) 70%);
    --header-height: 70px;
}

h1,
h2 {
    border-bottom: 0 !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rajdhani', sans-serif;
}

.college-header {
    background: #ffffff;
    color: #000000;
    text-align: center;
    padding: 1rem 0.5rem;
    font-family: 'Rajdhani', sans-serif !important;
    border-bottom: 2px solid #ddd;
    width: 100%;
    z-index: 100;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

/* Hero-specific transparent header */
.college-header-hero {
    text-align: center;
    padding: 0 1rem 0.5rem;
    font-family: 'Rajdhani', sans-serif !important;
    width: 100%;
    z-index: 10;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.college-header-hero h1 {
    font-family: 'Orbitron', sans-serif !important;
    font-size: 2.2rem;
    margin-bottom: 0.2rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.college-header-hero p {
    font-family: 'Rajdhani', sans-serif !important;
    margin-bottom: 0;
    font-size: 1.1rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
}

.college-header-hero .icons-bar {
    background: none;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding: 0;
}



.icons-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    padding: 0.5rem;
    background: transparent;
    margin-bottom: 2rem;
    flex-direction: row;
    flex-wrap: wrap;
}

.icon-circle {
    width: 60px;
    height: 60px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.icon-circle img {
    max-width: 75%;
    max-height: 75%;
    object-fit: contain;
    filter: none !important;
    /* Keep original colors */
}

.icon-circle:hover {
    transform: scale(1.15);
}

@media (max-width: 768px) {
    .icons-bar {
        gap: 0.6rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .icon-circle {
        height: 40px;
        width: 40px;
    }

    /* 9:16 specific optimizations */
    .hero-main-text {
        font-size: 22vw !important;
    }

    .hero-sub-text {
        font-size: 18vw !important;
    }

    .countdown {
        gap: 0.5rem;
    }

    .countdown-item {
        min-width: 60px;
        padding: 0.5rem;
    }

    .countdown-number {
        font-size: 1.5rem;
    }
}

/* Tron Reveal Overlay */
#reveal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    perspective: 1000px;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.2s;
}

#intro-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    #intro-video {
        object-fit: contain;
    }
}

#reveal-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.tron-grid {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image:
        linear-gradient(rgba(0, 243, 255, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.3) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: rotateX(60deg);
    /* animation: grid-move 4s linear infinite; */
    /* mask-image: radial-gradient(circle at center, black 30%, transparent 70%); */
    /* filter: blur(1px); */
}

@keyframes grid-move {
    0% {
        transform: rotateX(60deg) translateY(0);
    }

    100% {
        transform: rotateX(60deg) translateY(60px);
    }
}

.tron-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.tron-lines::before,
.tron-lines::after {
    content: '';
    position: absolute;
    background: var(--primary-neon);
    box-shadow: 0 0 15px var(--primary-neon);
}

.tron-lines::before {
    width: 2px;
    height: 0;
    left: 20%;
    top: 0;
    animation: line-grow-v 2s ease-out forwards;
}

.tron-lines::after {
    width: 0;
    height: 2px;
    top: 30%;
    left: 0;
    animation: line-grow-h 2.5s ease-out forwards;
}

@keyframes line-grow-v {
    to {
        height: 100%;
    }
}

@keyframes line-grow-h {
    to {
        width: 100%;
    }
}

.reveal-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.reveal-brand {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 8vw, 4.5rem);
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 20px var(--primary-neon);
    letter-spacing: 15px;
    margin-bottom: 1.5rem;
    position: relative;
    /* animation: glitch-text 0.5s infinite alternate, focus-pulse 4s infinite ease-in-out; */
}

@keyframes focus-pulse {

    0%,
    100% {
        filter: blur(0px);
        opacity: 1;
    }

    50% {
        filter: blur(3px);
        opacity: 0.8;
    }
}

.scan-line {
    position: absolute;
    width: 100%;
    height: 4px;
    background: var(--primary-neon);
    box-shadow: 0 0 20px var(--primary-neon);
    z-index: 15;
    opacity: 0.5;
    /* filter: blur(2px); */
    /* animation: scan-move 4s linear infinite; */
    pointer-events: none;
}

@keyframes scan-move {
    0% {
        top: -10%;
    }

    100% {
        top: 110%;
    }
}

.reveal-brand::before,
.reveal-brand::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.reveal-brand::before {
    color: #0ff;
    z-index: -1;
    /* animation: glitch-anim-1 2s infinite; */
}

.reveal-brand::after {
    color: #f0f;
    z-index: -2;
    /* animation: glitch-anim-2 2s infinite; */
}

@keyframes glitch-text {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

.reveal-tag {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: var(--primary-neon);
    letter-spacing: 8px;
    margin-bottom: 2rem;
    opacity: 1;
    /* animation: fade-in-out 1s infinite alternate 1s; removed for performance */
}

@keyframes fade-in-out {
    from {
        opacity: 0.2;
    }

    to {
        opacity: 1;
    }
}

.loading-bar-container {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 auto;
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid rgba(0, 243, 255, 0.3);
}

.loading-bar {
    width: 0;
    height: 100%;
    background: var(--primary-neon);
    box-shadow: 0 0 10px var(--primary-neon);
    animation: load 2.5s cubic-bezier(0.1, 0, 0.2, 1) forwards;
}

@keyframes load {
    0% {
        width: 0;
    }

    50% {
        width: 70%;
    }

    100% {
        width: 100%;
    }
}

@keyframes glitch-anim-1 {
    0% {
        clip-path: inset(20% 0 30% 0);
        transform: translate(-5px);
    }

    20% {
        clip-path: inset(60% 0 10% 0);
        transform: translate(5px);
    }

    40% {
        clip-path: inset(40% 0 50% 0);
        transform: translate(-5px);
    }

    60% {
        clip-path: inset(80% 0 5% 0);
        transform: translate(5px);
    }

    80% {
        clip-path: inset(10% 0 70% 0);
        transform: translate(-5px);
    }

    100% {
        clip-path: inset(20% 0 30% 0);
        transform: translate(5px);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip-path: inset(10% 0 80% 0);
        transform: translate(5px);
    }

    20% {
        clip-path: inset(30% 0 20% 0);
        transform: translate(-5px);
    }

    40% {
        clip-path: inset(50% 0 40% 0);
        transform: translate(5px);
    }

    60% {
        clip-path: inset(5% 0 80% 0);
        transform: translate(-5px);
    }

    80% {
        clip-path: inset(70% 0 10% 0);
        transform: translate(5px);
    }

    100% {
        clip-path: inset(10% 0 80% 0);
        transform: translate(-5px);
    }
}

.college-header h1 {
    font-family: 'Orbitron', sans-serif !important;
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.college-header p {
    font-family: 'Rajdhani', sans-serif !important;
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .college-header h1 {
        font-size: 1.4rem;
    }

    .college-header p {
        font-size: 0.85rem;
    }

    .college-header-hero h1 {
        font-size: 1.6rem;
    }

    .college-header-hero p {
        font-size: 0.9rem;
    }
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    /* Dynamic viewport height for mobile browsers */
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    overflow-x: hidden;
    position: relative;
    padding-top: var(--header-height);
}

main {
    flex: 1;
    position: relative;
    z-index: 1;
}

footer {
    width: 100%;
    padding: 4rem 1rem 0;
    background: rgba(5, 5, 16, 0.95);
    /* backdrop-filter: blur(20px); */
    border-top: 1px solid rgba(0, 243, 255, 0.2);
    margin-top: auto;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

.footer-main {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

/* Force the last child (Contact Button Container) to span full width & center */
.footer-main>div:last-child {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 1rem;
    text-align: center;
}

.footer-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.footer-col h3 {
    color: var(--primary-neon);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary-neon);
    box-shadow: 0 0 10px var(--secondary-neon);
}

.footer-about p {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-logo {
    height: 110px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .footer-logo {
        height: 120px;
        width: auto;
        /* Increased for mobile as requested */
    }
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a i {
    font-size: 0.8rem;
    color: var(--primary-neon);
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-neon);
    padding-left: 5px;
}

.footer-links a:hover i {
    opacity: 1;
}

/* Accreditation Icons in footer */
.footer-accreditation {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: flex-start;
}

.footer-accreditation .icon-circle {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .footer-accreditation .icon-circle {
        width: 50px;
        height: 50px;
        padding: 5px;
    }
}

.footer-accreditation .icon-circle:hover {
    transform: scale(1.15) rotate(5deg);
}

.footer-accreditation .icon-circle img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

/* Social & Bottom Bar */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-socials {
    display: flex;
    gap: 1.2rem;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer-socials a:hover {
    background: var(--primary-neon);
    color: #000;
    transform: translateY(-5px);
    box-shadow: 0 0 15px var(--primary-neon);
}

.copyright {
    color: #666;
    font-size: 0.85rem;
}

@media (max-width: 992px) {
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    footer {
        padding: 3rem 1.5rem 0;
    }

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

    .footer-links-col {
        display: none;
    }

    .footer-about {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-col h3 {
        margin-bottom: 1.2rem;
    }

    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links a {
        justify-content: center;
        padding: 0.4rem 0;
    }

    .footer-accreditation {
        justify-content: center;
        gap: 1rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.2rem;
        padding: 2rem 0;
        text-align: center;
    }

    .footer-socials {
        order: -1;
        /* Move socials above copyright on mobile */
        justify-content: center;
    }

    /* Add subtle dividers */
    .footer-col:not(:last-child) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 2rem;
    }
}

#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 1;
    filter: brightness(0.6);
    transition: opacity 0.8s ease-out;
    object-fit: cover;
    pointer-events: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Header */

header {
    width: 100%;
    height: 100px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: transparent;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 30000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(0px);
}

header.scrolled {
    background: rgba(5, 5, 16, 0.95);
    padding: 0.2rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.header-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.header-logo-icon {
    height: 150px;
    /* increased from 50px */
    width: 130px;
    /* increased from 50px */
    object-fit: contain;
    border-radius: 50%;
    filter: drop-shadow(0 0 8px var(--primary-neon));
    transition: all 0.4s ease;
}

header.scrolled .header-logo-icon {
    height: 120px;
    width: 100px;
}

.header-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    color: #fff;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
    white-space: nowrap;
}

.header-title span {
    color: var(--secondary-neon);
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-neon);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--primary-neon);
}

nav a:hover,
nav a.active {
    color: var(--primary-neon);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

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

.header-cta-btn {
    padding: 0.7rem 1.6rem;
    background: rgba(0, 243, 255, 0.1);
    color: var(--primary-neon);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid var(--primary-neon);
    border-radius: 4px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px var(--primary-neon);
    white-space: nowrap;
}

.header-cta-btn:hover {
    background: var(--primary-neon);
    color: #000;
    box-shadow: 0 0 20px var(--primary-neon);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1100;
    transition: all 0.3s ease;
    z-index: 35000;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0px;
}

.hamburger span:nth-child(2) {
    top: 9px;
}

.hamburger span:nth-child(3) {
    top: 18px;
}

.hamburger.active span:nth-child(1) {
    top: 9px;
    transform: rotate(135deg);
    background: var(--primary-neon);
}

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

.hamburger.active span:nth-child(3) {
    top: 9px;
    transform: rotate(-135deg);
    background: var(--primary-neon);
}

body.menu-open {
    overflow: hidden;
}

@media (max-width: 992px) {
    header {
        justify-content: space-between;
        padding: 0.8rem 1.5rem;
    }

    .header-branding {
        position: relative;
        left: 0;
        transform: none;
        gap: 0.5rem;
    }

    .header-logo-icon {
        height: 100px;
        width: 100px;
    }

    header.scrolled .header-logo-icon {
        height: 80px;
        width: 80px;
    }

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

    .hamburger {
        display: block;
        margin-left: auto;
    }

    nav ul {

        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        width: 100%;
        height: 100dvh;
        /* dynamic viewport */


        /* semi transparent */
        /* backdrop-filter: blur(20px); removed for performance */
        background: rgba(0, 0, 0, 0.95);

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;

        z-index: 15000;

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transform: translateY(-40px);
        transition: opacity 0.4s ease, transform 0.4s ease;

    }

    nav ul.active {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
        transform: translateY(0);
    }

    nav ul li {
        width: 100%;
        text-align: center;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
    }

    nav ul.active li {
        opacity: 1;
        transform: translateY(0);
    }

    nav ul.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    nav ul.active li:nth-child(2) {
        transition-delay: 0.2s;
    }

    nav ul.active li:nth-child(3) {
        transition-delay: 0.3s;
    }

    nav ul.active li:nth-child(4) {
        transition-delay: 0.4s;
    }

    nav ul.active li:nth-child(5) {
        transition-delay: 0.5s;
    }

    nav a {
        font-size: 1.8rem;
        font-family: 'Orbitron', sans-serif;
        font-weight: 700;
        letter-spacing: 4px;
        color: #fff;
    }

    .header-cta-btn {
        display: none;
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-branding,
    .social-links {
        justify-content: center;
    }

    .footer-icons-row {
        gap: 0.8rem;
    }
}

header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-neon), transparent);
    box-shadow: 0 0 10px var(--primary-neon);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-neon);
    text-shadow: 0 0 10px var(--primary-neon);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.nav-logo {
    height: 40px;
    width: 40px;
    object-fit: cover;
    border-radius: 50%;
    filter: drop-shadow(0 0 5px var(--primary-neon));
    border: 1px solid rgba(0, 243, 255, 0.3);
}


.hamburger {
    cursor: pointer;
    font-size: 2rem;
    display: none;
    z-index: 35000;
}


nav a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.1rem;
    transition: 0.3s;
    position: relative;
}

nav a:hover {
    color: var(--secondary-neon);
    text-shadow: 0 0 10px var(--secondary-neon);
}

/* Glass Card Utility */
.glass-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
    will-change: transform;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSlideUp 0.6s ease-out forwards;
}

.glass-card:hover {
    transform: translateY(-5px);
}

/* Layouts */
section {
    margin-bottom: 4rem;
}

section:last-of-type {
    margin-bottom: 0;
}

.container {
    padding: 1rem 2rem 4rem;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 100%;
    }
}

/* Hero Section */
.hero {
    min-height: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    overflow: visible;
    padding: 1rem 0;
    background: var(--tech-bg);
}

.hero-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    gap: 0;
    /* Minimized gap */
    position: relative;
    z-index: 1;
    text-align: center;
    padding-top: 0;
    padding-bottom: 0;
}


/* Mobile responsiveness adjustments */
@media (max-width: 992px) {
    .hero {
        padding: 0 5%;
        min-height: auto;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .college-info {
        text-align: center;
        border-left: none;
        border-bottom: 2px solid var(--primary-neon);
        padding-left: 0;
        padding-bottom: 1rem;
        margin-bottom: 2rem;
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
    gap: 0.8rem;
}

.hero-visual {
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo-main {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    filter: drop-shadow(0 0 30px rgba(0, 243, 255, 0.4));
    /* animation: float 6s ease-in-out infinite; */
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.icons-bar-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.icons-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.hero-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 3rem;
    margin-bottom: 2rem;
    width: 100%;
}

.hero-text-block {
    display: flex;
    flex-direction: column;
    gap: 0;
}

@media (max-width: 768px) {
    .hero {
        align-items: center;
        text-align: center;
        padding: 2rem 1rem;
    }

    .hero-title-wrapper {
        flex-direction: column;
        gap: 1.5rem;
        justify-content: center;
    }

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

.college-info-wrapper {
    padding: 2.1rem 0 0.5rem;
}

@media (max-width: 768px) {
    .college-info-wrapper {
        padding: 1.8rem 0 0.5rem;
    }
}

.college-info {
    font-family: 'Orbitron', sans-serif !important;
    margin-bottom: 0;
    /* Reduced */
    border-left: none;
    border-bottom: 1px solid rgba(0, 243, 255, 0.3);
    /* Subtle separator */
    padding-left: 0;
    padding-bottom: 0.5rem;
    /* Reduced */
    text-align: center;
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.college-top-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
}

.college-top-icons .icon-circle {
    width: 65px;
    height: 65px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(0, 243, 255, 0.2);
}

.college-top-icons .icon-circle:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.4);
    border-color: var(--primary-neon);
}

.college-top-icons .icon-circle img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .college-top-icons {
        gap: 0.8rem;
    }

    .college-top-icons .icon-circle {
        width: 45px;
        height: 45px;
        padding: 4px;
    }
}

.college-info h1.inst-name {
    font-family: 'Orbitron', sans-serif !important;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1.2;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

.college-info p.inst-accred {
    font-family: 'Rajdhani', sans-serif !important;
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
    line-height: 1.3;
    color: var(--primary-neon);
    font-weight: 600;
    text-transform: uppercase;
}

.college-info p.inst-addr {
    font-family: 'Rajdhani', sans-serif !important;
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

@media (max-width: 768px) {
    .college-info {
        border-left: none;
        padding-left: 0;
        margin-bottom: 0.5rem;
    }

    .college-info h1.inst-name {
        font-size: 1.2rem;
    }

    .college-info p.inst-accred {
        font-size: 0.9rem;
    }

    .college-info p.inst-addr {
        font-size: 0.85rem;
    }
}

.hero-graphics {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 300px;
}


.hero-content h1.glow-text {
    font-size: clamp(6rem, 15vw, 9rem);
    margin-bottom: 0;
    line-height: 0.85;
    text-transform: uppercase;
    font-style: italic;
    font-weight: 900;
    letter-spacing: -4px;
    /* animation: light-float 4s ease-in-out infinite; */
    will-change: transform, opacity;
}

@keyframes light-float {
    0% {
        transform: skewX(-5deg) translateY(0);
    }

    50% {
        transform: skewX(-5deg) translateY(-15px);
    }

    100% {
        transform: skewX(-5deg) translateY(0);
    }
}

@keyframes hero-fade-in {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-main-text {
    color: #fff;
    display: inline-block;
    opacity: 0;
    animation: hero-fade-in 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    animation-delay: 0.2s;
}

.hero-sub-text {
    background: linear-gradient(to right, var(--primary-neon), var(--secondary-neon));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    opacity: 0;
    animation: hero-fade-in 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    animation-delay: 0.5s;
}


.hero-tagline {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-neon);
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Countdown */
.countdown {
    display: flex;
    gap: 2rem;
    margin: 2rem auto;
    max-width: 800px;
}

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

.countdown-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-neon);
    font-family: 'Orbitron';
}

/* Notice Card */
.notice-card {
    margin: 2rem auto;
    max-width: 800px;
}

/* Grid Layouts */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    content-visibility: auto;
    /* Skip rendering off-screen content */
    contain-intrinsic-size: 400px;
    /* Approximate height of a card to prevent scrollbar jumping */
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: rgba(0, 243, 255, 0.05);
    border: 1px solid var(--primary-neon);
    color: var(--primary-neon);
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-family: 'Orbitron';
    letter-spacing: 2px;
    letter-spacing: 2px;
    /* backdrop-filter: blur(5px); */
    position: relative;
    overflow: hidden;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
}

.btn:hover {
    background: var(--primary-neon);
    color: #000;
    box-shadow: 0 0 30px var(--primary-neon);
    transform: translateY(-3px) scale(1.05);
}

.btn-secondary {
    border-color: var(--secondary-neon);
    color: var(--secondary-neon);
}

.btn-secondary:hover {
    background: var(--secondary-neon);
    color: #000;
    box-shadow: 0 0 20px var(--secondary-neon);
}

/* Forms */
input,
textarea,
select {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    color: #fff;
    border-radius: 5px;
}

/* Scrolling Notices */
.marquee-container {
    height: 250px;
    overflow: hidden;
    position: relative;
    background: rgba(0, 0, 0, 0.4);
    padding: 1rem;
    border-radius: 10px;
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    flex-direction: column;
    /* animation: marquee-vertical 20s linear infinite; */
}

.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

.marquee-content span {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--secondary-neon);
    font-size: 1.1rem;
}

@keyframes marquee-vertical {
    0% {
        transform: translateY(100%);
    }

    100% {
        transform: translateY(-100%);
    }
}

/* Glitch Effect */
.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--secondary-neon);
    clip: rect(44px, 450px, 56px, 0);
    /* animation: glitch-anim 5s infinite linear alternate-reverse; */
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--primary-neon);
    clip: rect(44px, 450px, 56px, 0);
    /* animation: glitch-anim2 1s infinite linear alternate-reverse; */
}

@keyframes glitch-anim {
    0% {
        clip: rect(10px, 9999px, 80px, 0);
    }

    100% {
        clip: rect(60px, 9999px, 80px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(60px, 9999px, 10px, 0);
    }

    100% {
        clip: rect(10px, 9999px, 60px, 0);
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content-card {
    max-width: 600px;
    width: 100%;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--secondary-neon);
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem 1rem;
    }

    .header-branding {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .hamburger {
        display: block;
        order: 2;
        margin-left: auto;
        color: var(--primary-neon);
        text-shadow: 0 0 10px var(--primary-neon);
    }

    @media (max-width: 992px) {
        nav ul {
            position: fixed;
            top: 0;
            right: 0;
            height: 100vh;
            width: 100%;
            /* adjust width */
            background: rgba(0, 0, 0, 0.95);
            /* backdrop-filter: blur(60px);
            -webkit-backdrop-filter: blur(60px); */
            border-left: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: -30px 0 80px rgba(0, 0, 0, 0.6);

            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 3rem;

            z-index: 25000;

            /* Hidden state */
            transform: translateX(110%) rotateY(5deg);
            opacity: 0;

            /* Smooth enter & exit */
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        nav ul.active {
            transform: translateX(0) rotateY(0deg);
            opacity: 1;
        }

        nav ul li {
            opacity: 0;
            transform: translateX(30px);
            transition: transform 0.35s ease, opacity 0.35s ease;
        }

        nav ul.active li {
            opacity: 1;
            transform: translateX(0);
        }

        nav ul li:nth-child(1) {
            transition-delay: 0.05s;
        }

        nav ul li:nth-child(2) {
            transition-delay: 0.1s;
        }

        nav ul li:nth-child(3) {
            transition-delay: 0.15s;
        }

        nav ul li:nth-child(4) {
            transition-delay: 0.2s;
        }

        nav ul li:nth-child(5) {
            transition-delay: 0.25s;
        }
    }

    nav a {
        font-size: 1.2rem;
        display: block;
        padding: 0.5rem;
    }

    .hero {
        padding: 1rem 0;
        min-height: auto;
    }

    .hero-container {
        flex-direction: column-reverse;
        gap: 1rem;
        padding-top: 0;
    }

    .hero-content {
        order: 2;
    }

    .hero-graphics {
        order: 1;
        align-items: center;
        margin-bottom: 2rem;
        width: 100%;
    }

    .hero-logo {
        width: 180px;
        height: 180px;
    }

    .icons-bar {
        justify-content: center;
        gap: 1rem;
        padding: 0.6rem 1rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .countdown {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
        padding: 1rem !important;
    }

    .countdown-item {
        flex: 1 1 calc(50% - 1rem);
        min-width: 100px;
        margin-bottom: 0.5rem;
    }

    .countdown-number {
        font-size: 1.8rem;
    }

    .countdown-section h2 {
        font-size: 1.2rem;
    }

    .grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .glass-card {
        padding: 1.2rem;
    }

    .admin-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .filter-chips {
        gap: 0.5rem;
    }

    .chip {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
}

.margin-top {
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .margin-top {
        margin-top: 1rem;
    }

    .container h1,
    .container h2,
    .page-header h1,
    .page-header h2 {
        text-align: center !important;
    }
}

.committee-member {
    padding-top: 4rem;
}

.committee-member:hover {
    transform: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

.committee-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--secondary-neon);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.3);
}

.sponsor-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    width: 220px;
    height: 120px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* backdrop-filter: blur(5px); */
}

.sponsor-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(1.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.85;
}

@media (max-width: 768px) {
    .sponsor-item {
        width: 100%;
        max-width: 280px;
        height: 160px;
        padding: 0.8rem;
    }
}

.sponsor-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-neon);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.sponsor-item:hover .sponsor-logo {
    filter: brightness(1.2);
    opacity: 1;
    transform: scale(1.05);
}

/* Filter Chips (Refined) */
/* Filter Dropdown (New) */
.filter-chips {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    width: 100%;
}

.filter-dropdown-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0 1.5rem;
    width: 100%;
    max-width: 320px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: dropdownEntrance 0.6s ease-out;
}

@keyframes dropdownEntrance {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-dropdown-wrapper:hover,
.filter-dropdown-wrapper:focus-within {
    border-color: var(--primary-neon);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
    transform: translateY(-3px) scale(1.02);
}

.filter-dropdown-wrapper i {
    color: var(--primary-neon);
    font-size: 0.9rem;
    opacity: 0.8;
}

.filter-select {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    padding: 1.1rem 1rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    padding-right: 2rem;
    line-height: 1;
    display: flex;
    align-items: center;
}

.filter-select option {
    background: var(--bg-dark);
    color: #fff;
    padding: 10px;
}

.dropdown-arrow {
    position: absolute;
    right: 1.5rem;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.filter-dropdown-wrapper:focus-within .dropdown-arrow {
    transform: rotate(180deg);
}



/* Cleanup old event styles */
.event-card-legacy {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Hard fix for horizontal overflow on all devices */
html,
body {
    overflow-x: hidden !important;
    position: relative;
    max-width: 100% !important;
    width: 100%;
}

/* --- New Event Page Styles --- */

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 0.5rem;
    color: #fff;
}

.neon-text-secondary {
    color: var(--secondary-neon);
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

.subtitle {
    font-size: 1.2rem;
    color: #888;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.event-card {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s, background 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
    height: 100%;
    will-change: transform;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.05) 0%, transparent 100%);
    z-index: 0;
    pointer-events: none;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 243, 255, 0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 1;
}

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

.event-card:hover {
    transform: none;
    border-color: rgba(0, 243, 255, 0.5);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.event-card .category-badge {
    position: relative;
    z-index: 2;
    align-self: flex-start;
    background: rgba(0, 243, 255, 0.05);
    color: var(--primary-neon);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 243, 255, 0.2);
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.1);
}

.event-card h2 {
    position: relative;
    z-index: 2;
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    line-height: 1.1;
    font-weight: 800;
}

.event-meta {
    position: relative;
    z-index: 2;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: 0.3s;
}

.meta-item:hover {
    color: #fff;
}

.meta-item i {
    color: var(--primary-neon);
    font-size: 1rem;
    width: 20px;
    text-align: center;
    filter: drop-shadow(0 0 5px var(--primary-neon));
}

.meta-item.coming-soon {
    color: var(--secondary-neon);
    opacity: 0.9;
    font-style: italic;
    background: rgba(255, 0, 255, 0.05);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px dashed rgba(255, 0, 255, 0.3);
}

.meta-item.coming-soon i {
    color: var(--secondary-neon);
    filter: drop-shadow(0 0 5px var(--secondary-neon));
}

.event-description {
    position: relative;
    z-index: 2;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-card:hover .event-description {
    color: rgba(255, 255, 255, 0.9);
}

.event-actions {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: auto;
}

.event-actions .btn-primary-glow {
    grid-column: 1 / -1;
}

.event-actions .btn {
    padding: 0.9rem 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Orbitron', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.event-actions .btn i {
    font-size: 0.9rem;
}

.event-actions .btn-primary-glow {
    background: linear-gradient(45deg, var(--primary-neon), #00d2ff);
    color: #000;
}

.event-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.event-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary-neon);
    color: var(--secondary-neon);
}

/* Loading State */
.loading-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 0;
    gap: 1.5rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 243, 255, 0.1);
    border-top-color: var(--primary-neon);
    border-radius: 50%;
    /* animation: spin 1s infinite linear; */
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 480px) {
    .event-actions {
        gap: 0.8rem;
        /* Slightly smaller gap on tiny screens */
    }
}

/* --- Homepage Specific Styles --- */

.hero-brand {
    margin: 0;
}

.hero-text-glitch .glow-text {
    font-size: clamp(5rem, 18vw, 9rem);
    line-height: 0.85;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.hero-main-text {
    letter-spacing: -3px;
    font-style: italic;
    color: #fff;
}

.hero-tagline {
    font-size: 1.1rem;
    letter-spacing: 5px;
    color: var(--primary-neon);
    margin: 0.5rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    justify-content: center;
}

.dot {
    width: 6px;
    height: 6px;
    background: var(--secondary-neon);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--secondary-neon);
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn-primary-glow {
    background: var(--primary-neon);
    color: #000;
    border: none;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
}

.btn-primary-glow:hover {
    box-shadow: 0 0 40px var(--primary-neon);
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn-outline:hover {
    border-color: var(--secondary-neon);
    color: var(--secondary-neon);
}

.hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.main-logo-glow {
    position: relative;
    padding: 20px;
}

.main-logo-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    z-index: -1;
}

.hero-logo-main {
    width: 320px;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.6));
    transition: 0.5s;
}

.hero-logo-main:hover {
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.8));
}



/* Timeline Styles */
.timeline-container {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 3.5rem;
    top: 3rem;
    bottom: 3rem;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--primary-neon), var(--secondary-neon), transparent);
}

.timeline-item {
    display: flex;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.timeline-dot {
    width: 14px;
    height: 14px;
    background: var(--bg-dark);
    border: 3px solid var(--primary-neon);
    border-radius: 50%;
    margin-top: 5px;
    box-shadow: 0 0 10px var(--primary-neon);
}

.timeline-content h3 {
    font-size: 1.2rem;
    color: var(--secondary-neon);
    margin-bottom: 0.3rem;
    letter-spacing: 2px;
}

.timeline-content p {
    font-size: 1.1rem;
    color: #fff;
    margin: 0;
}

.timeline-content .time {
    font-size: 0.8rem;
    color: var(--primary-neon);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Partners Grid */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    /* Allow boxes to have same height in a row if needed, but we set height */
    gap: 2rem;
    margin-top: 2rem;
    padding: 2rem 0;
}

@media (max-width: 768px) {
    .partners-grid {
        gap: 2rem;
    }
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.spinner-small {
    width: 30px;
    height: 30px;
    border: 2px solid rgba(0, 243, 255, 0.1);
    border-top-color: var(--primary-neon);
    border-radius: 50%;
    transition: transform 0.5s ease;
}

@media (max-width: 768px) {
    .hero-container {
        padding-top: 0;
    }

    .timeline-container {
        padding: 2rem 1rem;
    }

    .timeline-container::before {
        left: 1.5rem;
    }

    .timeline-item {
        gap: 1.5rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }

    .hero-logo-main {
        width: 240px;
    }

    .hero-tagline {
        font-size: 0.8rem;
        gap: 0.8rem;
        letter-spacing: 2px;
    }
}

/* ===== INLINE GLASS NOTIFICATION ===== */

.top-notification {
    width: 100%;
    margin: 20px 0 30px 0;

    /* backdrop-filter: blur(18px); */
    background: rgba(0, 242, 255, 0.15);
    border: 1px solid rgba(0, 242, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.25);

    border-radius: 14px;
    padding: 16px 20px;

    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.top-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.close-notification {
    background: transparent;
    border: none;
    color: #00f2ff;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

.close-notification:hover {
    transform: scale(1.2);
    color: #fff;
}

/* Memories Section Styles */
.memories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.memory-card {
    position: relative;
    padding: 0 !important;
    /* Override glass-card padding */
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16 / 9;
}

.memory-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.memory-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.memory-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.memory-card:hover .memory-image {
    transform: scale(1.1);
}

.memory-card:hover .memory-overlay {
    opacity: 1;
    transform: translateY(0);
}

.memory-caption {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .memories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .memory-card {
        aspect-ratio: 4 / 3;
    }

    .memory-overlay {
        opacity: 1;
        transform: translateY(0);
        background: rgba(0, 0, 0, 0.5);
        padding: 1rem;
    }
}

/* Disable ALL animations, transitions and hover transforms on mobile for all card elements */
@media (max-width: 1024px) {

    .glass-card,
    .event-card,
    .committee-member,
    .sponsor-item,
    .countdown-item,
    .icon-circle,
    .sponsor-logo,
    .btn,
    .hero-actions a,
    .category-badge,
    .event-meta,
    .event-actions a {
        transition: none !important;
        animation: none !important;
        transform: none !important;
        box-shadow: none !important;
        filter: none !important;
        opacity: 1 !important;
    }

    .glass-card:hover,
    .event-card:hover,
    .committee-member:hover,
    .sponsor-item:hover,
    .countdown-item:hover,
    .icon-circle:hover,
    .btn:hover {
        transform: none !important;
        transition: none !important;
        animation: none !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
        border-color: rgba(255, 255, 255, 0.1) !important;
    }

    .event-card .card-glow {
        display: none !important;
    }

    /* Robustly ensure no tilt transforms or AOS transitions persist */
    [data-tilt],
    [data-aos],
    .js-tilt-container,
    .js-tilt-glare,
    .js-tilt-glare-inner,
    .aos-init {
        transform: none !important;
        transition: none !important;
        animation: none !important;
        opacity: 1 !important;
        will-change: auto !important;
    }
}

/* Visibility Utilities */
.mobile-only {
    display: none !important;
}

@media (max-width: 768px) {
    .mobile-only {
        display: flex !important;
    }

    .desktop-only {
        display: none !important;
    }
}

@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Native Entrance Animations (Replacing AOS Patterns) */
.aos-init {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

[data-aos="fade-down"].aos-init {
    transform: translateY(-20px);
}

.aos-animate {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Team Collapsible Accordions */
.team-accordion {
    width: 100%;
    margin-bottom: 2rem;
    background: transparent;
    border-radius: 12px;
}

.team-accordion summary {
    list-style: none;
    /* Hide default triangle */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.team-accordion summary::-webkit-details-marker {
    display: none;
    /* Hide default triangle in WebKit browsers */
}

.team-accordion summary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.team-accordion summary .toggle-icon {
    color: var(--primary-neon);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

/* Rotate icon when details is open */
.team-accordion[open] summary .toggle-icon {
    transform: rotate(180deg);
}

.team-accordion[open] summary {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: 1px solid transparent;
}

/* Infinite Scroll Marquee */
.gallery-marquee-section {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 1rem 0;
}

/* Fading Edges on Marquee */
.gallery-marquee-section::before,
.gallery-marquee-section::after {
    content: "";
    position: absolute;
    top: 0;
    width: 15vw;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.gallery-marquee-section::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-main) 0%, transparent 100%);
}

.gallery-marquee-section::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-main) 0%, transparent 100%);
}

.marquee-track {
    display: inline-flex;
    gap: 1.5rem;
    padding-left: 1.5rem;
    width: max-content;
    animation: marquee-scroll 45s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-item {
    height: 350px;
    width: 350px;
    border-radius: 12px;
    object-fit: contain;
    /* Using contain since Drive images may be various aspect ratios */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.marquee-item:hover {
    transform: scale(1.05);
    border-color: var(--primary-neon);
}

@keyframes marquee-scroll {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(calc(-50% - 0.75rem), 0, 0);
    }
}

@media (max-width: 768px) {
    .marquee-item {
        height: 250px;
        width: 250px;
    }
}

/* Fees Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    /* Controlled by JS */
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    width: 100%;
    max-width: 400px;
    background: rgba(10, 10, 20, 0.98);
    border: 1px solid var(--primary-neon);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.15);
    position: relative;
    opacity: 1 !important;
    transform: translateY(0) !important;
    animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: #ff4444;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.modal-close:hover {
    transform: scale(1.2);
    color: #ff0000;
}

.modal-title {
    text-align: center;
    font-size: 1.4rem;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.fee-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.fee-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fee-value {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 500;
    font-family: 'Orbitron', sans-serif;
}

.fee-note {
    font-size: 0.85rem;
    color: var(--secondary-neon);
    font-style: italic;
    margin-top: 1rem;
    line-height: 1.5;
    text-align: center;
    background: rgba(0, 243, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
}

/* Fees Badge Styling (The Trigger) */
.fees-container {
    flex: 1;
}

.fees-badge {
    width: 100%;
    justify-content: center;
    padding: 0.9rem 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 4px;
    height: 100%;
    color: var(--primary-neon);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Orbitron', sans-serif;
    transition: all 0.3s;
}

.fees-badge:hover {
    background: rgba(0, 243, 255, 0.1);
    border-color: var(--primary-neon);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}