

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

/* HEADER */
.site-header {
    background: var(--header-bg);
    position: relative;
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
}

/* LOGO */
.logo a {
    color: var(--header-text);
    text-decoration: none;
    font-size: 22px;
    font-weight: bold;
}

/* BURGER (MOBİL ÖNCELİKLİ) */
.burger {
    width: 30px;
    height: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.burger span {
    height: 3px;
    width: 100%;
    background: var(--header-text);
    border-radius: 2px;
    transition: all 0.4s ease;
}

/* BURGER ANİMASYON */
.burger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.open span:nth-child(2) {
    opacity: 0;
}

.burger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* NAV MENU (MOBİL) */
.nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--header-bg);
    overflow: hidden;

    max-height: 0;
    transition: max-height 0.45s ease;
}

.nav-menu.active {
    max-height: 400px;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.nav-menu li {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-menu a {
    display: block;
    padding: 16px;
    color: var(--header-text);
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

.nav-menu a:hover {
    background: var(--accent-color);
    color: #fff;
}

/* =========================
   DESKTOP
========================= */
@media (min-width: 769px) {

    .burger {
        display: none;
    }

    .nav-menu {
        position: static;
        max-height: none;
        width: auto;
    }

    .nav-menu ul {
        flex-direction: row;
        gap: 24px;
    }

    .nav-menu li {
        border: none;
    }

    .nav-menu a {
        padding: 0;
    }

    .nav-menu a:hover {
        background: none;
        color: var(--accent-color);
    }
}
