:root {
    --primary-color: #000b3b; /* Koyu Lacivert */
    --primary-dark: #000729;
    --secondary-color: #f9fafb;
    --footer-bg: #1e293b;
    --text-dark: #1f2937;
    --text-light: #9ca3af;
    --white: #ffffff;
    --font-hero: 'Poppins', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --transition-standard: all 0.3s ease;
    --container-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text-dark); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: var(--transition-standard); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Genel Helperlar */
.text-center { text-align: center; }

/* Genel Containerlar */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
.container-fluid { max-width: 100%; padding: 0 30px; }

/* HEADER & LOGO */
.site-header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background-color: var(--primary-color);
    padding: 0; 
    transition: var(--transition-standard);
    height: 120px; 
    display: flex; align-items: center; 
}
.site-header.scrolled {
    background-color: var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    height: 90px;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }

.logo-link img {
    height: 120px;
    transition: var(--transition-standard);
    width: auto;
}
.site-header.scrolled .logo-link img { height: 80px; }

.desktop-nav ul { display: flex; gap: 30px; }
.desktop-nav a { color: var(--white); font-weight: 500; position: relative; padding-bottom: 5px; }
.site-header.scrolled .desktop-nav a { color: var(--text-dark); }
.desktop-nav a::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 50%;
    background-color: currentColor; transition: var(--transition-standard); transform: translateX(-50%);
}
.desktop-nav a:hover::after, .desktop-nav a.active::after { width: 100%; }

.header-right { display: flex; align-items: center; gap: 20px; }
.phone-btn { color: var(--white); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.site-header.scrolled .phone-btn { color: var(--primary-color); }

/* HERO SECTION (ANASAYFA) */
#hero {
    position: relative; 
    height: 82vh;          /* Biraz daha uzattık (Eskisi 82vh idi) */
    min-height: 570px;
    background-image: url('images/hero.jpg');
    background-size: cover; 
    background-position: center; 
    background-attachment: fixed;
    
    display: flex; 
    align-items: center; 
    justify-content: center;
    text-align: center; 
    color: var(--white);

    /* --- KRİTİK DOKUNUŞ --- */
    padding-top: 120px; /* Üstteki menü (120px) kadar içeriği aşağı ittik. */
    box-sizing: border-box; /* Padding ekleyince toplam yükseklik bozulmasın diye */
}
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.45); }
.hero-content { position: relative; z-index: 1; width: 100%; max-width: 1200px; padding: 0 20px; }
.hero-content h1 { font-family: var(--font-hero); font-size: clamp(1.5rem, 3.5vw, 3rem); font-weight: 700; line-height: 1.3; min-height: 200px; display: flex; justify-content: center; align-items: center; }
.typewrite-text { position: relative; display: inline-block; white-space: pre-wrap; }
.typewrite-text::after { content: '|'; display: inline-block; margin-left: 4px; color: var(--white); font-weight: 100; vertical-align: baseline; animation: blink 1s ease-in-out infinite; }
.typewrite-text.typing::after { animation: none; opacity: 1; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* STATS */
#stats { padding: 80px 0; background-color: var(--secondary-color); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat-item { text-align: center; padding: 20px; }
.stat-wrapper { display: flex; justify-content: center; align-items: baseline; gap: 2px; }
.stat-number, .stat-item span { font-family: var(--font-hero); font-size: 3.5rem; font-weight: 700; color: var(--primary-color); line-height: 1; }
.stat-separator { width: 50px; height: 3px; background-color: var(--primary-color); margin: 15px auto; }
.stat-item h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--text-dark); }
.stat-item p { color: var(--text-light); }

