.scroll-block {
    opacity: 0;
    transform: translateY(50px);
    transition: none !important; 
    transform-origin: center center;
}

.logo-container,
.typewriter-container,
#particles-js,
#meteorites-js {
    opacity: 0;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #FFD700, #FFAA00);
    z-index: 1001;
    transition: width 0.2s ease;
}

#loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 22%, rgba(255, 215, 0, 0.08) 0%, rgba(255, 215, 0, 0) 26%),
        radial-gradient(circle at 84% 12%, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 28%),
        radial-gradient(circle at center, rgba(255, 255, 255, 0.015) 0%, rgba(255, 255, 255, 0) 40%),
        linear-gradient(180deg, #040404 0%, #090909 45%, #0e0d0a 100%);
    transition: background 0.7s ease, opacity 0.7s ease;
}

#loading-overlay.phase-two {
    background:
        radial-gradient(circle at 22% 40%, rgba(255, 215, 0, 0.06) 0%, rgba(255, 215, 0, 0) 24%),
        radial-gradient(circle at 78% 16%, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0) 22%),
        linear-gradient(180deg, #050505 0%, #0a0a09 48%, #0d0c08 100%);
}

.loading-particles {
    position: absolute;
    inset: -8vh -6vw;
    overflow: hidden;
    pointer-events: none;
}

.loading-container {
    position: relative;
    z-index: 2;
    width: min(94vw, 920px);
    display: none;
    align-items: center;
    justify-content: center;
    transition: transform 0.7s ease, opacity 0.7s ease;
}

.loading-glow {
    position: absolute;
    width: 42vw;
    height: 42vw;
    border-radius: 50%;
    filter: blur(96px);
    opacity: 0.28;
    pointer-events: none;
}

.loading-glow-left {
    top: -12%;
    left: -8%;
    background: rgba(255, 196, 0, 0.16);
}

.loading-glow-right {
    right: -12%;
    bottom: -14%;
    background: rgba(255, 255, 255, 0.08);
}

.loading-reveal-wash {
    position: absolute;
    width: min(38vw, 380px);
    height: min(38vw, 380px);
    z-index: 2;
    display: none;
    opacity: 0;
    pointer-events: none;
    border-radius: 50%;
    background:
        radial-gradient(circle,
            rgba(255, 249, 232, 0.42) 0%,
            rgba(255, 215, 0, 0.18) 24%,
            rgba(255, 215, 0, 0.08) 42%,
            rgba(255, 255, 255, 0.02) 58%,
            rgba(255, 255, 255, 0) 72%);
    filter:
        blur(10px)
        drop-shadow(0 0 30px rgba(255, 215, 0, 0.18))
        drop-shadow(0 0 56px rgba(255, 255, 255, 0.1));
    transform: translate3d(-16vw, -4vh, 0) scale(0.12);
    mix-blend-mode: screen;
}

.loading-reveal-wash::before,
.loading-reveal-wash::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
}

.loading-reveal-wash::before {
    background:
        radial-gradient(circle,
            rgba(255, 255, 255, 0.34) 0%,
            rgba(255, 255, 255, 0.12) 18%,
            rgba(255, 215, 0, 0.08) 34%,
            rgba(255, 255, 255, 0) 62%);
    filter: blur(24px);
    opacity: 0.72;
}

.loading-reveal-wash::after {
    background:
        radial-gradient(circle,
            rgba(255, 255, 255, 0) 54%,
            rgba(255, 248, 220, 0.28) 72%,
            rgba(255, 255, 255, 0) 82%);
    opacity: 0.5;
}

.loading-reveal-star {
    position: absolute;
    width: min(42vw, 420px);
    height: auto;
    z-index: 3;
    display: block;
    opacity: 0;
    pointer-events: none;
    object-fit: contain;
    filter:
        blur(0.1px)
        drop-shadow(0 0 24px rgba(255, 215, 0, 0.44))
        drop-shadow(0 0 60px rgba(255, 215, 0, 0.3))
        drop-shadow(0 0 110px rgba(255, 255, 255, 0.24));
    transform: translate3d(-28vw, 4vh, 0) scale(0.34) rotate(-16deg);
}


.loading-panel {
    position: relative;
    width: 100%;
    padding: 2.7rem 2.7rem 2.35rem;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 2.65rem;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 0;
    clip-path: circle(0% at 26% 42%);
    transform: translateY(12px) scale(0.985);
    transition: gap 0.6s ease, padding 0.6s ease, transform 0.6s ease;
}

.loading-panel::before {
    content: "";
    position: absolute;
    inset: -6% -4%;
    border-radius: 40px;
    background:
        radial-gradient(circle at 24% 46%, rgba(255, 215, 0, 0.11) 0%, rgba(255, 215, 0, 0.04) 24%, rgba(255, 215, 0, 0) 58%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 36%);
    filter: blur(18px);
    opacity: 0.9;
    pointer-events: none;
}

