/* ===================================
   HEADER & NAVIGATION
   =================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2) 50%,
        transparent
    );
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header.scrolled::before {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(139, 69, 19, 0.15) 50%,
        transparent
    );
}

.header.scrolled .nav a {
    color: var(--text-dark);
}

.header.scrolled .nav a:hover {
    color: var(--primary-color);
}

.header.scrolled .nav a::before {
    background: linear-gradient(
        135deg,
        rgba(139, 69, 19, 0.1),
        rgba(218, 165, 32, 0.15)
    );
}

/* Dark Mode Scrolled Header */
body.dark-mode .header.scrolled {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .header.scrolled .nav a {
    color: var(--text-dark);
}

body.dark-mode .header.scrolled .nav a:hover {
    color: var(--primary-color);
}

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

.logo {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
    transition: filter 0.3s ease;
}

.logo:hover .logo-img {
    filter: drop-shadow(0 4px 12px rgba(139, 69, 19, 0.4));
}

.logo-turkey {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding-left: 0.25rem;
}

@media (max-width: 480px) {
    .logo-img {
        height: 35px;
    }
    
    .logo-turkey {
        font-size: 0.65rem;
    }
}

.nav {
    display: flex;
    gap: 0.5rem;
}

.nav a {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    position: relative;
    padding: 0.75rem 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.02em;
    font-size: 0.95rem;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        rgba(218, 165, 32, 0.8),
        rgba(139, 69, 19, 0.8)
    );
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(218, 165, 32, 0.5);
}

.nav a:hover::after,
.nav a.active::after {
    width: 60%;
}

.nav a:hover {
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 0 20px rgba(218, 165, 32, 0.3);
    transform: translateY(-2px);
}

.nav a.active {
    color: rgba(255, 255, 255, 1);
    font-weight: 600;
}

/* Theme Toggle Button */
.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 1rem;
    position: relative;
    overflow: hidden;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.2), rgba(139, 69, 19, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1) rotate(15deg);
}

.theme-toggle:hover::before {
    opacity: 1;
}

.theme-toggle i {
    font-size: 1rem;
    z-index: 1;
    transition: transform 0.3s ease;
}

.theme-toggle:hover i {
    transform: scale(1.1);
}

/* Dark Mode Toggle States */
body.dark-mode .theme-toggle {
    background: rgba(218, 165, 32, 0.2);
    border-color: rgba(218, 165, 32, 0.3);
    color: #daa520;
}

body.dark-mode .theme-toggle:hover {
    background: rgba(218, 165, 32, 0.3);
    border-color: rgba(218, 165, 32, 0.5);
}

/* Scrolled state */
.header.scrolled .theme-toggle {
    background: rgba(139, 69, 19, 0.1);
    border-color: rgba(139, 69, 19, 0.2);
    color: var(--primary-color);
}

.header.scrolled .theme-toggle:hover {
    background: rgba(139, 69, 19, 0.15);
    border-color: rgba(139, 69, 19, 0.3);
}

/* Mobile Theme Toggle */
.theme-toggle.mobile {
    width: 100%;
    height: auto;
    border-radius: 8px;
    padding: 0.75rem;
    margin-left: 0;
    margin-top: 1rem;
    display: flex;
    gap: 0.75rem;
    background: rgba(139, 69, 19, 0.1);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
}

.theme-toggle.mobile span {
    font-weight: 500;
    font-size: 1rem;
}

.theme-toggle.mobile:hover {
    background: rgba(139, 69, 19, 0.15);
    transform: scale(1);
}

body.dark-mode .theme-toggle.mobile {
    background: rgba(218, 165, 32, 0.1);
    border-color: rgba(218, 165, 32, 0.2);
    color: var(--text-dark);
}

body.dark-mode .theme-toggle.mobile:hover {
    background: rgba(218, 165, 32, 0.15);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--text-white);
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    transition: right 0.3s ease;
    padding: 2rem;
}

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

.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 3rem;
}

.mobile-nav a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1.125rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav a:hover {
    color: var(--primary-color);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    display: none;
}

.mobile-menu-overlay.active {
    display: block;
}