/* HİZMETLER BÖLÜMÜ (ANASAYFA) */
#services { padding: 15px 0 80px 0;; background-color: var(--white); }
.section-header { margin-bottom: 50px; text-align: center; }
.section-header h2 { font-size: 3rem; color: var(--primary-color); margin-bottom: 10px; font-family: var(--font-hero); text-transform: uppercase; letter-spacing: 1px; }
.all-services-grid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 15px; }
.service-card { display: flex; flex-direction: column; background-color: var(--white); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.05); transition: var(--transition-standard); height: 100%; border: 1px solid #e5e7eb; }
.card-image { height: 110px; overflow: hidden; flex-shrink: 0; position: relative; display: flex; align-items: center; justify-content: center; }
.card-image img { width: 100%; height: 100%; object-fit: contain; padding: 4px; transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.card-content { padding: 12px 8px; text-align: center; transition: var(--transition-standard); flex-grow: 1; display: flex; align-items: center; justify-content: center; background-color: var(--white); }
.card-content h4 { font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; line-height: 1.3; color: var(--text-dark); word-break: break-word; transition: color 0.3s ease; }
.service-card:hover { background-color: var(--white); border-color: var(--primary-color); transform: translateY(-7px); box-shadow: 0 15px 30px rgba(0, 11, 59, 0.15); }
.service-card:hover .card-image img { transform: scale(1.12); }
.service-card:hover .card-content h4 { color: var(--primary-color); }

/* İÇ SAYFA GRID */
.inner-services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.inner-services-grid .service-card .card-content h4 { font-size: 0.8rem; }

/* CTA SECTION */
#cta { padding: 80px 0; background-color: var(--primary-color); position: relative; overflow: hidden; }
.cta-background-pattern { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0.1; background-image: radial-gradient(#ffffff 1px, transparent 1px); background-size: 20px 20px; }
.cta-container { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; color: var(--white); }
.cta-text h2 { font-family: var(--font-hero); font-size: 2.2rem; margin-bottom: 15px; }
.cta-buttons { display: flex; gap: 20px; align-items: center; }

/* BUTONLAR */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 32px; border-radius: 50px; font-weight: 700; font-family: var(--font-hero); transition: var(--transition-standard); cursor: pointer; white-space: nowrap; border: none; }
.btn-primary { background-color: var(--white); color: var(--primary-color); border: 2px solid var(--white); }
.btn-primary:hover { background-color: transparent; color: var(--white); }
.btn-primary i { margin-left: 8px; transition: transform 0.3s ease; }
.btn-primary:hover i { transform: translateX(6px); }
.multiline-btn { background-color: transparent; color: var(--white); border: 2px solid var(--white); padding: 10px 28px; height: auto; gap: 15px; }
.multiline-btn:hover { background-color: var(--white); color: var(--primary-color); }
.multiline-btn i { font-size: 1.5rem; transition: transform 0.3s ease; }
.multiline-btn:hover i { transform: rotate(-15deg) scale(1.1); }
.btn-text-group { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.btn-label { font-size: 0.8rem; font-weight: 400; opacity: 0.9; }
.btn-number { font-size: 1.1rem; font-weight: 700; }
.w-100 { width: 100%; }

/* FOOTER */
.site-footer { background-color: var(--footer-bg); color: var(--text-light); padding-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1.2fr 1.4fr; gap: 40px; padding-bottom: 60px; }
.footer-logo { height: 90px; margin-bottom: 20px; }
.footer-col h4 { color: var(--white); font-family: var(--font-hero); font-size: 1.2rem; margin-bottom: 25px; }
.footer-links a:hover { color: var(--white); padding-left: 5px; }
.footer-contact li { display: flex; gap: 15px; margin-bottom: 15px; }
.social-icons { display: flex; gap: 15px; }
.social-icons a { width: 40px; height: 40px; background: rgba(255,255,255,0.1); color: var(--white); display: flex; justify-content: center; align-items: center; border-radius: 50%; transition: 0.3s; }
.social-icons a:hover { background: var(--primary-color); transform: translateY(-3px); }
.footer-bottom { background: rgba(0,0,0,0.2); padding: 20px 0; text-align: center; font-size: 0.9rem; }

/* SAYFA BAŞLIKLARI */
.page-header { background-image: url('images/hero.jpg'); background-size: cover; background-position: center; height: 180px; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; margin-top: 120px; }
.header-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 11, 59, 0.85); }
.header-content { position: relative; z-index: 2; color: var(--white); }
.header-content h1 { font-family: var(--font-hero); font-size: 2rem; margin-bottom: 5px; }
.header-content p { font-size: 0.9rem; opacity: 0.8; }

/* HAKKIMIZDA & FORM */
.about-split-section { padding: 80px 0; background-color: var(--white); }
.about-grid-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: flex-start; }
.sub-title { color: var(--primary-color); font-weight: 700; letter-spacing: 1px; margin-bottom: 10px; display: block; font-size: 0.9rem; }
.about-content h2 { font-family: var(--font-hero); font-size: 2rem; line-height: 1.3; margin-bottom: 20px; color: var(--text-dark); }
.about-content h3 { font-size: 1.3rem; color: var(--primary-color); margin: 25px 0 15px; font-family: var(--font-hero); }
.about-content p { color: var(--text-dark); margin-bottom: 15px; font-size: 1rem; opacity: 0.9; }
.about-list { margin-bottom: 25px; }
.about-list li { margin-bottom: 10px; display: flex; gap: 10px; align-items: center; }
.about-list li i { color: var(--primary-color); }
.vision-box { background-color: var(--secondary-color); padding: 20px; border-left: 4px solid var(--primary-color); border-radius: 4px; font-style: italic; color: var(--text-dark); }