.loading-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 88% 15%, rgba(255, 255, 255, 0.95) 0 1.1px, transparent 2px),
        radial-gradient(circle at 79% 25%, rgba(255, 215, 0, 0.85) 0 1.1px, transparent 2px),
        radial-gradient(circle at 68% 18%, rgba(255, 255, 255, 0.42) 0 1px, transparent 1.8px),
        radial-gradient(circle at 20% 18%, rgba(255, 215, 0, 0.48) 0 1px, transparent 2px);
    opacity: 0.38;
    pointer-events: none;
}

.loading-panel-aura {
    position: absolute;
    top: 50%;
    left: -3%;
    width: 46%;
    height: 126%;
    transform: translateY(-50%);
    background:
        radial-gradient(circle at 38% 50%, rgba(255, 215, 0, 0.18) 0%, rgba(255, 215, 0, 0.07) 32%, rgba(255, 215, 0, 0) 72%);
    filter: blur(14px);
    opacity: 0.92;
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.loading-emblem {
    position: relative;
    width: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.7s ease, opacity 0.7s ease;
}

.loading-emblem::before {
    content: "";
    position: absolute;
    inset: 34px;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(255, 215, 0, 0.32) 0%, rgba(255, 215, 0, 0.12) 36%, rgba(255, 215, 0, 0) 72%);
    filter: blur(12px);
    opacity: 1;
}

.loading-emblem::after {
    content: "";
    position: absolute;
    inset: 20px;
    border-radius: 50%;
    border: 1px solid rgba(255, 215, 0, 0.18);
    opacity: 0.7;
}

.loading-emblem-orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.loading-emblem-orbit-1 {
    inset: 12px;
    border-top-color: rgba(255, 215, 0, 0.44);
    border-left-color: rgba(255, 255, 255, 0.14);
    animation: loadingRingSpin 8.5s linear infinite;
}

.loading-emblem-orbit-2 {
    inset: 30px;
    border-right-color: rgba(255, 215, 0, 0.26);
    border-bottom-color: rgba(255, 255, 255, 0.12);
    animation: loadingRingSpinReverse 10.5s linear infinite;
}

.loading-emblem-star {
    position: absolute;
    width: auto;
    object-fit: contain;
    pointer-events: none;
    z-index: 4;
    filter:
        drop-shadow(0 0 14px rgba(255, 215, 0, 0.24))
        drop-shadow(0 0 26px rgba(255, 255, 255, 0.1));
}

.loading-emblem-star-a {
    width: 66px;
    top: 8px;
    right: 2px;
    transform: rotate(-10deg);
    animation: emblemStarFloatA 5.2s ease-in-out infinite;
}

.loading-emblem-star-b {
    width: 48px;
    left: 6px;
    bottom: 18px;
    transform: rotate(10deg);
    animation: emblemStarFloatB 5.8s ease-in-out infinite;
}

.loading-emblem-ring,
.loading-emblem-core {
    position: absolute;
    border-radius: 50%;
}

.loading-emblem-ring {
    inset: 30px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        inset 0 0 28px rgba(255, 255, 255, 0.04),
        0 0 34px rgba(255, 215, 0, 0.1);
}

.loading-emblem-ring::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    border: 1px solid transparent;
    border-top-color: rgba(255, 215, 0, 0.7);
    border-right-color: rgba(255, 255, 255, 0.18);
    animation: loadingRingSpin 7s linear infinite;
}

.loading-emblem-core {
    inset: 60px;
    background:
        radial-gradient(circle at 64% 36%, rgba(255, 255, 255, 0.85) 0 24%, rgba(255, 255, 255, 0.18) 25%, rgba(255, 255, 255, 0) 56%),
        radial-gradient(circle at 36% 66%, rgba(255, 196, 0, 0.7) 0 22%, rgba(255, 196, 0, 0.16) 24%, rgba(255, 196, 0, 0) 58%),
        radial-gradient(circle at 48% 48%, rgba(255, 215, 0, 0.16) 0%, rgba(255, 215, 0, 0) 70%),
        rgba(18, 18, 18, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow:
        inset 0 0 36px rgba(255, 215, 0, 0.12),
        0 0 44px rgba(255, 215, 0, 0.12);
}

.loading-copy {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.7s ease, opacity 0.7s ease;
}

.loading-copy > * {
    position: relative;
    z-index: 1;
}

.loading-kicker {
    margin-bottom: 0.75rem;
    color: rgba(255, 215, 0, 0.84);
    font-family: 'Holidays Homework', cursive;
    font-size: 0.96rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    transition: color 0.5s ease, letter-spacing 0.5s ease;
}

.loading-brand {
    color: #ffffff;
    font-family: 'Baby Doll', cursive;
    font-size: clamp(3.1rem, 5vw, 4rem);
    letter-spacing: 0.08em;
    line-height: 0.92;
    margin-bottom: 0.95rem;
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.34),
        0 0 22px rgba(255, 255, 255, 0.08);
    opacity: 0;
}

