/* ======================= 1. Ümumi Sıfırlama və Tema Dəyişkənləri ======================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Yeni, daha peşəkar Mavi (Primary) */
    --primary-color: #0077B6;    
    --accent-color: #F8961E;     /* Narıncı (İkinci Vurğu) */
    --white-color: #ffffff;

    /* AÇIQ TEMA (DEFAULT) */
    --bg-main: #ffffff;           
    --bg-secondary: #f4f6f9;      /* Daha yumşaq boz fon */
    --text-primary: #1f2937;      
    --text-secondary: #6b7280;    
    --border-color: #e5e7eb;      
    --header-shadow: rgba(0,0,0,0.08); 
    --card-bg: #ffffff;
    --card-shadow: rgba(0, 0, 0, 0.05);
}

/* DARK TEMA TƏTBİQ EDİLİR */
body.dark-theme {
    --bg-main: #171717;           
    --bg-secondary: #262626;      
    --text-primary: #e5e5e5;      
    --text-secondary: #a3a3a3;    
    --border-color: #404040;      
    --header-shadow: rgba(255, 255, 255, 0.05); 
    --card-bg: #262626;
    --card-shadow: rgba(255, 255, 255, 0.03);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-main);
    line-height: 1.7; 
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden; /* Yatay kaymayı önler */
}

/* Sayfa İçeriğini Ortalar ve Genişliği Belirler */
.container {
    width: 90%;
    max-width: 1280px; 
    margin: 0 auto;
    padding: 0 15px; /* Kenar boşluğu */
}

/* ======================= 2. TIPOGRAFIYA ve Genel Stil ======================= */
h1, h2, h3, h4 {
    font-weight: 800; 
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 0.5em;
}
h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.7rem; }
h4 { font-size: 1.2rem; }

.lead-text {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 800px;
}

.section-title {
    margin-bottom: 10px;
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Vurğu Renkleri */
.logo-text-highlight,
.page-title strong,
.section-title strong,
.read-more,
.contact-link {
    color: var(--primary-color);
}
a {
    text-decoration: none;
    transition: color 0.3s;
}

/* Yardımcı Sınıflar */
.responsive-img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}
.text-center { text-align: center; }
.text-white { color: var(--white-color) !important; }
.mt-3 { margin-top: 20px; }


/* ======================= 3. HEADER ve NAVIGASYON ======================= */
.main-header {
    background-color: var(--bg-main);
    box-shadow: 0 4px 12px var(--header-shadow); 
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo { 
    font-size: 2rem; 
    font-weight: 800;
    color: var(--text-primary);
}

/* Navigasyon (Masaüstü) */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px; 
}
.main-nav a {
    color: var(--text-primary);
    padding: 8px 0;
    position: relative;
    display: inline-block;
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}
.main-nav a:hover::after {
    width: 100%;
}

/* Dropdown Menü (Stil için header.html'deki yapıyı kullanır) */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px var(--header-shadow);
    list-style: none;
    padding: 10px 0;
    border-radius: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu li {
    padding: 0;
}
.dropdown-menu a {
    padding: 8px 15px;
    display: block;
}
.dropdown-menu a:hover {
    background-color: var(--bg-secondary);
    color: var(--primary-color);
}
.dropdown-menu a::after {
    display: none;
}

/* Header Aksiyonları (Tema + Buton) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Tema Düğmesi Stili (Daha belirgin) */
.theme-switch { display: none; }
.toggle-container {
    cursor: pointer;
    width: 50px;
    height: 25px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    position: relative;
    transition: background-color 0.3s;
}
.theme-icon {
    position: absolute;
    font-size: 14px;
    top: 50%;
    transform: translateY(-50%);
}
.sun { left: 5px; opacity: 1; transition: opacity 0.3s; }
.moon { right: 5px; opacity: 0; transition: opacity 0.3s; }
.ball {
    width: 21px;
    height: 21px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    top: 1px;
    left: 1px;
    transition: transform 0.3s, background-color 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.theme-switch:checked + .toggle-container .ball {
    transform: translateX(25px);
}
.theme-switch:checked + .toggle-container .sun {
    opacity: 0;
}
.theme-switch:checked + .toggle-container .moon {
    opacity: 1;
}
/* Dark theme için top rengi değişimi */
body.dark-theme .theme-switch:checked + .toggle-container .ball {
    background-color: var(--accent-color);
}

/* ======================= 4. BUTONLAR (Buttons) ======================= */
.btn {
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px; 
    text-align: center;
    cursor: pointer;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
}
.btn-sm {
    padding: 8px 18px;
    font-size: 0.9rem;
}

/* Primary Buton (Mavi) */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-color);
    box-shadow: 0 4px 10px rgba(0, 119, 182, 0.3);
}
.btn-primary:hover {
    background-color: #005f96;
    border-color: #005f96;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 119, 182, 0.4);
}

