/* ==========================================================================
   eetdesign - Dynamic Dark/Light Theme & Orange Aesthetics
   A Subsidiary of NETMEF LLC
   ========================================================================== */

:root {
    /* Dark Theme (Default) */
    --bg-main: #0a0a0a;
    --bg-card: #141414;
    --bg-card-hover: #1e1e1e;
    --bg-header: rgba(10, 10, 10, 0.85);
    --bg-footer: #050505;
    --accent-orange: #ff5e00;
    --accent-orange-glow: rgba(255, 94, 0, 0.35);
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --border-color: rgba(255, 255, 255, 0.08);
    --input-bg: #0e0e0e;
    --modal-bg: rgba(0, 0, 0, 0.9);
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
}

[data-theme="light"] {
    /* Light Theme Overrides */
    --bg-main: #f5f5f7;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f0f3;
    --bg-header: rgba(245, 245, 247, 0.88);
    --bg-footer: #e8e8ed;
    --accent-orange: #ff5e00;
    --accent-orange-glow: rgba(255, 94, 0, 0.25);
    --text-main: #111111;
    --text-muted: #666666;
    --border-color: rgba(0, 0, 0, 0.08);
    --input-bg: #ffffff;
    --modal-bg: rgba(255, 255, 255, 0.92);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* ==========================================================================
   HEADER & MASAÜSTÜ NAVİGASYON
   ========================================================================== */

.site-header {
    background: var(--bg-header);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
    transition: background 0.4s ease, border-color 0.4s ease;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Logo */
.brand-logo {
    display: flex;
    align-items: center;
}

.brand-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo .title {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--text-main);
    line-height: 1;
}

.brand-logo .title span {
    color: var(--accent-orange);
}

.brand-logo .sub-label {
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 4px;
}

.site-logo-img {
    max-height: 42px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.footer-logo-img {
    max-height: 38px;
    margin-bottom: 8px;
}

.brand-logo a:hover .site-logo-img {
    transform: scale(1.03);
}

/* Masaüstü Navigasyon Kapsayıcı */
.nav-container {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* Ana Linkler (Ortada) */
.main-nav {
    display: flex;
    align-items: center;
    gap: 25px;
    list-style: none;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 6px 0;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--accent-orange);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-orange);
    box-shadow: 0 0 10px var(--accent-orange-glow);
}

/* Sağ Araç Kapsayıcısı */
.header-right-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Dil ve Tema Butonları Grubu (En Sağda) */
.header-tools {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
}

.lang-switch a {
    color: var(--text-muted);
}

.lang-switch a.active,
.lang-switch a:hover {
    color: var(--accent-orange);
}

.theme-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--accent-orange);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.theme-btn:hover {
    background: var(--bg-card-hover);
    transform: scale(1.08);
}

.menu-toggle {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 1.2rem;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
}

/* ==========================================================================
   HERO & BÖLÜMLER
   ========================================================================== */

.hero-section {
    padding: 70px 0 30px 0;
    text-align: center;
    position: relative;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

.hero-section h1 span {
    color: var(--accent-orange);
}

.hero-section p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 680px;
    margin: 0 auto 35px auto;
}

/* Buttons */
.btn-primary {
    background: var(--accent-orange);
    color: #000;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 30px;
    box-shadow: 0 4px 20px var(--accent-orange-glow);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--accent-orange-glow);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 30px;
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-orange);
}

/* Services & Filters */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 60px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 35px 25px;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-orange);
}

.service-card .icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 94, 0, 0.12);
    color: var(--accent-orange);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.filter-wrapper {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 30px 0 50px 0;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-orange);
    color: #000;
    border-color: var(--accent-orange);
    box-shadow: 0 0 15px var(--accent-orange-glow);
    font-weight: 700;
}

/* Media Grid & Items */
.media-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 80px;
}

.grid-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.grid-item:hover {
    transform: translateY(-8px);
    border-color: var(--accent-orange);
    box-shadow: 0 10px 30px rgba(255, 94, 0, 0.18);
}

.thumb-container {
    width: 100%;
    aspect-ratio: 4/3;
    position: relative;
    overflow: hidden;
}

.thumb-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.grid-item:hover .thumb-container img {
    transform: scale(1.08);
}

.overlay-info {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 10%, transparent 80%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #ffffff;
}

.grid-item:hover .overlay-info {
    opacity: 1;
}

.play-icon-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: var(--accent-orange);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 0 20px var(--accent-orange-glow);
}

