.footer-glass {
    position: relative;
}
footer {
    /* modern translucent gradient */
    background: linear-gradient(135deg,
        rgba(10,25,47,0.94) 0%,
        rgba(58,12,113,0.88) 45%,
        rgba(99,102,241,0.84) 100%
    );
    color: #fff;
    margin: 64px 0 0 0;
    padding: 36px 0 18px 0;
    box-shadow: 0 -8px 24px rgba(2,6,23,0.45);
    width: 100%;
    max-width: 100vw;
    font-size: 1.05em;
    border-top: 1px solid rgba(255,255,255,0.04);
    backdrop-filter: blur(6px);
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
}
.footer-bar {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    box-sizing: border-box;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}
.footer-brand img {
    height: 44px;
    border-radius: 10px;
    background: #fff2;
    padding: 4px;
}
.footer-links {
    display: flex;
    align-items: center;
    gap: 18px;
}
.footer-links a {
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    font-size: 1.05em;
    transition: color 0.18s ease, transform 0.15s ease;
}
.footer-links a:hover {
    color: rgba(255,255,255,1);
    transform: translateY(-2px);
}
/* Footer credit centered and styled */
.footer-credit {
    margin: 24px auto 0 auto;
    font-size: 1.02em;
    color: #fff;
    width: calc(100% - 48px);
    max-width: 980px;
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
    background: rgba(255,255,255,0.04); /* subtle opaque bar */
    border-radius: 12px;
    padding: 10px 14px;
    box-shadow: 0 6px 18px rgba(2,6,23,0.45);
    transition: background 0.25s ease, transform 0.18s ease;
}
.footer-credit:hover {
    background: rgba(255,255,255,0.06);
    transform: translateY(-2px);
}
@media (max-width: 700px) {
    .footer-credit {
        font-size: 1em;
        margin: 18px auto 0 auto;
        padding: 8px 0 6px 0;
    }
}
@media (max-width: 700px) {
    .footer-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 0 8px;
    }
    .footer-credit {
        text-align: left;
        margin-top: 12px;
    }
}
/* Hide scrollbar and prevent horizontal scroll */
html {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

body {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    box-sizing: border-box;
}

/* Custom scrollbar styling */
::-webkit-scrollbar {
    width: 0px;
    height: 0 !important;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 102, 0, 0.5);
    border-radius: 5px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
/* Custom scrollbar styling */
::-webkit-scrollbar {
    width: 0px;
    height: 0 !important;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 102, 0, 0.5);
    border-radius: 5px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
/* Contact page background image */
.contact-bg-img {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('contact.jpg') center center/cover no-repeat;
    z-index: 0;
    opacity: 0.7;
    pointer-events: none;
}
body, html {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    overflow-x: hidden !important;
    background: #1a1a2e;
    color: #fff;
    font-weight: 600;
    text-shadow: 0 2px 8px #0004;
    position: relative;
    box-sizing: border-box;
    max-width: 100vw;
}
/* Background video styling */
.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-width: 100vw;
    min-height: 100vh;
    object-fit: cover;
    z-index: 0;
    opacity: 0.85;
    transition: opacity 320ms ease, transform 320ms ease;
    pointer-events: none;
    margin: 0;
    padding: 0;
}

/* Semi-transparent overlay on top of the video to improve text readability */
.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    min-width: 100vw;
    min-height: 100vh;
    background: rgba(0,0,0,0.35);
    z-index: 1;
    transition: opacity 320ms ease, background-color 320ms ease;
    pointer-events: none;
    margin: 0;
    padding: 0;
}
.video-overlay.hidden { opacity: 0; }
.video-overlay.paused { background: rgba(0,0,0,0.6); }

