:root {
    --primary: #2d6a4f;
    --secondary: #40916c;
    --dark: #1b4332;
    --light: #f4fdf7;
    --text: #333;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Montserrat', sans-serif; line-height: 1.6; color: var(--text); background: #fff; }

.container { max-width: 1100px; margin: auto; padding: 0 20px; }

.hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-images-grid {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: grid;
    grid-template-columns: 1fr 1.6fr 1fr;
    z-index: 0;
}

.hero-images-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(1px);
    transform: scale(1.02);
}

.hero .overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(27, 67, 50, 0.30);
    z-index: 1;
}

.hero-content { position: relative; z-index: 2; }
.hero h1 { font-size: 3rem; margin-bottom: 1rem; font-weight: 700; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.hero p { font-size: 1.3rem; margin-bottom: 2rem; max-width: 700px; margin-left: auto; margin-right: auto; text-shadow: 0 1px 5px rgba(0,0,0,0.3); }

.btn-primary {
    display: inline-block;
    background: #fff;
    color: var(--primary);
    padding: 15px 40px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 30px;
    transition: 0.3s;
    text-transform: uppercase;
}
.btn-primary:hover { background: var(--secondary); color: #fff; }

.content-video-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    z-index: 1;
}

#section-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: -2;
}

.video-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: -1;
}

