/* ==========================================================================
   ArdaSoft - Dark Knight Tech Design System
   Ortak header/navigasyon, glassmorphic bileşenler ve efektler.
   ========================================================================== */

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #060e20;
}

::-webkit-scrollbar-thumb {
    background: #3a494b;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00f2ff;
}

/* ---- Glassmorphic panel (rim-light border + blur) ---- */
.glass-panel {
    background: rgba(34, 42, 61, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel.hover-lift:hover {
    transform: scale(1.02);
    border-color: rgba(0, 242, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.15);
}

.glow-text {
    text-shadow: 0 0 15px rgba(0, 242, 255, 0.4);
}

.neon-glow-btn {
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
}

.neon-glow-btn:hover {
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.6);
}

.tech-chip {
    border: 1px solid #00f2ff;
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.2) inset;
}

.input-cyber {
    background: #171f33;
    border: none;
    border-bottom: 2px solid #3a494b;
    color: #dae2fd;
    transition: all 0.3s ease;
}

.input-cyber:focus {
    outline: none;
    border-bottom-color: #00f2ff;
    box-shadow: 0 4px 12px rgba(0, 242, 255, 0.1);
}

/* ---- Top navigation ---- */
.nav-link {
    position: relative;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, text-shadow 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover {
    text-shadow: 0 0 8px rgba(0, 242, 255, 0.4);
}

.nav-link.active {
    color: #00f2ff !important;
    font-weight: 700;
    border-bottom-color: #00f2ff;
}

.nav-cta {
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.nav-cta:hover {
    box-shadow: 0 0 18px rgba(0, 242, 255, 0.35);
}

/* Hamburger ikonu -> X animasyonu */
#menuToggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 60;
}

#menuToggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #dae2fd;
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, background-color 0.2s ease;
}

#menuToggle.open span {
    background: #00f2ff;
}

#menuToggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

#menuToggle.open span:nth-child(2) {
    opacity: 0;
}

#menuToggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobil açılır menü paneli */
.mobile-menu-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    background: rgba(6, 14, 32, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(0, 242, 255, 0.15);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.mobile-menu-panel.open {
    max-height: 480px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mobile-menu-panel .mobile-link {
    padding: 18px 24px;
    color: #b9cacb;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.35s ease, transform 0.35s ease, color 0.2s ease, background-color 0.2s ease;
}

.mobile-menu-panel.open .mobile-link {
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu-panel.open .mobile-link:nth-child(1) { transition-delay: 0.06s; }
.mobile-menu-panel.open .mobile-link:nth-child(2) { transition-delay: 0.12s; }
.mobile-menu-panel.open .mobile-link:nth-child(3) { transition-delay: 0.18s; }
.mobile-menu-panel.open .mobile-link:nth-child(4) { transition-delay: 0.24s; }
.mobile-menu-panel.open .mobile-link:nth-child(5) { transition-delay: 0.30s; }

.mobile-menu-panel .mobile-link:hover,
.mobile-menu-panel .mobile-link:active {
    color: #00f2ff;
    background: rgba(0, 242, 255, 0.06);
}

.mobile-menu-panel .mobile-link.active {
    color: #00f2ff;
    font-weight: 700;
}

.mobile-menu-panel .mobile-cta {
    color: #00f2ff;
    font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
    #menuToggle span,
    .mobile-menu-panel,
    .mobile-menu-panel .mobile-link,
    .glass-panel {
        transition: none !important;
    }
}
