/* Common Page Styles */
/* İkbal Kocaeli - Tüm sayfalar için ortak stiller */

/* ============================================
   BASE STYLES
   ============================================ */

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
}

.hero-text {
    font-family: 'Playfair Display', serif;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   PARTICLE BACKGROUND
   ============================================ */

.particle-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.content-overlay {
    position: relative;
    z-index: 10;
}

/* ============================================
   CARDS
   ============================================ */

.cargo-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

.tracking-widget {
    background: var(--bg-secondary);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
}

/* ============================================
   HOVER EFFECTS
   ============================================ */

.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* ============================================
   NETWORK NODES
   ============================================ */

.network-node {
    width: 12px;
    height: 12px;
    background: #B87333;
    border-radius: 50%;
    position: absolute;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1); 
    }
    50% { 
        opacity: 0.7; 
        transform: scale(1.2); 
    }
}

/* ============================================
   VIDEO OVERLAY
   ============================================ */

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-video-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   PRELOADER - MIRRORED TRUCK & REFLECTION (Homepage Only)
   ============================================ */

#preloader-active {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #070a14;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1s ease, visibility 1s ease;
}

/* ============================================
   WORLD PRELOADER (Inner Pages Only)
   ============================================ */

.world-preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.world-orbit-container {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.world-orbit {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px dashed rgba(184, 115, 51, 0.4);
    border-radius: 50%;
    animation: spin 10s linear infinite;
}

.world-orbit::after {
    content: '🌍';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    filter: drop-shadow(0 0 10px rgba(184, 115, 51, 0.5));
}

.inner-truck {
    font-size: 50px;
    color: #B87333;
    animation: truckVibrate 0.5s ease-in-out infinite alternate;
    z-index: 2;
    filter: drop-shadow(0 0 15px rgba(184, 115, 51, 0.3));
}

.loading-circle {
    position: absolute;
    width: 160px;
    height: 160px;
    border: 4px solid transparent;
    border-top-color: #B87333;
    border-radius: 50%;
    animation: spin 1.5s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes truckVibrate {
    from { transform: translateY(0); }
    to { transform: translateY(-5px); }
}

.preloader-content {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.preloader-logo-area {
    margin-bottom: 10px;
}

.main-logo-anim {
    width: 250px;
    height: auto;
    opacity: 0;
    transform: translateY(-20px);
    animation: logoEntrance 1.2s ease forwards;
}

.truck-scene {
    position: relative;
    width: 100%;
    height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.truck-container {
    font-size: 60px;
    color: #B87333;
    position: absolute;
    width: 100px;
    left: -150px; /* Ekran dışından başla */
    animation: truckPass 4s linear infinite;
    display: flex;
    justify-content: center;
}

.top-truck {
    bottom: 82px; /* Sınır çizgisinin hemen üstü */
}

.reflected-truck {
    top: 82px; /* Sınır çizgisinin hemen altı */
    transform: scaleY(-1); /* Dikey yansıma */
    opacity: 0.3;
    filter: blur(2px);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,0));
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,0));
}

.loading-boundary {
    position: relative;
    width: 80%;
    height: 2px;
    background: rgba(184, 115, 51, 0.2);
    overflow: hidden;
    box-shadow: 0 0 15px rgba(184, 115, 51, 0.3);
}

.loading-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, transparent, #B87333, #FFD700, #B87333, transparent);
    background-size: 200% 100%;
    animation: loadingMove 4s ease-in-out infinite, loadingWidth 3.5s ease forwards;
}

.text-1927 {
    font-family: 'Playfair Display', serif;
    color: #B87333;
    font-size: 1.4rem;
    font-weight: bold;
    letter-spacing: 4px;
    opacity: 0;
    margin-top: -10px;
    animation: fadeIn 1s ease 2s forwards;
}

/* Animasyon Tanımları */
@keyframes logoEntrance {
    0% { opacity: 0; transform: translateY(-20px) scale(0.9); filter: blur(10px); }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes truckPass {
    0% { left: -150px; }
    100% { left: 110%; }
}

@keyframes loadingWidth {
    0% { width: 0; left: 50%; transform: translateX(-50%); }
    100% { width: 100%; left: 50%; transform: translateX(-50%); }
}

@keyframes loadingMove {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .main-logo-anim { width: 180px; }
    .truck-container { font-size: 45px; }
    .truck-scene { height: 120px; }
    .top-truck { bottom: 62px; }
    .reflected-truck { top: 62px; }
    .world-orbit-container { width: 150px; height: 150px; }
    .loading-circle { width: 120px; height: 120px; }
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */

.back-to-top {
    display: none;
    position: fixed;
    bottom: 192px; /* Tailwind bottom-48 equivalent (12rem) */
    right: 20px;
    width: 50px;
    height: 50px;
    background: #B87333;
    color: white !important;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    cursor: pointer;
}

.back-to-top:hover {
    background: #D4A574;
    transform: translateY(-5px);
}

.back-to-top i {
    font-size: 20px;
}

/* ============================================
   TIMELINE (Hakkımızda sayfası)
   ============================================ */

.timeline-item {
    opacity: 0;
    transform: translateY(50px);
}

.timeline-item.animate {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

/* ============================================
   FLEET CARDS (Filomuz sayfası)
   ============================================ */

.fleet-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.fleet-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* ============================================
   SERVICE CARDS (Hizmetler sayfası)
   ============================================ */

.service-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* ============================================
   CONTACT FORM (İletişim sayfası)
   ============================================ */

.contact-form input,
.contact-form textarea,
.contact-form select {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px;
    border-radius: 8px;
    width: 100%;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.1);
}

/* ============================================
   LEGAL PAGES (KVKK, Gizlilik, Çerez)
   ============================================ */

.legal-content {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 12px;
}

.legal-content h2 {
    color: var(--accent-primary);
    margin-top: 32px;
    margin-bottom: 16px;
}

.legal-content h3 {
    color: var(--text-primary);
    margin-top: 24px;
    margin-bottom: 12px;
}

.legal-content p {
    margin-bottom: 16px;
    line-height: 1.8;
}

.legal-content ul,
.legal-content ol {
    margin-left: 24px;
    margin-bottom: 16px;
}

.legal-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* ============================================
   YEAR EMPHASIS (Anasayfa)
   ============================================ */

.year-emphasis {
    color: #fb923c;
    font-weight: bold;
}

/* ============================================
   STATS COUNTER
   ============================================ */

.counter {
    display: inline-block;
    font-weight: bold;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
    .legal-content {
        padding: 24px;
    }
    
    .legal-content h2 {
        font-size: 1.5rem;
    }
    
    .legal-content h3 {
        font-size: 1.25rem;
    }
}

 . t e x t - g l o w   { 
         t e x t - s h a d o w :   0   0   1 5 p x   r g b a ( 2 3 4 ,   8 8 ,   1 2 ,   0 . 4 ) ; 
 }  
 