/* =============================================
   main.css — Megatek Güvenlik
   Tüm sayfalarda ortak temel stiller
   ============================================= */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0a0a0a;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid #1e1e1e;
}

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

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 64px;
    width: auto;
}

.nav-brand {
    flex-shrink: 0;
}

/* === NAV MENU (Desktop) === */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    flex-wrap: nowrap;
}

.nav-link {
    padding: 8px 9px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: #e63946;
}

/* === NAV SEARCH === */
.nav-search {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 8px;
    flex-shrink: 0;
}

.nav-search input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    padding: 8px 36px 8px 16px;
    color: #fff;
    font-size: 0.83rem;
    width: 160px;
    outline: none;
    transition: all 0.3s ease;
}

.nav-search input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.nav-search input:focus {
    width: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.nav-search button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    transition: color 0.2s;
    font-size: 0.85rem;
}

.nav-search button:hover {
    color: #fff;
}

/* === NAV ACTIONS (Ücretsiz Keşif butonu) === */
.nav-actions {
    flex-shrink: 0;
    margin-left: 8px;
}

.btn-nav {
    background: #e63946 !important;
    color: #fff !important;
    padding: 10px 16px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 0.84rem !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    line-height: 1.2;
    text-decoration: none !important;
    transition: background 0.2s;
}

.btn-nav:hover {
    background: #c62e3a !important;
}

/* === HAMBURGER (Mobil) === */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    z-index: 5200;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}

/* Hamburger X animasyonu */
.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* === MOBİL MENU GÖRÜNÜRLÜK SINIFLARI === */
.mobile-nav-item {
    display: none;
}
.desktop-nav-item {
    display: flex;
    align-items: center;
}

/* === SAYFA İÇİ STILLER === */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #0a0a0a 0%, rgba(230, 57, 70, 0.06) 50%, #0a0a0a 100%);
    border-bottom: 1px solid #1e1e1e;
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #e63946;
    background: rgba(230, 57, 70, 0.1);
    border: 1px solid rgba(230, 57, 70, 0.2);
    margin-bottom: 16px;
}

.text-red {
    color: #e63946;
}

.card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 28px;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-q {
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.faq-a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    line-height: 1.8;
}

.cta-bar {
    position: sticky;
    bottom: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.97);
    border-top: 1px solid rgba(230, 57, 70, 0.3);
    padding: 14px 0;
    backdrop-filter: blur(20px);
}

/* === WHATSAPP FLOAT BUTONU === */
@keyframes whatsapp-pulse {
    0%   { transform: scale(1);   box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
    50%  { transform: scale(1.08); box-shadow: 0 6px 28px rgba(37,211,102,0.6); }
    100% { transform: scale(1);   box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
}

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    text-decoration: none;
    animation: whatsapp-pulse 2.5s ease-in-out infinite;
}

/* === MOBİL RESPONSIVE === */
@media (max-width: 1150px) {
    /* Navbar backdrop-filter mobilde containment trap oluştururdu, düzeltiyoruz */
    .navbar {
        background: rgba(10, 10, 10, 0.97);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    /* Hamburger göster */
    .hamburger {
        display: flex;
    }

    /* Desktop öğelerini gizle */
    .desktop-nav-item {
        display: none !important;
    }

    /* Mobil nav menüsü — tam ekran overlay */
    .nav-menu {
        display: none;
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100vh;
        z-index: 5000;
        background: rgba(5, 5, 5, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 90px 24px 40px;
        overflow-y: auto;
        gap: 4px;
    }

    .nav-menu.open {
        display: flex;
    }

    /* Mobil menü içindeki link boyutları */
    .nav-link {
        padding: 12px 20px;
        font-size: 1rem;
        text-align: center;
    }

    /* Mobil'e özel ekstra öğeler (arama + buton) */
    .mobile-nav-item {
        display: flex;
        width: 100%;
        justify-content: center;
        padding: 8px 15px;
    }
}

@media (max-width: 768px) {
    .navbar {
        z-index: 5100;
    }

    .hero {
        padding-top: clamp(110px, 18vw, 140px);
    }

    .hero-grid {
        grid-template-columns: 1fr !important;
    }
}
