/* Genel Stiller */
:root {
    --primary-color: #0d2240; /* Koyu Lacivert */
    --secondary-color: #c0a875; /* Altın/Bej */
    --text-color: #333;
    --light-text-color: #f4f4f4;
    --background-color: #fff;
    --dark-background-color: #0a1a30;
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
    padding: 0;
}

h1, h2, h3 {
    color: var(--primary-color);
}

.container {
    width: 90%;
    margin: auto;
    overflow: hidden;
}

/* Buton Stilleri */
.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--light-text-color);
    padding: 10px 20px;
    margin: 5px 0;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #0a1a30;
}

.btn.secondary {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.btn.secondary:hover {
    background-color: #a89567;
}

/* Header ve Navigasyon */
header {
    background: var(--primary-color);
    color: var(--light-text-color);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 90%;
    margin: auto;
}

nav .logo a {
    color: var(--light-text-color);
    font-size: 24px;
    font-weight: 700;
}

.nav-links {
    display: flex;
    width: 50%;
    justify-content: space-around;
}

.nav-links li {
    opacity: 1;
}

.nav-links a {
    color: var(--light-text-color);
    font-size: 18px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--light-text-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: url('./anavip.jpg') no-repeat center center/cover;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--light-text-color);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Overlay */
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 10px;
    color: var(--light-text-color);
}

.hero p {
    font-size: 24px;
    margin-bottom: 20px;
}

.hero-buttons .btn {
    margin: 10px;
}

/* Section Stilleri */
section {
    padding: 60px 0;
    text-align: center;
}

section h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

/* About Preview Section */
.about-preview {
    background-color: var(--dark-background-color);
    color: var(--light-text-color);
}

.about-preview h2 {
    color: var(--secondary-color);
}

.about-preview p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Featured Vehicles Section */
.featured-vehicles .vehicle-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.featured-vehicles .vehicle-item {
    background-color: var(--background-color);
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    width: 300px;
    text-align: left;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.featured-vehicles .vehicle-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.featured-vehicles .vehicle-item h3 {
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.featured-vehicles .vehicle-item p {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.featured-vehicles .vehicle-item .btn {
    display: block;
    width: 100%;
    text-align: center;
}

/* Services Preview Section */
.services-preview {
    background-color: var(--dark-background-color);
    color: var(--light-text-color); /* Genel yazı rengini açık yap */
}

.services-preview h2 {
    color: var(--secondary-color);
}

.services-preview .service-item h3 { /* Hizmet öğesi başlık rengini açık yap */
    color: var(--light-text-color);
}

.services-preview .service-item p { /* Hizmet öğesi paragraf rengini açık yap */
    color: var(--light-text-color);
}


.services-list-page .container {
    text-align: center;
}

.services-list-page h2 {
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Tam olarak 3 sütun */
    gap: 30px;
    justify-items: center;
}

.service-item-detail {
    background-color: var(--background-color);
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    text-align: left;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    color: var(--text-color);
    width: 100%; /* Grid içinde tam genişlik */
    max-width: 350px; /* Maksimum genişlik belirle */
}

.service-item-detail img {
    width: 100%;
    height: 150px; /* Resim yüksekliğini küçült */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.service-item-detail h3 {
    font-size: 22px; /* Başlık font boyutunu ayarla */
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.service-item-detail p {
    font-size: 15px; /* Paragraf font boyutunu ayarla */
    margin-bottom: 15px;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--background-color);
}

.testimonials .testimonial-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.testimonials .testimonial-item {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    width: 400px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.testimonials .testimonial-item p {
    font-size: 18px;
    font-style: italic;
    margin-bottom: 15px;
    color: var(--text-color);
}

.testimonials .testimonial-item h4 {
    font-size: 16px;
    color: var(--primary-color);
    margin: 0;
}

/* Contact Section */
.contact-section .container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    text-align: left;
}

.contact-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 2rem;
    align-items: flex-start;
}

.contact-form {
    flex: 3;
    min-width: 300px;
    order: 1; /* Sol tarafta */
}

.contact-info {
    flex: 2;
    min-width: 250px;
    order: 2; /* Sağ tarafta */
    background-color: rgba(240, 240, 240, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
}

.contact-form h2, .contact-info h2 {
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 5px rgba(192, 168, 117, 0.5);
}

.contact-info .contact-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.contact-info .contact-item:last-child {
    border-bottom: none;
}

.contact-info .contact-item h3 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.contact-info .contact-item p {
    font-size: 16px;
    color: var(--text-color);
    margin: 0;
}

/* Contact Map Section */
.contact-map-section .container {
    text-align: center;
}

.contact-map-section h2 {
    margin-bottom: 30px;
}

.map-placeholder iframe {
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Responsive Contact Section */
@media (max-width: 768px) {
    .contact-content {
        flex-direction: column;
    }
    
    .contact-form {
        order: 1;
    }
    
    .contact-info {
        order: 2;
    }
}

/* Contact Preview Section */
.contact-preview {
    background-color: var(--dark-background-color);
    color: var(--light-text-color);
}

.contact-preview h2 {
    color: var(--secondary-color);
}

.contact-preview p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* Araç Galerisi Stilleri */
.vehicle-gallery {
    padding: 3rem 0;
    background-color: #f9f9f9;
}

.vehicle-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.vehicle-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    text-align: center;
    padding: 1rem;
}

.vehicle-item:hover {
    transform: translateY(-5px);
}

.vehicle-item img {
    width: 500px;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .vehicle-item img {
        width: 100%;
        height: auto;
    }
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 40px 0 20px;
    font-size: 16px;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    width: 90%;
    margin: auto;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.footer-section {
    margin-bottom: 20px;
    width: 200px; /* Adjust as needed */
}

.footer-section h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.footer-section p, .footer-section a {
    color: var(--light-text-color);
    margin-bottom: 5px;
    display: block;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #aaa;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    nav {
        justify-content: space-between;
        padding: 0 5%;
    }

    .nav-links {
        position: absolute;
        right: 0;
        top: 60px; /* Adjust based on header height */
        background-color: var(--primary-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        z-index: 999;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .burger {
        display: block;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        width: 80%;
        text-align: center;
    }
}

/* Burger Animasyonu */
.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

.group-text {
    color: var(--secondary-color);
}

/* Sabit İkonlar Stili */
.fixed-icons {
    position: fixed;
    bottom: 20px;
    left: 20px; /* Sağ yerine sol tarafa alındı */
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.fixed-icons a {
    display: block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.fixed-icons a:hover {
    transform: scale(1.1);
}

.fixed-icons img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobil Uyum (Ekran genişliği 768px ve altı için) */
@media (max-width: 768px) {
    .fixed-icons {
        bottom: 10px; /* Daha az boşluk */
        left: 10px;   /* Sol tarafa daha az boşluk */
        gap: 8px;     /* İkonlar arasındaki boşluk azaltıldı */
    }

    .fixed-icons a {
        width: 40px;  /* İkon boyutu küçültüldü */
        height: 40px;
    }
}

/* Daha Küçük Ekranlar (Ekran genişliği 480px ve altı için) */
@media (max-width: 480px) {
    .fixed-icons {
        bottom: 8px; /* Daha az boşluk */
        left: 8px;   /* Sol tarafa daha az boşluk */
        gap: 6px;    /* İkonlar arasındaki boşluk azaltıldı */
    }

    .fixed-icons a {
        width: 35px; /* İkon boyutu daha da küçültüldü */
        height: 35px;
    }
}