/* Secondary Buton (Kontur) */
.btn-secondary {
    background-color: transparent;
    border-color: var(--text-secondary);
    color: var(--text-primary);
    box-shadow: none;
}
.btn-secondary:hover {
    background-color: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px var(--header-shadow);
}

/* Accent Buton (Narıncı - CTA için) */
.btn-accent { 
    background-color: var(--accent-color);
    color: var(--text-primary); /* veya tünd tema için white-color */
    border-color: var(--accent-color);
    box-shadow: 0 4px 10px rgba(248, 150, 30, 0.4);
}
.btn-accent:hover {
    background-color: #d88017;
    border-color: #d88017;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(248, 150, 30, 0.5);
}


/* ======================= 5. SECTION'LAR ve Layout ======================= */
section {
    padding: 100px 0; 
    transition: background-color 0.3s;
}

/* HERO SECTION */
.hero-section {
    background-color: var(--bg-secondary);
    padding: 150px 0;
}
.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
}
.hero-text {
    flex: 1;
}
.hero-image {
    flex: 1;
    text-align: right;
}
.hero-ctas {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

/* ABOUT SECTION */
.about-section {
    background-color: var(--bg-main);
}
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.about-item {
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s;
    background-color: var(--card-bg);
}
.about-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--card-shadow);
}
.about-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* CTA SECTION (Hero ve Footer arasındaki önemli çağrı) */
.cta-section {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 80px 0;
    text-align: center;
}
.cta-section .section-title, .cta-section .section-subtitle {
    color: var(--white-color);
}
.cta-section .section-subtitle {
    margin-bottom: 30px;
}

/* CONTACT SECTION */
.contact-section {
    padding: 80px 0;
}
.contact-link {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 10px 0;
    display: inline-block;
}


/* ======================= 6. HİZMET SAYFALARI (Services Pages) ======================= */

/* Hizmet Hero Başlığı */
.page-hero {
    background-color: var(--bg-secondary);
    padding: 100px 0 70px;
}
.page-title {
    font-size: 3rem;
}

/* Hizmet Kartları (xidmetler.html) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}
.service-card {
    padding: 30px;
    border-radius: 12px; 
    box-shadow: 0 8px 20px var(--card-shadow);
    transition: all 0.3s;
    background-color: var(--card-bg);
    text-decoration: none;
    color: var(--text-secondary);
    display: block; /* Kartın tamamı tıklanabilir */
    border-left: 5px solid transparent; /* Vurğu için hazırlık */
}
.service-link:hover {
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    border-left-color: var(--primary-color); /* Hover Vurğu */
    transform: translateY(-8px);
    color: var(--text-primary);
}
.service-link:hover p {
    color: var(--text-secondary); /* Hover'da açıklama rengi değişmesin */
}
.service-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
    color: var(--primary-color);
}
.service-card h4 {
    margin-top: 0;
    color: var(--text-primary);
}
.read-more {
    display: block;
    margin-top: 15px;
    font-weight: 600;
}
.service-disabled {
    opacity: 0.6; /* Tezliklə olanları solğun göstər */
    cursor: default;
}

/* Hizmet Detayları (branding.html, consult.html vb.) */
.service-details {
    padding: 80px 0;
}
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.detail-item {
    border-left: 6px solid var(--primary-color); 
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--card-shadow);
    background-color: var(--card-bg);
}
.detail-item h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 5px;
}


