/* ==================== INTRO ANIMATION — Shimmer Reveal ==================== */
.intro-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 10000;
    overflow: hidden;
    background: #0a0a14;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.intro-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.intro-scene {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- Ambient background ---- */
.intro-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
    z-index: 1;
}

/* Soft radial gradient base */
.intro-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 50%, rgba(212,160,23,0.12) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 20% 70%, rgba(155,89,182,0.08) 0%, transparent 60%),
        radial-gradient(ellipse 40% 60% at 80% 30%, rgba(52,152,219,0.06) 0%, transparent 60%);
}

/* Slow drifting orb 1 */
.intro-bg .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    will-change: transform;
}

.intro-bg .orb-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(212,160,23,0.25) 0%, rgba(212,160,23,0.08) 40%, transparent 70%);
    top: 25%; left: 20%;
    animation: orbDrift1 8s ease-in-out infinite alternate;
}

.intro-bg .orb-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(155,89,182,0.18) 0%, rgba(155,89,182,0.05) 40%, transparent 70%);
    bottom: 10%; right: 10%;
    animation: orbDrift2 10s ease-in-out infinite alternate;
}

.intro-bg .orb-3 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(52,152,219,0.14) 0%, rgba(52,152,219,0.04) 40%, transparent 70%);
    top: 10%; right: 25%;
    animation: orbDrift3 9s ease-in-out infinite alternate;
}

@keyframes orbDrift1 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, -30px) scale(1.1); }
}
@keyframes orbDrift2 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-30px, 20px) scale(1.05); }
}
@keyframes orbDrift3 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(20px, 25px) scale(0.95); }
}

/* Subtle noise/grain overlay */
.intro-bg .grain {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 128px 128px;
}

/* ---- Logo container ---- */
.logo-reveal {
    position: relative;
    z-index: 100;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0px;
    opacity: 0;
}

.logo-reveal.show {
    opacity: 1;
}

/* ---- Car SVG icon ---- */
.logo-carriage-icon {
    flex-shrink: 0;
    opacity: 0;
    transform: scale(0.7);
    transition: none;
}

.logo-reveal.show .logo-carriage-icon {
    animation: iconPulseIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes iconPulseIn {
    0%   { opacity: 0; transform: scale(0.7); filter: brightness(0.3); }
    40%  { opacity: 1; transform: scale(1.05); filter: brightness(1.5); }
    70%  { transform: scale(0.98); filter: brightness(1); }
    100% { opacity: 1; transform: scale(1); filter: brightness(1); }
}

.logo-carriage-svg {
    width: 175px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(212, 160, 23, 0.4));
    overflow: visible;
}

/* Pulse glow behind icon */
.logo-carriage-icon::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 140px; height: 140px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,160,23,0.2) 0%, transparent 70%);
    opacity: 0;
    pointer-events: none;
}

.logo-reveal.show .logo-carriage-icon::after {
    animation: glowBreathe 2s ease-in-out 0.3s infinite;
}

@keyframes glowBreathe {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50%      { opacity: 0.7; transform: translate(-50%, -50%) scale(1.2); }
}

/* ---- Text reveal ---- */
.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: -2px;
    white-space: nowrap;
    display: flex;
    overflow: hidden;
}

/* Each letter is wrapped in a span by JS */
.logo-text .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(12px) scale(0.8);
    filter: blur(6px);
    transition: none;
}

/* Kola letters — plain white */
.logo-text .letter.kola-letter {
    color: #ffffff;
}

/* Klik letters — plain gold */
.logo-text .letter.klik-letter {
    color: #D4A017;
}

/* When revealed, letters pop in with a soft deblur */
.logo-text .letter.revealed {
    animation: letterPopIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes letterPopIn {
    0%   { opacity: 0; transform: translateY(12px) scale(0.8); filter: blur(6px); }
    60%  { opacity: 1; transform: translateY(-2px) scale(1.03); filter: blur(0px); }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0px); }
}


/* ---- Skip button ---- */
.skip-intro {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 200;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.35);
    padding: 10px 24px;
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    animation: skipFadeIn 0.5s ease 1s forwards;
}

@keyframes skipFadeIn {
    to { opacity: 1; }
}

.skip-intro:hover {
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.7);
    border-color: rgba(255,255,255,0.25);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .logo-text { font-size: 2.8rem; }
    .logo-carriage-svg { width: 110px; }
.intro-bg .orb { filter: blur(70px); }
    .intro-bg .orb-1 { width: 350px; height: 350px; }
    .intro-bg .orb-2 { width: 280px; height: 280px; }
    .intro-bg .orb-3 { width: 220px; height: 220px; }
    .logo-carriage-icon::after { width: 100px; height: 100px; }
}
