/* =========================================
   1. DEĞİŞKENLER VE TEMEL AYARLAR (RESET)
   ========================================= */
:root {
    --primary-color: #1a56db;
    --primary-dark: #1e40af;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* =========================================
   2. YARDIMCI SINIFLAR (UTILITY CLASSES)
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 6px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.btn:hover {
    background-color: var(--primary-dark);
}

/* =========================================
   3. HEADER VE NAVİGASYON
   ========================================= */
header {
    background-color: var(--white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Mobil Menü Butonu (Varsayılan olarak gizli) */
.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

.hidden-mobile {
    display: inline-block;
}

/* Mobil Menü Aktif Olduğunda */
.nav-links.mobile-active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--white);
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    gap: 15px;
}

.nav-links.mobile-active a {
    padding: 10px;
    border-radius: 6px;
}

.nav-links.mobile-active a:hover {
    background-color: var(--bg-light);
}

/* =========================================
   4. HERO (KARŞILAMA) ALANI
   ========================================= */
.hero {
    background-color: #f3f4f6;
    padding: 80px 0;
    overflow: hidden;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.hero-content p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 450px;
}

.hero-image {
    flex: 1;
    position: relative;
}

/* Fotoğraf üzerindeki hafif geçiş efekti */
.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(to right, #f3f4f6 0%, transparent 100%);
    pointer-events: none;
    border-radius: 10px;
}

.hero-image img {
    width: 100%;
    max-width: 600px;
    height: 500px;
    border-radius: 10px;
    object-fit: cover;
    object-position: top; /* Fotoğrafın üst kısmını göster */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    display: block;
}

/* =========================================
   5. HİZMETLER ALANI
   ========================================= */
.services {
    padding: 80px 0;
    text-align: center;
    background-color: var(--white);
}

.services h2 {
    font-size: 36px;
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.service-card {
    background: var(--white);
    padding: 40px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.icon-box {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

/* =========================================
   6. İLETİŞİM ALANI
   ========================================= */
.contact-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 36px;
}

.contact-section > .container > p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 50px;
    font-size: 18px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-item h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--text-light);
    font-size: 16px;
}

/* Form Tasarımı */
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

/* =========================================
   7. FOOTER
   ========================================= */
footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-section p {
    color: #9ca3af;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #9ca3af;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
}

/* =========================================
   8. MEDYA SORGULARI (RESPONSIVE)
   ========================================= */

/* Tablet Boyutları */
@media (max-width: 968px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Mobil Boyutları */
@media (max-width: 768px) {
    /* Menü Gizleme */
    .nav-links {
        display: none;
    }
    
    .hidden-mobile {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }

    /* Hero Alanı Sıralama Ayarı */
    .hero {
        padding: 40px 0;
    }

    .hero-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .hero-content {
        display: contents; /* Kutuyu kaldır, içeriği serbest bırak */
    }

    /* Sıralama (Order) */
    .hero-content h1 {
        order: 1;
        font-size: 32px;
        margin-bottom: 10px;
    }

    .hero-image {
        order: 2;
        width: 100%;
        margin-bottom: 20px;
    }

    .hero-image img {
        width: 100%;
        height: 300px;
        object-fit: cover;
        /* object-position: top; (Ana CSS'ten miras alır) */
    }

    /* Efekti mobilde kapat */
    .hero-image::after {
        display: none;
    }

    .hero-content p {
        order: 3;
        font-size: 16px;
        margin-bottom: 20px;
        padding: 0 10px;
    }

    .hero-content .btn {
        order: 4;
    }

    /* Diğer Mobil Ayarlar */
    .services {
        padding: 60px 0;
    }

    .services h2 {
        font-size: 28px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-section {
        padding: 60px 0;
    }

    .contact-section h2 {
        font-size: 28px;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}