:root {
    --color-primary: #002052; 
    --color-secondary: #f7931e; 
    --color-border: #e9ecef;
    --color-button-primary-start: #1e88e5; 
    --color-button-primary-end: #0a3d70; 
    --color-bg-secondary: #ffffff; 
    --color-text-primary: #212529; 
    --color-bg-primary: #f8f9fa; 
}

.navbar {
    background-color: rgba(255, 255, 255, 0.7); 
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1); 
    position: sticky;
    top: 0;
    z-index: 1000; 
    transition: all 0.4s ease; 
}

.navbar .container {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    height: 70px;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); 
}

.logo-img {
    height: 35px; 
}

.nav-menu {
    flex-grow: 1; 
    display: flex;
    justify-content: center; 
    align-items: center;
    padding: 0; 
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0 200px; 
}

.nav-list li {
    margin: 0 15px; 
    position: relative;
}

.nav-link {
    display: block;
    padding: 10px 0;
    font-weight: 600;
    color: var(--color-text-primary); 
}

.nav-link:hover {
    color: var(--color-secondary);
}

.mobile-action-button {
    display: none; 
}

.close-mobile-menu {
    display: none; 
}

.action-button {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 25px; 
    font-weight: 700;
    color: white; 
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.test-start-button {
    background: linear-gradient(90deg, var(--color-button-primary-start), var(--color-button-primary-end));
    box-shadow: 0 4px 15px rgba(30, 136, 229, 0.5); 
}

.mobile-action-button {
    background: linear-gradient(90deg, var(--color-button-primary-start), var(--color-button-primary-end));
    box-shadow: 0 4px 15px rgba(30, 136, 229, 0.5); 
}

.action-button:hover {
    transform: translateY(-2px);
}

.action-button i {
    margin-left: 10px;
}

.menu-toggle {
    display: none; 
    background: none;
    border: none;
    color: var(--color-primary); 
    font-size: 1.8rem; 
    cursor: pointer;
    z-index: 1010; 
}

.mega-dropdown {
    position: absolute; 
    top: 90%; 
    left: 50%; 
    width: 1000px; 
    background-color: var(--color-bg-secondary);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    padding: 20px;
    border: 1px solid var(--color-border);
    z-index: 990; 

    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(20px) scale(0.95);
    transition: all 0.3s ease; 
}

.dropdown-container.mega-drop:hover .mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px) scale(1); 
}

.mega-dropdown-content {
    display: grid;
    grid-template-rows: repeat(2, 1fr); 
    grid-auto-flow: column; 
    grid-template-columns: repeat(5, 1fr); 
    gap: 15px;
    padding-bottom: 50px; 
}

.mega-dropdown-title {
    display: none; 
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    background-color: var(--color-bg-primary);
    transition: all 0.2s ease-in-out;
}

.feature-item:hover {
    background-color: var(--color-secondary); 
    color: white;
}

.feature-icon {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.feature-item:hover .feature-icon {
    color: white;
}

.view-all-container {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.close-mega-dropdown {
    display: none; 
}

/* ======================== MOBİL UYUMLULUK (MEDIA QUERY) ======================== */

@media (max-width: 1050px) {
    
    .menu-toggle {
        display: block; 
        z-index: 1010; 
    }
    
    .test-start-button {
        display: none; 
    }

    /* KRİTİK: Menü açılınca logo ve hamburger menü tamamen görünmez yapılır */
    .navbar.menu-open .logo-container,
    .navbar.menu-open .menu-toggle {
        opacity: 0; 
        pointer-events: none;
    }

    .nav-menu {
        position: fixed;
        top: 0; 
        left: 0;
        width: 100%; 
        height: 100vh;
        background-color: var(--color-bg-secondary);
        
        display: flex; 
        flex-direction: column;
        
        padding: 40px 20px 20px 20px; 
        
        transform: translateX(100%); 
        transition: transform 0.4s ease-out;
        z-index: 2000; 
        overflow-y: hidden; 
    }
    
    .nav-menu.open {
        transform: translateX(0); 
        /* KRİTİK: Butonu en alta it, listeyi üste ve ortaya sabitle */
        justify-content: space-between; 
    }

    .close-mobile-menu {
        display: block; 
        position: fixed; 
        top: 20px;
        right: 20px;
        font-size: 2rem;
        background: none;
        border: none;
        color: var(--color-primary);
        z-index: 2010; 
        cursor: pointer;
    }
    
    /* KRİTİK DEĞİŞİKLİK: Mobil butonu görünür yapıyoruz ve tam genişlik veriyoruz */
    .nav-menu .mobile-action-button {
        display: flex !important; 
        width: 100%; 
        justify-content: center;
        padding: 15px 20px;
        /* Butonun üste yapışmaması için boşluk bırakılır */
        margin-top: 20px; 
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
        padding: 0;
        list-style: none;
        margin: 0;
        
        /* KRİTİK: Listenin tüm kalan dikey alanı kaplamasını sağlar */
        flex-grow: 1; 
        overflow-y: auto; 
        padding-bottom: 30px; 
    }
    
    .nav-list li {
        margin: 0;
        padding: 10px 0;
        border-bottom: 1px solid var(--color-border);
    }
    
    .nav-menu .nav-link {
        font-size: 1.5rem; 
        font-weight: 700;
        padding: 15px 0;
    }
    
    .mega-dropdown {
        position: fixed; 
        top: 0; 
        left: 0;
        width: 100%; 
        height: 100vh; 
        border-radius: 0;
        background-color: var(--color-bg-secondary); 
        box-shadow: none;
        
        padding: 40px 20px 20px 20px; 
        z-index: 3000; 
        
        transform: translateX(100%);
        transition: transform 0.4s ease-out;
        
        opacity: 0;
        visibility: hidden;
        
        display: flex; 
        flex-direction: column;
        overflow-y: auto;
    }

    .mega-dropdown.open {
        transform: translateX(0); 
        visibility: visible;
        opacity: 1;
    }
    
    .close-mega-dropdown {
        display: block; 
        position: fixed; 
        top: 20px;
        right: 20px;
        font-size: 2rem;
        background: none;
        border: none;
        color: var(--color-primary);
        z-index: 3010; 
        cursor: pointer;
    }
    
    .mega-dropdown-title {
        display: block;
        color: var(--color-primary);
        font-size: 1.5rem;
        margin-bottom: 20px;
        padding-top: 0; 
        font-weight: 800;
    }
    
    .mega-dropdown-content {
        grid-template-columns: repeat(2, 1fr); 
        grid-auto-flow: row; 
        padding-bottom: 10px;
        gap: 10px;
        margin-top: 10px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .mega-dropdown-content {
        grid-template-columns: 1fr; 
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}