/* =========================================================
   TODA INTRO / LOADING PAGE
   Premium White + Blue Stage Light Animation
   ========================================================= */

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

:root {
    --bg: #f8fbff;
    --blue: #1264ff;
    --electric-blue: #2487ff;
    --cyan: #00cfff;
    --royal-blue: #4b35ff;
    --soft-blue: rgba(18, 100, 255, 0.16);
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    overflow: hidden;
    background: var(--bg);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
}

/* =========================================================
   MAIN LOADER
   ========================================================= */

#loader {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(
            circle at 50% 50%,
            rgba(255, 255, 255, 1) 0%,
            rgba(248, 251, 255, 1) 48%,
            rgba(239, 247, 255, 1) 100%
        );
    isolation: isolate;
}

/* =========================================================
   VERY SOFT CENTER LIGHT
   ========================================================= */

#loader::before {
    content: "";
    position: absolute;
    width: 55vmin;
    height: 55vmin;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(70, 170, 255, 0.12);
    filter: blur(70px);
    animation: centerPulse 2.2s ease-in-out infinite;
    pointer-events: none;
    z-index: -3;
}

#loader::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(0, 207, 255, 0.07),
            transparent 28%
        ),
        radial-gradient(
            circle at 85% 25%,
            rgba(75, 53, 255, 0.07),
            transparent 30%
        ),
        radial-gradient(
            circle at 20% 85%,
            rgba(18, 100, 255, 0.06),
            transparent 28%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(0, 207, 255, 0.07),
            transparent 28%
        );
    animation: ambientMove 5s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: -4;
}

/* =========================================================
   DJ / STAGE LIGHT SYSTEM
   ========================================================= */

.stage-lights {
    position: absolute;
    inset: -15%;
    width: 130%;
    height: 130%;
    pointer-events: none;
    z-index: -2;
    overflow: hidden;
}

/* Common light beam */

.light {
    position: absolute;
    width: 18vmin;
    height: 75vmax;
    left: 50%;
    top: 50%;
    transform-origin: 50% 100%;
    opacity: 0;
    filter: blur(2px);
    mix-blend-mode: multiply;
}

/* Inner bright core */

.light::before {
    content: "";
    position: absolute;
    inset: 0;
    clip-path: polygon(
        46% 100%,
        54% 100%,
        100% 0%,
        0% 0%
    );
    background: linear-gradient(
        to bottom,
        rgba(18, 100, 255, 0.02),
        rgba(18, 100, 255, 0.12),
        rgba(0, 207, 255, 0.20),
        rgba(18, 100, 255, 0.02)
    );
}

/* Soft outer glow */

.light::after {
    content: "";
    position: absolute;
    inset: -25%;
    clip-path: polygon(
        44% 100%,
        56% 100%,
        100% 0%,
        0% 0%
    );
    background: linear-gradient(
        to bottom,
        rgba(0, 207, 255, 0),
        rgba(0, 207, 255, 0.05),
        rgba(18, 100, 255, 0.10),
        rgba(75, 53, 255, 0)
    );
    filter: blur(18px);
}

/* =========================================================
   INDIVIDUAL STAGE LIGHTS
   ========================================================= */

.light-1 {
    transform: translate(-50%, -50%) rotate(-58deg);
    animation: beamLeft 3.8s ease-in-out infinite;
}

.light-2 {
    transform: translate(-50%, -50%) rotate(-30deg);
    animation: beamLeftInner 3.1s ease-in-out infinite 0.3s;
}

.light-3 {
    transform: translate(-50%, -50%) rotate(-8deg);
    animation: beamCenterLeft 3.5s ease-in-out infinite 0.7s;
}

.light-4 {
    transform: translate(-50%, -50%) rotate(12deg);
    animation: beamCenterRight 3.4s ease-in-out infinite 0.4s;
}

.light-5 {
    transform: translate(-50%, -50%) rotate(34deg);
    animation: beamRightInner 3.2s ease-in-out infinite 0.9s;
}

.light-6 {
    transform: translate(-50%, -50%) rotate(58deg);
    animation: beamRight 3.9s ease-in-out infinite 0.2s;
}

/* =========================================================
   ADDITIONAL CORNER LIGHTS
   ========================================================= */

.stage-lights::before,
.stage-lights::after {
    content: "";
    position: absolute;
    width: 28vmin;
    height: 28vmin;
    border-radius: 50%;
    filter: blur(35px);
    opacity: 0.35;
    animation: cornerGlow 2.8s ease-in-out infinite;
}

.stage-lights::before {
    left: -4%;
    top: 8%;
    background: rgba(0, 207, 255, 0.22);
}

.stage-lights::after {
    right: -4%;
    bottom: 8%;
    background: rgba(75, 53, 255, 0.18);
    animation-delay: 1.2s;
}

