﻿/* ===================================
   NAVIGATION STYLES
   =================================== */


/* Sayfanın yatay kaymasını önle */
html, body {
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
}


/* Navigation Container */
.main-nav {
    background: rgba(10, 22, 40, 0.98);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 2000;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
    width: 100%;
}

    /* Scrolled State - Hafif Soluk */
    .main-nav.nav-scrolled {
        background: rgba(10, 22, 40, 0.75);
        backdrop-filter: blur(15px);
        border-bottom: 1px solid rgba(0, 255, 255, 0.15);
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.7);
    }

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: height 0.3s ease;
}

/* Scrolled durumunda daha kompakt */
.main-nav.nav-scrolled .nav-container {
    height: 70px;
}

/* Logo Styles */
.nav-logo a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: all 0.3s ease;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #00ffff 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    transition: all 0.3s ease;
}

.main-nav.nav-scrolled .logo-text {
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.logo-subtext {
    font-size: 0.7rem;
    color: #a0d4e8;
    letter-spacing: 2px;
    font-weight: 600;
    margin-top: 2px;
    transition: all 0.3s ease;
}

.main-nav.nav-scrolled .logo-subtext {
    font-size: 0.6rem;
    opacity: 0.8;
}

/* Navigation Menu */
.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.main-nav.nav-scrolled .nav-menu {
    gap: 2rem;
}

.nav-link {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Scrolled durumunda linkler hafif soluk */
.main-nav.nav-scrolled .nav-link {
    font-size: 0.9rem;
    opacity: 0.9;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00ffff, #00d4ff);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    opacity: 1 !important;
}

    .nav-link:hover::after {
        width: 100%;
    }

.nav-link.active {
    color: #00ffff;
}

    .nav-link.active::after {
        width: 100%;
    }

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 2001;
    position: relative;
}

    .mobile-menu-toggle span {
        width: 28px;
        height: 3px;
        background: #00ffff;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 992px) {
    body.menu-open {
        overflow: hidden;
    }

    .nav-container {
        padding: 0 1.5rem;
        height: 70px;
    }

    .main-nav.nav-scrolled .nav-container {
        height: 65px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 70px);
        background: rgba(10, 22, 40, 0.98);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 2rem 0;
        transition: right 0.3s ease;
        border-left: 2px solid rgba(0, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        overflow-y: auto;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    }

    .main-nav.nav-scrolled .nav-menu {
        top: 65px;
        height: calc(100vh - 65px);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 255, 255, 0.1);
    }

    .nav-link {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1rem;
        opacity: 1 !important;
    }

        .nav-link::after {
            display: none;
        }

    /* Overlay when menu is open */
    body.menu-open::after {
        content: '';
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(0, 0, 0, 0.5);
        z-index: 1999;
        backdrop-filter: blur(2px);
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    .logo-text {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }

    .main-nav.nav-scrolled .logo-text {
        font-size: 1.1rem;
    }

    .logo-subtext {
        font-size: 0.6rem;
    }

    .main-nav.nav-scrolled .logo-subtext {
        font-size: 0.55rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
        height: 65px;
    }

    .main-nav.nav-scrolled .nav-container {
        height: 60px;
    }

    .nav-menu {
        top: 65px;
        height: calc(100vh - 65px);
        width: 100%;
        max-width: 320px;
    }

    .main-nav.nav-scrolled .nav-menu {
        top: 60px;
        height: calc(100vh - 60px);
    }

    body.menu-open::after {
        top: 65px;
        height: calc(100vh - 65px);
    }

    .logo-text {
        font-size: 1rem;
    }

    .main-nav.nav-scrolled .logo-text {
        font-size: 0.95rem;
    }

    .logo-subtext {
        font-size: 0.55rem;
    }

    .main-nav.nav-scrolled .logo-subtext {
        font-size: 0.5rem;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        width: 85%;
        max-width: 280px;
    }

    .logo-text {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    .logo-subtext {
        font-size: 0.5rem;
    }
}
