/* GLOBAL Shipping - Main Styles */
body {
    background-color: #0B1220;
    color: #D6DCE5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0B1220; }
::-webkit-scrollbar-thumb { background: #1f2937; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #00E5FF; }

.glass-panel {
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.text-gradient {
    background: linear-gradient(135deg, #00E5FF, #0066FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.hover-lift {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}
.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 229, 255, 0.1);
}

.service-card {
    position: relative;
    background: #111827;
    border-radius: 1rem;
    z-index: 1;
    transition: all 0.3s ease;
}
.service-card::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(135deg, #00E5FF, #0066FF);
    z-index: -1;
    border-radius: 1.1rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover { transform: translateY(-5px); }

#navbar { transition: all 0.4s ease; }
#navbar.scrolled {
    padding-top: 1rem;
    padding-bottom: 1rem;
    background: rgba(11, 18, 32, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

.network-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}
.network-line.active { animation: drawLine 3s ease-out forwards; }

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

.bg-grid {
    background-size: 50px 50px;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}
.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.65);
    color: #fff;
}
.whatsapp-float::after {
    content: attr(data-label);
    position: absolute;
    left: calc(100% + 12px);
    white-space: nowrap;
    background: rgba(17, 24, 39, 0.95);
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}
.whatsapp-float:hover::after { opacity: 1; }

@media (max-width: 640px) {
    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 20px;
        left: 16px;
        font-size: 28px;
    }
    .whatsapp-float::after { display: none; }
}

/* ========== Mobile Menu ========== */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;
    visibility: hidden;
    transition: visibility 0.35s ease;
}

.mobile-menu.is-open {
    pointer-events: auto;
    visibility: visible;
}

.mobile-menu__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 9, 18, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.mobile-menu.is-open .mobile-menu__backdrop {
    opacity: 1;
}

.mobile-menu__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(100%, 360px);
    max-width: 100%;
    display: flex;
    flex-direction: column;
    background: #0B1220;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -12px 0 48px rgba(0, 0, 0, 0.5);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding-top: env(safe-area-inset-top, 0);
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-menu.is-open .mobile-menu__panel {
    transform: translateX(0);
}

.mobile-menu__header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    padding-top: max(1rem, env(safe-area-inset-top));
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    min-height: 60px;
}

.mobile-menu__lang {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #00E5FF;
    border: 1px solid rgba(0, 229, 255, 0.35);
    border-radius: 9999px;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.mobile-menu__lang:active {
    background: rgba(0, 229, 255, 0.1);
}

.mobile-menu__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.mobile-menu__close:active {
    background: rgba(0, 229, 255, 0.15);
    color: #00E5FF;
}

.mobile-menu__nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 0.75rem 1rem 1rem;
}

.mobile-menu__item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    width: 100%;
    min-height: 52px;
    padding: 0.875rem 1rem;
    margin-bottom: 0.25rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.0625rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease, color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu__item i:first-child {
    width: 1.25rem;
    text-align: center;
    color: #9ca3af;
    font-size: 1rem;
    flex-shrink: 0;
}

.mobile-menu__item.is-active,
.mobile-menu__item:active {
    background: rgba(0, 229, 255, 0.08);
    color: #00E5FF;
}

.mobile-menu__item.is-active i:first-child,
.mobile-menu__item:active i:first-child {
    color: #00E5FF;
}

.mobile-menu__toggle {
    justify-content: space-between;
}

.mobile-menu__toggle-inner {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.mobile-menu__chevron {
    font-size: 0.75rem;
    color: #6b7280;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.mobile-menu__toggle[aria-expanded="true"] .mobile-menu__chevron {
    transform: rotate(180deg);
    color: #00E5FF;
}

.mobile-menu__group {
    margin-bottom: 0.25rem;
}

.mobile-menu__submenu {
    overflow: hidden;
    padding-left: 0.5rem;
    margin-bottom: 0.5rem;
}

.mobile-menu__submenu[hidden] {
    display: none;
}

.mobile-menu__subitem {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #9ca3af;
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu__subitem:active,
.mobile-menu__subitem:hover {
    color: #00E5FF;
    background: rgba(255, 255, 255, 0.04);
}

.mobile-menu__subitem--all {
    color: #00E5FF;
    font-weight: 600;
    margin-top: 0.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1rem;
}

.mobile-menu__footer {
    flex-shrink: 0;
    padding: 1rem 1.25rem;
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(17, 24, 39, 0.5);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-menu__phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #D6DCE5;
    text-decoration: none;
}

.mobile-menu__phone:active {
    color: #00E5FF;
}

.mobile-menu__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 52px;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #00E5FF, #0066FF);
    border-radius: 9999px;
    box-shadow: 0 4px 24px rgba(0, 229, 255, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu__cta:active {
    transform: scale(0.98);
}

/* Body scroll lock (iOS friendly) */
html.menu-open,
body.menu-open {
    overflow: hidden;
    touch-action: none;
}

body.menu-open .whatsapp-float {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Küçük ekranlarda panel tam genişlik */
@media (max-width: 380px) {
    .mobile-menu__panel {
        width: 100%;
    }
    .mobile-menu__item {
        font-size: 1rem;
    }
}

/* Tablet: menü hâlâ drawer, biraz daha geniş */
@media (min-width: 381px) and (max-width: 1023px) {
    .mobile-menu__panel {
        width: min(92vw, 400px);
    }
}

/* Page hero */
.page-hero {
    padding-top: 8rem;
    padding-bottom: 4rem;
}
@media (min-width: 768px) {
    .page-hero { padding-top: 10rem; padding-bottom: 5rem; }
}

/* Nav active */
.nav-link.active { color: #00E5FF !important; }
.nav-link.active::after { width: 100% !important; }

/* Safe area for notched phones */
@supports (padding: max(0px)) {
    .whatsapp-float {
        bottom: max(20px, env(safe-area-inset-bottom));
        left: max(16px, env(safe-area-inset-left));
    }
}

/* Form alerts */
.alert-success { background: rgba(0, 229, 255, 0.1); border: 1px solid rgba(0, 229, 255, 0.3); }
.alert-error { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); }

/* Breadcrumb */
.breadcrumb a:hover { color: #00E5FF; }

/* Service page */
.service-hero-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.15);
}
