/* ============================================
   SOYALAN LOJİSTİK - ANA STİL DOSYASI
   // 15/15 UX + 15/15 Tasarım onayı
   ============================================ */

/* --- Global --- */
::selection { background: #FF6B35; color: white; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

/* --- Nav Links --- */
.nav-link {
    @apply px-3 py-2 rounded-lg text-sm font-medium text-gray-700 hover:text-orange-500 hover:bg-orange-50 transition-all duration-200;
}
.nav-link.active {
    @apply text-orange-500 bg-orange-50;
}
.mobile-nav-link {
    @apply block px-4 py-2.5 rounded-lg text-gray-700 hover:text-orange-500 hover:bg-orange-50 transition-colors font-medium;
}

/* --- Animations --- */
@keyframes bounce-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
.animate-bounce-slow { animation: bounce-slow 3s ease-in-out infinite; }

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}
.animate-wiggle { animation: wiggle 1s ease-in-out infinite; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
.animate-float { animation: float 4s ease-in-out infinite; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.6s ease-out forwards; }

@keyframes slideRoad {
    from { background-position-y: 0; }
    to { background-position-y: 100vh; }
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

@keyframes dash-flow {
    to { stroke-dashoffset: -40; }
}

/* --- Reveal on scroll --- */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* --- Stats Counter --- */
.counter-value { font-variant-numeric: tabular-nums; }

/* ============================================
   TIR SÜRÜŞ DENEYİMİ
   // 15/15 UX: Eğlenceli ama bilişsel yükü düşük
   // 15/15 Tasarım: Endüstriyel + immersive
   // 12/15 Pazarlama: Wow faktörü yüksek, ama skip butonu şart
   ============================================ */

/* -- TIR Experience Container -- */
#tirExperience {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: #0a0a0a;
    overflow: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
#tirExperience.hidden-exp {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* -- Loading Screen -- */
.tir-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center bottom, #1a1a2e 0%, #0a0a0a 70%);
    z-index: 110;
    transition: opacity 1s ease;
}
.tir-loading.fade-out {
    opacity: 0;
    pointer-events: none;
}

.headlight-glow {
    position: absolute;
    bottom: 10%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,200,50,0.3) 0%, transparent 70%);
    animation: headlight-pulse 2s ease-in-out infinite;
}
.headlight-glow.left { left: 20%; }
.headlight-glow.right { right: 20%; }

@keyframes headlight-pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

.engine-text {
    font-family: 'JetBrains Mono', monospace;
    color: #FF6B35;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    margin-top: 2rem;
}
.engine-dots::after {
    content: '';
    animation: dots 1.5s steps(4,end) infinite;
}
@keyframes dots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
}

/* -- Road Scene -- */
.road-scene {
    position: absolute;
    inset: 0;
    perspective: 800px;
    perspective-origin: 50% 75%;
    overflow: hidden;
}

