/* =========================================================
   NAVBAR
========================================================= */

.header {
    position: fixed;

    top: 24px;
    left: 0;

    width: 100%;

    z-index: 9999;

    transition:
        top .3s ease;
}


.navbar {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 18px 28px;

    background:
        rgba(255,255,255,.80);

    backdrop-filter:
        blur(20px);

    -webkit-backdrop-filter:
        blur(20px);

    border:
        1px solid rgba(255,255,255,.60);

    border-radius: 24px;

    box-shadow:
        0 15px 40px rgba(0,0,0,.08);
}


/* =========================================================
   LOGO
========================================================= */

.logo {
    display: flex;

    align-items: center;

    text-decoration: none;

    flex-shrink: 0;
}


.logo img {
    width: 155px;

    height: auto;

    display: block;

    object-fit: contain;
}


/* =========================================================
   MASAÜSTÜ MENÜ
========================================================= */

.nav {
    display: flex;

    align-items: center;

    gap: 36px;
}


.nav a {
    position: relative;

    color: #374151;

    font-weight: 600;

    text-decoration: none;

    transition: .30s;
}


.nav a:hover {
    color: #2563EB;
}


.nav a.active {
    color: #2563EB;
}


.nav a::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;

    bottom: -8px;

    width: 0;
    height: 2px;

    background: #2563EB;

    border-radius: 10px;

    transition: .30s;
}


.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}


/* =========================================================
   BUTONLAR
========================================================= */

.nav-buttons {
    display: flex;

    align-items: center;

    gap: 14px;
}


.btn {
    padding: 14px 22px;

    border-radius: 16px;

    font-weight: 700;

    transition: .30s;
}


.btn-outline {
    background: #fff;

    border: 1px solid #E5E7EB;

    color: #111827;
}


.btn-outline:hover {
    background: #F3F4F6;
}


.btn-primary {
    background: #2563EB;

    color: #fff;

    box-shadow:
        0 15px 35px rgba(37,99,235,.25);
}


.btn-primary:hover {
    transform:
        translateY(-3px);
}


/* =========================================================
   MOBİL HAMBURGER
========================================================= */

.mobile-menu-btn {
    display: none;

    width: 44px;
    height: 44px;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    padding: 0;

    border: none;

    border-radius: 13px;

    background: #EEF4FF;

    color: #2563EB;

    font-size: 25px;

    line-height: 1;

    cursor: pointer;
}


/* =========================================================
   MOBİL MENÜ
========================================================= */

.mobile-menu {
    display: none;
}


/* =========================================================
   SCROLL
========================================================= */

.header.scrolled {
    top: 10px;
}


.header.scrolled .navbar {
    padding-top: 13px;
    padding-bottom: 13px;

    box-shadow:
        0 15px 40px rgba(0,0,0,.12);
}


/* =========================================================
   TELEFON
========================================================= */

@media (max-width: 700px) {

    .header {
        top: 10px;

        left: 0;

        width: 100%;

        padding:
            0 15px;
    }


    /* NAVBAR */

    .navbar {
        width: 100%;

        padding:
            12px 15px;

        border-radius: 18px;
    }


    /* LOGO */

    .logo img {
        width: 120px;
    }


    /* MASAÜSTÜ MENÜYÜ GİZLE */

    .nav {
        display: none !important;
    }


    /* MASAÜSTÜ BUTONLARI GİZLE */

    .nav-buttons {
        display: none !important;
    }


    /* HAMBURGERİ GÖSTER */

    .mobile-menu-btn {
        display: flex !important;
    }


    /* =====================================================
       MOBİL MENÜ
    ===================================================== */

    .mobile-menu {

        position: absolute;

        top:
            calc(100% + 8px);

        left: 0;

        width: 100%;

        display: flex;

        flex-direction: column;

        gap: 5px;

        padding: 12px;

        background:
            rgba(255,255,255,.97);

        backdrop-filter:
            blur(20px);

        -webkit-backdrop-filter:
            blur(20px);

        border:
            1px solid rgba(255,255,255,.8);

        border-radius: 18px;

        box-shadow:
            0 20px 50px rgba(0,0,0,.15);

        opacity: 0;

        visibility: hidden;

        pointer-events: none;

        transform:
            translateY(-10px);

        transition:
            opacity .25s ease,
            transform .25s ease,
            visibility .25s ease;

        z-index: 10000;
    }


    /* =====================================================
       MENÜ AÇIK
    ===================================================== */

    .mobile-menu.open {

        opacity: 1;

        visibility: visible;

        pointer-events: auto;

        transform:
            translateY(0);
    }


    /* =====================================================
       MOBİL MENÜ LİNKLERİ
    ===================================================== */

    .mobile-menu a {

        display: block;

        width: 100%;

        padding:
            14px 15px;

        border-radius: 12px;

        color: #374151;

        font-size: 15px;

        font-weight: 600;

        text-decoration: none;

        transition: .25s;
    }


    .mobile-menu a:hover {

        background: #EEF4FF;

        color: #2563EB;
    }


    /* AKTİF */

    .mobile-menu a.active {

        background: #EEF4FF;

        color: #2563EB;
    }


    /* DEMO KODU */

    .mobile-menu .mobile-demo {

        background: #2563EB;

        color: #FFFFFF;

        text-align: center;
    }


    .mobile-menu .mobile-demo:hover {

        background: #1D4ED8;

        color: #FFFFFF;
    }

}

