/* ============================================
   EGE ATAK NAKLİYAT - MODERN LOJİSTİK WEB TASARIMI
   B2B Odaklı, Kurumsal, Güven Veren Tasarım
   ============================================ */

/* ---------- CSS RESET & BASE ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Ana Renkler - Logo Renk Paleti */
    --primary-purple: #2F2682;
    /* Koyu mor/mavi - kamyon rengi */
    --primary-blue: #3FA9D8;
    /* Açık mavi - küre rengi */
    --primary-dark: #1E1854;
    /* Daha koyu mor */
    --primary-light: #5BC0E8;
    /* Açık mavi ton */
    --accent-orange: #FF8C42;
    /* Turuncu aksan */
    --accent-cyan: #4AABDD;
    /* Cyan mavi */

    /* Nötr Renkler */
    --gray-900: #1A1A1A;
    --gray-800: #2D2D2D;
    --gray-700: #404040;
    --gray-600: #5C5C5C;
    --gray-500: #7A7A7A;
    --gray-400: #9E9E9E;
    --gray-300: #C4C4C4;
    --gray-200: #E0E0E0;
    --gray-100: #F5F5F5;
    --white: #FFFFFF;

    /* Gradientler - Logo Renkleri */
    --gradient-primary: linear-gradient(135deg, #1E1854 0%, #2F2682 50%, #3FA9D8 100%);
    --gradient-hero: linear-gradient(135deg, rgba(47, 38, 130, 0.95) 0%, rgba(63, 169, 216, 0.9) 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);

    /* Shadow & Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.24);
    --shadow-primary: 0 8px 24px rgba(63, 169, 216, 0.3);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;

    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-base: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;

    /* Container */
    --container-max: 1200px;
    --container-wide: 1400px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--gray-800);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 0 !important;
    top: 0 !important;
}

/* Fix for Google Translate Top Bar */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

/* ---------- TYPOGRAPHY ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--gray-700);
    font-size: 1rem;
    line-height: 1.7;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* ---------- CONTAINER & LAYOUT ---------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-wide {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-3xl) 0;
}

.section-alt {
    background-color: var(--gray-100);
}

/* ---------- HEADER & NAVIGATION ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
    background-color: rgba(255, 255, 255, 1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    font-family: var(--font-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-full {
    height: 90px;
    width: auto;
    object-fit: contain;
    transition: all var(--transition-base);
}

.logo-full:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-link {
    color: var(--gray-800);
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: var(--primary-purple);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-purple);
}

.nav-link.active::after {
    width: 100%;
}

/* ---------- DROPDOWN ---------- */
.nav-menu li {
    position: relative;
}

.dropdown {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--white);
    min-width: 250px;
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-lg);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    list-style: none;
    z-index: 1001;
    border: 1px solid var(--gray-100);
}

.dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--white);
}

/* Spacer to maintain hover state */
.dropdown::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
}

.nav-menu li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown li {
    width: 100%;
}

.dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--gray-700);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.dropdown a:hover {
    background-color: var(--gray-100);
    color: var(--primary-purple);
    transform: translateX(5px);
}

.dropdown-icon {
    font-size: 0.6rem;
    transition: transform var(--transition-base);
    opacity: 0.7;
}

.nav-menu li:hover .dropdown-icon {
    transform: rotate(180deg);
}

/* ---------- LANGUAGE SELECTOR STYLES ---------- */
.language-selector .dropdown {
    min-width: 150px;
    /* Smaller width for language dropdown */
}

.language-selector .nav-link {
    background: rgba(47, 38, 130, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(47, 38, 130, 0.1);
}

.language-selector .nav-link:hover {
    background: rgba(47, 38, 130, 0.1);
}

.language-selector .current-lang {
    font-weight: 800;
    margin-right: 4px;
}

.lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--gray-800);
    border-radius: 2px;
    transition: all var(--transition-base);
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    text-align: center;
    font-family: var(--font-primary);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(63, 169, 216, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-purple);
    border: 2px solid var(--primary-purple);
}

.btn-secondary:hover {
    background-color: var(--primary-purple);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--accent-orange);
    color: var(--white);
}

.btn-accent:hover {
    background-color: #E67A30;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
}

