@font-face {
    font-family: 'HelveticaCustom';
    src: url('../fonts/Helvetica.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'SabonNextLT';
    src: url('../fonts/SabonNextLT.ttf') format('truetype'),
         url('../fonts/SabonNextLT.woff2') format('woff2'),
         url('../fonts/SabonNextLT.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'SabonNextLTItalic';
    src: url('../fonts/SabonNextLTItalic.ttf') format('truetype'),
         url('../fonts/SabonNextLTItalic.woff2') format('woff2'),
         url('../fonts/SabonNextLTItalic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
}

/* ====================== GENEL NAVBAR AYARLARI ====================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    padding: 15px 40px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    z-index: 1000;
}

.navbar.scrolled {
    background: white !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* ====================== NAV WRAPPER ====================== */
.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 100px;
    position: relative;
    padding: 20px 40px;
}

.nav-left {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    margin-right: 40px;
}

.nav-right {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    margin-left: 40px;
}

/* ====================== LOGO ====================== */
.logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 20px;
}

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

/* ====================== DİL SEÇİCİ ====================== */
.language-selector {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
}

.language-selector a {
    text-decoration: none;
    color: white;
    font-size: 16px;
    padding: 5px 10px;
}

.navbar.scrolled .language-selector a {
    color: black;
}

.language-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: hsla(135, 100%, 80%, 0.9);
    border-radius: 5px;
    min-width: 100px;
    list-style: none;
    padding: 8px 0;
    z-index: 2000;
}

.language-dropdown li a {
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    display: block;
}

.language-dropdown li a:hover {
    background-color: hsla(199, 95%, 83%, 0.9);
}

.language-selector.active .language-dropdown {
    display: block;
}

/* ====================== MENÜ ====================== */
.menu {
    list-style: none;
    display: flex;
    gap: 25px;
    padding: 0;
    margin: 0;
}

.menu li a {
    text-decoration: none;
    font-family: 'HelveticaCustom', sans-serif;
    color: white;
    font-size: 15px;
    transition: color 0.3s ease;
    padding: 5px 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.navbar.scrolled .menu li a {
    color: black !important;
}

/* ====================== HAMBURGER ====================== */
.hamburger {
    display: none;
    font-size: 32px;
    cursor: pointer;
    color: white;
    user-select: none;
    z-index: 1100;
}

.navbar.scrolled .hamburger {
    color: black;
}

.language-selector.desktop {
    display: block;
}
.language-selector.mobile {
    display: none;
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 768px) {
    .navbar {
        background: transparent !important;
        padding: 10px 20px;
    }

    .hamburger {
        display: block;
        position: fixed;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        z-index: 1101;
    }

    .logo {
        position: fixed;
        top: 20px;
        left: 20px;
        transform: none;
        margin: 0;
        padding: 0;
        z-index: 1102;
    }

    /* Slide-in menü */
    #nav-content {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        background-color: #f0f0f0;
        padding: 80px 20px 20px 20px;
        display: flex;
        flex-direction: column;
        gap: 20px;
        transition: right 0.4s ease;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
        z-index: 1100;
        overflow-y: auto;
    }

    #nav-content.active {
        right: 0;
    }

    .nav-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 0;
    }

    .nav-left,
    .nav-right {
        width: 100%;
        flex-direction: column;
        margin: 0;
        padding: 0;
    }

    .menu {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .menu li {
        width: 100%;
    }

    .menu li a {
        display: block;
        width: 100%;
        padding: 12px;
        color: #333 !important;
        background-color: #e0e0e0;
        border-radius: 5px;
    }

    .menu li a:hover {
        background-color: #d5d5d5;
    }

    .language-selector {
        position: static;
        transform: none;
        margin-top: auto;
    }

    .language-selector a {
        color: #333 !important;
    }

    .language-dropdown {
        position: relative;
        background-color: #e0e0e0;
        margin-top: 5px;
    }

    .language-selector.desktop {
        display: none !important;
    }

    .language-selector.mobile {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 10px;
        padding-top: 10px;
        order: -2;
    }

    .language-button {
        background-color: #e0e0e0;
        color: #333;
        border: 1px solid #ccc;
        border-radius: 8px;
        text-align: center;
    }

    .language-button:hover {
        background-color: #d5d5d5;
        color: black;
        border-color: black;
    }

    .language-selector.mobile .language-dropdown.show-always {
        display: flex !important;
        flex-direction: column;
        background-color: #e0e0e0;
        border-radius: 5px;
        margin-top: 10px;
    }

    .language-selector.mobile .language-dropdown.show-always li a {
        color: #333 !important;
        padding: 10px 15px;
        text-decoration: none;
    }

    .language-selector.mobile .language-dropdown.show-always li a:hover {
        background-color: #d5d5d5;
    }
}

/* ====================== EXTRA SMALL DEVICES (max-width: 576px) ====================== */
@media (max-width: 576px) {
    .logo img {
        height: 50px;
    }

    #nav-content {
        width: 100%;
        padding: 70px 15px 15px 15px;
    }

    .menu li a {
        font-size: 14px;
        padding: 10px;
    }

    .language-selector a {
        font-size: 14px;
    }

    .language-button {
        font-size: 14px;
        padding: 8px 10px;
    }
}

/* ====================== VERY SMALL DEVICES (max-width: 480px) ====================== */
@media (max-width: 480px) {
    .logo {
        top: 15px;
        left: 15px;
    }

    .hamburger {
        top: 15px;
        right: 15px;
        font-size: 28px;
    }

    .logo img {
        height: 45px;
    }

    .menu li a {
        font-size: 13px;
        padding: 8px;
    }

    .language-button {
        font-size: 13px;
        padding: 7px 9px;
    }
}


/* ====================== LARGE SCREENS (min-width: 1200px) ====================== */
@media (min-width: 1200px) {
    .nav-wrapper {
        gap: 150px; /* daha fazla boşluk */
        padding: 20px 80px;
    }

    .logo img {
        height: 70px;
    }

    .menu li a {
        font-size: 17px;
    }
}

/* ====================== EXTRA LARGE SCREENS (min-width: 1600px) ====================== */
@media (min-width: 1600px) {
    .nav-wrapper {
        max-width: 1400px;
        margin: 0 auto;
    }

    .menu li a {
        font-size: 18px;
    }

    .language-selector {
        right: 60px;
    }
}

@media (max-width: 430px) {
    /* Küçük telefon ekranları için özel stiller */

    .nav-wrapper {
        gap: 10px;
        padding: 10px 15px;
    }

    .menu {
        gap: 10px;
    }

    .menu li a {
        font-size: 14px;
        padding: 10px;
    }

    .logo img {
        height: 50px;
    }

    .language-selector a {
        font-size: 14px;
    }

    .hamburger {
        font-size: 28px;
        top: 15px;
        right: 15px;
    }
}