/* /css/sections/welcome.css */

.welcome-premium {
    position: relative;
    height: calc(100vh - 96px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    color: var(--text-color);
    overflow: hidden;
    background: url("") no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
}

.welcome-inner {
    position: relative;
    z-index: 6;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-content {
    max-width: 1800px;
    padding: 40px 28px;
    text-align: center;
}

.welcome-glow {
    position: absolute;
    width: 900px;
    height: 900px;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(110px);
    opacity: 0.9;
    z-index: 1;
    pointer-events: none;
}

.welcome-glow.warm {
    background: radial-gradient(circle at 30% 35%,
            var(--warm),
            transparent 35%);
}

.welcome-glow.cool {
    background: radial-gradient(circle at 70% 65%,
            var(--cool),
            transparent 35%);
}

.welcome-premium::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.01), transparent 2%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.01), transparent 2%),
        radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.008), transparent 2%);
    opacity: 0.9;
    transform: translateZ(0);
    pointer-events: none;
    z-index: 2;
}

.final-title {
    position: relative;
    font-family: "sansation";
    font-size: clamp(32px, 6.5vw, 108px);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.02em;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    text-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    margin: 0;
}

.final-title .word {
    display: inline-block;
    white-space: nowrap;
}

.final-title .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(8px) rotate(-2.5deg) scale(0.995);
    will-change: transform, opacity, filter;
}

.final-title .char.highlight-letter {
    font-weight: 900;
    color: rgba(255, 255, 255, 0);
    filter: blur(6px);
    transition: opacity 720ms cubic-bezier(0.2, 0.9, 0.28, 1),
        filter 720ms cubic-bezier(0.2, 0.9, 0.28, 1), color 360ms ease;
}

.final-title .char.visible {
    opacity: 1 !important;
    transform: none !important;
    color: var(--text-color) !important;
    filter: blur(0) !important;
    text-shadow: 0 0 36px rgba(255, 255, 255, 0.06);
}

.gold-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
}

.gold-letter {
    position: absolute;
    display: inline-block;
    font-weight: 900;
    font-family: inherit;
    background: linear-gradient(90deg, #ffd54a, #ff9b2b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 10px 40px rgba(255, 170, 60, 0.45));
    text-shadow: 0 0 30px rgba(255, 200, 80, 0.85);
    transform-origin: center;
    opacity: 0;
    will-change: transform, opacity, filter;
}

@keyframes goldPopSmooth {
    0% { opacity: 0; transform: scale(0.96); filter: drop-shadow(0 6px 18px rgba(255, 150, 40, 0.12)); }
    50% { opacity: 1; transform: scale(1.08); filter: drop-shadow(0 34px 90px rgba(255, 170, 60, 0.55)); }
    100% { opacity: 1; transform: scale(1.08); filter: drop-shadow(0 10px 36px rgba(255, 170, 60, 0.32)); }
}

.gold-letter.breathe {
    animation: goldPopSmooth 1100ms cubic-bezier(0.22, 0.9, 0.28, 1) forwards;
}

@keyframes goldFadeBlurSmooth {
    from { opacity: 1; filter: blur(0px) scale(1); }
    to { opacity: 0; filter: blur(10px) scale(0.96); }
}

.gold-letter.fadeout {
    animation: goldFadeBlurSmooth 1400ms cubic-bezier(0.22, 0.9, 0.28, 1) forwards;
}

@keyframes letterInSmooth {
    0% { transform: translateY(22px) rotate(-2deg) scale(0.985); opacity: 0; filter: blur(6px); }
    65% { transform: translateY(-2px) rotate(0.6deg) scale(1.01); opacity: 1; filter: blur(0); }
    100% { transform: translateY(0) rotate(0) scale(1); opacity: 1; filter: blur(0); }
}

/* .final-title.pulse {
    animation: pulse 6s ease-in-out infinite;
} */

@keyframes pulse {
    0% { transform: none; }
    50% { transform: translateY(-2px) scale(1.002); }
    100% { transform: none; }
}

.welcome-subtitle {
    font-family: "sansation";
    margin-top: 20px;
    font-size: 18px;
    color: var(--text-color-muted);
    font-weight: 300;
    opacity: 0;
    transform: translateY(6px);
}

.welcome-subtitle.show {
    animation: fadeSubtitleSmooth 720ms cubic-bezier(0.22, 0.9, 0.28, 1) forwards;
}

@keyframes fadeSubtitleSmooth {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.marquee {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    padding: 0.7rem 0;
    white-space: nowrap;
    overflow: hidden;
    z-index: 10;
}

.marquee-content {
    display: flex;
    width: fit-content;
    animation: marquee 60s linear infinite;
}

.marquee-content span {
    margin: 0 2rem;
    font-size: clamp(1rem, 3vw, 1.1rem);
    font-weight: 600;
    text-transform: uppercase;
}

@keyframes marquee {
    from { transform: translateX(0%); }
    to { transform: translateX(-50%); }
}

@media (max-width: 767px) {
    .welcome-premium {
        height: calc(100vh - 80px);
        min-height: 500px;
    }
    .welcome-glow {
        width: 500px;
        height: 500px;
        top: 36%;
    }
    .final-title {
        font-size: clamp(42px, 12vw, 60px);
    }
    .welcome-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 520px) {
    .final-title {
        font-size: clamp(32px, 9.5vw, 46px);
    }
    .welcome-content {
        padding: 20px;
    }
}