/* Global Styles */
:root {
    --primary-color: #ff6b35;
    --secondary-color: #f39c12;
    --dark-bg: #212529;
    --light-bg: #f8f9fa;
    --text-color: #333;
    --light-text: #ffffff;
    --shadow-light: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-medium: 0 8px 25px rgba(0,0,0,0.2);
    --shadow-dark: 0 15px 40px rgba(0,0,0,0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* Yatay kaydırmayı engelle */
    /* Dikey kaydırma açık kalacak */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    padding-top: 70px !important; /* Navbar yüksekliği kadar boşluk bırak */
}

.main-content {
    min-height: calc(100vh - 70px); /* Yüksekliği minimum ayarla */
    overflow-y: auto; /* İçeriğin kaydırılabilir olmasını sağla */
    -webkit-overflow-scrolling: touch; /* iOS üzerinde daha pürüzsüz kaydırma */
    /* Scrollbar'ı gizle */
    scrollbar-width: none; /* Firefox */
}

.main-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

/* Navigation - Fixed Position */
.custom-navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 70px !important;
    background-color: var(--dark-bg) !important;
    box-shadow: var(--shadow-light) !important;
    z-index: 9999 !important;
    transition: background-color 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    color: var(--primary-color) !important;
    font-size: 1.5rem !important;
    font-weight: bold !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.nav-brand:hover {
    color: var(--secondary-color) !important;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-item {
    margin: 0;
}

.nav-link {
    color: var(--light-text) !important;
    font-size: 1rem !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: color 0.3s ease;
    padding: 10px 15px;
    border-radius: 5px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
    background-color: rgba(255, 107, 53, 0.1); /* rgba değeri olarak kalmalı */
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 5px 0;
    transition: 0.3s;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: #212529;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 20px;
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link {
        display: block;
        padding: 15px 20px;
        width: 100%;
        text-align: center;
    }

    .nav-toggle {
        display: block;
    }

    .nav-brand {
        font-size: 1.3rem !important;
    }
}

@media (max-width: 576px) {
    .nav-container {
        padding: 0 15px;
    }

    .nav-brand {
        font-size: 1.2rem !important;
    }

    .nav-toggle-icon {
        width: 20px;
        height: 2px;
    }
}

/* Remove all Bootstrap navbar styles */
.navbar,
.navbar.fixed-top,
.navbar.navbar-expand-lg,
.navbar.navbar-dark,
.navbar.bg-dark {
    display: none !important;
}

/* Hero Section - Unified Styles */
.hero-section,
.hero-section-small {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #34495e 100%); /* İkinci renk olarak gri tonu bırakılabilir */
    padding-top: 80px;
    padding-bottom: 40px;
}

.hero-section,
.hero-section-small {
    min-height: 50vh;
}

.hero-image {
    text-align: center;
}

.hero-section h1,
.hero-section-small h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-section p,
.hero-section-small p {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Vehicles Section */
.vehicle-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--light-text);
}

.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.vehicle-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vehicle-card:hover img {
    transform: scale(1.05);
}

.vehicle-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: var(--light-text);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.vehicle-card:hover .vehicle-overlay {
    transform: translateY(0);
}

.vehicle-overlay h5 {
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--primary-color);
}

.vehicle-overlay p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.vehicle-features {
    margin-top: 10px;
}

.vehicle-features .badge {
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.vehicle-features .badge:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3); /* Bu spesifik gölgeyi değiştirmedim, daha ince */
}

.vehicle-overlay .price {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    color: #27ae60; /* Yeşil renk olarak kalmalı */
    margin-top: 10px;
}

/* Services Section */
.service-card {
    background: var(--light-text);
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-dark);
}

.service-card i {
    color: var(--primary-color);
}

/* Feature Items */
.feature-item {
    padding: 20px;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item i {
    margin-bottom: 15px;
}

/* About Page Specific Styles */
.mission-card, .vision-card {
    background: var(--light-text);
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.mission-card:hover, .vision-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-dark);
}

.mission-card i, .vision-card i {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s ease;
}

.mission-card:hover i, .vision-card:hover i {
    transform: scale(1.1);
}

.value-card {
    background: var(--light-text);
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-dark);
}

.value-card i {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s ease;
}

.value-card:hover i {
    transform: scale(1.1);
}

.team-card {
    background: var(--light-text);
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-dark);
}

.team-card img {
    transition: transform 0.3s ease;
}

.team-card:hover img {
    transform: scale(1.05);
}

.stat-item {
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item i {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s ease;
}

.stat-item:hover i {
    transform: scale(1.1);
}

.stat-item h6 {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-color);
}

.stat-item small {
    font-size: 0.8rem;
}

.service-item {
    background: var(--light-text);
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-dark);
}

.service-item i {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s ease;
}

.service-item:hover i {
    transform: scale(1.1);
}

