/* ==================== */
/* Navbar Temel */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    background: #1a237e;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 0 0px;
    transition: 0.4s;
}
.navbar.scrolled {
    background: #151a6b;
    backdrop-filter: blur(10px);
}

/* Navbar container */
.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
}
.nav-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* Menü */
.nav-menu {
    display: flex;
    gap: 25px;
    list-style: none;
}
.nav-menu a,
.nav-menu span {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
    cursor: pointer;
}
.nav-menu a:hover,
.nav-menu a.active {
    color: #fff;
}

/* Dropdown */
.dropdown {
    position: relative;
}
.dropdown-title::after {
    content: " ▾";
    font-size: 0.7em;
    justify-content: space-between;
}

/* Dropdown Menü */
.dropdown-menu {
    position: absolute;
    top: 100%;
    justify-content: space-between;
    transform: translateY(10px);
    opacity: 0;
    pointer-events: none;

    min-width: 240px;
    max-width: 260px;

    background: rgba(26, 35, 126, 0.88);
    backdrop-filter: blur(12px);
    border-radius: 10px;
    border: 2px solid #14b8a6;
    padding: 10px 0;
    box-shadow: 0 10px 28px rgba(0,0,0,0.25);

    transition: opacity .35s ease, transform .35s ease;
    z-index: 999;
}

/* Hover ile açılma (masaüstü) */
@media (min-width: 769px) {
    .dropdown:hover .dropdown-menu {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
}

/* Menü listesi */
.dropdown-menu li { list-style: none; }
.dropdown-menu a {
    display: block;
    padding: 10px 18px;
    color: #fff !important;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.25s ease, padding-left 0.25s ease;
}
.dropdown-menu a:hover {
    background: rgba(20, 184, 166, 0.25);
    padding-left: 25px;
    border-radius: 6px;
}

/* Scroll alanı */
.dropdown-scroll {
    max-height: 240px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
}

/* Tüm Hizmetleri Gör */
.dropdown-all-services {
    display: block;
    padding: 12px 18px;
    text-align: center;
    font-weight: 700;
    color: #14b8a6 !important;
    background: rgba(20, 184, 166, 0.12);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    transition: 0.3s;
}
.dropdown-all-services:hover {
    background: rgba(20,184,166,0.22);
    color: #14b8a6 !important;
}

/* Hamburger Menü */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    margin-right: 18px; /* hamburger biraz içeri kaydı */
}
.nav-toggle .bar {
    width: 25px;
    height: 3px;
    background: #e90b0b;
    border-radius: 3px;
    transition: 0.3s;
}

/* Mobil */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 50%; /* navbar ortalaması */
        transform: translateX(-50%);
        width: 90%; /* sayfa kenarına yapışmasın */
        background: #151a6b;
        gap: 15px;
        padding: 20px 0;
        border-radius: 12px;
        text-align: center;
        transition: all 0.4s ease;
        z-index: 1000;
    }

    .nav-menu.active { display: flex; }

    /* Dropdown menü mobilde click ile açılır/kapanır */
    .dropdown-menu {
        display: none; /* başlangıçta gizli */
        position: relative;
        width: 90%; /* navbar genişliği ile eşit */
        max-width: 300px;
        margin: 0 auto; /* ortala */
        text-align: center;
        padding: 0; /* boş alan yok */
        background: #151a6b;
        border-radius: 10px;
        box-shadow: none;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        pointer-events: none;
        flex-direction: column;
        align-items: center;
        gap: 0; /* açılmadan boşluk yok */
    }

    /* Dropdown açıldığında */
    .dropdown.open .dropdown-menu {
        display: flex;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        gap: 10px; /* açıldığında linkler arası boşluk */
        padding: 10px 0; /* açıldığında padding */
    }

    /* Dropdown iç linkler ortalanmış */
    .dropdown-menu li {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .dropdown-menu li a {
        display: inline-block;
        text-align: center;
        padding: 10px 20px;
        color: #fff !important;
        text-decoration: none;
        font-size: 0.95rem;
        font-weight: 500;
        transition: background 0.25s ease;
    }

    .dropdown-menu li a:hover {
        background: rgba(20, 184, 166, 0.25);
        border-radius: 6px;
    }

    /* Nav menu linkler ortalanmış */
    .nav-menu a,
    .nav-menu span {
        text-align: center;
        width: 100%;
        display: block;
    }
}
