/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    background: #f0f8ff;
    color: #333;
}

/* ================= HEADER ================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    transition:
        transform 0.4s ease,
        background-color 0.3s ease,
        box-shadow 0.3s ease;
}

header.hide {
    transform: translateY(-100%);
}

header.visible {
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* ================= NAVBAR ================= */
.navbar {
    width: 100%;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 14px 40px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* ================= LOGO ================= */
.logo {
    position: fixed;
    top: -18px;
    left: 20px;
    z-index: 1200;
    transition: 
        top 0.4s ease,
        transform 0.4s ease;
}

.logo img {
    height: 110px;
    width: auto;
    transition: height 0.3s ease;
}

header.visible .logo img {
    height: 85px;
}

header.hide .logo {
    transform: translateY(-120%);
}

/* ================= NAV LINKS ================= */
.nav-links {
    display: flex;
    gap: 26px;
    align-items: center;
}

.nav-links a {
    position: relative;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    background: none !important;
    transition: color 0.25s ease;
}

header .nav-links a {
    color: #ffffff;
}

header.visible .nav-links a {
    color: #000000;
}

/* ================= ALT ÇİZGİ ================= */
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

header:not(.visible) .nav-links a::after {
    background-color: #ffffff;
}

header.visible .nav-links a::after {
    background-color: #000000;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

/* ================= MOBILE MENU BUTTON ================= */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-left: 20px;
    z-index: 10001;
    position: relative;
}

.mobile-menu-btn span {
    width: 28px;
    height: 3px;
    border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

header:not(.visible) .mobile-menu-btn span {
    background: #fff;
}

header.visible .mobile-menu-btn span {
    background: #000;
}

.mobile-menu-btn.active span {
    background: #333 !important;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ================= MOBILE OVERLAY ================= */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* ================= MOBILE PANEL ================= */
.mobile-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 380px;
    height: 100%;
    background: #ffffff;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
}

.mobile-panel.open {
    transform: translateX(0);
}

.mobile-panel-header {
    display: flex;
    justify-content: flex-end;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-close-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #333;
    transition: all 0.3s ease;
}

.mobile-close-btn:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

.mobile-panel-links {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

.mobile-panel-links a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    font-weight: 500;
    padding: 18px 32px;
    transition: all 0.3s ease;
    position: relative;
    opacity: 0;
    transform: translateX(30px);
}

.mobile-panel.open .mobile-panel-links a {
    opacity: 1;
    transform: translateX(0);
}

.mobile-panel.open .mobile-panel-links a:nth-child(1) { transition-delay: 0.15s; }
.mobile-panel.open .mobile-panel-links a:nth-child(2) { transition-delay: 0.22s; }
.mobile-panel.open .mobile-panel-links a:nth-child(3) { transition-delay: 0.29s; }
.mobile-panel.open .mobile-panel-links a:nth-child(4) { transition-delay: 0.36s; }

.mobile-panel-links a:hover {
    background: rgba(0, 120, 215, 0.06);
    color: #0078d7;
    padding-left: 40px;
}

.mobile-panel-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 4px;
    height: 60%;
    background: #0078d7;
    border-radius: 0 4px 4px 0;
    transition: transform 0.3s ease;
}

.mobile-panel-links a:hover::before {
    transform: translateY(-50%) scaleY(1);
}

.mobile-panel-footer {
    padding: 30px 32px;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}

.mobile-panel-footer p {
    font-size: 13px;
    color: #999;
    text-align: left;
    line-height: 1.6;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {

    .mobile-menu-btn {
        display: flex;
    }

    .logo img {
        height: 85px;
    }

    header.visible .logo img {
        height: 70px;
    }

    .nav-container {
        position: relative;
    }

    .nav-links {
        display: none !important;
    }
}