:root {
    --ice-blue: #0A2E36;
    --zero-white: #F0F8FF;
    --heat-gold: #D4AF37;
    --radar-red: #FF3131;
    --titanium-gray: #B0C4DE;
    --aerogel-bg: rgba(240, 248, 255, 0.05);
}

body {
    background-color: var(--ice-blue);
    color: var(--zero-white);
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-weight: 300;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

code, pre, .tech-font {
    font-family: 'Fira Code', 'Courier New', monospace;
}

/* Navigation */
.navbar {
    background: rgba(10, 46, 54, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--titanium-gray);
    padding: 1rem 2rem;
}

.navbar-brand {
    color: var(--heat-gold) !important;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-link {
    color: var(--zero-white) !important;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--heat-gold) !important;
}

/* Layout Components */
.section-title {
    border-left: 4px solid var(--heat-gold);
    padding-left: 15px;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.card-polar {
    background: var(--aerogel-bg);
    border: 1px solid rgba(176, 196, 222, 0.2);
    border-radius: 0;
    padding: 20px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.card-polar:hover {
    border-color: var(--heat-gold);
    background: rgba(212, 175, 55, 0.05);
}

.card-polar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--heat-gold), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.card-polar:hover::before {
    transform: translateX(100%);
}

/* Tech Detail Sidebar/Popup */
#tech-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: rgba(10, 46, 54, 0.95);
    border-left: 1px solid var(--heat-gold);
    z-index: 1050;
    padding: 40px 20px;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}

#tech-sidebar.active {
    right: 0;
}

.tech-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--zero-white);
    cursor: pointer;
    font-size: 1.5rem;
}

/* Glacial Fracture Canvas */
#fracture-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.3;
}

/* Buttons */
.btn-polar {
    background: transparent;
    border: 1px solid var(--heat-gold);
    color: var(--heat-gold);
    border-radius: 0;
    padding: 10px 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.btn-polar:hover {
    background: var(--heat-gold);
    color: var(--ice-blue);
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-weight: 200;
    letter-spacing: 2px;
}

.text-gold { color: var(--heat-gold); }
.text-radar { color: var(--radar-red); }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 5px;
}
::-webkit-scrollbar-track {
    background: var(--ice-blue);
}
::-webkit-scrollbar-thumb {
    background: var(--heat-gold);
}