.loading-text {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.06rem;
    max-width: 430px;
    text-wrap: balance;
    font-family: 'Sketch Paper', cursive;
    line-height: 1.45;
}

.loading-lore {
    margin-top: 0.75rem;
    color: rgba(255, 215, 0, 0.82);
    font-family: 'Baby Doll', cursive;
    font-size: 1.08rem;
    letter-spacing: 0.04em;
    opacity: 0.95;
    transition: color 0.5s ease, opacity 0.5s ease;
}

.loading-omt {
    width: min(100%, 360px);
    margin-top: 1rem;
    margin-bottom: 0.2rem;
    opacity: 0.9;
    filter:
        drop-shadow(0 0 8px rgba(255, 255, 255, 0.12))
        drop-shadow(0 0 24px rgba(255, 215, 0, 0.1));
}

.loading-progress-shell {
    width: min(100%, 390px);
    margin-top: 1.45rem;
    margin-bottom: 0.95rem;
}

.loading-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.62rem;
}

.loading-stage,
.loading-progress-value {
    font-family: 'Holidays Homework', cursive;
    font-size: 0.92rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.loading-stage {
    color: rgba(255, 255, 255, 0.8);
}

.loading-progress-value {
    color: rgba(255, 215, 0, 0.96);
}

.loading-progress {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ffd700, #ffbe1a, #ffd700);
    background-size: 220% 100%;
    border-radius: inherit;
    transition: width 0.4s ease;
    animation: shimmer 2s linear infinite;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.38);
}

.loading-message {
    color: rgba(255, 255, 255, 0.92);
    font-family: 'Sketch Paper', cursive;
    font-size: 1.05rem;
    min-height: 1.45rem;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

#loading-overlay.phase-two .loading-container {
    transform: translateY(-4px);
}

#loading-overlay.phase-two .loading-panel {
    gap: 1.4rem;
    padding-top: 2rem;
    padding-bottom: 2.35rem;
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: center;
}

#loading-overlay.phase-two .loading-panel::before {
    opacity: 0.58;
}

#loading-overlay.phase-two .loading-panel::after {
    opacity: 0.24;
}

#loading-overlay.phase-two .loading-panel-aura {
    left: 50%;
    top: 34%;
    width: 42%;
    height: 54%;
    opacity: 0.34;
    background:
        radial-gradient(circle, rgba(255, 215, 0, 0.16) 0%, rgba(255, 215, 0, 0.06) 34%, rgba(255, 215, 0, 0) 72%);
    transform: translate(-50%, -50%) scale(0.88);
    filter: blur(26px);
}

#loading-overlay.phase-two .loading-emblem {
    width: min(100%, 360px);
    height: 120px;
    transform: none;
    justify-content: center;
    align-items: center;
}

#loading-overlay.phase-two .loading-emblem-star {
    opacity: 0;
}

#loading-overlay.phase-two .loading-emblem::before,
#loading-overlay.phase-two .loading-emblem::after,
#loading-overlay.phase-two .loading-emblem-orbit,
#loading-overlay.phase-two .loading-emblem-ring,
#loading-overlay.phase-two .loading-emblem-ring::before {
    display: none !important;
}

#loading-overlay.phase-two .loading-emblem-core {
    display: none;
}

#loading-overlay.phase-two .loading-logo {
    display: none;
}

#loading-overlay.phase-two .loading-banner-logo {
    display: block;
    width: min(100%, 260px);
    max-width: 100%;
    opacity: 0.96;
    transform: none;
    filter:
        drop-shadow(0 0 14px rgba(255, 255, 255, 0.16))
        drop-shadow(0 0 30px rgba(255, 255, 255, 0.08))
        drop-shadow(0 0 24px rgba(255, 215, 0, 0.06));
}

#loading-overlay.phase-two .loading-copy {
    transform: none;
    width: 100%;
    max-width: 560px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: "omt";
    justify-items: center;
    align-content: center;
}

#loading-overlay.phase-two .loading-brand {
    display: none !important;
}

#loading-overlay.phase-two .loading-omt {
    grid-area: omt;
    width: min(100%, 192px);
    margin-top: 2.5rem;
    margin-bottom: 0;
    opacity: 0.4;
    justify-self: center;
    align-self: end;
    filter:
        grayscale(0.06)
        drop-shadow(0 0 6px rgba(255, 255, 255, 0.06))
        drop-shadow(0 0 10px rgba(255, 215, 0, 0.03));
}

