/* Önceki Temel Ayarlar Korundu */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
    background-color: #fff;
}

/* Navigasyon & Burger Menü */
header {
    background: #2d4030;
    color: white;
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { font-size: 2.2rem; font-weight: bold; }
.logo span { color: #8dbd3e; }

.nav-list { display: flex; list-style: none; }
.nav-list li { margin-left: 20px; }
.nav-list a { color: white; text-decoration: none; transition: 0.3s; font-weight: 500; }
.nav-list a:hover { color: #8dbd3e; }

/* Hero Bölümü */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
                url('images3/Tarla/salih-traktor-14.png'); /* Arkadaşının fotosunu kapak yaptık */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 5%;
}

.hero-content h1 { font-size: 3rem; margin-bottom: 1rem; }

.btn {
    display: inline-block;
    background: #8dbd3e;
    color: white;
    padding: 12px 35px;
    text-decoration: none;
    border-radius: 30px;
    margin-top: 20px;
    font-weight: bold;
    transition: 0.3s;
}

.btn:hover { background: #6a8f2e; transform: scale(1.05); }

/* Hizmetler */
.services { padding: 80px 5%; background: #f9f9f9; }
.section-title { text-align: center; margin-bottom: 40px; font-size: 2.2rem; color: #2d4030; }

.service-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 30px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.service-card i { font-size: 2.5rem; color: #8dbd3e; margin-bottom: 15px; }

/* YENİ: Galeri CSS */
.work-gallery { padding: 80px 5%; }
.gallery-category { margin-bottom: 60px; }
.gallery-category h3 { 
    font-size: 1.5rem; 
    color: #2d4030; 
    margin-bottom: 20px; 
    border-left: 5px solid #8dbd3e; 
    padding-left: 15px;
}

.media-container { display: flex; flex-direction: column; gap: 20px; }

video {
    width: 100%;
    max-width: 900px;
    border-radius: 15px;
    margin: 0 auto;
    background: #000;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    transition: 0.3s;
}

.grid img:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

.placeholder-text { text-align: center; color: #888; font-style: italic; padding: 20px; }

/* Ekipman & Footer Ayarları korundu */
.equipment { padding: 60px 5%; background: #2d4030; color: white; text-align: center; }
.brand-tags { margin-top: 20px; }
.brand-tags span {
    display: inline-block;
    margin: 8px;
    background: rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 5px;
    border-left: 4px solid #8dbd3e;
}

footer { padding: 40px 5%; text-align: center; background: #1a1a1a; color: white; }
.social-links a { color: white; font-size: 2.2rem; margin: 0 15px; }
.copy{
    margin-top: 70px;
}

/* Goruntuler i duzenleme */
img{
    max-width: 100%;
    height: auto;
}




/* RESPONSIVE & BURGER MENU CSS */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2rem; }
    
    .menu-toggle {
        display: block;
        cursor: pointer;
    }

    .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        transition: all 0.3s ease-in-out;
        background: white;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        background: #2d4030;
        text-align: center;
    }

    .nav-list.active { display: flex; }
    .nav-list li { margin: 15px 0; }

    /* Burger Animasyonu */
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    

    .grid img {
        height: 420px; /* Çok küçük ekranlarda yüksekliği biraz daha kıstık */
    }

    /* Video wrapper'ın mobilde tam genişlik olmasını sağla */
    .video-wrapper video {
        max-width: 100%; 
    }

    
    .hero {
        display: flex;
        align-items: flex-end; /* İçeriği en alta yaslar */
        padding-bottom: 50px;  /* En alta yapışmaması için biraz boşluk */
        background-position: center center; /* Fotoğrafı ortalar */
    }

    .hero-content {
        position: static; /* Eğer daha önce position:relative verdiysen bunu sıfırlar */
        width: 100%;
        padding: 20px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem; /* Mobilde yazıyı biraz küçültelim ki fotoğraf kapanmasın */
    }
}




/* Video Boyutlandırma Düzeltmesi */
.video-wrapper {
    width: 100%;
    display: flex;
    justify-content: center; /* Videoyu ortalar */
    margin-bottom: 20px;
}

.video-wrapper video {
    width: 100%;
    max-width: 400px; /* Videonun çok yayılmasını engeller, ideal genişlik */
    height: auto;
    max-height: 500px; /* Dikey videoların ekranı kaplamasını önler */
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    object-fit: cover; /* Videonun kutu içinde düzgün durmasını sağlar */
}

/* Galeri Gridi ile Uyum */
.media-container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Her şeyi ortalar */
}

.grid {
    width: 100%; /* Resimlerin olduğu grid tam genişlikte kalmaya devam eder */
}

/* Mobilde video biraz daha büyüyebilir ki rahat izlensin */
@media (max-width: 768px) {
    .video-wrapper video {
        max-width: 90%; 
    }
}