/* ---------- HERO SECTION ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 94px;
    /* Updated to match new header height */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><path d="M0,300 Q300,100 600,300 T1200,300 L1200,600 L0,600 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: cover;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    padding: var(--spacing-xl);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--spacing-xl);
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- CARDS ---------- */
.card {
    background-color: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    height: 100%;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    color: var(--white);
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

.card-title {
    font-size: 1.5rem;
    color: var(--gray-900);
    margin-bottom: var(--spacing-sm);
}

.card-description {
    color: var(--gray-600);
    line-height: 1.7;
}

/* ---------- GRID SYSTEM ---------- */
.grid {
    display: grid;
    gap: var(--spacing-xl);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ---------- STATS SECTION ---------- */
.stats {
    background: var(--gradient-primary);
    color: var(--white);
    padding: var(--spacing-2xl) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    text-align: center;
}

.stat-item {
    padding: var(--spacing-md);
}

.stat-number {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: var(--spacing-xs);
    display: inline-block;
}

.stat-plus {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--white);
    display: inline-block;
}

.stat-label {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* ---------- FORM STYLES ---------- */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--gray-800);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition-fast);
    background-color: var(--white);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(63, 169, 216, 0.1);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* ---------- FOOTER ---------- */
.footer {
    background-color: var(--gray-900);
    color: var(--gray-300);
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: var(--spacing-md);
    font-size: 1.25rem;
}

.footer-section p,
.footer-section a {
    color: var(--gray-400);
    margin-bottom: var(--spacing-xs);
    display: block;
}

.footer-section a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--gray-800);
    color: var(--gray-500);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gray-800);
    border-radius: 50%;
    color: var(--white);
    transition: all var(--transition-base);
}

.social-link:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
}

/* ---------- UTILITIES ---------- */
.text-center {
    text-align: center;
}

.text-white {
    color: var(--white);
}

.mb-sm {
    margin-bottom: var(--spacing-sm);
}

.mb-md {
    margin-bottom: var(--spacing-md);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

.mb-xl {
    margin-bottom: var(--spacing-xl);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-subtitle {
    text-align: center;
    color: var(--gray-600);
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto var(--spacing-xl);
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 968px) {
    .hero {
        margin-top: 70px;
        min-height: 80vh;
    }

    .logo-full {
        height: 60px;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        flex-direction: column;
        background-color: var(--white);
        padding: 0;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease-in-out;
        gap: 0;
        overflow-y: auto;
        align-items: stretch;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu>li {
        width: 100%;
        border-bottom: 1px solid var(--gray-100);
        margin: 0;
    }

    .nav-link {
        width: 100%;
        padding: 1.25rem 1.5rem;
        border-radius: 0;
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--gray-800);
        display: flex;
        justify-content: space-between;
        align-items: center;
        transition: all 0.3s ease;
    }

    .nav-link:hover,
    .nav-link.active {
        background-color: var(--gray-50);
        color: var(--primary-purple);
    }

    .nav-link::after {
        display: none;
    }

    .dropdown-icon {
        font-size: 0.8rem;
        transition: transform 0.3s ease;
    }

    /* MOBİL İÇİN DROPDOWN (ALT MENÜ) STİLLERİ */
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0;
        min-width: 100%;
        background-color: var(--gray-50);
        margin-top: 0;
        border-radius: 0;
        display: none;
    }

    .has-dropdown.active .dropdown {
        display: block;
        border-top: 1px solid var(--gray-200);
        border-bottom: 1px solid var(--gray-200);
        animation: slideDown 0.3s ease forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .has-dropdown.active .nav-link {
        color: var(--primary-purple);
        background-color: var(--gray-100);
    }

    .has-dropdown.active .dropdown-icon {
        transform: rotate(180deg);
    }

    .dropdown::before,
    .dropdown::after {
        display: none;
    }

    .dropdown a {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        color: var(--gray-700);
        font-size: 1rem;
        display: block;
        width: 100%;
        font-weight: 500;
    }

    .dropdown a:hover {
        background-color: var(--gray-100);
        color: var(--primary-purple);
        padding-left: 2rem;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        padding: 0 1rem;
        gap: 0.5rem;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 400px;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    :root {
        --spacing-xl: 2rem;
        --spacing-2xl: 3rem;
        --spacing-3xl: 4rem;
    }

    .section {
        padding: var(--spacing-2xl) 0;
    }

    .section-title {
        margin-bottom: var(--spacing-lg);
    }

    .card {
        padding: var(--spacing-lg);
    }
}

/* ---------- WHATSAPP BUTTON ---------- */
.whatsapp-fixed {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-fixed:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.whatsapp-fixed svg {
    width: 35px;
    height: 35px;
    fill: currentColor;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 768px) {
    .whatsapp-fixed {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .whatsapp-fixed svg {
        width: 30px;
        height: 30px;
    }
}