/* ==========================================================================
   SEVENZONE DESIGN SYSTEM & GLOBAL STYLES
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;700&family=Orbitron:wght@400;500;700;900&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --bg-primary: #0A0F1F;       /* Deep tech dark blue (70% weight) */
    --bg-secondary: #121829;     /* Deep card navy */
    --bg-tertiary: #070A14;      /* Pure dark dark blue */
    
    --blue-electric: #00A8FF;    /* Primary active highlights (20% weight) */
    --cyan-tech: #00E5FF;        /* Secondary active details & badges */
    --purple-accent: #8B5CF6;    /* Accent highlights (10% weight) - strictly hover/borders/glows */
    
    --text-primary: #EAEAEA;     /* Clear readable white */
    --text-secondary: #94A3B8;   /* Slate blue muted text */
    --text-muted: #64748B;       /* Deep slate grey */
    
    --border-color: rgba(0, 168, 255, 0.12); /* Subtle blue tech border */
    --border-hover: rgba(139, 92, 246, 0.35); /* Purple accent hover border */
    
    /* Glow Effects */
    --glow-blue: 0 0 15px rgba(0, 168, 255, 0.25);
    --glow-cyan: 0 0 20px rgba(0, 229, 255, 0.3);
    --glow-purple: 0 0 20px rgba(139, 92, 246, 0.4);
    --glow-card: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 168, 255, 0.05);
    
    /* Layout & Radius */
    --card-radius: 12px;
    --transition-speed: 0.3s;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: default;
}

body, a, button, select, input, textarea, [role="button"], .interactive {
    cursor: auto;
}

a, button, [role="button"], select, input, textarea {
    cursor: pointer;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-primary);
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

/* Background overlay scan lines and noise */
body::after {
    content: "";
    display: block;
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.015) 2px, rgba(0,0,0,0.015) 4px);
    z-index: 9999;
    pointer-events: none;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.02'/%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 9998;
    pointer-events: none;
}

/* Particle Canvas */
#pixel-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.45;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: rgba(10, 15, 31, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(7, 10, 20, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), var(--glow-blue);
    border-bottom: 1px solid rgba(0, 168, 255, 0.25);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--blue-electric);
    letter-spacing: 4px;
    text-shadow: 0 0 10px rgba(0, 168, 255, 0.4);
}

.nav-logo-text span {
    color: var(--text-primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 2px;
    transition: var(--transition);
    padding: 8px 0;
    text-transform: uppercase;
}

.nav-link:hover, .nav-menu .active .nav-link {
    color: var(--cyan-tech);
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--blue-electric), var(--cyan-tech));
    transition: var(--transition);
}

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

.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border: 1px solid var(--purple-accent);
    color: var(--purple-accent);
    background: transparent;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
    text-transform: uppercase;
}

.nav-cta:hover {
    background: var(--purple-accent);
    color: var(--bg-primary);
    box-shadow: var(--glow-purple);
    transform: translateY(-2px);
}

/* Mobile Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    width: 26px;
    height: 20px;
    justify-content: space-between;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
section {
    padding: 110px 0 90px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

section:last-of-type {
    border-bottom: none;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 50px;
}

.section-title {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 16px;
}

.section-title .prefix {
    color: var(--blue-electric);
    font-size: 1.3em;
    text-shadow: 0 0 10px rgba(0, 168, 255, 0.4);
    font-weight: 900;
}

.section-num {
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 3px;
}

/* Grid System */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    background-color: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

footer .footer-brand {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 5px;
    color: var(--blue-electric);
    text-shadow: 0 0 10px rgba(0, 168, 255, 0.3);
    margin-bottom: 15px;
}

footer .footer-brand span {
    color: var(--text-primary);
}

footer p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin-bottom: 10px;
}

footer .sys-log {
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem;
    color: var(--cyan-tech);
    opacity: 0.6;
    letter-spacing: 2px;
    margin-top: 20px;
    text-transform: uppercase;
}

/* ==========================================================================
   MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 75px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 75px);
        background: rgba(10, 15, 31, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        transition: var(--transition);
        border-top: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.1rem;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    section {
        padding: 80px 0 60px;
    }
}