/* =========================================================
   AMBIENT GLOW SPOTS
   ========================================================= */

.ambient {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(25px);
    opacity: 0.5;
    z-index: -1;
}

.ambient-one {
    width: 22vmin;
    height: 22vmin;
    top: 4%;
    left: 8%;
    background: rgba(0, 207, 255, 0.13);
    animation: floatOne 4s ease-in-out infinite;
}

.ambient-two {
    width: 25vmin;
    height: 25vmin;
    right: 5%;
    top: 10%;
    background: rgba(18, 100, 255, 0.13);
    animation: floatTwo 4.5s ease-in-out infinite;
}

.ambient-three {
    width: 20vmin;
    height: 20vmin;
    bottom: 5%;
    left: 42%;
    background: rgba(75, 53, 255, 0.09);
    animation: floatThree 5s ease-in-out infinite;
}

/* =========================================================
   BRAND AREA
   ========================================================= */

.brand-area {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    user-select: none;
}

/* =========================================================
   TODA LETTERS
   ========================================================= */

.brand-name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(2px, 1vw, 10px);
    perspective: 800px;
}

.letter {
    display: inline-block;
    font-size: clamp(4.5rem, 17vw, 10rem);
    line-height: 0.9;
    font-weight: 900;
    letter-spacing: -0.08em;
    opacity: 0;
    transform: translateX(-110vw) rotateY(-75deg) scale(0.65);
    filter: blur(12px);
    animation:
        letterEnter 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards,
        letterGlow 1.8s ease-in-out infinite;
}

/* T */

.letter-t {
    color: #1264ff;
    text-shadow:
        0 0 10px rgba(18, 100, 255, 0.35),
        0 0 30px rgba(18, 100, 255, 0.25);
    animation-delay: 0.10s, 1.05s;
}

/* O */

.letter-o {
    color: #168cff;
    text-shadow:
        0 0 10px rgba(22, 140, 255, 0.35),
        0 0 30px rgba(22, 140, 255, 0.25);
    animation-delay: 0.20s, 1.15s;
}

/* D */

.letter-d {
    color: #00bfe9;
    text-shadow:
        0 0 10px rgba(0, 191, 233, 0.38),
        0 0 30px rgba(0, 191, 233, 0.25);
    animation-delay: 0.30s, 1.25s;
}

/* A */

.letter-a {
    color: #4b35ff;
    text-shadow:
        0 0 10px rgba(75, 53, 255, 0.35),
        0 0 30px rgba(75, 53, 255, 0.25);
    animation-delay: 0.40s, 1.35s;
}

/* =========================================================
   BRAND LINE
   ========================================================= */

.brand-line {
    width: min(170px, 42vw);
    height: 2px;
    margin-top: clamp(14px, 3vw, 22px);
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(18, 100, 255, 0.7),
        rgba(0, 207, 255, 0.9),
        rgba(75, 53, 255, 0.7),
        transparent
    );
    transform: scaleX(0);
    transform-origin: center;
    animation: lineReveal 0.8s ease forwards 0.95s;
    box-shadow:
        0 0 10px rgba(0, 180, 255, 0.25);
}

/* =========================================================
   TAGLINE
   ========================================================= */

.tagline {
    margin-top: 14px;
    color: #4d617b;
    font-size: clamp(0.78rem, 2.5vw, 1rem);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(12px);
    animation: taglineReveal 0.7s ease forwards 1.1s;
}

/* =========================================================
   LOADING DOTS
   ========================================================= */

.loading-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 24px;
    opacity: 0;
    animation: loadingReveal 0.5s ease forwards 1.3s;
}

.loading-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #1264ff;
    opacity: 0.3;
    animation: dotBlink 1.1s ease-in-out infinite;
}

.loading-dots span:nth-child(2) {
    background: #00bfe9;
    animation-delay: 0.18s;
}

.loading-dots span:nth-child(3) {
    background: #4b35ff;
    animation-delay: 0.36s;
}

/* =========================================================
   ACCESSIBILITY TEXT
   ========================================================= */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =========================================================
   LETTER ENTRY
   ========================================================= */

@keyframes letterEnter {
    0% {
        opacity: 0;
        transform:
            translateX(-110vw)
            rotateY(-75deg)
            scale(0.65);
        filter: blur(12px);
    }

    60% {
        opacity: 1;
        transform:
            translateX(10px)
            rotateY(8deg)
            scale(1.04);
        filter: blur(0);
    }

    100% {
        opacity: 1;
        transform:
            translateX(0)
            rotateY(0)
            scale(1);
        filter: blur(0);
    }
}

/* =========================================================
   LETTER GLOW / BLINK
   ========================================================= */