/* Form Kartı */
.form-card { background-color: var(--secondary-color); padding: 35px; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); border-top: 5px solid var(--primary-color); }
.form-card h3 { font-family: var(--font-hero); font-size: 1.5rem; color: var(--primary-color); margin-bottom: 5px; }
.form-card p { margin-bottom: 25px; color: var(--text-light); font-size: 0.9rem; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 0.9rem; color: var(--text-dark); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 8px; font-family: var(--font-body); font-size: 0.95rem; transition: var(--transition-standard); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(0, 11, 59, 0.1); }

/* İLETİŞİM */
.contact-section { padding: 80px 0; background-color: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info h2 { font-family: var(--font-hero); font-size: 2.2rem; color: var(--text-dark); margin-bottom: 20px; line-height: 1.3; }
.contact-info p { color: var(--text-light); margin-bottom: 30px; }
.info-items { display: flex; flex-direction: column; gap: 30px; }
.info-item { display: flex; align-items: flex-start; gap: 20px; }
.info-item .icon-box { width: 60px; height: 60px; background-color: var(--secondary-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary-color); font-size: 1.5rem; flex-shrink: 0; transition: var(--transition-standard); }
.info-item:hover .icon-box { background-color: var(--primary-color); color: var(--white); transform: translateY(-5px); }
.info-text h5 { font-family: var(--font-hero); font-size: 1.1rem; color: var(--text-dark); margin-bottom: 5px; }
.info-text p, .info-text a { color: var(--text-light); font-size: 1rem; line-height: 1.6; }
.info-text a:hover { color: var(--primary-color); text-decoration: underline; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.map-section { width: 100%; height: 450px; line-height: 0; }
.map-section iframe { filter: grayscale(0%); transition: filter 0.3s; }

/* BÖLGESEL ÇÖZÜMLER (YENİ LİNK TASARIMI - GÜNCELLENDİ) */
.regional-service-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Desktopta yan yana 2'li */
    gap: 30px;
    margin-top: 20px;
    margin-bottom: 40px;
}

.regional-service-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Link Stili (Buton değil, metin link) */
.regional-link {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-standard);
    cursor: pointer;
}

