/* ============================================
   SYSTEM V8 - MODERN KURUMSAL
   GSAP Animations | Glass Morphism | Premium Transitions
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --v8-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --v8-primary: #0f172a;
    --v8-primary-light: #1e293b;
    --v8-accent: #3b82f6;
    --v8-accent-hover: #2563eb;
    --v8-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #6366f1 100%);
    --v8-glass: rgba(255, 255, 255, 0.08);
    --v8-glass-border: rgba(255, 255, 255, 0.15);
    --v8-text: #f8fafc;
    --v8-text-muted: #94a3b8;
}

/* ============================================
   HEADER V8 - PREMIUM DESIGN
   ============================================ */

.header-v8 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

.header-v8::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.88) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: -1;
}

.header-v8__container {
    position: relative;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 40px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    box-sizing: border-box;
}

.header-v8.scrolled .header-v8__container {
    height: 75px;
}

/* Logo V8 */
.header-v8__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    position: relative;
    flex-shrink: 0;
    min-width: 0;
}

.header-v8__logo-img {
    max-height: 48px;
    max-width: 160px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.header-v8__logo:hover .header-v8__logo-img {
    transform: scale(1.05);
}

.header-v8__logo-fallback {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--v8-gradient);
    border-radius: 12px;
    color: white;
    font-size: 22px;
}

/* Nav V8 - Modern Pill Style */
.header-v8__nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header-v8__nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 8px;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.header-v8__nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    color: var(--v8-text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--v8-font);
    border-radius: 12px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.header-v8__nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--v8-gradient);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-v8__nav-link:hover,
.header-v8__nav-link.active {
    color: var(--v8-text);
    background: rgba(255, 255, 255, 0.08);
}

.header-v8__nav-link:hover::after,
.header-v8__nav-link.active::after {
    width: calc(100% - 32px);
}

.header-v8__nav-link i {
    opacity: 0.8;
    transition: transform 0.35s ease;
}

.header-v8__nav-link:hover i {
    transform: scale(1.15);
}

/* Actions V8 */
.header-v8__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-v8__action-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--v8-text-muted);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-v8__action-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.header-v8__action-btn--primary {
    padding: 0 28px;
    width: auto;
    background: var(--v8-gradient);
    border: none;
    color: white !important;
    font-weight: 700;
    font-size: 14px;
    gap: 8px;
}

.header-v8__action-btn--primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #4f46e5 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
}

/* Hamburger V8 - Morphing */
.header-v8__mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    padding: 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.header-v8__mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--v8-text);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.header-v8__mobile-toggle span:nth-child(1) { margin-bottom: 6px; }
.header-v8__mobile-toggle span:nth-child(3) { margin-top: 6px; }

.header-v8__mobile-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.header-v8__mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.header-v8__mobile-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Overlay V8 */
.mobile-menu-overlay-v8 {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay-v8.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Panel V8 - Full Screen Premium */
.mobile-menu-panel-v8 {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    min-height: -webkit-fill-available;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    z-index: 9999;
    padding: max(env(safe-area-inset-top), 80px) 24px 24px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu-panel-v8.active {
    transform: translateX(0);
}

.mobile-menu-panel-v8::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: radial-gradient(ellipse at top right, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.mobile-menu-logo-v8 {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
    flex-shrink: 0;
}

.mobile-menu-logo-v8 img {
    max-height: 44px;
    max-width: 160px;
    object-fit: contain;
}

.mobile-menu-nav-v8 {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-height: 0;
    padding-bottom: 24px;
}

.mobile-menu-link-v8 {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    color: var(--v8-text-muted);
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    font-family: var(--v8-font);
    border-radius: 16px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-link-v8:hover,
.mobile-menu-link-v8.active {
    color: white;
    background: rgba(255, 255, 255, 0.08);
}

.mobile-menu-link-v8 i {
    width: 24px;
    text-align: center;
    font-size: 20px;
}

.mobile-menu-footer-v8 {
    margin-top: auto;
    padding-top: 24px;
    padding-bottom: max(env(safe-area-inset-bottom), 24px);
    padding-left: 0;
    padding-right: 0;
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    align-self: stretch;
}

.mobile-menu-action-v8 {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 8px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    border-radius: 12px;
    transition: all 0.35s ease;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

.mobile-menu-action-v8:nth-child(1) { background: rgba(255, 255, 255, 0.1); }
.mobile-menu-action-v8:nth-child(2) { background: rgba(34, 197, 94, 0.3); }
.mobile-menu-action-v8:nth-child(3) { background: var(--v8-gradient); }

/* Sabit mobil iletişim - sağ alt (desktop’ta gizli) */
.contact-float-v8 {
    display: none;
    position: fixed;
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
    z-index: 9990;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    pointer-events: none;
    box-sizing: border-box;
}

.contact-float-v8__btn {
    pointer-events: auto;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 22px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}

.contact-float-v8__btn:hover {
    transform: scale(1.06);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
}

.contact-float-v8__btn--call {
    background: linear-gradient(145deg, #3b82f6, #2563eb);
}

.contact-float-v8__btn--wa {
    background: linear-gradient(145deg, #25d366, #128c7e);
    font-size: 26px;
}

/* Responsive - Mobil uyumlu */
@media (max-width: 1024px) {
    .header-v8__nav { display: none; }
    .header-v8__mobile-toggle { display: flex; }
    .header-v8__container { gap: 16px; }
    .header-v8__actions { display: none !important; }
    .contact-float-v8 { display: flex; }
}

@media (max-width: 768px) {
    .header-v8__container {
        padding-top: 14px;
        padding-bottom: 14px;
        padding-right: max(20px, env(safe-area-inset-right, 0px));
        padding-left: max(20px, env(safe-area-inset-left, 0px));
        height: 64px;
        gap: 12px;
    }

    .header-v8.scrolled .header-v8__container {
        height: 60px;
    }

    .header-v8__logo-img {
        max-height: 40px;
        max-width: 140px;
    }

    .header-v8__logo-fallback {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .header-v8__action-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        border-radius: 12px;
    }

    .header-v8__action-btn span { display: none; }
    .header-v8__action-btn--primary {
        padding: 0 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .header-v8__container {
        padding-top: 12px;
        padding-bottom: 12px;
        padding-right: max(16px, env(safe-area-inset-right, 0px));
        padding-left: max(16px, env(safe-area-inset-left, 0px));
        height: 60px;
        gap: 8px;
    }

    .header-v8.scrolled .header-v8__container {
        height: 56px;
    }

    .header-v8__logo-img {
        max-height: 36px;
        max-width: 120px;
    }

    .header-v8__logo-fallback {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .header-v8__action-btn {
        width: 42px;
        height: 42px;
        min-width: 42px;
    }

    .header-v8__action-btn--primary {
        padding: 0 12px;
    }

    .header-v8__mobile-toggle {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }

    .mobile-menu-panel-v8 {
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
        padding-top: max(env(safe-area-inset-top), 72px);
    }

    .mobile-menu-link-v8 {
        padding: 14px 18px;
        font-size: 16px;
    }

    .mobile-menu-footer-v8 {
        padding-bottom: max(env(safe-area-inset-bottom), 20px);
    }
}