@keyframes letterGlow {
    0%,
    100% {
        opacity: 1;
        filter: brightness(1);
    }

    42% {
        opacity: 0.82;
        filter: brightness(0.92);
    }

    48% {
        opacity: 1;
        filter: brightness(1.35);
    }

    52% {
        opacity: 0.72;
        filter: brightness(0.85);
    }

    57% {
        opacity: 1;
        filter: brightness(1.2);
    }
}

/* =========================================================
   CENTER PULSE
   ========================================================= */

@keyframes centerPulse {
    0%,
    100% {
        opacity: 0.55;
        transform: translate(-50%, -50%) scale(0.85);
    }

    50% {
        opacity: 0.95;
        transform: translate(-50%, -50%) scale(1.15);
    }
}

/* =========================================================
   AMBIENT MOVEMENT
   ========================================================= */

@keyframes ambientMove {
    0% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.08) rotate(2deg);
    }

    100% {
        transform: scale(1.02) rotate(-2deg);
    }
}

/* =========================================================
   LEFT STAGE BEAMS
   ========================================================= */

@keyframes beamLeft {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(-72deg);
    }

    20% {
        opacity: 0.7;
    }

    50% {
        opacity: 0.3;
        transform: translate(-50%, -50%) rotate(-38deg);
    }

    80% {
        opacity: 0.75;
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(-72deg);
    }
}

@keyframes beamLeftInner {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(-48deg);
    }

    25% {
        opacity: 0.55;
    }

    55% {
        opacity: 0.2;
        transform: translate(-50%, -50%) rotate(-18deg);
    }

    80% {
        opacity: 0.65;
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(-48deg);
    }
}

/* =========================================================
   CENTER BEAMS
   ========================================================= */

@keyframes beamCenterLeft {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(-24deg);
    }

    30% {
        opacity: 0.5;
    }

    55% {
        opacity: 0.18;
        transform: translate(-50%, -50%) rotate(-4deg);
    }

    80% {
        opacity: 0.55;
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(-24deg);
    }
}

@keyframes beamCenterRight {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(24deg);
    }

    30% {
        opacity: 0.55;
    }

    55% {
        opacity: 0.18;
        transform: translate(-50%, -50%) rotate(5deg);
    }

    80% {
        opacity: 0.6;
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(24deg);
    }
}

/* =========================================================
   RIGHT STAGE BEAMS
   ========================================================= */

@keyframes beamRightInner {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(48deg);
    }

    25% {
        opacity: 0.6;
    }

    55% {
        opacity: 0.18;
        transform: translate(-50%, -50%) rotate(18deg);
    }

    80% {
        opacity: 0.65;
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(48deg);
    }
}

@keyframes beamRight {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(72deg);
    }

    20% {
        opacity: 0.7;
    }

    50% {
        opacity: 0.3;
        transform: translate(-50%, -50%) rotate(38deg);
    }

    80% {
        opacity: 0.75;
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(72deg);
    }
}

/* =========================================================
   CORNER GLOW
   ========================================================= */

@keyframes cornerGlow {
    0%,
    100% {
        transform: scale(0.8);
        opacity: 0.22;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.5;
    }
}

/* =========================================================
   LINE
   ========================================================= */

@keyframes lineReveal {
    from {
        transform: scaleX(0);
        opacity: 0;
    }

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

/* =========================================================
   TAGLINE
   ========================================================= */

@keyframes taglineReveal {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

/* =========================================================
   LOADING
   ========================================================= */

@keyframes loadingReveal {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

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

@keyframes dotBlink {
    0%,
    100% {
        opacity: 0.25;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.25);
    }
}

/* =========================================================
   EXIT ANIMATION
   ========================================================= */

#loader.exit {
    animation: loaderExit 0.32s ease forwards;
}

#loader.exit .brand-area {
    animation: brandExit 0.32s ease forwards;
}

@keyframes loaderExit {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(1.025);
    }
}

@keyframes brandExit {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.96);
    }
}

/* =========================================================
   MOBILE OPTIMIZATION
   ========================================================= */

@media (max-width: 600px) {

    .stage-lights {
        inset: -25%;
        width: 150%;
        height: 150%;
    }

    .light {
        width: 25vmin;
        height: 85vmax;
    }

    .brand-name {
        gap: 1px;
    }

    .letter {
        font-size: clamp(4rem, 21vw, 6.5rem);
        letter-spacing: -0.09em;
    }

    .tagline {
        font-size: 0.72rem;
        letter-spacing: 0.14em;
    }

    .brand-line {
        width: 130px;
    }

    .loading-dots {
        margin-top: 20px;
    }
}

/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 360px) {

    .letter {
        font-size: 3.7rem;
    }

    .tagline {
        font-size: 0.65rem;
    }

    .brand-line {
        width: 115px;
    }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .letter {
        opacity: 1;
        transform: none;
        filter: none;
    }

    .brand-line {
        opacity: 1;
        transform: scaleX(1);
    }

    .tagline,
    .loading-dots {
        opacity: 1;
        transform: none;
    }
}