/* =========================================================
   MOBİL MENÜ - SON OVERRIDE
   BUNU navbar.css DOSYASININ EN ALTINA KOY
========================================================= */

@media (max-width: 700px) {

    /* Header menüyü kesmesin */
    .header {
        position: fixed !important;

        top: 10px !important;
        left: 0 !important;

        width: 100% !important;

        padding: 0 15px !important;

        z-index: 99999 !important;

        overflow: visible !important;
    }


    /* Navbar */
    .navbar {
        position: relative !important;

        width: 100% !important;

        overflow: visible !important;
    }


    /* Masaüstü menü */
    .nav {
        display: none !important;
    }


    /* Masaüstü butonları */
    .nav-buttons {
        display: none !important;
    }


    /* Hamburger */
    .mobile-menu-btn {
        display: flex !important;

        position: relative !important;

        z-index: 100002 !important;

        width: 44px !important;
        height: 44px !important;

        align-items: center !important;
        justify-content: center !important;

        flex-shrink: 0 !important;

        padding: 0 !important;

        border: none !important;

        border-radius: 13px !important;

        background: #EEF4FF !important;

        color: #2563EB !important;

        font-size: 25px !important;

        cursor: pointer !important;
    }


    /* =====================================================
       MOBİL MENÜ
       
       position: fixed olduğu için:
       - sayfayı aşağı itmez
       - sayfanın layout'unu bozmaz
       - bütün linkler menünün içinde kalır
    ===================================================== */

    .mobile-menu {

        position: fixed !important;

        top: 78px !important;

        left: 15px !important;

        right: 15px !important;

        width: auto !important;

        height: auto !important;

        max-height:
            calc(100vh - 95px) !important;

        overflow-y: auto !important;

        overflow-x: hidden !important;

        display: flex !important;

        flex-direction: column !important;

        gap: 5px !important;

        padding: 12px !important;

        margin: 0 !important;

        background:
            rgba(255,255,255,.98) !important;

        backdrop-filter:
            blur(20px) !important;

        -webkit-backdrop-filter:
            blur(20px) !important;

        border:
            1px solid #E5E7EB !important;

        border-radius: 18px !important;

        box-shadow:
            0 20px 50px rgba(0,0,0,.18) !important;

        z-index: 100001 !important;


        /* KAPALI */

        opacity: 0 !important;

        visibility: hidden !important;

        pointer-events: none !important;

        transform:
            translateY(-10px) !important;

        transition:
            opacity .25s ease,
            transform .25s ease,
            visibility .25s ease !important;
    }


    /* =====================================================
       MENÜ AÇIK
    ===================================================== */

    .mobile-menu.open {

        opacity: 1 !important;

        visibility: visible !important;

        pointer-events: auto !important;

        transform:
            translateY(0) !important;
    }


    /* =====================================================
       TÜM LİNKLER
    ===================================================== */

    .mobile-menu a {

        display: flex !important;

        align-items: center !important;

        width: 100% !important;

        min-height: 48px !important;

        flex-shrink: 0 !important;

        padding:
            13px 15px !important;

        margin: 0 !important;

        border-radius: 12px !important;

        color: #374151 !important;

        font-size: 15px !important;

        font-weight: 600 !important;

        line-height: 1.3 !important;

        text-decoration: none !important;

        background: transparent !important;

        transition:
            background .2s ease,
            color .2s ease !important;
    }


    .mobile-menu a:hover {

        background:
            #EEF4FF !important;

        color:
            #2563EB !important;
    }


    /* AKTİF */

    .mobile-menu a.active {

        background:
            #EEF4FF !important;

        color:
            #2563EB !important;
    }


    /* DEMO KODU */

    .mobile-menu a.mobile-demo {

        display: flex !important;

        align-items: center !important;

        justify-content: center !important;

        margin-top: 5px !important;

        background:
            #2563EB !important;

        color:
            #FFFFFF !important;
    }


    .mobile-menu a.mobile-demo:hover {

        background:
            #1D4ED8 !important;

        color:
            #FFFFFF !important;
    }

}