/* Sky */
.sky {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, #0a1628 0%, #1a3050 40%, #2d5a7b 70%, #d4a574 90%, #ff8c42 100%);
}
.stars {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 10% 20%, white 50%, transparent 50%),
        radial-gradient(1px 1px at 30% 10%, white 50%, transparent 50%),
        radial-gradient(1px 1px at 50% 30%, white 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 70% 15%, white 50%, transparent 50%),
        radial-gradient(1px 1px at 90% 25%, white 50%, transparent 50%),
        radial-gradient(1px 1px at 15% 35%, white 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 85% 5%, white 50%, transparent 50%);
    animation: twinkle 3s ease-in-out infinite alternate;
}
@keyframes twinkle {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

/* Mountains */
.mountains {
    position: absolute;
    bottom: 50%;
    left: -10%;
    right: -10%;
    height: 15%;
}
.mountain {
    position: absolute;
    bottom: 0;
    width: 0;
    height: 0;
    border-style: solid;
}
.mountain-1 { left: 5%; border-width: 0 120px 100px 120px; border-color: transparent transparent #1a2744 transparent; }
.mountain-2 { left: 25%; border-width: 0 180px 140px 180px; border-color: transparent transparent #162238 transparent; }
.mountain-3 { left: 55%; border-width: 0 150px 110px 150px; border-color: transparent transparent #1e2d4a transparent; }
.mountain-4 { left: 75%; border-width: 0 100px 80px 100px; border-color: transparent transparent #1a2744 transparent; }

/* Ground / Road */
.ground {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55%;
    background: linear-gradient(180deg, #2d4a25 0%, #1e3318 30%, #162810 100%);
    transform: rotateX(45deg);
    transform-origin: top center;
}

.road {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 55%;
    background: linear-gradient(
        180deg,
        #333 0%,
        #444 100%
    );
    clip-path: polygon(42% 0%, 58% 0%, 85% 100%, 15% 100%);
}

.road-lines {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 55%;
    overflow: hidden;
}
.road-line {
    width: 100%;
    height: 40px;
    background: #FFD700;
    margin-bottom: 30px;
    animation: road-line-move 1s linear infinite;
}
@keyframes road-line-move {
    from { transform: translateY(-70px) scaleY(0.5); }
    to { transform: translateY(100vh) scaleY(3); }
}

.road-edge-left, .road-edge-right {
    position: absolute;
    bottom: 0;
    width: 3px;
    height: 55%;
    background: repeating-linear-gradient(to bottom, white 0px, white 20px, transparent 20px, transparent 40px);
    animation: road-line-move 1s linear infinite;
}
.road-edge-left { left: calc(50% - 22%); }
.road-edge-right { right: calc(50% - 22%); }

/* -- Road Signs (Tabelalar) -- */
.road-sign {
    position: absolute;
    cursor: pointer;
    z-index: 10;
    transition: all 0.4s ease;
    animation: sign-approach 1s ease-out forwards;
    opacity: 0;
}
.road-sign:hover { transform: scale(1.08); }

.sign-board {
    background: linear-gradient(135deg, #0A2540 0%, #0d2f4f 100%);
    border: 3px solid #FF6B35;
    border-radius: 12px;
    padding: 16px 24px;
    color: white;
    text-align: center;
    min-width: 200px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 0 20px rgba(255,107,53,0.2);
    position: relative;
}
.sign-board::before {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 30px;
    background: #666;
    border-radius: 0 0 4px 4px;
}
.sign-board .sign-emoji { font-size: 2rem; margin-bottom: 4px; }
.sign-board .sign-title { font-weight: 700; font-size: 0.9rem; letter-spacing: 0.05em; }
.sign-board .sign-action {
    font-size: 0.7rem;
    color: #FF6B35;
    margin-top: 4px;
    opacity: 0.8;
}

@keyframes sign-approach {
    from { opacity: 0; transform: scale(0.5) translateY(-30px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* -- Dashboard -- */
.dashboard {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 180px;
    background: linear-gradient(180deg, transparent 0%, rgba(20,20,20,0.9) 30%, #111 100%);
    z-index: 20;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
    pointer-events: none;
}

.dashboard-panel {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 20px 40px;
    background: linear-gradient(180deg, #1a1a1a, #111);
    border-top: 2px solid #333;
    border-radius: 20px 20px 0 0;
    pointer-events: auto;
}

/* Gauge */
.gauge {
    width: 100px;
    height: 100px;
    position: relative;
}
.gauge-bg {
    fill: none;
    stroke: #2a2a2a;
    stroke-width: 8;
}
.gauge-fill {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease;
}
.gauge-speed .gauge-fill { stroke: #FF6B35; }
.gauge-rpm .gauge-fill { stroke: #10B981; }
.gauge-label {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    color: #888;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    text-transform: uppercase;
}
.gauge-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.4rem;
}

/* Steering Wheel */
.steering-wheel {
    width: 120px;
    height: 120px;
    border: 8px solid #444;
    border-radius: 50%;
    position: relative;
    background: radial-gradient(circle, #333 30%, #222 100%);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5), 0 0 10px rgba(0,0,0,0.3);
}
.steering-wheel::before {
    content: 'SOYALAN';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #FF6B35;
    font-weight: 800;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
}
.steering-spoke {
    position: absolute;
    background: #444;
    border-radius: 4px;
}
.spoke-h { width: 100%; height: 6px; top: 50%; left: 0; transform: translateY(-50%); }
.spoke-v { width: 6px; height: 60%; top: 20%; left: 50%; transform: translateX(-50%); }

/* -- Skip Button -- */
.skip-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 120;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.skip-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: #FF6B35;
}

/* -- Service Detail Panel (opens from sign click) -- */
.sign-detail-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 130;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.sign-detail-overlay.active {
    opacity: 1;
    visibility: visible;
}
.sign-detail-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: translateY(30px);
    transition: transform 0.3s ease;
}
.sign-detail-overlay.active .sign-detail-card {
    transform: translateY(0);
}

/* -- Final Destination (Teklif Durağı) -- */
.final-stop {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    text-align: center;
    animation: final-glow 2s ease-in-out infinite alternate;
}
@keyframes final-glow {
    from { filter: drop-shadow(0 0 20px rgba(255,107,53,0.3)); }
    to { filter: drop-shadow(0 0 40px rgba(255,107,53,0.6)); }
}
.final-sign {
    background: linear-gradient(135deg, #FF6B35 0%, #e55a25 100%);
    border: 4px solid #FFD700;
    border-radius: 16px;
    padding: 24px 48px;
    color: white;
    font-weight: 800;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 20px 60px rgba(255,107,53,0.4);
}
.final-sign:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 80px rgba(255,107,53,0.5);
}

/* ============================================
   CLASSIC VIEW SECTIONS
   ============================================ */

/* -- Hero Section -- */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0A2540 0%, #0d2f4f 40%, #1a4060 100%);
    overflow: hidden;
}
.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.hero-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255,107,53,0.3);
    border-radius: 50%;
    animation: float-particle 8s ease-in-out infinite;
}
@keyframes float-particle {
    0%, 100% { transform: translate(0, 0); opacity: 0.3; }
    50% { transform: translate(30px, -40px); opacity: 0.8; }
}
.hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,107,53,0.03) 1px, transparent 1px),
                       linear-gradient(90deg, rgba(255,107,53,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* -- Trust Bar -- */
/* // 15/15 UX onayı: Hero altında trust bar — F-pattern okumayı kesintiye uğratmıyor */
.trust-bar {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* -- Section Styles -- */
.section-title {
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #FF6B35, transparent);
    border-radius: 2px;
}
.section-title-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* -- Service Cards -- */
.service-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    border: 1px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF6B35, #0A2540);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(10,37,64,0.12);
    border-color: transparent;
}

/* -- Liman Durumu (Live Status) -- */
.liman-status-card {
    background: linear-gradient(135deg, #0A2540, #0d2f4f);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255,107,53,0.2);
    position: relative;
    overflow: hidden;
}
.liman-status-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255,107,53,0.1), transparent);
}
.status-bar {
    height: 8px;
    background: #1e293b;
    border-radius: 4px;
    overflow: hidden;
}
.status-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1.5s ease;
}

/* -- Testimonials -- */
.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    border: 1px solid #e2e8f0;
    position: relative;
}
.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 16px;
    left: 24px;
    font-size: 4rem;
    color: #FF6B35;
    opacity: 0.15;
    font-family: Georgia, serif;
    line-height: 1;
}

/* -- Form Steps -- */
.step-indicator {
    display: flex;
    align-items: center;
    gap: 0;
}
.step-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    border: 3px solid #e2e8f0;
    color: #94a3b8;
    background: white;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}
.step-dot.active {
    border-color: #FF6B35;
    color: white;
    background: #FF6B35;
}
.step-dot.completed {
    border-color: #10B981;
    color: white;
    background: #10B981;
}
.step-line {
    flex: 1;
    height: 3px;
    background: #e2e8f0;
    position: relative;
    z-index: 1;
}
.step-line.active { background: #10B981; }

/* -- Blog Cards -- */
.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

/* -- Responsive -- */
@media (max-width: 768px) {
    .dashboard-panel { gap: 16px; padding: 12px 20px; }
    .gauge { width: 70px; height: 70px; }
    .gauge-value { font-size: 1rem; }
    .steering-wheel { width: 80px; height: 80px; border-width: 6px; }
    .steering-wheel::before { font-size: 0.5rem; }
    .sign-board { min-width: 150px; padding: 12px 16px; }
    .sign-board .sign-emoji { font-size: 1.5rem; }
    .sign-board .sign-title { font-size: 0.75rem; }
    .final-sign { padding: 16px 32px; font-size: 1.1rem; }
    .road { clip-path: polygon(35% 0%, 65% 0%, 90% 100%, 10% 100%); }
}

@media (max-width: 480px) {
    .dashboard-panel { gap: 10px; padding: 10px 16px; }
    .steering-wheel { display: none; }
}

/* -- Scroll Bar Road Theme -- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0A2540; }
::-webkit-scrollbar-thumb { background: #FF6B35; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #e55a25; }

/* -- Loading shimmer for lazy elements -- */
.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