/* ======================= 7. FOOTER ======================= */
.main-footer {
    background-color: var(--bg-secondary);
    padding-bottom: 0;
}
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
}
.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}
.footer-col ul {
    list-style: none;
}
.footer-col ul a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: block;
    padding: 5px 0;
}
.footer-col ul a:hover {
    color: var(--primary-color);
    padding-left: 5px;
    transform: translateX(5px);
}
.footer-bottom {
    padding: 15px 0;
}
.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.copyright {
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.language-switch a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
}
.language-switch .current-lang {
    color: var(--primary-color);
    font-weight: 700;
}


/* ======================= 8. MOBİL UYUMLULUK (Responsiveness) ======================= */

/* Tablet ve Büyük Mobil Cihazlar (768px'den küçük) */
@media (max-width: 1024px) {
    .hero-content { 
        flex-direction: column; 
        text-align: center; 
    }
    .hero-image { 
        order: -1; 
        margin-bottom: 30px;
        text-align: center;
    }
    .hero-text h1 { font-size: 3.2rem; }
    .hero-ctas { 
        justify-content: center; 
    }
}

/* Mobil Cihazlar (768px'den küçük) */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    /* Header (Mobil Menü Sistemi) */
    .menu-toggle {
        display: block;
        cursor: pointer;
        width: 30px;
        height: 20px;
        position: relative;
        z-index: 1010;
        border: none;
        background: transparent;
    }
    .bar {
        display: block;
        width: 100%;
        height: 3px;
        margin: 5px 0;
        background-color: var(--text-primary);
        transition: all 0.3s ease-in-out;
    }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    
    .main-nav {
        position: fixed;
        top: 75px; 
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-main);
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        z-index: 999;
        padding-top: 20px;
        box-shadow: inset 0 5px 10px var(--header-shadow);
    }
    .main-nav.active {
        transform: translateX(0);
    }
    .main-nav ul {
        flex-direction: column;
        padding: 0 30px;
    }
    .main-nav li {
        border-bottom: 1px solid var(--border-color);
    }
    .main-nav a {
        padding: 15px 0;
        display: block;
        font-size: 1.1rem;
        font-weight: 600;
    }
    .main-nav a::after { display: none; }
    .header-actions { margin-left: auto; }
    .contact-btn { display: none; } 

    /* Dropdown Menü (Mobilde açılır) */
    .dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        box-shadow: none;
        border: none;
        background-color: var(--bg-secondary);
        padding: 0 0 0 20px;
        margin-top: 5px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    /* (JS ile dropdown:active sınıfı eklenebilir) */


    /* Hero */
    .hero-section { padding: 80px 0 40px; }
    .hero-ctas { flex-direction: column; }
    .btn-lg { width: 100%; }
    
    /* Grid'ler */
    .about-grid, .services-grid, .details-grid { 
        grid-template-columns: 1fr; 
    }
    
    /* Footer */
    .footer-content { 
        grid-template-columns: 1fr; 
        text-align: center; 
        gap: 30px;
    }
    .footer-col ul { 
        padding-top: 10px;
        text-align: center;
    }
    .footer-col ul a { 
        padding: 3px 0; 
        display: inline-block;
    }
    .footer-flex { 
        flex-direction: column; 
        gap: 10px; 
    }
}

/* ======================= KURSOR PROBLEMLƏRİNİN HƏLLİ ======================= */
/* Bu kod, bütün əsas elementlərdəki xüsusi kursoru default vəziyyətə sıfırlayır. */

html, body, .hero-section, .main-header, section {
    cursor: default !important;
}

/* Kursoru linklərin üzərində saxlayır (Əgər sizdə hər şey pointer deyilsə) */
a, button, .btn, .menu-toggle, .toggle-container {
    cursor: pointer !important;
}

/* =========================================================================== */

/* style.css FAYLININ ƏN SONUNA ƏLAVƏ EDİN */

/* Bütün kursor təyinatlarını ləğv edir */
* {
    cursor: default !important;
}

/* Kursorları link və düymələrdə bərpa edir */
a, button, .btn, .menu-toggle, .toggle-container, [onclick] {
    cursor: pointer !important;
}