#loading-overlay.phase-two .loading-kicker,
#loading-overlay.phase-two .loading-text,
#loading-overlay.phase-two .loading-lore,
#loading-overlay.phase-two .loading-progress-shell,
#loading-overlay.phase-two .loading-message {
    display: none !important;
}

@media (max-width: 768px) {
    #loading-overlay.phase-two .loading-panel {
        grid-template-columns: 1fr;
        gap: 1.1rem;
    }

    #loading-overlay.phase-two .loading-emblem {
        width: 180px;
        height: 72px;
        justify-content: center;
    }

    #loading-overlay.phase-two .loading-copy {
        justify-items: center;
    }

    #loading-overlay.phase-two .loading-omt {
        text-align: center;
    }

    #loading-overlay.phase-two .loading-banner-logo {
        width: min(100%, 180px);
        transform: none;
    }

    #loading-overlay.phase-two .loading-omt {
        justify-self: center;
        margin-top: 1.8rem;
    }
}

.loading-container,
.loading-panel,
.loading-panel-aura,
.loading-reveal-wash,
.loading-reveal-star,
.loading-emblem,
.loading-emblem-ring,
.loading-emblem-core,
.loading-logo,
.loading-emblem-star,
.loading-emblem-orbit,
.loading-omt {
    will-change: transform, opacity;
}

.loading-particle {
    position: absolute;
    width: var(--star-size, 64px);
    height: var(--star-size, 64px);
    left: 0;
    top: 0;
    object-fit: contain;
    pointer-events: none;
    opacity: 0;
    filter:
        blur(var(--star-blur, 0px))
        drop-shadow(0 0 10px rgba(255, 215, 0, 0.18))
        drop-shadow(0 0 26px rgba(255, 255, 255, 0.12));
    transform: translate3d(var(--star-x-start, 0), var(--star-y-start, 0), 0) scale(var(--star-scale, 1)) rotate(-16deg);
    animation:
        loadingStarFloat var(--star-duration, 11s) linear infinite,
        loadingStarPulse calc(var(--star-duration, 11s) * 0.58) ease-in-out infinite;
    animation-delay: var(--star-delay, 0s), var(--star-delay, 0s);
    mix-blend-mode: screen;
}

@keyframes loadingRingSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes loadingRingSpinReverse {
    from {
        transform: rotate(360deg);
    }
    to {
        transform: rotate(0deg);
    }
}

@keyframes logoGlow {
    0% {
        filter:
            drop-shadow(0 0 12px rgba(255, 255, 255, 0.6))
            drop-shadow(0 0 24px rgba(255, 215, 0, 0.34));
    }
    100% {
        filter:
            drop-shadow(0 0 16px rgba(255, 255, 255, 0.86))
            drop-shadow(0 0 34px rgba(255, 215, 0, 0.52))
            drop-shadow(0 0 54px rgba(255, 215, 0, 0.18));
    }
}

.loading-logo {
    width: 112px;
    height: 112px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    animation: logoGlow 3.4s ease-in-out infinite alternate;
}

