/* 
   ========================================================
   GNDME DESIGN SYSTEM v3.9 // PERFECT NAV LINK HOVER & STATES
   --------------------------------------------------------
   - Explicit .nav-link:hover & .nav-link.active:hover
   - Smooth 0.2s color transition across 100% of links
   ========================================================
*/

:root {
    /* Color Scale & Hierarchy Tiers */
    --bg-main: #050505;
    --surface-100: #0a0a0a;
    --surface-200: #141414;
    
    /* Text Hierarchy Scale */
    --text-white: #FFFFFF;
    --text-100: #FFFFFF;
    --text-high: #CFCFCF;
    --text-70: rgba(255, 255, 255, 0.70);
    --text-mid: #7D7D7D;
    --text-40: rgba(255, 255, 255, 0.40);
    --text-dark: #444444;
    --text-20: rgba(255, 255, 255, 0.15);
    
    /* Accents */
    --accent-lime: #D4FF00;
    --accent-lime-glow: rgba(212, 255, 0, 0.18);
    --accent-cyan: #00E5FF;
    --accent-orange: #FF9900;
    --accent-red: #FF453A;

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-active: rgba(212, 255, 0, 0.35);

    /* Fonts */
    --font-heading: 'Archivo Black', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Rhythm & Spacing Scale (8px system) */
    --space-8: 8px;
    --space-12: 12px;
    --space-16: 16px;
    --space-20: 20px;
    --space-24: 24px;
    --space-32: 32px;
    --space-48: 48px;
    --space-64: 64px;
    --space-96: 96px;
    --space-120: 120px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
}

/* Global Link Reset */
a, a:visited {
    color: inherit;
    text-decoration: none;
}

body {
    background-color: var(--bg-main);
    color: var(--text-white);
    font-family: var(--font-mono);
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
    scrollbar-width: none;
}
body::-webkit-scrollbar { display: none; }

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
    mix-blend-mode: difference;
}
.cursor-crosshair {
    width: 20px;
    height: 20px;
    border: 1px solid var(--accent-lime);
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
}
.cursor-label {
    position: absolute;
    top: 26px; left: 12px;
    font-size: 0.65rem;
    color: var(--accent-lime);
    letter-spacing: 1.5px;
    white-space: nowrap;
}
.custom-cursor.hovering .cursor-crosshair {
    width: 36px;
    height: 36px;
    background: rgba(212, 255, 0, 0.25);
    border-radius: 2px;
}

/* Background Grid & Vignette */
.tech-grid {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
    mask-image: radial-gradient(circle at 50% 30%, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at 50% 30%, black 20%, transparent 80%);
}

/* Layout Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-32);
}

/* Mission Control Header Bar */
.sys-status {
    position: fixed;
    top: var(--space-24);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: var(--space-16);
    font-size: 0.7rem;
    color: var(--text-mid);
    z-index: 90;
    letter-spacing: 1.5px;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    padding: 8px 20px;
    border: 1px solid var(--border-subtle);
    border-radius: 30px;
}
.status-dot {
    width: 6px; height: 6px;
    background-color: var(--accent-lime);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-lime);
}
.status-badge {
    color: var(--accent-lime);
    font-weight: bold;
}

/* Navbar & Link Hover States */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-64);
    padding-bottom: var(--space-32);
    border-bottom: 1px solid var(--border-subtle);
}
.brand-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    letter-spacing: -1px;
    color: var(--text-white);
}

.nav-link {
    color: var(--text-mid) !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
    display: inline-block;
}
.nav-link:hover {
    color: var(--text-white) !important;
}
.nav-link.active {
    color: var(--accent-lime) !important;
    text-decoration: underline !important;
    font-weight: bold;
}
.nav-link.active:hover {
    color: var(--text-white) !important;
    text-decoration: underline !important;
}

/* =========================================
   HERO SECTION (Index / Homepage)
   ========================================= */
.hero-section {
    padding-top: var(--space-96);
    padding-bottom: var(--space-96);
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: var(--space-64);
    align-items: center;
}

.hero-main-title {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 5.5vw, 5.2rem);
    line-height: 1.05;
    letter-spacing: -1.5px;
    color: var(--text-white);
    margin-bottom: var(--space-24);
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-70);
    max-width: 620px;
    line-height: 1.6;
}

/* Hero Right: Bento Metrics Cards */
.bento-metrics {
    display: flex;
    flex-direction: column;
    gap: var(--space-16);
}