/* Modal Pop-ups */
.custom-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: var(--modal-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content-wrapper {
    position: relative;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
}

.modal-content-wrapper img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.close-modal-btn {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--text-main);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal-btn:hover {
    color: var(--accent-orange);
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 80px;
    background: var(--bg-card);
    padding: 45px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.contact-info h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 22px;
}

.info-item i {
    width: 45px;
    height: 45px;
    background: rgba(255, 94, 0, 0.12);
    color: var(--accent-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.custom-form .form-group {
    margin-bottom: 20px;
}

.custom-form input,
.custom-form textarea {
    width: 100%;
    padding: 15px 18px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-main);
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s ease;
}

.custom-form input:focus,
.custom-form textarea:focus {
    border-color: var(--accent-orange);
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--accent-orange);
    color: #000;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    box-shadow: 0 0 25px var(--accent-orange-glow);
    transform: translateY(-2px);
}

.alert-message {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 0.95rem;
}

.alert-message.success {
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid #2ecc71;
    color: #2ecc71;
}

.alert-message.error {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid #e74c3c;
    color: #e74c3c;
}

/* ==========================================================================
   FOOTER & SOSYAL MEDYA
   ========================================================================== */

.site-footer {
    background: var(--bg-footer);
    border-top: 1px solid var(--border-color);
    padding: 50px 0 30px 0;
    transition: background 0.4s ease, border-color 0.4s ease;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.site-footer .brand-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.site-footer .brand-logo a {
    display: inline-block;
    margin-bottom: 6px;
}

.site-footer .sub-label {
    display: block;
    margin-top: 2px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
}

.social-links a:hover {
    background: var(--accent-orange);
    color: #000;
    border-color: var(--accent-orange);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 58px;
    height: 58px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
    color: #ffffff;
}

/* Light Mode Logo Filter */
[data-theme="light"] .site-logo-img {
    filter: invert(1) hue-rotate(180deg);
}

/* ==========================================================================
   RESPONSIVE KONTROLLER (MOBİL & TABLET UYUMU)
   ========================================================================== */

@media (max-width: 1024px) {
    .media-grid { grid-template-columns: repeat(3, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    /* Header Tek Satır Zorlaması */
    .header-inner {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 8px 0 !important;
    }

    /* Sol Taraf: Logo */
    .brand-logo {
        margin: 0 !important;
    }

    .site-logo-img {
        max-height: 32px !important;
    }

    /* Sağ Taraf: [TR|EN] + [🌙] + [☰] Tek Satırda Yan Yana */
    .header-right-group {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        margin: 0 !important;
    }

    .header-tools {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 6px !important;
    }

    /* Buton Boyutlarını Kibarlaştır */
    .lang-switch {
        padding: 4px 8px !important;
        font-size: 0.75rem !important;
    }

    .theme-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.85rem !important;
    }

    .menu-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 6px 10px !important;
        font-size: 1rem !important;
        height: 32px !important;
    }

    /* Mobil Menü Açılır Alanı (Sadece Sayfa Linkleri) */
    .nav-container {
        position: fixed !important;
        top: 60px !important;
        left: 0 !important;
        width: 100% !important;
        background: var(--bg-main) !important;
        border-bottom: 1px solid var(--border-color) !important;
        flex-direction: column !important;
        padding: 20px !important;
        gap: 15px !important;
        display: none !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
        z-index: 999 !important;
    }

    .nav-container.active {
        display: flex !important;
    }

    .main-nav {
        flex-direction: column !important;
        width: 100% !important;
        text-align: center !important;
        gap: 16px !important;
    }

    .main-nav a {
        font-size: 1.1rem !important;
        display: block !important;
    }

    /* Diğer Mobil Alanlar */
    .services-grid, .contact-wrapper { grid-template-columns: 1fr; }
    .hero-section h1 { font-size: 2.3rem; }
}

@media (max-width: 768px) {
    .media-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-logo-img { max-height: 30px; }
}




/* Mobil Buton Grubu ve Kırılma Düzeltmesi */
.cta-group {
    display: flex;
    flex-direction: column; /* Mobilde butonları alt alta alarak patlamayı engeller */
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 0 15px;
}

.btn-primary, 
.btn-secondary {
    width: 100%; /* Mobilde butonları tam genişlik yapıp şık gösterir */
    max-width: 320px; /* Çok devasa olmaması için sınır */
    justify-content: center;
    text-align: center;
    white-space: nowrap; /* Metnin asla alt satıra kırılmasını engeller */
    padding: 12px 20px;
}

@media (max-width: 480px) {
    .media-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   YENİ MOBİL HEADER DÜZENİ (Üstte Logo & Araçlar, Alt Ortada Menü Butonu)
   ========================================================================== */

.header-top-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-toggle-wrapper {
    display: none;
}

@media (max-width: 900px) {
    /* Header Esnekliğini Dikey Sıraya Çevir */
    .header-inner {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 10px 0 !important;
    }

    /* Üst Sıra: Sol Logo, Sağ Dil/Tema */
    .header-top-row {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    /* Alt Sıra: Ortalanmış Hamburger Buton Kapsayıcısı */
    .mobile-toggle-wrapper {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        margin-top: 4px !important;
    }

    .menu-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 8px 16px !important;
        font-size: 1.1rem !important;
        border-radius: 8px !important;
    }

    /* Mobil Açılır Menü Konumlandırması */
    .nav-container {
        position: fixed !important;
        top: 110px !important; /* İki satırlı header'ın altına hizalama */
        left: 0 !important;
        width: 100% !important;
        background: var(--bg-main) !important;
        border-bottom: 1px solid var(--border-color) !important;
        flex-direction: column !important;
        padding: 20px !important;
        gap: 15px !important;
        display: none !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
        z-index: 999 !important;
    }

    .nav-container.active {
        display: flex !important;
    }

    .main-nav {
        flex-direction: column !important;
        width: 100% !important;
        text-align: center !important;
        gap: 16px !important;
    }

    .main-nav a {
        font-size: 1.1rem !important;
        display: block !important;
    }
}

.footer-bottom a {
    text-decoration: none !important;
}

/* Masaüstü: Logo ve Dil/Tema Butonlarını Yan Yana Tut */
.header-brand-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Mobil için Ortalanmış Buton */
.mobile-toggle-wrapper {
    display: none;
}

/* Mobil Görünüm Ayarları */
@media (max-width: 900px) {
    .header-inner {
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
    }

/* --- HEADER DESKTOP FORCE FLEX (HER KOŞULDA YAN YANA) --- */
.header-brand-group {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 20px !important;
}

.header-brand-group .brand-logo,
.header-brand-group .header-tools {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
}

/* Mobil Ekran Kontrolü (Sadece 900px ve Altında) */
@media (max-width: 900px) {
    .header-brand-group {
        width: 100% !important;
        justify-content: space-between !important;
    }
}

    .mobile-toggle-wrapper {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
    }

    .nav-container {
        top: 110px !important;
    }
}