/* Header ve Navigasyon Menüsü Stilleri */
#main-header {
    max-height: 100px;
    position: fixed;
    top: 0;
    margin: 0;
    padding-bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    transition: box-shadow 0.3s ease, padding 0.3s ease, background 0.3s ease;
    font-family: 'Cabin', sans-serif;
    font-weight: 500;
}

#main-header.menu-open {
    box-shadow: none;
    background-color: white !important;
}

.main-nav.menu-open {
    background-color: white;
}

#main-header.scrolled {
    background: #fff;
    padding: 10px 5%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

.logo-container {
    flex: none;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, transparent 55%);
    transition: background 0.3s ease;
}

.logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    transition: all 0.3s ease;
}

#main-header.scrolled .logo-container {
    background: none;
}

#main-header.scrolled .logo {
    width: calc(240px / 1.7);
    height: calc(120px / 1.7);
}

.nav-arrow {
    stroke: var(--ikon-clr);
    transition: stroke 0.3s ease;
}

#main-header.scrolled .nav-arrow {
    stroke: var(--ikon-clr);
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-left: 20px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 18px;
}

.nav-item {
    position: relative;
    margin: 0;
}

.nav-link {
    position: relative;
    color: var(--bckgrd-clr);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.nav-link:hover::after,
.nav-link.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background-color: var(--ikon-clr);
}

/* ======================================================= */
/* ====== DROPDOWN ANİMASYON KODLARI BAŞLANGIÇ ====== */
/* ======================================================= */
/* ======================================================= */
/* ====== DROPDOWN ANİMASYON KODLARI (DÜZELTİLMİŞ) ====== */
/* ======================================================= */

/* Menü kapalıyken (Başlangıç durumu) */
/* ======================================================= */
/* ====== DROPDOWN ANİMASYON KODLARI BAŞLANGIÇ ====== */
/* ======================================================= */

/* Menü kapalıyken (Başlangıç durumu) */
.nav-item.dropdown .dropdown-menu-fullwidth {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    
    /* BURADA DÜZELTME YAPILDI */
    background-color: transparent;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 999;
    
    max-height: 0;
    padding: 0 5%;
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
    display: flex; 
    
    /* BACKGROUND RENGİ DE GEÇİŞE EKLENDİ */
    transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out, padding 0.4s ease-in-out, background-color 0.4s ease-in-out;
}

/* Menü açıldığında (Aktif durum) */
.nav-item.dropdown.active .dropdown-menu-fullwidth {
    max-height: 500px;
    padding: 20px 5%;
    opacity: 1;
    visibility: visible;
    
    /* BURADA DÜZELTME YAPILDI */
    background-color: white;
}

/* ======================================================= */
/* ======== DROPDOWN ANİMASYON KODLARI BİTİŞ ======== */
/* ======================================================= */

/* ======================================================= */
/* ======== DROPDOWN ANİMASYON KODLARI (DÜZELTİLDİ) BİTİŞ ======== */
/* ======================================================= */
/* ======================================================= */
/* ======== DROPDOWN ANİMASYON KODLARI BİTİŞ ======== */
/* ======================================================= */

.dropdown-left {
    flex: 0 0 40%;
    max-width: 40%;
    display: flex;
    padding-right: 20px;
    padding-bottom: 20px;
    padding-top: 50px;
}

.image-overlay {
    position: relative;
    width: 100%;
    height: 100%;
}

.image-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    font-family: 'Cabin', sans-serif;
}

.overlay-text {
    position: absolute;
    bottom: 80px;
    left: 20px;
    color: white;
    font-family: 'Cabin', sans-serif;
}

.overlay-text h2 {
    font-size: 24px;
    margin: 0 0 5px 0;
    font-weight: 700;
    font-family: 'Cabin', sans-serif;
}

.overlay-text p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    font-family: 'Cabin', sans-serif;
}

.green-line {
    width: 100px;
    height: 2px;
    background-color: var(--ikon-clr);
    margin-top: 5px;
}

.dropdown-left img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 4px;
}

.dropdown-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.dropdown-right ul {
    list-style: none;
    padding: 0;
    margin: 50px 0 0 0;
    width: 100%;
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    grid-auto-flow: column;
    gap: 10px 20px;
    height: 200px;
    max-width: 800px;
}

.dropdown-right ul li {
    margin-top: 5px;
    padding: 10px 0;
    transition: opacity 0.3s ease;
}

.dropdown-right ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    font-family: 'Cabin', sans-serif;
}

.dropdown-right ul li a::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ddd;
    transition: background-color 0.3s ease;
}

.dropdown-right ul:hover li {
    opacity: 0.5;
}

.dropdown-right ul li:hover {
    opacity: 1;
}

.dropdown-right ul li:hover a::after {
    background-color: var(--ikon-clr);
}

.dropdown-right ul li a .small-arrow {
    stroke: #555;
    transition: stroke 0.3s ease;
}

.dropdown-right ul li:hover a .small-arrow {
    stroke: var(--ikon-clr);
}

#main-header.scrolled .nav-link {
    color: var(--text-clr) !important;
}

.header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

.language-selector {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.language-icon {
    background: none;
    user-select: none;
    padding: 4px 8px;
    color: var(--bckgrd-clr);
    border-radius: 10px;
    min-width: 35px;
    text-align: center;
    font-weight: 700;
    font-size: 1.2rem;
    font-family: 'Cabin', sans-serif;
    transition: color 0.3s ease;
}

#main-header.scrolled .language-icon {
    color: var(--ikon-clr);
}