/* Ensure main content stacks above overlay */
nav, section, footer, .container {
    position: relative;
    z-index: 2;
}
.bg-gradient {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
        z-index: -1; /* push gradient behind video */
        animation: gradientMove 8s ease-in-out infinite alternate;
}
@keyframes gradientMove {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(30deg); }
}
.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px 64px 16px;
}
.logo {
    width: 110px;
    margin-bottom: 18px;
    filter: drop-shadow(0 4px 16px #0008);
    border-radius: 16px;
    background: #fff2;
    padding: 8px;
    animation: logoPop 1.2s cubic-bezier(.5,1.5,.5,1) 0.2s both;
}
@keyframes logoPop {
    0% { opacity: 0; transform: scale(0.7) rotate(-10deg); }
    80% { opacity: 1; transform: scale(1.1) rotate(2deg); }
    100% { opacity: 1; transform: scale(1) rotate(0); }
}
.event-title {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px #0006;
}
.event-sub {
    color: #fddb3a;
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 32px;
    letter-spacing: 1px;
    text-shadow: 0 1px 4px #0004;
}
.countdown {
    display: flex;
    gap: 18px;
    margin-bottom: 32px;
    justify-content: center;
}
.count-item {
    background: #fff1;
    border-radius: 12px;
    padding: 12px 16px;
    min-width: 60px;
    text-align: center;
    box-shadow: 0 2px 8px #0002;
    animation: fadeIn 1.2s both;
}
.count-item span {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #fddb3a;
    margin-bottom: 2px;
    animation: popNum 1s cubic-bezier(.5,1.5,.5,1) infinite alternate;
}
@keyframes popNum {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}
.count-item label {
    color: #fff;
    font-size: 0.8rem;
    letter-spacing: 1px;
}
.cta-btn {
    display: inline-block;
    background: linear-gradient(90deg, #fddb3a, #fcb900);
    color: #1a1a2e;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 14px 36px;
    border-radius: 30px;
    margin: 24px 0 36px 0;
    text-decoration: none;
    box-shadow: 0 4px 16px #0003;
    transition: transform 0.2s, box-shadow 0.2s;
    animation: bounce 1.2s infinite alternate;
}
/* Responsive header and footer flex layout */
.cta-btn:hover {
    transform: scale(1.07);
    box-shadow: 0 8px 24px #fddb3a44;
}
@keyframes bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}
.cards {
    display: flex;
    gap: 18px;
    margin-top: 32px;
    flex-wrap: wrap;
    justify-content: center;
}
.card {
    background: #fff2;
    border-radius: 18px;
    padding: 24px 18px;
    min-width: 180px;
    max-width: 220px;
    color: #fff;
    box-shadow: 0 2px 12px #0002;
    margin: 8px 0;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeIn 1.2s both;
}
.card:hover {
    transform: translateY(-8px) scale(1.04) rotate(-1deg);
    box-shadow: 0 8px 32px #fddb3a33;
    background: #fddb3a22;
    color: #1a1a2e;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fadeIn 1.2s both; }
.animate-fade-in-delay { animation: fadeIn 1.2s 0.3s both; }
.animate-fade-in-delay2 { animation: fadeIn 1.2s 0.6s both; }
.animate-fade-in-delay3 { animation: fadeIn 1.2s 0.9s both; }
.animate-slide-up { animation: slideUp 1.2s both; }
@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-bounce { animation: bounce 1.2s infinite alternate; }
.nav-bar {
    width: 100%;
    max-width: 100vw;
    background: rgba(26,26,46,0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: fixed;
    top: 0; 
    left: 0; 
    right: 0;
    z-index: 10;
    box-shadow: 0 2px 12px #0002;
    padding: 0;
    margin: 0;
    animation: fadeIn 1.2s both;
    box-sizing: border-box;
    overflow: hidden;
}
.nav-bar ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 56px;
    width: 100%;
}
.nav-bar li {
    display: inline-block;
}
.nav-bar a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 10px 18px;
    border-radius: 22px;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    letter-spacing: 1px;
    position: relative;
}
.nav-bar a.active, .nav-bar a:hover {
    background: linear-gradient(90deg, #fddb3a, #fcb900);
    color: #1a1a2e;
    transform: scale(1.08);
    box-shadow: 0 2px 8px #fddb3a44;
}
.tab-section {
    display: none;
}
.tab-section.active-section {
    display: block;
    animation: fadeIn 0.8s both;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 400px;
    margin: 0 auto;
}
.contact-form input, .contact-form textarea {
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    background: #fff3;
    color: #fff;
    outline: none;
    resize: none;
}
.contact-form input:focus, .contact-form textarea:focus {
    background: #fff6;
    color: #1a1a2e;
}
.contact-form button {
    margin-top: 8px;
}
.hero {
    width: 100%;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(120deg, #0f3460 60%, #fddb3a 100%);
    color: #fff;
    text-align: center;
    margin-bottom: 32px;
    box-shadow: 0 4px 24px #0002;
    position: relative;
    z-index: 1;
    animation: fadeIn 1.2s both;
}
.hero-about {
    background: linear-gradient(120deg, #16213e 60%, #fddb3a 100%);
}
.hero-workshops {
    background: linear-gradient(120deg, #0f3460 60%, #43e97b 100%);
}
.hero-competitions {
    background: linear-gradient(120deg, #16213e 60%, #ff5858 100%);
}
.hero-fun {
    background: linear-gradient(120deg, #0f3460 60%, #f7971e 100%);
}
.hero-contact {
    background: linear-gradient(120deg, #16213e 60%, #43c6ac 100%);
}
.hero .event-title {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px #0006;
}
.hero .event-sub {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 0;
    text-shadow: 0 1px 4px #0004;
}
.black-bg-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.92);
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}
.black-bg-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.container, .hero, .tab-section {
    position: relative;
    z-index: 3;
}
@media (max-width: 700px) {
    .container { padding: 16px 4px 32px 4px; }
    .event-title { font-size: 1.5rem; }
    .event-sub { font-size: 1rem; }
    .countdown { gap: 10px; }
    .card { min-width: 120px; max-width: 100%; padding: 16px 8px; }
    .cards { gap: 8px; }
    .logo { width: 70px; }
    .cta-btn { font-size: 1rem; padding: 10px 18px; }
    .nav-bar ul { gap: 6px; height: 44px; }
    .nav-bar a { font-size: 0.95rem; padding: 7px 10px; }
    .contact-form { max-width: 98vw; }
    .hero { min-height: 120px; }
    .hero .event-title { font-size: 1.2rem; }
    .hero .event-sub { font-size: 0.95rem; }
}
@media (max-width: 480px) {
    .container { padding: 8px 0 16px 0; }
    .event-title { font-size: 1.1rem; }
    .event-sub { font-size: 0.9rem; }
    .countdown { flex-direction: column; gap: 6px; }
    .card { min-width: 90vw; max-width: 98vw; }
    .logo { width: 50px; }
    .cta-btn { font-size: 0.95rem; padding: 8px 8px; }
    .nav-bar ul { flex-wrap: wrap; gap: 2px; height: auto; }
    .nav-bar a { font-size: 0.9rem; padding: 6px 6px; margin: 2px 0; }
    .contact-form { max-width: 98vw; }
}

/* Gallery grid and modern hover animations */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
    align-items: stretch;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(2,6,23,0.4);
    transition: transform 420ms cubic-bezier(.2,.9,.3,1), box-shadow 420ms ease;
    background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.04));
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 650ms cubic-bezier(.2,.9,.3,1), filter 420ms ease;
    will-change: transform;
}
.gallery-item:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 16px 46px rgba(2,6,23,0.48);
}
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.0) 20%, rgba(0,0,0,0.35) 100%);
    opacity: 1;
    transition: opacity 320ms ease;
    pointer-events: none;
}
.gallery-item:hover img {
    transform: scale(1.08) rotate(0.4deg);
    filter: brightness(0.96) contrast(1.03);
}
.gallery-caption {
    position: absolute;
    left: 12px;
    bottom: 12px;
    color: #fff;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
    transform: translateY(6px);
    opacity: 0;
    transition: transform 320ms cubic-bezier(.2,.9,.3,1), opacity 320ms ease;
    font-size: 0.98rem;
}
.gallery-item:hover .gallery-caption {
    transform: translateY(0);
    opacity: 1;
}
@media (max-width: 700px) {
    .gallery-caption { font-size: 0.94rem; left:10px; bottom:10px; }
}
