/**
 * PKM Universe - Advanced Design System
 * Fancy navigation, animations, and shared styles
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --primary: #00d4ff;
    --primary-dark: #0099cc;
    --primary-glow: rgba(0, 212, 255, 0.5);
    --secondary: #ffd700;
    --secondary-glow: rgba(255, 215, 0, 0.4);
    --accent: #ff6b6b;
    --purple: #a855f7;
    --pink: #ec4899;
    --orange: #ff5722;
    --green: #22c55e;
    --bg-dark: #030308;
    --bg-darker: #000003;
    --bg-panel: #0a0a15;
    --bg-card: #0d0d1a;
    --bg-card-hover: #151528;
    --border: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(0, 212, 255, 0.3);
    --text: #ffffff;
    --text-muted: #8892b0;
    --text-dim: #5a6277;
}

/* ============================================
   FANCY NAVIGATION BAR
   ============================================ */
.pkm-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    padding: 0 30px;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, rgba(3, 3, 8, 0.98) 0%, rgba(3, 3, 8, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), 0 0 50px rgba(0, 212, 255, 0.05);
}

.pkm-nav::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), var(--primary), transparent);
    opacity: 0.5;
}

/* Logo */
.pkm-nav-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    position: relative;
}

.pkm-nav-logo-icon {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--primary), var(--purple), var(--pink));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--primary-glow), inset 0 0 20px rgba(255, 255, 255, 0.1);
    animation: logoGlow 3s ease-in-out infinite;
}

.pkm-nav-logo-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.3) 50%, transparent 60%);
    animation: logoShine 4s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { box-shadow: 0 4px 20px var(--primary-glow), inset 0 0 20px rgba(255, 255, 255, 0.1); }
    50% { box-shadow: 0 4px 30px var(--primary-glow), 0 0 40px var(--primary-glow), inset 0 0 20px rgba(255, 255, 255, 0.2); }
}

@keyframes logoShine {
    0% { transform: translateX(-100%) rotate(45deg); }
    50%, 100% { transform: translateX(100%) rotate(45deg); }
}

.pkm-nav-logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

/* Nav Menu */
.pkm-nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 6px;
}

.pkm-nav-menu li {
    position: relative;
}

.pkm-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.pkm-nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 10px;
}

.pkm-nav-link:hover {
    color: var(--text);
}

.pkm-nav-link:hover::before {
    opacity: 0.15;
}

.pkm-nav-link.active {
    color: var(--text);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(168, 85, 247, 0.15));
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2), inset 0 0 20px rgba(0, 212, 255, 0.05);
}

.pkm-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--purple));
    border-radius: 3px;
}

.pkm-nav-link-icon {
    font-size: 1.1rem;
}

/* CTA Button */
.pkm-nav-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    color: white !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--primary-glow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pkm-nav-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    opacity: 0;
    transition: opacity 0.3s;
}

.pkm-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--primary-glow);
}

.pkm-nav-cta:hover::before {
    opacity: 1;
}

.pkm-nav-cta span {
    position: relative;
    z-index: 1;
}

/* Mobile Menu */
.pkm-nav-mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.pkm-nav-mobile-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

@media (max-width: 1024px) {
    .pkm-nav-menu {
        display: none;
    }
    .pkm-nav-mobile-toggle {
        display: flex;
    }
}

/* ============================================
   FANCY BUTTONS
   ============================================ */
.pkm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.pkm-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--purple));
    color: white;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.pkm-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px var(--primary-glow);
}

.pkm-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text);
}

.pkm-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.pkm-btn-orange {
    background: linear-gradient(135deg, var(--orange), #ff8a50);
    color: white;
    box-shadow: 0 4px 20px rgba(255, 87, 34, 0.4);
}

.pkm-btn-orange:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(255, 87, 34, 0.5);
}

/* ============================================
   FANCY CARDS
   ============================================ */
.pkm-card {
    background: linear-gradient(145deg, var(--bg-card), var(--bg-darker));
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.pkm-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-glow), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.pkm-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-glow);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 212, 255, 0.1);
}

.pkm-card:hover::before {
    opacity: 0.1;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.pkm-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.pkm-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
}

.pkm-section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--text), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pkm-section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   GLOW EFFECTS
   ============================================ */
.glow-text {
    text-shadow: 0 0 20px var(--primary-glow), 0 0 40px var(--primary-glow);
}

.glow-box {
    box-shadow: 0 0 30px var(--primary-glow), inset 0 0 30px rgba(0, 212, 255, 0.05);
}

/* ============================================
   ANIMATED BACKGROUND
   ============================================ */
.pkm-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background: var(--bg-dark);
    overflow: hidden;
}

.pkm-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(168, 85, 247, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(236, 72, 153, 0.04) 0%, transparent 60%);
    animation: bgFloat 20s ease-in-out infinite;
}

@keyframes bgFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(2%, 2%) rotate(1deg); }
    50% { transform: translate(0, 4%) rotate(0deg); }
    75% { transform: translate(-2%, 2%) rotate(-1deg); }
}

/* Grid Pattern Overlay */
.pkm-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.mt-nav { margin-top: 70px; }
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--purple), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--purple));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary), var(--pink));
}