.loading-banner-logo {
    display: none;
    position: relative;
    z-index: 3;
    width: min(100%, 220px);
    height: auto;
    object-fit: contain;
    filter:
        drop-shadow(0 0 8px rgba(255, 255, 255, 0.12))
        drop-shadow(0 0 18px rgba(255, 215, 0, 0.06));
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes loadingStarFloat {
    0% {
        opacity: 0;
        transform: translate3d(var(--star-x-start, 0), var(--star-y-start, 0), 0) scale(calc(var(--star-scale, 1) * 0.84)) rotate(-22deg);
    }
    8% {
        opacity: var(--star-opacity, 0.5);
    }
    82% {
        opacity: var(--star-opacity, 0.5);
    }
    100% {
        opacity: 0;
        transform: translate3d(var(--star-x-end, 0), var(--star-y-end, 0), 0) scale(calc(var(--star-scale, 1) * 1.06)) rotate(28deg);
    }
}

@keyframes loadingStarPulse {
    0%, 100% {
        filter:
            blur(var(--star-blur, 0px))
            drop-shadow(0 0 10px rgba(255, 215, 0, 0.18))
            drop-shadow(0 0 26px rgba(255, 255, 255, 0.12));
    }
    50% {
        filter:
            blur(var(--star-blur, 0px))
            drop-shadow(0 0 16px rgba(255, 215, 0, 0.26))
            drop-shadow(0 0 36px rgba(255, 255, 255, 0.18));
    }
}

@keyframes emblemStarFloatA {
    0%, 100% {
        transform: translateY(0) rotate(-10deg) scale(1);
    }
    50% {
        transform: translateY(-7px) rotate(-1deg) scale(1.06);
    }
}

@keyframes emblemStarFloatB {
    0%, 100% {
        transform: translateY(0) rotate(10deg) scale(1);
    }
    50% {
        transform: translateY(8px) rotate(16deg) scale(1.05);
    }
}

@media (max-width: 768px) {
    .loading-container {
        width: min(94vw, 560px);
    }

    .loading-reveal-star {
        width: min(46vw, 220px);
    }

    .loading-reveal-wash {
        width: min(62vw, 280px);
        height: min(62vw, 280px);
    }

    .loading-panel {
        grid-template-columns: 1fr;
        gap: 1.45rem;
        padding: 1.7rem 1.25rem 1.35rem;
        border-radius: 22px;
    }

    .loading-panel-aura {
        width: 100%;
        height: 46%;
        left: 0;
        top: 14%;
        transform: translateY(0);
    }

    .loading-emblem {
        width: 182px;
        height: 182px;
        margin: 0 auto;
    }

    .loading-emblem-ring {
        inset: 22px;
    }

    .loading-emblem-core {
        inset: 44px;
    }

    .loading-logo {
        width: 94px;
        height: 94px;
    }

    .loading-brand {
        font-size: 2.45rem;
    }

    .loading-copy {
        text-align: center;
        align-items: center;
    }

    .loading-progress-shell,
    .loading-progress-head {
        width: 100%;
    }

    .loading-text,
    .loading-message {
        max-width: 100%;
    }

    .loading-emblem-star-a {
        width: 50px;
        top: 6px;
        right: 4px;
    }

    .loading-emblem-star-b {
        width: 36px;
        left: 8px;
        bottom: 16px;
    }

    .loading-particle {
        border-width: 1.2px;
    }
}

@keyframes subtlePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    overflow: hidden;
}

header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

header.scrolled {
    background-color: rgba(10, 10, 10, 0.95);
    padding: 0.7rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo-container {
    position: relative;
    z-index: 20;
    margin-bottom: 1.7rem;
    padding-bottom: 0.45rem;
    line-height: 0;
    animation: floatGently 6s ease-in-out infinite;
    transition: opacity 0.9s ease, transform 0.9s ease;
}

@keyframes floatGently {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
    }
    33% { 
        transform: translateY(-10px) rotate(0.5deg); 
    }
    66% { 
        transform: translateY(5px) rotate(-0.5deg); 
    }
}

.logo {
    display: block;
    height: 84px;
    width: auto;
    filter:
        drop-shadow(0 0 4px rgba(245, 224, 196, 0.58))
        drop-shadow(0 0 12px rgba(245, 224, 196, 0.24))
        drop-shadow(0 0 26px rgba(255, 255, 255, 0.08));
    transition: all 0.5s ease;
}

.logo:hover {
    filter:
        drop-shadow(0 0 6px rgba(245, 224, 196, 0.72))
        drop-shadow(0 0 16px rgba(245, 224, 196, 0.32))
        drop-shadow(0 0 30px rgba(255, 255, 255, 0.1));
    transform: scale(1.03);
}

.logo-nav-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo-nav {
    height: 40px;
    transition: all 0.3s ease;
    filter: brightness(0) invert(1);
}

.logo-nav:hover {
    transform: scale(1.05);
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

nav ul {
    display: flex;
    gap: 1.8rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-family: 'Baby Doll', cursive;
    font-size: 1.05rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1.2rem;
    transition: all 0.4s ease;
    letter-spacing: 0.5px;
    z-index: 1;
    overflow: hidden;
}

nav a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
    z-index: -1;
}

nav a:hover {
    color: #FFD700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.9);
}

nav a:hover::before {
    width: 120px;
    height: 120px;
}

.dropdown > a::before {
    display: none !important;
}

