html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 0;
}

/* ====== Intro Overlay Temel ====== */
.intro-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 50%, #0A0A0A 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: introFadeOut 1s ease-in-out 4s forwards;
}

.garage-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    perspective: 2000px;
    overflow: hidden;
}

.garage-frame {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top, #3A3A3A 0%, #2A2A2A 30%, #1A1A1A 60%, #0A0A0A 100%), linear-gradient(180deg, #2A2A2A 0%, #1A1A1A 50%, #0A0A0A 100%);
    box-shadow: inset 0 0 100px rgba(0,0,0,0.8), inset 0 -50px 100px rgba(0,0,0,0.6);
}

    .garage-frame::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: repeating-linear-gradient( 90deg, transparent, transparent 80px, rgba(255,255,255,0.02) 80px, rgba(255,255,255,0.02) 82px ), repeating-linear-gradient( 0deg, transparent, transparent 60px, rgba(255,255,255,0.015) 60px, rgba(255,255,255,0.015) 62px );
        pointer-events: none;
    }

.garage-door {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg, #4A4A4A 0%, #3A3A3A 15%, #2A2A2A 30%, #1A1A1A 60%, #0F0F0F 85%, #000000 100% );
    transform-origin: bottom center;
    transform: translateY(0%);
    animation: garageDoorSlideUp 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.5s forwards;
    box-shadow: 0 -20px 80px rgba(0,0,0,0.9), inset 0 0 50px rgba(0,0,0,0.5), inset 0 20px 50px rgba(255,255,255,0.02);
    border-bottom: 3px solid #333;
    z-index: 10;
}

    .garage-door::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: repeating-linear-gradient( 0deg, transparent, transparent 45px, rgba(255,255,255,0.08) 45px, rgba(255,255,255,0.08) 48px, transparent 48px, transparent 50px, rgba(0,0,0,0.3) 50px, rgba(0,0,0,0.3) 52px ), repeating-linear-gradient( 90deg, transparent, transparent 100px, rgba(255,255,255,0.03) 100px, rgba(255,255,255,0.03) 102px );
        pointer-events: none;
    }

    .garage-door::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.1) 0%, transparent 50%), radial-gradient(circle at 70% 60%, rgba(255,255,255,0.05) 0%, transparent 40%);
        pointer-events: none;
    }

.garage-door-handle {
    position: absolute;
    bottom: 8vh;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 20px;
    background: linear-gradient(145deg, #666, #333);
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.8), inset 0 2px 5px rgba(255,255,255,0.1), inset 0 -2px 5px rgba(0,0,0,0.5);
    animation: handleMove 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.5s forwards;
}

    .garage-door-handle::before {
        content: '';
        position: absolute;
        top: -8px;
        left: 50%;
        transform: translateX(-50%);
        width: 160px;
        height: 6px;
        background: linear-gradient(90deg, #444, #666, #444);
        border-radius: 3px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.6);
    }

    .garage-door-handle::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 80px;
        height: 8px;
        background: linear-gradient(90deg, #333, #555, #333);
        border-radius: 4px;
        box-shadow: inset 0 1px 3px rgba(0,0,0,0.7);
    }

.logo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: logoAppear 1s ease-out 2.5s forwards;
}

.logo-text {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    text-align: center;
    background: linear-gradient(45deg, #FF6B00, #FFD700, #FF8C00, #FFA500);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    text-shadow: 0 0 40px rgba(255, 107, 0, 0.6), 0 0 80px rgba(255, 107, 0, 0.4), 0 0 120px rgba(255, 107, 0, 0.2);
    letter-spacing: clamp(2px, 1vw, 8px);
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

.subtitle {
    color: #AAA;
    text-align: center;
    font-size: clamp(0.8rem, 2vw, 1.2rem);
    font-weight: 500;
    margin-top: 1.5rem;
    letter-spacing: clamp(1px, 0.5vw, 4px);
    text-transform: uppercase;
    opacity: 0;
    animation: subtitleSlideUp 1s ease-out 4s forwards;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.loading-dots {
    display: none;
}

.dot {
    display: none;
}

    .dot:nth-child(1) {
        animation-delay: 0s;
    }

    .dot:nth-child(2) {
        animation-delay: 0.2s;
    }

    .dot:nth-child(3) {
        animation-delay: 0.4s;
    }

.sparks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.spark {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #FFD700, #FF6B00);
    border-radius: 50%;
    opacity: 0;
    animation: sparkFly 1.5s ease-out forwards;
    box-shadow: 0 0 15px #FFD700;
}

    .spark:nth-child(1) {
        top: 25%;
        left: 15%;
        animation-delay: 3.2s;
    }

    .spark:nth-child(2) {
        top: 35%;
        right: 20%;
        animation-delay: 3.4s;
    }

    .spark:nth-child(3) {
        top: 45%;
        left: 70%;
        animation-delay: 3.6s;
    }

    .spark:nth-child(4) {
        bottom: 35%;
        left: 25%;
        animation-delay: 3.3s;
    }

    .spark:nth-child(5) {
        bottom: 40%;
        right: 30%;
        animation-delay: 3.5s;
    }

    .spark:nth-child(6) {
        top: 30%;
        left: 50%;
        animation-delay: 3.7s;
    }

    .spark:nth-child(7) {
        bottom: 50%;
        right: 45%;
        animation-delay: 3.1s;
    }

    .spark:nth-child(8) {
        top: 60%;
        left: 35%;
        animation-delay: 3.8s;
    }

/* Animasyonlar */
@keyframes garageDoorSlideUp {
    0% {
        transform: translateY(0%);
        opacity: 1;
    }

    100% {
        transform: translateY(-100%);
        opacity: 1;
    }
}

@keyframes handleMove {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-100vh);
        opacity: 1;
    }
}

@keyframes logoAppear {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3) rotateY(45deg);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1) rotateY(0deg);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotateY(0deg);
    }
}

@keyframes subtitleSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }

    25% {
        background-position: 100% 25%;
    }

    50% {
        background-position: 100% 75%;
    }

    75% {
        background-position: 0% 100%;
    }
}

@keyframes dotPulse {
    /* Unused - dots are hidden */
}

@keyframes sparkFly {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    50% {
        opacity: 0.8;
        transform: translate(calc(var(--spark-x, 30px) * 0.5), calc(var(--spark-y, -30px) * 0.5)) scale(1.2) rotate(180deg);
    }

    100% {
        opacity: 0;
        transform: translate(var(--spark-x, 30px), var(--spark-y, -30px)) scale(0) rotate(360deg);
    }
}

@keyframes introFadeOut {
    0% {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
    }

    90% {
        opacity: 0.1;
        transform: scale(1.05);
    }

    100% {
        opacity: 0;
        visibility: hidden;
        transform: scale(1.1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .garage-door-handle {
        width: 100px;
        height: 16px;
        bottom: 6vh;
    }

        .garage-door-handle::before {
            width: 130px;
            height: 4px;
            top: -6px;
        }
}

@media (max-width: 480px) {
    .garage-door-handle {
        width: 80px;
        height: 12px;
        bottom: 4vh;
    }

        .garage-door-handle::before {
            width: 100px;
            height: 3px;
            top: -4px;
        }

    .subtitle {
        margin-top: 1rem;
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .garage-door-handle {
        bottom: 3vh;
    }

    .logo-container {
        transform: translate(-50%, -60%);
    }
}
