/* ========================================
   BASE.CSS - FOUNDATION STYLES (ENHANCED)
   Clean foundation with premium navigation upgrades
   ======================================== */

/* ========================================
   CSS VARIABLES - EDIT THESE TO CHANGE COLORS
   ======================================== */
:root {
    /* Colors */
    --bg-primary: #1A1A1A;
    --bg-secondary: #2F2F2F;
    --text-primary: #F9F9F9;
    --text-secondary: #B8B8B8;
    
    /* Accent Colors - Change the active one to switch themes */
    --accent-color: #e000a8; /* Neo Mint - DEFAULT */
    /* --accent-color: #FFD400; */ /* Digital Yellow */
    /* --accent-color: #E74545; */ /* Signal Red */
    
    /* Enhanced glass effect variables */
    --accent-soft: rgba(224, 0, 168, 0.1);
    --accent-medium: rgba(224, 0, 168, 0.3);
    --glass-bg: rgba(26, 26, 26, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --glass-backdrop: blur(20px) saturate(180%);
    
    /* Typography */
    --font-primary: 'Satoshi Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Brooklyn Samuels Bold Nr5', Georgia, serif;
    
    /* Layout */
    --max-width: 1200px;
    --section-padding: 6rem 2rem;
    --card-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-elastic: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   PREMIUM NAVIGATION SYSTEM
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 2rem;
    transition: var(--transition);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
}

/* Premium glass effect enhancement */
.nav-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        transparent 50%, 
        rgba(224, 0, 168, 0.03) 100%);
    pointer-events: none;
    border-radius: inherit;
}

/* Scrolled state enhancement */
.navbar.scrolled .nav-container {
    background: rgba(26, 26, 26, 0.7);
    border-color: var(--accent-medium);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(224, 0, 168, 0.1);
}

/* Enhanced logo with premium styling */
.nav-logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-color) 0%, #ff4081 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
    transition: var(--transition-bounce);
    cursor: pointer;
}

.nav-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(224, 0, 168, 0.4));
}

/* Enhanced desktop menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
    z-index: 2;
    position: relative;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Premium hover states */
.nav-link:hover {
    color: var(--accent-color);
    background: var(--accent-soft);
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--accent-color);
    background: var(--accent-soft);
    border: 1px solid var(--accent-medium);
}

/* Animated underline */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    transform: translateX(-50%);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* ========================================
   PREMIUM BURGER MENU
   ======================================== */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    z-index: 1002;
    position: relative;
    transition: var(--transition);
    background: transparent;
    border: 1px solid transparent;
}

.burger-menu:hover {
    background: var(--accent-soft);
    border-color: var(--accent-medium);
}

.burger-line {
    width: 28px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition-elastic);
    border-radius: 3px;
}

/* Premium burger animation */
.burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
    background: var(--accent-color);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-30px);
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background: var(--accent-color);
}

/* ========================================
   IMMERSIVE MOBILE MENU
   ======================================== */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-primary);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    visibility: hidden;
}

.mobile-menu.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

/* Premium background effects */
.mobile-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(224, 0, 168, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 64, 129, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(224, 0, 168, 0.05) 0%, transparent 50%);
    animation: mobileMenuFloat 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes mobileMenuFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.7;
    }
    33% { 
        transform: translateY(-20px) rotate(1deg); 
        opacity: 1;
    }
    66% { 
        transform: translateY(10px) rotate(-1deg); 
        opacity: 0.8;
    }
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    position: relative;
    z-index: 2;
}

.mobile-nav-menu li {
    margin: 1.5rem 0;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active .mobile-nav-menu li {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered animations */
.mobile-menu.active .mobile-nav-menu li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-nav-menu li:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-nav-menu li:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-nav-menu li:nth-child(4) { transition-delay: 0.4s; }
.mobile-menu.active .mobile-nav-menu li:nth-child(5) { transition-delay: 0.5s; }
.mobile-menu.active .mobile-nav-menu li:nth-child(6) { transition-delay: 0.6s; }

.mobile-nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 2.2rem;
    font-weight: 600;
    font-family: var(--font-display);
    transition: var(--transition-bounce);
    position: relative;
    display: inline-block;
    padding: 1rem 2rem;
}

.mobile-nav-link:hover {
    color: var(--accent-color);
    text-shadow: 0 0 30px rgba(224, 0, 168, 0.4);
    transform: scale(1.1);
}

/* Premium mobile footer */
.mobile-menu-footer {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.mobile-menu.active .mobile-menu-footer {
    opacity: 1;
    transition-delay: 0.8s;
}

.mobile-menu-footer p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.mobile-contact-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.mobile-contact-link {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 1.8rem;
    transition: var(--transition-bounce);
    padding: 0.5rem;
    border-radius: 50%;
    background: var(--accent-soft);
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-contact-link:hover {
    transform: scale(1.3) rotate(10deg);
    background: var(--accent-color);
    color: white;
    box-shadow: 0 8px 20px rgba(224, 0, 168, 0.3);
}

/* ========================================
   SCROLL PROGRESS BAR
   ======================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), #ff4081);
    z-index: 999;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

/* ========================================
   SECTIONS & CONTAINERS (GLOBAL)
   ======================================== */
.section {
    padding: var(--section-padding);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 1rem;
    font-style: italic;
}

/* ========================================
   FOOTER (GLOBAL)
   ======================================== */
.footer {
    padding: 3rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer-copyright {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.footer-highlight {
    color: var(--accent-color);
    font-weight: 600;
    transition: var(--transition);
}

.footer-highlight:hover {
    color: var(--text-primary);
    text-shadow: 0 0 20px var(--accent-color);
}

.footer-links {
    margin-top: 1rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
    margin: 0 1rem;
}

.footer-link:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

/* ========================================
   UTILITY CLASSES (ONLY BASIC ONES)
   ======================================== */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    border: 2px solid var(--accent-color);
    border-radius: var(--card-radius);
    transition: var(--transition);
}

.back-link:hover {
    background-color: var(--accent-color);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

.back-arrow {
    font-size: 1.2rem;
    transition: var(--transition);
}

.back-link:hover .back-arrow {
    transform: translateX(-4px);
}

/* ========================================
   ACCESSIBILITY (GLOBAL)
   ======================================== */
a:focus,
button:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Skip link for keyboard navigation */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--accent-color);
    color: var(--bg-primary);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* ========================================
   RESPONSIVE NAVIGATION
   ======================================== */
@media (max-width: 1024px) {
    /* Show burger menu on tablet and mobile */
    .burger-menu {
        display: flex;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-container {
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 4rem 1rem;
    }
    
    .navbar {
        padding: 1rem;
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    .nav-logo {
        font-size: 1.6rem;
    }
    
    .mobile-nav-link {
        font-size: 1.8rem;
        padding: 0.8rem 1.5rem;
    }
    
    .mobile-contact-link {
        font-size: 1.5rem;
        width: 3rem;
        height: 3rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.5rem 1rem;
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    .mobile-nav-link {
        font-size: 1.6rem;
        padding: 0.8rem 1.5rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .mobile-menu-footer {
        bottom: 2rem;
    }
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* ========================================
   ACCESSIBILITY & REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: high) {
    :root {
        --bg-primary: #000000;
        --bg-secondary: #1A1A1A;
        --text-primary: #FFFFFF;
    }
}

/* ========================================
   ANIMATION KEYFRAMES
   ======================================== */
@keyframes backgroundFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
    }
    33% { 
        transform: translateY(-10px) rotate(1deg) scale(1.02); 
    }
    66% { 
        transform: translateY(5px) rotate(-1deg) scale(0.98); 
    }
}