/* =========================================================
   SCROLL SONRASI KOMPAKT NAVBAR
========================================================= */

.header {
    transition:
        top .3s ease,
        transform .3s ease;
}

.navbar {
    transition:
        padding .3s ease,
        border-radius .3s ease,
        box-shadow .3s ease,
        transform .3s ease;
}


/* AŞAĞI KAYINCA */

.header.scrolled {
    top: 10px;
}

.header.scrolled .navbar {

    padding: 11px 22px;

    border-radius: 18px;

    transform: scale(.94);

    box-shadow:
        0 12px 30px rgba(0,0,0,.12);
}


/* LOGO DA BİRAZ KÜÇÜLSÜN */

.header.scrolled .logo img {
    width: 135px;
    transition: .3s;
}


/* MENÜ */

.header.scrolled .nav {
    gap: 28px;
}


/* BUTONLAR */

.header.scrolled .nav-buttons {
    gap: 10px;
}

.header.scrolled .nav-buttons .btn {
    padding: 11px 17px;
    border-radius: 13px;
    font-size: 13px;
}


/* =========================================================
   MOBİLDE SCALE YAPMA
========================================================= */

@media (max-width: 700px) {

    .header.scrolled .navbar {
        transform: none;
        padding: 10px 13px;
    }

    .header.scrolled .logo img {
        width: 112px;
    }

}



/* =========================================================
   📱 MOBİL NAVBAR - SON DÜZELTME
========================================================= */

@media (max-width: 700px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden !important;
    }

    /* HEADER */
    .header {
        position: fixed !important;
        top: 8px !important;
        left: 0 !important;
        width: 100% !important;
        padding: 0 10px !important;
        z-index: 99999 !important;
    }

    /* NAVBAR */
    .navbar {
        width: 100% !important;
        height: 68px !important;
        min-height: 68px !important;
        padding: 8px 12px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;

        border-radius: 16px !important;
    }

    /* LOGO */
    .logo {
        display: flex !important;
        align-items: center !important;
        height: 100% !important;
    }

    .logo img {
        width: 115px !important;
        height: auto !important;
        max-height: 52px !important;
        object-fit: contain !important;
    }

    /* MASAÜSTÜ MENÜ */
    .nav,
    .nav-buttons {
        display: none !important;
    }

    /* HAMBURGER */
    .mobile-menu-btn {
        display: flex !important;

        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;

        align-items: center !important;
        justify-content: center !important;

        padding: 0 !important;
        margin: 0 !important;

        font-size: 24px !important;
    }

    /* MOBİL MENÜ */
    .mobile-menu {
        position: fixed !important;

        top: 84px !important;
        left: 10px !important;
        right: 10px !important;

        width: auto !important;

        max-height: calc(100vh - 95px) !important;
        overflow-y: auto !important;

        padding: 10px !important;
        margin: 0 !important;

        border-radius: 16px !important;
    }

    .mobile-menu a {
        min-height: 44px !important;

        padding: 11px 14px !important;

        font-size: 14px !important;
        line-height: 1.2 !important;
    }


    /* SCROLL SONRASI */
    .header.scrolled .navbar {
        height: 62px !important;
        min-height: 62px !important;

        padding: 7px 11px !important;

        transform: none !important;
    }

    .header.scrolled .logo img {
        width: 105px !important;
    }


    /* =====================================================
       HERO TAŞMASINI ENGELLE
    ===================================================== */

    .hero {
        width: 100% !important;
        max-width: 100% !important;

        padding-top: 105px !important;
    }

    .hero-grid,
    .hero-content,
    .hero-image {
        width: 100% !important;
        max-width: 100% !important;
    }

    .hero h1 {
        max-width: 100% !important;

        font-size: 32px !important;
        line-height: 1.1 !important;

        overflow-wrap: break-word !important;
        word-break: normal !important;
    }

    .hero p {
        max-width: 100% !important;

        font-size: 14px !important;
        overflow-wrap: break-word !important;
    }

    .hero-buttons {
        width: 100% !important;
    }

    .hero-buttons .btn {
        max-width: 100% !important;
    }


    /* HERO GÖRSELİ */
    .hero-image {
        overflow: hidden !important;
    }

    .laptop {
        max-width: 100% !important;
    }

    .phone {
        max-width: 30% !important;
    }

    .hero-stats {
        max-width: 90% !important;
    }


    /* TÜM GÖRSELLER */
    img {
        max-width: 100%;
    }
}