header {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 5px;
    top: 60px;
    width: min(1800px, 92vw);
    pointer-events: none;
}

header.scrolled {
    
    top: 15px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
}

header:has(.megaMenu:hover),
header:has(li:hover .megaMenu) {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 5px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
}

header:has(.megaMenu:hover) .logo .logo-light,
header:has(li:hover .megaMenu) .logo .logo-light {
    display: none;
}

header:has(.megaMenu:hover) .logo .logo-dark,
header:has(li:hover .megaMenu) .logo .logo-dark {
    display: block;
}

header:has(.megaMenu:hover) .navLinks ul li a,
header:has(li:hover .megaMenu) .navLinks ul li a {
    color: #1a1a1a;
}

header:has(.megaMenu:hover) .navContact,
header:has(li:hover .megaMenu) .navContact {
    color: #1a1a1a;
}

header:has(.megaMenu:hover) .navDivider,
header:has(li:hover .megaMenu) .navDivider {
    background: rgba(0, 0, 0, 0.15);
}

header:has(.megaMenu:hover) .hamburger span,
header:has(li:hover .megaMenu) .hamburger span {
    background: #1a1a1a;
}

header:has(.megaMenu:hover) .navActions .btn-primary,
header:has(li:hover .megaMenu) .navActions .btn-primary {
    background: #1a1a1a;
    color: #ffffff;
    border-color: #1a1a1a;
}

header .navbar {
    position: relative;
    width: 100%;
}

header .navbarContainer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 10px;
    margin: 0 40px;
    padding-top: 45px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    pointer-events: auto;
}

header .navbarContainer {
    padding: 12px 24px;
    margin: 0 16px;
    padding-top: 12px;
}

header .logo a {
    display: flex;
    align-items: center;
    gap: 12px;
}

header .logo img {
    height: 70px;
    width: auto;
    transition: all 0.7s ease;
}

header .logo .logo-light {
    display: block;
}

header .logo .logo-dark {
    display: none;
}

header.scrolled .logo .logo-light {
    display: none;
}

header.scrolled .logo .logo-dark {
    display: block;
}

header.scrolled .logo img {
    height: 54px;
}

header .navLinks {
    display: flex;
    align-items: center;
}

header .navLinks ul {
    display: flex;
    align-items: center;
    gap: 8px;
    position: static;
}

header .navLinks ul li {
    position: relative;
}

header .navLinks ul li a {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 10px 18px;
    padding-bottom: 30px;
    position: relative;
    transition: all 0.3s ease;
}

header.scrolled .navLinks ul li a {
    color: #1a1a1a;
}

header .navLinks ul li a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 18px;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

header .navLinks ul li a:hover::after {
    width: calc(100% - 36px);
}

header .navLinks ul li a:hover {
    color: var(--primary-color);
}

header .navRight {
    display: flex;
    align-items: center;
    gap: 24px;
}

header .navRight:hover ~ * {
    /* NavRight hover edilince mega-menu-active eklenecek (JS ile) */
}

header .navContact {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

header.scrolled .navContact {
    color: #1a1a1a;
}

header .navContact i {
    font-size: 14px;
    color: var(--primary-color);
}

header .navActions {
    display: flex;
    align-items: center;
    gap: 12px;
}

header .navActions .btn {
    padding: 10px 24px;
    font-size: 12px;
    transition: all 0.3s ease;
}

header.scrolled .navActions .btn-primary {
    background: #1a1a1a;
    color: #ffffff;
    border-color: #1a1a1a;
}

header.scrolled .navActions .btn-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #1a1a1a;
}

header .navDivider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

header.scrolled .navDivider {
    background: rgba(0, 0, 0, 0.15);
}

header .hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

header .hamburger span {
    width: 24px;
    height: 2px;
    background: #ffffff;
    transition: all 0.3s ease;
}

header.scrolled .hamburger span {
    background: #1a1a1a;
}

/* ═══════════════════════════════════════════════════════════════
   DYNAMIC ISLAND MEGA MENU
═══════════════════════════════════════════════════════════════ */

header .navLinks {
    display: flex;
    align-items: center;
    position: static;
}

header .megaMenu {
    position: absolute;
    top: 100%;
    left: 0;
    padding-top: 40px;
    margin-top: 0px;
    min-width: 320px;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    overflow: visible;
}

header .megaMenu-inner {
    padding: 16px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: 5px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.12),
        0 8px 24px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
}

header .navLinks ul li:hover .megaMenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

header .megaMenu-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

header .megaMenu-header i {
    font-size: 18px;
    color: var(--primary-color);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 192, 0, 0.15), rgba(255, 192, 0, 0.05));
    border-radius: 6px;
}

header .megaMenu-header h4 {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

header .megaMenu-header p {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #666;
    margin: 0;
}

header .megaMenu-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

header .megaMenu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 5px;
    transition: all 0.15s ease;
    text-decoration: none;
}

header .megaMenu-link:hover {
    /* Minimal hover - sadece text rengi değişecek */
}

header .megaMenu-link i {
    font-size: 16px;
    color: #999;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 4px;
    transition: all 0.15s ease;
}

header .megaMenu-link:hover i {
    color: #666;
}

header .megaMenu-link .megaMenu-linkText h5 {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 1px 0;
    transition: color 0.15s ease;
}

header .megaMenu-link:hover .megaMenu-linkText h5 {
    color: #000;
}

header .megaMenu-link .megaMenu-linkText span {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    color: #888;
}

header .megaMenu-wide {
    min-width: 600px;
}

header .megaMenu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
}

header .megaMenu-featured {
    grid-column: span 2;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border-radius: 6px;
    margin-top: 12px;
}

header .megaMenu-featured img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

header .megaMenu-featured .megaMenu-featuredText h5 {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 3px 0;
}

header .megaMenu-featured .megaMenu-featuredText span {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
}

header .megaMenu-featured .megaMenu-featuredBtn {
    margin-left: auto;
    padding: 6px 12px;
    background: var(--primary-color);
    color: #1a1a1a;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

header .megaMenu-featured .megaMenu-featuredBtn:hover {
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(255, 192, 0, 0.25);
}

@media (max-width: 1200px) {
    header .navContact {
        display: none;
    }
}

@media (max-width: 992px) {
    header .navLinks {
        display: none;
    }
    
    header .hamburger {
        display: flex;
    }
}

@media (max-width: 768px) {
    header {
        width: 96vw;
    }
    
    header .navbarContainer {
        padding: 12px 20px;
    }


}