@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* ÜST NAVBAR STİLLERİ */
.ust-navbar {
    background: #f0f0f0;
    color: rgb(0, 27, 126);
    height: 40px;
    width: 100%;
    position:fixed;
    top: 0;
    z-index: 1100;
}

.ust-navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    height: 100%;
}

.ust-navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    font-size: 0.9rem;
}

.ust-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Open Sans', sans-serif;
}

.ust-nav-item i {
    color: #092571;
}

.ust-nav-social {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-icon {
    color: rgb(6, 25, 135);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: #e552a0;
    transform: translateY(-2px);
}

/* ANA NAVBAR STİLLERİ */
.navbar {
    background:linear-gradient(135deg, #2c3e50 0%, rgba(0, 0, 108, 0.95) 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 40px; /* Üst navbar yüksekliği kadar boşluk */
    z-index: 1000;
    height: 90px;
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.nav-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo img {
    height: 120px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.nav-logo img:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 35px;
}

.nav-link {
    color: #fffbfb;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 12px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    color: #fbfbfb;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffffff, #fcfcfc);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 90%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 35px;
    height: 25px;
    position: relative;
    z-index: 1001;
    background: transparent;
    border: none;
}

.bar {
    height: 3px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
    position: absolute;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.bar:nth-child(1) {
    top: 0;
}

.bar:nth-child(2) {
    top: 11px;
}

.bar:nth-child(3) {
    top: 22px;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
    background-color: #ffffff;
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
    background-color: #ffffff;
}

/* Mobil menü - Ortadan genişleyen animasyon */
@media screen and (max-width: 768px) {
    .ust-navbar {
        display: none; /* Mobilde üst navbar gizle */
    }
    
    .navbar {
        top: 0; /* Mobilde üst navbar olmadığı için top 0 */
        height: 80px;
        padding: 0 10px;
    }
    
    .nav-container {
        padding: 0 15px;
        position: relative;
    }
    
    .hamburger {
        display: flex;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .nav-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .nav-logo img {
        height: 100px;
        max-width: 180px;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background:#031447 ;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transform: scale(0);
        opacity: 0;
        transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: scale(1);
        opacity: 1;
    }
    
    .nav-link {
        font-size: 1.4rem;
        padding: 18px 35px;
        transform: translateY(25px);
        opacity: 0;
        transition: all 0.4s ease;
        background: #e552a0;
        border-radius: 12px;
        width: 80%;
        text-align: center;
        max-width: 250px;
    }
    
    .nav-menu.active .nav-link {
        transform: translateY(0);
        opacity: 1;
    }
    
    /* Her menü öğesi için farklı gecikme */
    .nav-menu.active .nav-link:nth-child(1) { transition-delay: 0.2s; }
    .nav-menu.active .nav-link:nth-child(2) { transition-delay: 0.2s; }
    .nav-menu.active .nav-link:nth-child(3) { transition-delay: 0.2s; }
    .nav-menu.active .nav-link:nth-child(4) { transition-delay: 0.2s; }
    .nav-menu.active .nav-link:nth-child(5) { transition-delay: 0.2s; }
}

/* Daha küçük mobil cihazlar için */
@media screen and (max-width: 480px) {
    .navbar {
        height: 80px;
    }
    
    .nav-logo img {
        height: 90px;
        max-width: 160px;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 15px 25px;
    }
    
    .hamburger {
        width: 30px;
        height: 22px;
    }
    
    .bar {
        height: 2.5px;
    }
    
    .bar:nth-child(2) {
        top: 10px;
    }
    
    .bar:nth-child(3) {
        top: 20px;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }
}