.regional-link i {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

/* Hover: İkon sağa kayar, yazı altı çizilir */
.regional-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.regional-link:hover i {
    transform: translateX(5px);
}

/* Açıklama Metni */
.regional-desc {
    font-size: 0.95rem;
    color: #64748b; /* Gri ton */
    line-height: 1.5;
    margin-left: 28px; /* İkonun altını boş bırakmak için girinti */
}

/* RESPONSIVE */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.hamburger .bar { width: 25px; height: 3px; background-color: var(--white); transition: all 0.3s; }
.site-header.scrolled .hamburger .bar { background-color: var(--text-dark); }
.mobile-nav-menu { position: fixed; top: 0; right: -100%; width: 80%; height: 100vh; background: var(--white); z-index: 1001; padding: 100px 30px; transition: 0.4s; box-shadow: -5px 0 15px rgba(0,0,0,0.1); }
.mobile-nav-menu.active { right: 0; }
.mobile-nav-menu ul { display: flex; flex-direction: column; gap: 20px; }
.mobile-nav-menu a { font-size: 1.2rem; color: var(--text-dark); font-weight: 600; }

@media (max-width: 1200px) {
    .all-services-grid { grid-template-columns: repeat(5, 1fr); }
    .inner-services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
    .stats-grid, .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 992px) {
    .about-grid-layout, .contact-grid { grid-template-columns: 1fr; gap: 50px; }
    .page-header { height: 140px; }
    .regional-service-list { grid-template-columns: 1fr; gap: 20px; } /* Mobilde liste tek sütun */
}
@media (max-width: 768px) {
    .hamburger { display: flex; z-index: 1002; }
    .hamburger.active .bar { background-color: var(--text-dark); }
    .desktop-nav { display: none; }
    .phone-btn span { display: none; }
    #hero { height: 80vh; }
    .hero-content h1 { font-size: 1.8rem; min-height: 100px; }
    .stats-grid, .footer-grid { grid-template-columns: 1fr; }
    .cta-container { flex-direction: column; text-align: center; gap: 30px; }
    .cta-buttons { flex-direction: column; width: 100%; }
    .btn, .multiline-btn { width: 100%; justify-content: center; }
    .btn-text-group { align-items: center; }
    .container-fluid { padding: 0 15px; } 
    .all-services-grid { grid-template-columns: repeat(4, 1fr) !important; gap: 8px; }
    .card-image { height: 70px; }
    .card-content h4 { font-size: 0.65rem; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 500px) {
     .all-services-grid { grid-template-columns: repeat(3, 1fr) !important; }
     .inner-services-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
#back-to-top { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background: var(--primary-color); color: var(--white); border: none; border-radius: 50%; opacity: 0; visibility: hidden; transition: 0.3s; cursor: pointer; z-index: 99; }
#back-to-top.show { opacity: 1; visibility: visible; }
.fade-up { opacity: 0; transform: translateY(30px); transition: 0.8s; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* =========================================
   MEGA MENÜ (AÇILIR KUTU) TASARIMI
   ========================================= */

/* Dropdown Tetikleyici (Linkin kapsayıcısı) */
.desktop-nav .has-dropdown {
    position: relative; /* Menü buna göre hizalanacak */
    padding-bottom: 20px; /* Fareyi aşağı indirirken menü kapanmasın diye */
    margin-bottom: -20px; 
}

/* Mega Menü Kutusu (Başlangıçta Gizli) */
.mega-menu {
    position: absolute;
    top: 100%; /* Linkin tam altından başla */
    left: 50%;
    transform: translateX(-50%) translateY(20px); /* Ortala ve biraz aşağıda tut */
    width: 950px; /* Kutunun genişliği */
    background-color: var(--white);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border-top: 4px solid var(--primary-color); /* Üstte şık mavi çizgi */
    border-radius: 0 0 8px 8px;
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1100;
    text-align: left; /* Yazıları sola yasla */
}

/* Hover Olunca Göster */
.has-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0); /* Yerine otursun */
}

/* İçerik Düzeni (Izgara Sistemi) */
.mega-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Eşit Sütun */
    gap: 30px;
}

/* Sütun Başlıkları */
.mega-col h4 {
    color: var(--primary-color);
    font-family: var(--font-hero);
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-weight: 700;
}

/* Link Listesi Ayarları */
.mega-col ul {
    display: flex; 
    flex-direction: column !important; /* Alt alta diz */
    gap: 8px !important;
    padding: 0;
    margin: 0;
}

/* Link Stilleri */
.mega-col ul li a {
    color: var(--text-dark) !important; /* Siyah yazı */
    font-size: 0.9rem;
    font-weight: 400 !important;
    padding: 0 !important;
    text-transform: none;
    transition: 0.2s;
    display: block;
}

/* Alt Çizgi Animasyonunu İptal Et (Normal menüden gelen miras) */
.mega-col ul li a::after {
    display: none; 
}

/* Hover Efekti */
.mega-col ul li a:hover {
    color: var(--primary-color) !important;
    padding-left: 5px !important; /* Sağa kayma efekti */
    font-weight: 600 !important;
}

/* Küçük Ekranlarda (Tablet/Laptop) Mega Menüyü Gizle */
/* Mobilde zaten senin yan menün (hamburger) devreye giriyor */
@media (max-width: 1024px) {
    .mega-menu {
        display: none !important; 
    }
}