.services { padding: 60px 20px; text-align: center; background: transparent; }
.section-title h2 { color: #fff; font-size: 2.2rem; margin-bottom: 10px; }
.line { width: 80px; height: 4px; background: var(--primary); margin: 0 auto 40px; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
    border-bottom: 4px solid transparent;
    overflow: hidden;
}
.card:hover { transform: translateY(-5px); border-bottom: 4px solid var(--primary); }

.card-img-holder {
    height: 200px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.card-img-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0; left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.card-img-holder img.active { opacity: 1; z-index: 1; }
.card:hover .card-img-holder img.active { transform: scale(1.1); }

.card-body { padding: 25px; }
.card-body h3 { margin-bottom: 10px; color: var(--dark); }

.contact-section { padding: 60px 20px; background: transparent; }

.contact-flex-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: auto;
}

.social-column {
    flex: 1;
    display: flex;
    justify-content: center;
}

.social-btn {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
    white-space: nowrap;
}

.social-btn i {
    font-size: 1.8rem;
    margin-right: 15px;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.instagram-btn i {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.linkedin-btn i { color: #0077b5; }

.form-wrapper {
    background: #fff; 
    width: 100%;
    max-width: 500px;
    padding: 40px;
    border-radius: 10px; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    flex: 2;
}
.form-wrapper h2 { text-align: center; color: var(--dark); margin-bottom: 10px; }
.form-wrapper p { text-align: center; margin-bottom: 30px; color: #666; font-size: 0.9rem; }

.input-group { margin-bottom: 20px; text-align: left; }
.input-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--dark); }
.input-group input, .input-group select, .input-group textarea {
    width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 5px; font-family: inherit;
}
.input-group input:focus { border-color: var(--primary); outline: none; }

.btn-submit {
    width: 100%; background: var(--primary); color: #fff; padding: 15px;
    border: none; border-radius: 5px; font-size: 1.1rem; cursor: pointer; transition: 0.3s;
}
.btn-submit:hover { background: var(--dark); }

.success-msg { background: #d4edda; color: #155724; padding: 15px; border-radius: 5px; margin-bottom: 20px; text-align: center; border: 1px solid #c3e6cb; }
.error-msg { background: #f8d7da; color: #721c24; padding: 15px; border-radius: 5px; margin-bottom: 20px; text-align: center; border: 1px solid #f5c6cb; }

footer { background: var(--dark); color: #fff; text-align: center; padding: 20px; margin-top: auto; }

/* --- MOBİL İÇİN ÖZEL TASARIM (GÜNCELLENDİ - V2) --- */
/* --- MOBİL İÇİN ÖZEL TASARIM (SON HALİ - GENİŞ AÇI) --- */
/* --- MOBİL İÇİN ÖZEL TASARIM (GÜNCELLENDİ - V2) --- */
/* --- MOBİL İÇİN ÖZEL TASARIM (SON HALİ - ŞEFFAF VE KOMPAKT) --- */
/* --- MOBİL İÇİN ÖZEL TASARIM (YATAY KAYDIRMA & KOMPAKT YAPI) --- */
/* --- MOBİL İÇİN ÖZEL TASARIM (2 SÜTUNLU MİNİ IZGARA) --- */
@media (max-width: 768px) {
    
    /* 1. HERO (ÜST) ALAN: Daha kısa tutuyoruz ki video başlasın */
    .hero {
        height: 45vh; /* Ekranın yarısından az */
        min-height: 300px;
    }
    
    .hero-images-grid { display: block; }
    .hero-images-grid img { display: none; }
    
    /* Ortadaki resmi göster */
    .hero-images-grid img:nth-child(2) {
        display: block; width: 100%; height: 100%; object-fit: cover;
    }

    .hero h1 { font-size: 1.5rem; margin-top: 10px; line-height: 1.2; }
    .hero p { font-size: 0.9rem; padding: 0 10px; display: none; /* Mobilde alt yazıyı gizle, video öne çıksın */ }
    .btn-primary { padding: 10px 25px; font-size: 0.9rem; margin-top: 10px; }

    /* 2. HİZMETLER ALANI (2 SÜTUNLU IZGARA) */
    .services {
        padding: 20px 10px; /* Kenar boşluklarını azalttık */
    }

    .grid-3 {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Ekranı 2'ye böl */
        gap: 15px; /* Kartlar arası boşluk (Video buradan görünür) */
    }

    .card {
        width: 100%;
        background: rgba(255, 255, 255, 0.85); /* Şeffaf zemin */
        backdrop-filter: blur(3px);
    }

    /* Son kart (3. kart) tek kalmasın, alta tam yayılsın */
    .card:last-child {
        grid-column: span 2; 
    }

    /* Kart içeriklerini küçültelim (Mini Mod) */
    .card-img-holder { height: 100px; } /* Resimler kısa */
    .card-body { padding: 15px; }
    .card-body h3 { font-size: 0.95rem; margin-bottom: 5px; } /* Başlık küçük */
    .card-body p { font-size: 0.8rem; line-height: 1.3; } /* Açıklama küçük */

    /* 3. FORM ALANI */
    .contact-section { padding: 20px 10px; }
    
    .form-wrapper {
        width: 100%;
        padding: 20px;
        background: rgba(255, 255, 255, 0.85); /* Şeffaf */
        backdrop-filter: blur(3px);
    }
    
    .form-wrapper h2 { font-size: 1.3rem; }
    .form-wrapper p { font-size: 0.85rem; margin-bottom: 15px; }

    /* Butonlar Yan Yana */
    .contact-flex-container {
        display: flex;
        flex-direction: column; /* Önce form, sonra butonlar */
        gap: 15px;
    }
    
    /* Form üstte */
    .form-wrapper { order: 1; }
    
    /* Butonları yan yana koymak için kapsayıcı */
    .contact-flex-container { position: relative; }
    
    /* Butonları yan yana dizebilmek için flex order ayarı */
    .left-column { order: 2; width: 48%; float: left; }
    .right-column { order: 3; width: 48%; float: right; }
    
    /* Kapsayıcıya 'display: flex' yerine 'flow-root' benzeri bir yapı kuralım */
    .contact-flex-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .form-wrapper { width: 100%; margin-bottom: 10px; }

    .social-btn {
        padding: 10px;
        font-size: 0.8rem;
        justify-content: center;
        background: rgba(255, 255, 255, 0.9);
    }
    
    .social-btn i { font-size: 1.2rem; margin-right: 5px; }
}