/* Contact Page Specific Styles */
.contact-form {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.info-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.info-card i {
    transition: transform 0.3s ease;
}

.info-card:hover i {
    transform: scale(1.1);
}

.map-container {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-container:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.accordion-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.accordion-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Bu spesifik gölgeyi değiştirmedim, daha ince */
}

.social-links .btn {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-links .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
    background: linear-gradient(135deg, #e55a2b 0%, #e67e22 100%); /* Bu renkler biraz daha koyu kalsın */
}

/* Footer */
footer {
    margin-top: auto;
}

.social-links-footer .btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid #6c757d; /* Gri tonu olarak kalmalı */
}

.social-links-footer .btn:hover {
    transform: translateY(-3px) scale(1.1);
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: var(--light-text);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

/* Signature Styles */
.signature-text {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.9rem;
    color: #adb5bd; /* Gri tonu olarak kalmalı */
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}
.signature-text:hover {
    color: var(--light-text);
    transform: translateY(-2px);
}
.signature-name {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 600;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
}
.signature-name:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 15px rgba(243, 156, 18, 0.5);
    transform: scale(1.05);
}
.signature-text i {
    color: #6c757d; /* Gri tonu olarak kalmalı */
    transition: color 0.3s ease;
}
.signature-text:hover i {
    color: var(--primary-color);
}

/* Form Validation Styles */
.form-control.is-invalid {
    border-color: #dc3545; /* Kırmızı olarak kalmalı */
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25); /* Kırmızı olarak kalmalı */
}

.form-control.is-invalid:focus {
    border-color: #dc3545; /* Kırmızı olarak kalmalı */
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25); /* Kırmızı olarak kalmalı */
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545; /* Kırmızı olarak kalmalı */
}

.form-control.is-valid {
    border-color: #198754; /* Yeşil olarak kalmalı */
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25); /* Yeşil olarak kalmalı */
}

.form-control.is-valid:focus {
    border-color: #198754; /* Yeşil olarak kalmalı */
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25); /* Yeşil olarak kalmalı */
}

/* Enhanced Form Styling */
.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25); /* rgba değeri olarak kalmalı */
}

.contact-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25); /* rgba değeri olarak kalmalı */
}

.contact-form .form-label {
    font-weight: 600;
    color: #495057; /* Gri tonu olarak kalmalı */
    margin-bottom: 0.5rem;
}

.contact-form .form-control,
.contact-form .form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef; /* Gri tonu olarak kalmalı */
    transition: all 0.3s ease;
}

.contact-form .form-control:hover,
.contact-form .form-select:hover {
    border-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section,
    .hero-section-small {
        text-align: center;
        padding-top: 100px;
        min-height: 40vh; /* Mobil cihazlar için hero section yüksekliğini ayarla */
    }
    
    /* Mobilde butonları alt alta düzenle */
    .hero-section .btn {
        display: block;
        width: 100%;
        margin-bottom: 15px;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .hero-section .btn:last-child {
        margin-bottom: 0;
    }
    
    .vehicle-card img {
        height: 200px;
    }
    
    .service-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .hero-section h1,
    .hero-section-small h1 {
        font-size: 2rem;
    }
    
    .hero-section,
    .hero-section-small {
        min-height: 35vh; /* Daha küçük mobil cihazlar için hero section yüksekliğini ayarla */
    }
    
    /* Küçük ekranlarda buton boyutlarını ayarla */
    .hero-section .btn {
        font-size: 0.9rem;
        padding: 10px 20px;
        margin-bottom: 20px;
    }
    
    .vehicle-card img {
        height: 180px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Enhanced Loading States */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 10px;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3; /* Gri tonu olarak kalmalı */
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); /* Gri tonları olarak kalmalı */
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

.skeleton-image {
    height: 200px;
    border-radius: 8px;
}

.skeleton-button {
    height: 40px;
    border-radius: 20px;
}

/* Loading States for Forms */
.form-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.form-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
}

/* Loading States for Buttons */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading .btn-text {
    opacity: 0;
}

.btn-loading .btn-loading {
    opacity: 1;
}

.btn-loading .btn-loading {
    display: inline-flex !important;
    align-items: center;
}

/* Loading States for Images */
.image-loading {
    position: relative;
    overflow: hidden;
}

.image-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Loading States for Cards */
.card-loading {
    position: relative;
    overflow: hidden;
}

.card-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: cardShimmer 2s infinite;
}

@keyframes cardShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e55a2b;
}

/* Vehicle Card Special Effects */
.vehicle-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.vehicle-card:hover::before {
    transform: scaleX(1);
}

/* Price Badge */
.vehicle-overlay .price {
    background: rgba(39, 174, 96, 0.9); /* Yeşil olarak kalmalı */
    padding: 5px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 10px;
}

/* Service Card Icons */
.service-card i {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Feature Item Icons */
.feature-item i {
    transition: transform 0.3s ease;
}

.feature-item:hover i {
    transform: scale(1.1);
}

/* Trust Indicators */
.trust-item {
    padding: 20px;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.trust-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-light);
}

.trust-item i {
    transition: transform 0.3s ease;
}