.main-menu > li {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    min-width: 200px;
    z-index: 100;
    padding: 0.8rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { 
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to { 
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 0.7rem 1.5rem;
    color: #e0e0e0;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: 'Baby Doll', cursive;
}

.dropdown-menu li a:hover {
    color: #FFD700;
    background: rgba(255, 215, 0, 0.08);
    padding-left: 1.8rem;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.main-menu > li:first-child .dropdown-menu {
    left: 0;
    transform: translateX(0);
    animation: fadeInLeft 0.3s ease;
}

.main-menu > li:last-child .dropdown-menu {
    left: auto;
    right: 0;
    transform: translateX(0);
    animation: fadeInRight 0.3s ease;
}

.main-menu > li:last-child .dropdown-menu::before {
    left: auto;
    right: 25px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    color: #FFD700;
}

.mobile-menu-close {
    display: none;
}

@media (max-width: 1024px) {
    nav ul {
        gap: 1.5rem;
    }
    
    nav a {
        font-size: 1.05rem;
    }
}

@media (max-width: 900px) {
    .mobile-menu-btn {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        transition: right 0.4s ease;
        padding: 5rem 2rem 2rem;
        overflow-y: auto;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .dropdown-menu {
        position: static;
        background: rgba(20, 20, 20, 0.7);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        margin-top: 0.8rem;
        margin-left: 1.2rem;
        display: none;
        width: calc(100% - 2.4rem);
        transform: none;
        left: auto;
        opacity: 1;
        visibility: visible;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .logo-nav {
        height: 35px;
    }
    
    .mobile-menu-close {
        display: block;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        background: none;
        border: none;
        color: white;
        font-size: 1.8rem;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-close:hover {
        color: #FFD700;
        transform: rotate(90deg);
    }

    .dropdown > a::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .logo-nav {
        height: 32px;
    }
    
    nav {
        width: 85%;
        right: -85%;
    }
}

.main-content {
    position: relative;
    z-index: 10;
    padding: 4rem 2rem;
    background-color: rgba(18, 18, 18, 0.9);
}

.content-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.section-title {
    font-family: 'Baby Doll', cursive;
    font-size: 2.5rem;
    color: #FFD700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.section-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

footer {
    background: linear-gradient(to top, #0a0a0a 0%, #121212 100%);
    padding: 3rem 2rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 215, 0, 0.3) 20%, 
        rgba(255, 215, 0, 0.3) 80%, 
        transparent 100%);
    margin: 2rem 0;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    flex: 1;
    min-width: 250px;
    text-align: left;
}

.footer-logo {
    height: 60px;
    margin-bottom: 1rem;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.footer-tagline {
    font-family: 'Baby Doll', cursive;
    color: #FFD700;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.4;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    text-align: left;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #FFD700;
    transform: translateX(5px);
}

.footer-social {
    flex: 1;
    min-width: 250px;
}

.social-title {
    font-family: 'Baby Doll', cursive;
    color: #FFD700;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 250px;
    margin: 0 auto;
}

.social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(30, 30, 30, 0.7);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.social-icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0.8);
    transition: filter 0.3s ease;
}

.social-name {
    color: #ccc;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.social-item:hover .social-icon {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.4);
    transform: translateY(-3px);
}

.social-item:hover .social-icon img {
    filter: brightness(1);
}

.social-item:hover .social-name {
    color: #FFD700;
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.disclaimer {
    font-size: 0.85rem;
    color: #777;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.disclaimer-highlight {
    color: #FFD700;
    font-family: 'Baby Doll', cursive;
    display: block;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.copyright {
    margin-top: 1.5rem;
    color: #666;
    font-size: 0.8rem;
}

.footer-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
}

.footer-particle {
    position: absolute;
    background-color: rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    animation: floatParticle 15s infinite linear;
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100px) translateX(20px);
        opacity: 0;
    }
}

@media (max-width: 900px) {
    .footer-main {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-brand, .footer-links {
        text-align: center;
    }
    
    .footer-links a:hover {
        transform: none;
    }
}

@media (max-width: 600px) {
    footer {
        padding: 2rem 1.5rem 1rem;
    }
    
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-logo {
        height: 50px;
    }
}

.about-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.photo-collage {
    flex: 1;
    min-width: 300px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
}

.photo-collage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-collage img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.photo-1 {
    grid-column: 1;
    grid-row: 1 / span 2;
    height: 100%;
}

.photo-2 {
    grid-column: 2;
    grid-row: 1;
}

.photo-3 {
    grid-column: 2;
    grid-row: 2;
}

.highlight-box {
    background: linear-gradient(to right, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
    border-left: 4px solid #FFD700;
    padding: 1.8rem;
    margin: 2.5rem 0;
    font-size: 1.15rem;
    line-height: 1.7;
    color: #FFD700;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .about-section {
        flex-direction: column;
    }

    .photo-collage {
        width: 100%;
        margin-top: 2rem;
    }

    #user-menu {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

.social-link:hover img {
    filter: brightness(1) drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

.content-section.align-left {
    text-align: left;
}

.content-section.align-right {
    text-align: right;
}

.content-section.align-center {
    text-align: center;
}

.section-text.highlight {
    font-family: 'Baby Doll', cursive;
    color: #FFD700;
    font-size: 1.5rem;
    margin: 2rem 0;
}

.disclaimer-highlight {
    color: #FFD700;
    font-family: 'Baby Doll', cursive;
    display: block;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.join-link-container {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
}

.join-link {
    color: #FFD700;
    font-family: 'Baby Doll', cursive;
    font-size: 1.4rem;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.2rem 0;
}

.join-link:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
}

.join-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #FFD700;
    transition: width 0.3s ease;
}

.join-link:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .join-link {
        font-size: 1.2rem;
    }
}

#particles-js,
#meteorites-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    transition: opacity 1.1s ease;
}

#particles-js {
    z-index: 1;
    animation: slowZoom 60s linear infinite;
}

@keyframes slowZoom {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@media (max-width: 768px) {
    nav {
        top: 1rem;
        padding: 0.5rem;
        max-width: 90%;
    }

    nav ul {
        gap: 1rem;
        flex-wrap: wrap;
    }

    nav a {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .footer-logos {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .social-links {
        flex-wrap: wrap;
    }
}

.schedule-preview {
    background: rgba(18, 18, 18, 0.7);
    padding: 4rem 2rem;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.schedule-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 3rem;
    align-items: center;
}

.schedule-text {
    flex: 1;
}

.section-title {
    font-family: 'Baby Doll', cursive;
    color: #FFD700;
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-family: 'Sketch Paper', cursive;
}

.mini-timeline {
    background: rgba(30, 30, 30, 0.5);
    border-left: 3px solid #FFD700;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.event-card {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px dashed rgba(255, 215, 0, 0.3);
}

.event-card:last-child {
    border-bottom: none;
}

.event-date {
    font-family: 'Baby Doll', cursive;
    color: #FFD700;
    font-size: 1.3rem;
    min-width: 60px;
}

.event-info h3 {
    font-family: 'Baby Doll', cursive;
    margin: 0 0 0.3rem 0;
    font-size: 1.2rem;
    color: #ffffff;
}

.event-info p {
    color: #aaa;
    font-size: 0.9rem;
    margin: 0;
    font-family: 'Sketch Paper', cursive;
}

#typewriter {
    font-family: 'Holidays Homework', cursive;
    font-size: 2rem;
    color: #FFD700;
    text-shadow:
        0 0 4px rgba(245, 224, 196, 0.34),
        0 0 10px rgba(245, 224, 196, 0.16),
        0 0 18px rgba(245, 224, 196, 0.08);
    margin: 0;
    min-height: 52px;
    letter-spacing: 1px;
    line-height: 1.18;
    max-width: 760px;
}

.full-schedule-link {
    color: #FFD700;
    font-family: 'Baby Doll', cursive;
    font-size: 1.4rem;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.2rem 0;
}

.full-schedule-link:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
}

.full-schedule-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #FFD700;
    transition: width 0.3s ease;
}

.full-schedule-link:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .join-link {
        font-size: 1.2rem;
    }
}

.schedule-collage {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 400px;
}

.schedule-collage img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.schedule-collage img:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .schedule-container {
        flex-direction: column;
    }

    .schedule-collage {
        max-width: 100%;
        grid-template-columns: 1fr;
    }

    .event-card {
        gap: 1rem;
    }
}

.community-section {
    background: rgba(10, 10, 10, 0.8);
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.community-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.community-text {
    flex: 1;
}

.community-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-family: 'Sketch Paper', cursive;
}

.highlight {
    color: #FFD700;
    font-family: 'Baby Doll', cursive;
}

.community-collage {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 500px;
}

.collage-row {
    display: flex;
    gap: 10px;
}

.collage-row:nth-child(1) {
    justify-content: flex-start;
}

.collage-row:nth-child(2) {
    justify-content: flex-end;
}

.community-collage img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.community-collage img:hover {
    transform: scale(1.1);
    border-color: #FFD700;
    z-index: 3;
}

.gallery-link {
    color: #FFD700;
    font-family: 'Baby Doll', cursive;
    font-size: 1.4rem;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.2rem 0;
}

.gallery-link:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
}

