/* --- Modern Renk Paleti ve Değişkenler --- */
:root {
    --primary: #003366; /* Derin Güven Mavisi */
    --secondary: #00a8e8; /* Canlı Atlas Mavisi */
    --accent: #f39c12; /* Dikkat çekici Altın/Turuncu */
    --dark: #1a2a3a;
    --light: #f8fafc; 
    --white: #ffffff;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* --- Genel Ayarlar (General Resets) --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%; 
    overflow-x: hidden; /* Klasik taşma engelleme */
    overflow-x: clip; /* Modern ve daha sert taşma kilidi */
    position: relative;
    left: 0;
}

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* iOS için pürüzsüz kaydırma */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Navigasyon Bölümü (Header & Nav) --- */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1001;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Yapısı: GÜVENCE ATLAS (Yan yana), SİGORTA (Alt satır) */
.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 15px;
    min-width: 280px; 
    transition: var(--transition);
}

.logo-img {
    height: 65px; 
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--primary);
    text-transform: uppercase;
    line-height: 1;
}

.logo-text span {
    color: var(--secondary);
    font-weight: 300;
    margin-left: 5px;
}

.logo-subtitle {
    display: block; 
    font-size: 0.75rem;
    letter-spacing: 6px; 
    color: var(--secondary);
    font-weight: 600;
    margin-top: 5px;
}

/* Masaüstü Navigasyon Linkleri */
.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    margin-left: 30px;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--secondary);
    transition: var(--transition);
}

.nav-links li a:hover::after {
    width: 100%;
}

.social-link {
    font-size: 1.3rem;
    color: #E1306C !important;
}

/* Mobil Menü Karartma Katmanı (Backdrop) */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 30, 60, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1050;
    display: none;
    opacity: 0;
    transition: var(--transition);
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobil Hamburger İkonu */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: var(--primary);
    transition: var(--transition);
    z-index: 1100;
}

/* --- Hero Alanı (Merkezi Logo ve Başlık) --- */
.hero {
    min-height: 90vh;
    background: linear-gradient(135deg, rgba(0,51,102,0.85) 0%, rgba(0,168,232,0.7) 100%), 
                url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 60px 20px;
}

/* Merkezi Logo Çerçevesi (Square with Glassmorphism) */
.hero-logo-wrapper {
    margin-bottom: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background: rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); 
    animation: fadeInUp 0.8s ease;
    margin-left: auto;
    margin-right: auto;
}

/* Merkezi Logo (Circular Inner) */
.hero-main-logo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2)); 
    display: block;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 5px 15px rgba(0,0,0,0.2);
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
    animation: fadeInUp 1.2s ease;
}

/* --- Butonlar (CTA Buttons) --- */
.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.primary {
    background: var(--secondary);
    color: white;
    box-shadow: 0 8px 20px rgba(0, 168, 232, 0.3);
}

.primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 168, 232, 0.5);
    background: #00c0ff;
}

.secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.secondary:hover {
    background: white;
    color: var(--primary);
}

/* --- Modal (Teklif Al Formu) - MOBİL ÇÖZÜM --- */
.modal {
    display: none; 
    position: fixed;
    z-index: 2000;
    inset: 0; /* top, left, right, bottom: 0; - Formun sağa kaçmasını engeller */
    width: 100%;
    height: 100%;
    background-color: rgba(0, 30, 60, 0.9);
    backdrop-filter: blur(8px);
    align-items: center; 
    justify-content: center; 
    overflow: hidden; /* Dış taşmayı modal seviyesinde engeller */
}

.modal-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 25px;
    width: 90%; /* Mobilde güvenli alan */
    max-width: 480px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
    animation: zoomIn 0.3s ease-out;
    max-height: 90vh;
    overflow-y: auto;
    margin: auto; /* Yatay ve dikey merkezleme garantisi */
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-modal {
    position: absolute;
    right: 25px;
    top: 20px;
    font-size: 2.2rem;
    cursor: pointer;
    color: var(--primary);
    transition: var(--transition);
}

.modal-content h2 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e1e8ef;
    border-radius: 12px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary);
    background-color: #f0f9ff;
}

/* --- Hakkımızda & Hizmetler & Diğer Bölümler --- */
.about-section {
    padding: 100px 0;
}

.services-section {
    padding: 100px 0;
    background: var(--light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: var(--secondary);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-md);
}

.service-card i {
    font-size: 3.5rem;
    color: var(--secondary);
    margin-bottom: 25px;
}

.why-us {
    padding: 100px 0;
    background-color: #f1f5f9;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.why-item {
    background: var(--white);
    padding: 35px 25px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-weight: 600;
    border-bottom: 5px solid var(--secondary);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.why-item i {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary) 0%, #001a35 100%);
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
}

footer {
    background: var(--dark);
    color: white;
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* --- Animasyonlar --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- MOBİL UYUMLULUK --- */
@media (max-width: 768px) {
    /* Logo genişliğini daraltarak taşmayı önlüyoruz */
    .logo-container {
        min-width: auto;
        gap: 10px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .menu-toggle {
        display: block; 
        position: relative;
    }

    .nav-links {
        position: fixed;
        right: 0; 
        top: 0;
        height: 100vh;
        width: 280px;
        background-color: var(--primary);
        display: flex;
        flex-direction: column;
        padding: 80px 30px;
        transition: transform 0.4s ease, visibility 0.4s;
        z-index: 1060;
        visibility: hidden; /* Pasifken layout hesaplamasından çıkarıldı */
        transform: translateX(100%) translateZ(0); /* Netlik için translateZ eklendi */
        backface-visibility: hidden; /* Donanım hızlandırma netliği sağlandı */
        -webkit-font-smoothing: antialiased; /* Fontların daha keskin görünmesi sağlandı */
    }

    .nav-links.nav-active {
        visibility: visible;
        transform: translateX(0) translateZ(0); /* Açılışta netlik korundu */
    }

    /* MOBİL MENÜ LİNK DÜZENLEMESİ (Okunurluk Odaklı) */
    .nav-links li {
        width: 100%;
        margin-bottom: 25px;
    }

    .nav-links li a {
        color: var(--white) !important; /* Lacivert arka planda tam beyaz yazı */
        margin-left: 0; /* Masaüstü hizalamasını sıfırla */
        font-size: 1.25rem; /* Daha büyük ve okunabilir font */
        font-weight: 600; /* Daha net duruş */
        display: block;
        opacity: 1;
        text-shadow: 0 2px 4px rgba(0,0,0,0.2); /* Derinlik katarak netliği artırır */
        backface-visibility: hidden;
    }

    .nav-links li a::after {
        background: var(--secondary);
    }

    /* MOBİL FORM TAM OTURTMA */
    .modal {
        padding: 10px;
        align-items: center;
        justify-content: center;
    }

    .modal-content {
        width: calc(100% - 20px); /* Ekrandan taşmaması için matematiksel sınır */
        padding: 25px 20px;
        max-height: 85vh;
        border-radius: 20px;
    }

    .hero h1 { font-size: 2.2rem; }
}