.trust-item:hover i {
    transform: scale(1.1);
}

.trust-item h6 {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-color);
}

.trust-item small {
    font-size: 0.8rem;
}

/* Phone Input Specific Styling */
#phone {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

#phone:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25); /* rgba değeri olarak kalmalı */
}

#phone.is-invalid {
    border-color: #dc3545; /* Kırmızı olarak kalmalı */
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25); /* Kırmızı olarak kalmalı */
}

/* Form Validation Styles */

/* Vehicle Search Highlight Animation */
@keyframes highlight {
    0% { 
        transform: scale(1);
        box-shadow: var(--shadow-light);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
        border: 2px solid var(--primary-color);
    }
    100% { 
        transform: scale(1);
        box-shadow: var(--shadow-light);
    }
}

.vehicle-card.search-result {
    animation: highlight 1s ease;
    border: 2px solid var(--primary-color);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.2);
}

/* Vehicle Search Bar Styling */
.vehicle-search {
    transition: all 0.3s ease;
}

.vehicle-search:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.vehicle-search .input-group {
    min-width: 300px;
}

.vehicle-search .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

/* Search Results Header Styling */
#searchResultsHeader {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 15px 20px;
    box-shadow: var(--shadow-light);
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
}

#searchResultsHeader h4 {
    color: var(--text-color);
    font-weight: 600;
    margin: 0;
}

#searchResultsHeader .text-primary {
    color: var(--primary-color) !important;
}

#clearSearchBtn {
    border: 2px solid #6c757d;
    color: #6c757d;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: transparent;
}

#clearSearchBtn:hover {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

#clearSearchBtn:focus {
    box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25);
}

/* Responsive design for search results header */
@media (max-width: 768px) {
    #searchResultsHeader {
        padding: 12px 15px;
        margin-bottom: 15px;
    }
    
    #searchResultsHeader h4 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    #searchResultsHeader .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }
    
    #clearSearchBtn {
        align-self: flex-end;
        padding: 6px 14px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    #searchResultsHeader {
        padding: 10px 12px;
        margin-bottom: 12px;
    }
    
    #searchResultsHeader h4 {
        font-size: 1rem;
    }
    
    #clearSearchBtn {
        padding: 5px 12px;
        font-size: 0.85rem;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-dark);
}

.back-to-top.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.back-to-top i {
    transition: transform 0.3s ease;
}

.back-to-top:hover i {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* Image Optimization */
.vehicle-card img,
.team-card img,
.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.vehicle-card img {
    aspect-ratio: 16/9;
    height: 250px;
}

.team-card img {
    aspect-ratio: 1/1;
    width: 150px;
    height: 150px;
}

.about-image img {
    aspect-ratio: 4/3;
    max-height: 400px;
}

/* Image loading states */
.image-loading {
    position: relative;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.image-loading::before {
    content: '';
    display: block;
    padding-top: 56.25%; /* 16:9 aspect ratio */
}

.image-loaded {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive images */
@media (max-width: 768px) {
    .vehicle-card img {
        height: 200px;
    }
    
    .team-card img {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 576px) {
    .vehicle-card img {
        height: 180px;
    }
    
    .team-card img {
        width: 100px;
        height: 100px;
    }
}

/* Performance optimizations */
* {
    box-sizing: border-box;
}

/* Hardware acceleration for animations */
.vehicle-card,
.service-card,
.feature-item,
.mission-card,
.vision-card,
.value-card,
.team-card,
.stat-item,
.service-item,
.contact-form,
.info-card,
.map-container,
.accordion-item {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Optimize transitions */
.transition-optimized {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Accessibility Improvements */
:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #ff4500;
        --secondary-color: #ff8c00;
        --dark-bg: #000000;
        --light-bg: #ffffff;
        --text-color: #000000;
        --light-text: #ffffff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Better button accessibility */
.btn:focus,
.nav-link:focus,
.back-to-top:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.2);
}

/* Form accessibility */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
    outline: none;
}

/* ARIA live regions */
.aria-live {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Better color contrast */
.text-muted {
    color: #6c757d !important;
}

@media (prefers-contrast: high) {
    .text-muted {
        color: #495057 !important;
    }
}

/* Notification positioning and responsive design */
.notification {
    position: fixed;
    top: 20px; /* Desktop'ta navbar'ın üstünde */
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    z-index: 10000; /* Navbar'ın z-index'i 9999, bildirim daha yüksek */
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Mobile responsive positioning */
@media (max-width: 768px) {
    .notification {
        top: 90px; /* Navbar yüksekliği + ekstra boşluk */
        right: 15px;
        left: 15px;
        max-width: none;
        width: calc(100% - 30px);
        text-align: center;
        font-size: 0.9rem;
        padding: 12px 15px;
    }
}

@media (max-width: 576px) {
    .notification {
        top: 85px; /* Daha küçük mobil cihazlar için */
        right: 10px;
        left: 10px;
        width: calc(100% - 20px);
        font-size: 0.85rem;
        padding: 10px 12px;
    }
}
