html {
    scroll-behavior: smooth;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

.footer-icon {
    min-width: 24px !important;
    max-width: 24px !important;
    width: 24px !important;
    height: 24px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 8px;
    font-size: 12px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

section {
    scroll-margin-top: 5rem;
}

.preloader-hidden {
    opacity: 0 !important;
    pointer-events: none !important;
}

@keyframes preloaderCar {
    0% { left: -20%; }
    100% { left: 75%; }
}

.preloader-car {
    animation: preloaderCar 2.5s ease-in-out infinite;
    will-change: left;
}

.preloader-car svg {
    animation: carBounce 0.3s ease-in-out infinite alternate;
}

@keyframes carBounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-1.5px); }
}

@keyframes roadDashes {
    0% { transform: translateX(0); }
    100% { transform: translateX(-40px); }
}

.preloader-road {
    animation: roadDashes 0.5s linear infinite;
}

@keyframes progressFill {
    0% { width: 0%; }
    30% { width: 40%; }
    60% { width: 70%; }
    90% { width: 90%; }
    100% { width: 100%; }
}

.preloader-progress {
    animation: progressFill 1.8s ease-out forwards;
}

@keyframes smokeUp {
    0% { opacity: 0.15; transform: translate(0, 0) scale(1); }
    100% { opacity: 0; transform: translate(8px, -12px) scale(1.8); }
}

.smoke-particle {
    animation: smokeUp 1s ease-out infinite;
}
.smoke-particle.delay-1 {
    animation-delay: 0.3s;
}
.smoke-particle.delay-2 {
    animation-delay: 0.6s;
}

@keyframes float {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -12px, 0); }
}

@keyframes float-delayed {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -8px, 0); }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
    will-change: transform;
}

.animate-float-delayed {
    animation: float-delayed 3.5s ease-in-out infinite 1s;
    will-change: transform;
}

.hero-car {
    transition: transform 0.5s ease;
}

@keyframes roadMove {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-96px, 0, 0); }
}

.road-lines {
    animation: roadMove 1.5s linear infinite;
    will-change: transform;
}

.navbar-scrolled {
    background: rgba(17, 17, 17, 0.92) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

@keyframes callPulse {
    0% { box-shadow: 0 0 0 0 rgba(251, 192, 45, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(251, 192, 45, 0); }
    100% { box-shadow: 0 0 0 0 rgba(251, 192, 45, 0); }
}

.call-pulse {
    animation: callPulse 2s ease-in-out infinite;
}

.service-card {
    transition: all 0.4s ease;
}

@media (hover: hover) {
    .service-card:hover {
        transform: translateY(-4px);
    }
    .car-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    }
    .hero-car:hover {
        transform: translateY(-5px);
    }
}

.car-card {
    transition: all 0.4s ease;
}

.reveal {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

@media (min-width: 640px) {
    .reveal.active .service-card,
    .reveal.active .car-card {
        opacity: 0;
        animation: fadeInUp 0.5s ease forwards;
    }
    .reveal.active .service-card:nth-child(1),
    .reveal.active .car-card:nth-child(1) { animation-delay: 0.05s; }
    .reveal.active .service-card:nth-child(2),
    .reveal.active .car-card:nth-child(2) { animation-delay: 0.1s; }
    .reveal.active .service-card:nth-child(3),
    .reveal.active .car-card:nth-child(3) { animation-delay: 0.15s; }
    .reveal.active .service-card:nth-child(4) { animation-delay: 0.2s; }
    .reveal.active .service-card:nth-child(5) { animation-delay: 0.25s; }
    .reveal.active .service-card:nth-child(6) { animation-delay: 0.3s; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.stat-item {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }

::selection {
    background: #FBC02D;
    color: black;
}

::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #111;
}
::-webkit-scrollbar-thumb {
    background: #FBC02D;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #F9A825;
}

@media (max-width: 380px) {
    h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    h2 {
        font-size: 1.6rem !important;
    }
    .hero-car svg {
        width: 220px !important;
    }
    .animate-float,
    .animate-float-delayed {
        display: none;
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 2.3rem !important;
        line-height: 1.15 !important;
    }
    h2 {
        font-size: 1.8rem !important;
    }

    #anasayfa .max-w-7xl {
        padding-top: 6rem !important;
        padding-bottom: 3rem !important;
    }

    .hero-car svg {
        width: 260px;
    }

    .animate-float,
    .animate-float-delayed {
        padding: 0.5rem !important;
    }
    .animate-float div:first-child,
    .animate-float-delayed div:first-child {
        font-size: 1.2rem !important;
    }

    .hero-car > div:last-child:not(.animate-float):not(.animate-float-delayed) {
        display: none;
    }

    .blur-3xl,
    .blur-\\[80px\\] {
        display: none !important;
    }

    .animate-float,
    .animate-float-delayed {
        animation-duration: 4s;
    }

    section {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }

    .stat-item {
        animation-delay: 0s !important;
        opacity: 1 !important;
    }

    .service-card,
    .car-card {
        opacity: 1 !important;
        animation: none !important;
    }

    .road-lines {
        animation: none;
    }

    .grid.sm\\:grid-cols-2.lg\\:grid-cols-3 {
        gap: 1rem;
    }

    a[href^="tel:"],
    a[href*="wa.me"] {
        font-size: 0.95rem !important;
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    h1 {
        font-size: 3rem !important;
    }
    .hero-car svg {
        width: 320px;
    }

    section {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
    .road-lines {
        animation: none;
    }
}

@supports (-webkit-touch-callout: none) {
    body {
        -webkit-overflow-scrolling: touch;
    }
}

a, button {
    -webkit-tap-highlight-color: transparent;
}

img, svg {
    max-width: 100%;
    height: auto;
}