.language-selector select {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.search-btn {
    color: var(--bckgrd-clr);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.search-btn svg {
    stroke: var(--bckgrd-clr);
    transition: transform 0.2s ease, stroke 0.3s ease;
}

#main-header.scrolled .search-btn {
    color: var(--ikon-clr);
}

#main-header.scrolled .search-btn svg {
    stroke: var(--ikon-clr);
}

.search-btn:hover svg {
    transform: scale(1.1);
}

/* Mobil Menü Stilleri */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--ikon-clr);
    cursor: pointer;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-clr);
    font-size: 20px;
    cursor: pointer;
}

#mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background-color: transparent;
    z-index: 1000;
    transition: right 0.5s ease-in-out;
    display: flex;
    justify-content: flex-end;
}

#mobile-menu-overlay.active {
    right: 0;
}

.mobile-menu-content {
    width: 75%;
    height: 100%;
    background-color: var(--bckgrd-clr);
    padding-top: 80px;
    overflow-y: auto;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    font-family: 'Cabin', sans-serif;
}

.mobile-nav-list {
    list-style: none;
    padding: 0 20px;
}

.mobile-nav-item {
    margin: 0;
}

.mobile-nav-link {
    color: var(--text-clr);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    transition: background-color 0.3s ease;
}

.mobile-nav-link i {
    display: inline-block;
    color: var(--text-clr);
    transition: transform 0.3s ease;
}

.mobile-nav-link.active i {
    transform: rotate(180deg);
}

.mobile-submenu {
    list-style: none;
    padding: 10px 0 10px 20px;
    display: none;
    background-color: var(--bckgrd-clr);
}

.mobile-submenu.active {
    display: block;
}

.mobile-submenu li a {
    color: var(--text-clr);
    font-size: 0.8rem;
    padding: 8px 0;
    display: block;
    text-decoration: none;
    transition: color 0.3s;
}

@media (max-width: 992px) {
  .header-content {
    gap: 10px;
    padding: 0 20px;
  }
  .header-right {
    gap: 5px;
  }
}

@media (max-width: 960px) {
    #main-header {
        padding: 10px 5%;
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), transparent);
    }
    #main-header.scrolled {
        background-color: var(--bckgrd-clr);
    }
    .main-nav {
        display: none;
    }
    .logo-container {
        order: 1;
        flex-grow: 1;
    }
    .logo {
        width: 100px;
        height: 100px;
    }
    .header-right {
        order: 2;
        gap: 10px;
    }
    .language-selector {
        display: inline-flex !important;
        margin-right: 10px;
    }
    .language-icon {
        font-size: 0.9rem;
        min-width: 25px;
        padding: 2px 5px;
        font-family: 'Cabin', sans-serif;
        color: var(--ikon-clr);
    }
    .mobile-menu-toggle {
        display: block !important;
        margin: 0;
        font-size: 20px;
        color: var(--ikon-clr);
    }
}
@media (max-width: 576px) {
    .logo { width: 90px; height: 90px; }
    .language-icon { font-size: 1rem; min-width: 25px; }
    .mobile-menu-toggle { font-size: 20px; }
}
.dropdown-right ul li a span {
    font-family: 'Cabin', sans-serif;
    font-weight: 500;
}
#main-header {
    position: fixed;
    top: 0;
    margin: 0;
    padding-bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    transition: box-shadow 0.3s ease, padding 0.3s ease, background 0.3s ease;
    font-family: 'Cabin', sans-serif;
    font-weight: 500;
}

#main-header.scrolled {
    background: #fff;
    padding: 10px 5%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-item.dropdown .dropdown-menu-fullwidth {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: transparent;
    box-shadow: none;
    z-index: 999;
    
    max-height: 0;
    padding: 0 5%;
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
    display: flex; 
    
    transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out, padding 0.4s ease-in-out, background-color 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
}

.nav-item.dropdown.active .dropdown-menu-fullwidth {
    max-height: 500px;
    padding: 20px 5%;
    opacity: 1;
    visibility: visible;
    background-color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.dropdown-menu-fullwidth {
    /* Mevcut stilleriniz (display: none; vs.) buraya gelir */
    background-color: rgba(0, 0, 0, 0.8);
}
/* Diğer tüm header.css stilleri */
/* Sayfanın tamamını kaplayacak transparan arka plan katmanı */
#overlay {
    position: fixed; /* Ekranı sabit bir şekilde kaplaması için */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Siyah ve transparan renk (0.6 opaklık). Opaklığı istediğin gibi değiştirebilirsin. */
    background-color: rgba(0, 0, 0, 0.6);
    
    /* Z-index değerini header'ın alt menüsünden daha düşük ama diğer içeriklerden daha yüksek yapmalısın. */
    /* Header'ın alt menü z-index'i 999 olduğu için 998 uygun olacaktır. */
    z-index: 998;
    
    /* Başlangıçta görünmez olması için */
    opacity: 0;
    visibility: hidden;
    
    /* Yumuşak bir geçiş animasyonu ekle */
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* Aktif olduğunda görünecek katman */
#overlay.active {
    opacity: 1;
    visibility: visible;
}