.gallery-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #FFD700;
    transition: width 0.3s ease;
}

.gallery-link:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .join-link {
        font-size: 1.2rem;
    }
}

.community-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/assets/galeria/cyl.png') center/cover;
    opacity: 0.1;
    z-index: 1;
}

@media (max-width: 768px) {
    .community-container {
        flex-direction: column;
    }

    .community-collage {
        max-width: 100%;
        justify-content: center;
    }

    .collage-row {
        justify-content: center !important;
    }

    .community-collage img {
        width: 100px;
        height: 100px;
    }
}

.meet-team {
    background: rgba(18, 18, 18, 0.95);
    padding: 4rem 2rem 5rem;
    position: relative;
    overflow: hidden;
    position: relative;
}

.team-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.team-text {
    flex: 1;
    min-width: 300px;
}

.section-title {
    font-family: 'Baby Doll', cursive;
    color: #FFD700;
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-text {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    font-family: 'Sketch Paper', cursive;
}

.highlight {
    color: #FFD700;
    font-family: 'Baby Doll', cursive;
    font-weight: bold;
}

.polaroid-collage {
    flex: 1;
    min-width: 350px;
    height: 400px;
    position: relative;
    background: rgba(30, 30, 30, 0.3);
    border-radius: 10px;
    margin: 2rem;
}

.polaroid-frame {
    position: absolute;
    width: 200px;
    height: 200px;
    padding: 15px 15px 40px 15px;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.polaroid-frame:hover {
    transform: rotate(0deg) scale(1.15) !important;
    z-index: 10 !important;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.polaroid-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.polaroid-label {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 30px;
    background: white;
}

.polaroid-shadow {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 30px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    filter: blur(15px);
    z-index: 1;
}

.team-link {
    font-family: 'Baby Doll', cursive;
    color: #FFD700;
    font-size: 1.4rem;
    text-decoration: none;
    position: relative;
    display: inline-block;
    padding: 0.4rem 0;
    transition: all 0.4s ease;
}

.team-link:hover {
    color: white;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.8);
}

.team-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #FFD700;
    transition: width 0.4s ease;
}

.team-link:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .team-container {
        flex-direction: column;
        gap: 2rem;
    }

    .polaroid-collage {
        height: 300px;
        width: 100%;
        margin: 1rem 0;
    }

    .polaroid-frame {
        width: 150px;
        height: 150px;
        padding: 10px 10px 30px 10px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .section-text {
        font-size: 1.1rem;
    }

    .team-link {
        font-size: 1.2rem;
    }
}

.main-content section {
    transition: all 0.5s ease;
}

.typewriter-container {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.restriction-popup {
    position: fixed;
    bottom: 20px; 
    left: 50%;
    transform: translateX(-50%) translateY(100px); 
    backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 10px 20px;
    color: #ffffff;
    font-family: 'Sketch Paper', cursive, sans-serif;
    font-size: 0.98rem;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    z-index: 2000; 
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.restriction-popup.theme-gold {
    background: linear-gradient(180deg, rgba(43, 35, 14, 0.9) 0%, rgba(22, 19, 12, 0.96) 100%);
    border: 1px solid rgba(255, 215, 0, 0.28);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.34), 0 0 18px rgba(255, 215, 0, 0.08);
}

.restriction-popup.theme-white {
    background: linear-gradient(180deg, rgba(42, 42, 42, 0.92) 0%, rgba(24, 24, 24, 0.96) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.34), 0 0 18px rgba(255, 255, 255, 0.05);
}

.restriction-popup p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.restriction-popup-icon {
    width: 1.05rem;
    height: 1.05rem;
    flex: 0 0 auto;
    opacity: 0.9;
}

.restriction-popup-count {
    min-width: 1.55rem;
    height: 1.55rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.15rem;
    font-size: 0.82rem;
    line-height: 1;
    opacity: 0;
    transform: scale(0.88);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.restriction-popup.theme-gold .restriction-popup-icon,
.restriction-popup.theme-gold .restriction-popup-count {
    color: #ffd75a;
}

.restriction-popup.theme-gold .restriction-popup-count {
    background: rgba(255, 215, 0, 0.14);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.restriction-popup.theme-white .restriction-popup-icon,
.restriction-popup.theme-white .restriction-popup-count {
    color: #ffffff;
}

.restriction-popup.theme-white .restriction-popup-count {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.restriction-popup-count.show {
    opacity: 1;
    transform: scale(1);
}

.restriction-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0); 
}

.restriction-popup.bump {
    animation: popupPulse 0.22s ease;
}

@keyframes popupPulse {
    0% {
        transform: translateX(-50%) translateY(2px) scale(0.985);
    }
    100% {
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

@keyframes omtFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.add-to-calendar-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #FFD700;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    margin-top: 0.8rem;
    transition: all 0.3s ease;
    font-family: 'Baby Doll', cursive;
    width: 100%;
    justify-content: center;
}

.add-to-calendar-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.add-to-calendar-btn .material-icons {
    font-size: 1.1rem;
}

.calendar-options {
    margin-top: 0.8rem;
    padding: 1rem;
    background: rgba(20, 20, 20, 0.95);
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    animation: fadeInUp 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.calendar-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.calendar-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.8rem;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.8rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.calendar-option:hover {
    background: rgba(255, 215, 0, 0.15);
    color: #FFD700;
    border-color: rgba(255, 215, 0, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.calendar-option .material-icons {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.calendar-option span:last-child {
    font-weight: 500;
    font-size: 0.75rem;
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.event-info {
    position: relative;
    width: 100%;
}

.event-info h3 {
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.event-info p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #ccc;
}

@media (max-width: 480px) {
    .calendar-options-grid {
        grid-template-columns: 1fr;
    }
    
    .calendar-option {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        padding: 0.8rem 1rem;
    }
    
    .calendar-option .material-icons {
        margin-bottom: 0;
        margin-right: 0.5rem;
    }
}
