/* Asfırat Hafriyat - Özel Web Sitesi Tasarımı */

:root {
    --primary-color: #32B3CD; /* Kartvizit Turkuazı */
    --dark-color: #1E1E1E;    /* Kömür Siyahı */
    --accent-color: #F0A74F;  /* Toprak/Sarı Vurgu */
    --bg-color: #F9FBFD;      /* Açık Gri/Mavi Arka Plan */
    --white: #FFFFFF;
    --gray: #666666;
    --light-gray: #EEEEEE;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--dark-color);
    line-height: 1.6;
}

/* Header & Menü */
header {
    background-color: var(--dark-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

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

.logo-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 1px;
}

.logo-text span {
    color: var(--primary-color);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav ul li a:hover, nav ul li a.active {
    background-color: var(--primary-color);
    color: var(--dark-color);
}

/* Genel Sayfa Düzeni */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    padding-left: 15px;
    border-left: 5px solid var(--primary-color);
}

/* Butonlar */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--dark-color);
    font-weight: 900;
    min-width: 280px;
    text-decoration: none;
    border-radius: 15px;
    transition: transform 0.2s, background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    background-color: #279cb3;
}

.btn-secondary {
    background-color: var(--accent-color);
}

.btn-secondary:hover {
    background-color: #d9913b;
}

/* Giriş Bölümü (Hero) */
.hero {
    position: relative;
    min-height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 40px 20px;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55); /* Görsel üzerindeki yazılar rahat okunsun diye karartma */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3; /* Karartma katmanının (z-index: 2) önünde kalması için */
    color: #fff;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap; /* Mobilde butonların sığmadığında alt alta geçmesi için */
}
/* Bilgi Kartları */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary-color);
    transition: transform 0.3s;
}

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

.card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

/* Galeri (Makine Parkımız) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.gallery-item {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid var(--light-gray);
}

.gallery-img-container {
    height: 250px;
    background-color: #ddd;
    position: relative;
    overflow: hidden;
}

.gallery-img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.gallery-img-container:hover img {
    transform: scale(1.05);
}

.gallery-info {
    padding: 20px;
}

.gallery-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.gallery-info .tag {
    display: inline-block;
    padding: 4px 10px;
    background-color: var(--primary-color);
    color: var(--dark-color);
    font-size: 12px;
    font-weight: 700;
    border-radius: 3px;
    margin-bottom: 10px;
}

.specs-list {
    list-style: none;
    margin-top: 10px;
    font-size: 14px;
}

.specs-list li {
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
}

/* İletişim Bilgileri */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info-box {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.contact-item {
    margin-bottom: 25px;
}

.contact-item h4 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.contact-item p {
    font-size: 16px;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Footer (Alt Bilgi) */
footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 40px 20px;
    text-align: center;
    margin-top: 60px;
    border-top: 5px solid var(--accent-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 15px;
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    margin: 0 10px;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-copyright {
    font-size: 13px;
    color: #888888;
}



/* --- MOBİL UYUM BÖLÜMÜ (GÜNCELLENDİ) --- */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .contact-container {
        grid-template-columns: 1fr;
    }
    .hero {
        min-height: 450px;
        padding: 60px 15px;
    }
    .hero h1 {
        font-size: 26px;
    }
    .hero p {
        font-size: 14px;
    }
    .btn {
        width: 100%;
        min-width: unset;
    }
    
    /* Galeri Sayfası Mobil Düzeni */
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
        gap: 20px !important;
    }
    
    /* Makine Parkı En Sondaki Kutucuk Mobil Düzeni */
    .gallery-grad {
        max-width: 100% !important; /* Mobilde tam genişlik almasını sağlar */
    }
    
    .gallery-img-containar {
        height: 250px !important; /* Mobilde görsel alanının yüksekliğini dengeler */
    }
}

/* --- GALERİ RESİM AYARLARI --- */
.gallery {
    max-width: 100%;
    height: auto;
    display: grid;
    /* Mobilde ve masaüstünde esnek sütun yapısı */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    justify-content: center;
    margin: 40px auto;
}

.item {
    width: 100%; /* Sabit 250px yerine esnek genişlik */
    height: 220px;
    overflow: hidden;
    border: 3px solid #111;
    border-radius: 8px;
    background: none;
}

.item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- MAKİNE PARKIMIZ - EN SONDAKİ KUTUCUK (FORD CARGO) --- */
.gallery-grad {
    grid-column: 1 / -1;
    justify-self: center;
    width: 100%;
    max-width: 50%; /* Masaüstünde alt satırı ortalamak için */
    margin-top: 30px;
}

.gallery-itam {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid var(--light-gray);
}

.gallery-img-containar {
    height: 300px;
    background-color: #ddd;
    position: relative;
    overflow: hidden;
}

.gallery-img-containar img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Görselin alanı tamamen ve düzgün kaplamasını sağlar */
    transition: transform 0.3s;
    display: block;
}

.gallery-img-containar:hover img {
    transform: scale(1.05);
}