.metric-card {
    background: var(--surface-100);
    border: 1px solid var(--border-subtle);
    padding: var(--space-24);
    border-radius: 6px;
    transition: border-color 0.3s, transform 0.3s;
}
.metric-card:hover {
    border-color: var(--border-active);
    transform: translateX(4px);
}
.metric-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--accent-lime);
    line-height: 1;
    margin-bottom: var(--space-8);
}
.metric-label {
    font-size: 0.75rem;
    color: var(--text-mid);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* =========================================
   PROJECTS SECTION (Linear-style Cards)
   ========================================= */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--space-48);
    padding-bottom: var(--space-16);
    border-bottom: 1px solid var(--border-subtle);
}
.section-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-white);
    letter-spacing: -0.5px;
}
.section-count {
    font-size: 0.8rem;
    color: var(--text-mid);
    letter-spacing: 1px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--space-24);
    margin-bottom: var(--space-120);
}

.os-card {
    background: var(--surface-100);
    border: 1px solid var(--border-subtle);
    padding: var(--space-32);
    border-radius: 8px;
    position: relative;
    opacity: 0.9;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.3s ease, 
                box-shadow 0.3s ease;
    text-decoration: none !important;
    color: var(--text-white) !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 260px;
}

.os-card:hover {
    opacity: 1;
    transform: translateY(-4px) scale(1.01);
    border-color: var(--border-active);
    box-shadow: 0 12px 40px rgba(212, 255, 0, 0.08);
}

.os-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-16);
}
.os-code {
    font-size: 0.75rem;
    color: var(--accent-lime);
    letter-spacing: 1.5px;
}
.os-category {
    font-size: 0.7rem;
    color: var(--text-mid);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.os-name {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-white);
    margin-bottom: var(--space-8);
    line-height: 1.1;
}

.os-desc {
    font-size: 0.9rem;
    color: var(--text-70);
    line-height: 1.5;
    margin-bottom: var(--space-24);
}

.os-tags {
    font-size: 0.75rem;
    color: var(--text-mid);
    letter-spacing: 0.5px;
    border-top: 1px dashed var(--border-subtle);
    padding-top: var(--space-12);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.os-card:hover .os-action {
    color: var(--accent-lime);
    transform: translateX(4px);
}
.os-action {
    transition: transform 0.2s, color 0.2s;
    color: var(--text-mid);
}

/* Massive Typography Scale (Mission Control Hero) */
.hero-title-massive {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 8vw, 7rem);
    line-height: 0.95;
    letter-spacing: -2px;
    color: var(--text-white);
    text-transform: uppercase;
    margin-bottom: var(--space-24);
}
.hero-subtitle-massive {
    font-size: clamp(1.2rem, 2.2vw, 1.8rem);
    color: var(--text-high);
    max-width: 850px;
    line-height: 1.5;
    font-weight: 300;
}

/* Live Data-Rich Cards (Mission Control Modules) */
.live-module-card {
    background: var(--surface-100);
    padding: var(--space-24);
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
    position: relative;
    text-decoration: none !important;
    color: inherit !important;
}
.live-module-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-active);
    box-shadow: 0 16px 40px rgba(0,0,0,0.8), 0 0 20px var(--accent-lime-glow);
}
.card-header-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    margin-bottom: var(--space-16);
}
.card-live-dot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-lime);
    font-size: 0.7rem;
    font-weight: bold;
}
.card-metric-val {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--accent-lime);
    line-height: 1;
}
.card-metric-label {
    font-size: 0.75rem;
    color: var(--text-mid);
    text-transform: uppercase;
}

/* Hero Screenshot Anchor Frame */
.hero-screenshot-anchor {
    background: var(--surface-100);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.9), 0 0 40px rgba(212, 255, 0, 0.06);
    margin-bottom: var(--space-96);
    transition: border-color 0.3s;
}
.hero-screenshot-anchor:hover {
    border-color: var(--border-active);
}
.screenshot-bar {
    background: #111;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-mid);
    border-bottom: 1px solid var(--border-subtle);
}
.screenshot-dots {
    display: flex;
    gap: 6px;
}
.dot {
    width: 10px; height: 10px; border-radius: 50%;
}
.dot-red { background: #FF5F56; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #27C93F; }

/* Footer */
.footer {
    border-top: 1px solid var(--border-subtle);
    padding: var(--space-64) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-text {
    font-size: 0.8rem;
    color: var(--text-mid);
}
.footer-text span {
    color: var(--text-white);
}
.footer-links a {
    color: var(--text-mid);
    text-decoration: none;
    margin-left: var(--space-24);
    font-size: 0.8rem;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--accent-lime);
}

/* Responsive */
@media (max-width: 900px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: var(--space-48);
        padding-top: var(--space-48);
        padding-bottom: var(--space-64);
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .hero-title-massive { font-size: 2.8rem; }
    .hero-subtitle-massive { font-size: 1.1rem; }
}
