﻿/* Temel Reset ve Değişkenler */
:root {
    --primary: #111827;
    --accent: #F59E0B;
    --accent-hover: #D97706;
    --text-dark: #374151;
    --bg-light: #F9FAFB;
}

body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: var(--text-dark);
    background-color: #fff;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Preloader (Gerçekçi Çekici İllüzyonu) */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--primary);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-content {
    text-align: center;
    color: #fff;
}

.truck-wrapper {
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
    margin-bottom: 10px;
    width: 200px;
    overflow: hidden;
}

/* Emojileri birbirinin üstüne bindirmek için sabit alan */
.truck-animation {
    position: relative;
    width: 160px;
    height: 70px;
    margin: 0 auto;
}

.emoji {
    display: inline-block;
}

/* Öndeki Çekici (Kamyonet - Sola Baktığı İçin En Solda) */
.truck {
    font-size: 50px;
    position: absolute;
    left: 5px;
    bottom: 0;
    z-index: 3;
    animation: bounceTruck 0.4s infinite alternate ease-in-out;
}

/* Arkadaki Araba (Sağda, burnu vinçle havaya kaldırılmış) */
.car {
    font-size: 38px;
    position: absolute;
    right: 5px;
    bottom: 12px;
    transform: rotate(20deg); /* Sola bakan arabanın önünü kaldırır */
    z-index: 2;
    animation: bounceCar 0.4s infinite alternate ease-in-out 0.15s;
}

/* Çekici ile Araba Arasındaki Vinç Bağlantı Demiri */
.tow-arm {
    position: absolute;
    left: 60px;
    bottom: 18px;
    width: 45px;
    height: 5px;
    background-color: var(--accent);
    border-radius: 3px;
    transform: rotate(-15deg); /* Çekiciden arabaya doğru yukarı eğim */
    z-index: 1;
    animation: bounceArm 0.4s infinite alternate ease-in-out 0.05s;
}

/* Akan Yol (Araçlar sola gittiği için yol sağa akmalı) */
.road-line {
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 200%;
    height: 4px;
    background: repeating-linear-gradient(90deg, var(--accent), var(--accent) 20px, transparent 20px, transparent 40px);
    animation: roadMove 0.4s infinite linear;
}

.loader-text {
    font-size: 26px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 1px;
    margin-top: 10px;
}

.loader-sub {
    font-size: 14px;
    color: #9CA3AF;
    margin-top: 5px;
}

/* --- Özel Zıplama (Süspansiyon) Animasyonları --- */
@keyframes bounceTruck {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-5px);
    }
}

@keyframes bounceCar {
    0% {
        transform: translateY(0) rotate(20deg);
    }

    100% {
        transform: translateY(-5px) rotate(20deg);
    }
}

@keyframes bounceArm {
    0% {
        transform: translateY(0) rotate(-15deg);
    }

    100% {
        transform: translateY(-5px) rotate(-15deg);
    }
}

@keyframes roadMove {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(40px);
    }
    /* Yol sağa doğru akıyor */
}

/* Header & Navigasyon */
.main-header {
    background-color: var(--primary);
    padding: 15px 0;
    border-bottom: 3px solid var(--accent);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    text-decoration: none;
}

.logo-text {
    font-size: 26px;
    font-weight: 900;
    color: #fff;
}

.logo-sub {
    font-size: 26px;
    font-weight: 900;
    color: var(--accent);
}

.main-nav a {
    color: #E5E7EB;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 600;
    transition: .2s;
}

    .main-nav a:hover {
        color: var(--accent);
    }

.btn-call {
    background-color: var(--accent);
    color: var(--primary) !important;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none;
}

    .btn-call:hover {
        background-color: var(--accent-hover);
    }

/* Hero Section (Karşılama Paneli) */
.hero {
    background: linear-gradient(rgba(17, 24, 39, 0.85), rgba(17, 24, 39, 0.85)), url('/Content/images/hero-bg.jpg') no-repeat center center/cover;
    padding: 100px 0;
    text-align: center;
    color: #fff;
}

    .hero h1 {
        font-size: 45px;
        font-weight: 800;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 20px;
        color: #D1D5DB;
        margin-bottom: 30px;
    }

.btn-huge {
    display: inline-block;
    background-color: var(--accent);
    color: var(--primary);
    padding: 18px 40px;
    font-size: 22px;
    font-weight: 800;
    border-radius: 6px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }

    100% {
        transform: scale(1);
    }
}

/* Kart Yapıları (Hizmetler & Özellikler) */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    border-top: 4px solid var(--primary);
    text-align: center;
    transition: .3s;
}

    .card:hover {
        transform: translateY(-5px);
        border-top-color: var(--accent);
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }

    .card i {
        font-size: 40px;
        color: var(--accent);
        margin-bottom: 15px;
    }

/* Mobil Sabit Buton Stili */
.mobile-sticky-call {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    display: none;
}

    .mobile-sticky-call a {
        display: block;
        background-color: #DC2626;
        color: #fff;
        text-align: center;
        padding: 18px 0;
        font-size: 20px;
        font-weight: 800;
        text-decoration: none;
        letter-spacing: 1px;
    }

/* Footer */
.main-footer {
    background-color: #0B0F19;
    color: #9CA3AF;
    padding: 60px 0 20px 0;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.main-footer h3 {
    color: #fff;
    margin-bottom: 20px;
}

.main-footer ul {
    list-style: none;
    padding: 0;
}

    .main-footer ul li {
        margin-bottom: 10px;
    }

        .main-footer ul li a {
            color: #9CA3AF;
            text-decoration: none;
        }

            .main-footer ul li a:hover {
                color: var(--accent);
            }

.footer-bottom {
    border-top: 1px solid #1F2937;
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    font-size: 14px;
}

/* Responsive Düzenlemeler */
@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }

    .main-nav {
        display: none;
    }

    .hero h1 {
        font-size: 32px;
    }

    .mobile-sticky-call {
        display: block;
    }

    body {
        padding-bottom: 60px;
    }
}
