/* supremacy.global - Styles */

:root {
    --void-black: #0a0a0a;
    --deep-night: #1a1a1a;
    --pure-white: #f5f5f5;
    --silver: #cccccc;
    --electric-cyan: #00d9ff;
    --crimson-signal: #ff1744;
    --slate-blue: #4a5f7f;
    --light-gray: #333333;
    
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'IBM Plex Sans', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
    
    --transition-fast: 0.3s ease;
    --transition-med: 0.5s ease;
    --transition-slow: 0.8s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--void-black);
    color: var(--pure-white);
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: clamp(0.9rem, 1.1vw, 1.1rem);
    line-height: 1.7;
    letter-spacing: 0.01em;
    overflow-x: hidden;
}

#page-wrapper {
    width: 100%;
    position: relative;
}

/* ===== HERO SECTION ===== */
.hero {
    width: 100vw;
    height: 100vh;
    background-color: var(--void-black);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: clamp(3rem, 8vh, 6rem) clamp(2rem, 5vw, 4rem);
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.site-title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 10vw, 8rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pure-white);
    margin: 0;
    line-height: 1;
    animation: fadeInInstant 0.4s ease-out;
}

@keyframes fadeInInstant {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.pulse-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    color: var(--pure-white);
    animation: orbitPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    z-index: -1;
}

@keyframes orbitPulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% { 
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
}

.hero-divider {
    width: 100vw;
    height: 1px;
    background-color: var(--pure-white);
    position: absolute;
    bottom: 0;
    left: 0;
}

/* ===== NODE GRID ===== */
.node-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(2rem, 4vw, 4rem);
    padding: clamp(4rem, 8vh, 6rem) clamp(2rem, 5vw, 4rem);
    background-color: var(--void-black);
}

.node {
    background: linear-gradient(180deg, var(--deep-night) 0%, var(--void-black) 100%);
    padding: clamp(2rem, 4vw, 3rem);
    border: 1px solid var(--light-gray);
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

.node[data-node="1"] { 
    grid-column: 1 / 5;
    animation-delay: 0.1s;
}
.node[data-node="2"] { 
    grid-column: 5 / 9;
    animation-delay: 0.2s;
}
.node[data-node="3"] { 
    grid-column: 9 / 13;
    animation-delay: 0.3s;
}
.node[data-node="4"] { 
    grid-column: 2 / 12;
    animation-delay: 0.4s;
}
.node[data-node="5"] { 
    grid-column: 1 / 5;
    animation-delay: 0.5s;
}
.node[data-node="6"] { 
    grid-column: 6 / 10;
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.node-left {
    grid-column: 1 / 5;
}

.node-center {
    grid-column: 5 / 9;
}

.node-right {
    grid-column: 9 / 13;
}

.node-wide {
    grid-column: 2 / 12;
}

.node-left-small {
    grid-column: 1 / 5;
}

.node-center-small {
    grid-column: 6 / 10;
}

.node-heading {
    font-family: var(--font-secondary);
    font-size: clamp(1.4rem, 3vw, 2.5rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    color: var(--pure-white);
}

.node-text {
    font-size: clamp(0.9rem, 1.1vw, 1.1rem);
    line-height: 1.7;
    letter-spacing: 0.01em;
    max-width: 70ch;
    color: var(--pure-white);
    margin-bottom: 1rem;
}

.node-text .accent-cyan {
    color: var(--electric-cyan);
    font-weight: 600;
    transition: color var(--transition-fast);
}

.node-text .accent-crimson {
    color: var(--crimson-signal);
    font-weight: 600;
    transition: color var(--transition-fast);
}

.node-accent {
    position: absolute;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
}

.accent-circle-sm {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--electric-cyan);
    animation: accentPulse 2s ease-in-out infinite;
}

.accent-circle-med {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--electric-cyan);
    animation: accentPulse 2.5s ease-in-out infinite;
}

.accent-circle-lg {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--electric-cyan);
    background: transparent;
    animation: accentPulse 3s ease-in-out infinite;
}

.accent-rect-sm {
    width: 16px;
    height: 16px;
    background-color: var(--crimson-signal);
    animation: accentPulse 2s ease-in-out infinite;
}

@keyframes accentPulse {
    0%, 100% { 
        opacity: 0.6;
        transform: translateY(-50%) scale(1);
    }
    50% { 
        opacity: 1;
        transform: translateY(-50%) scale(1.2);
    }
}

.pulse-slow {
    animation: accentPulse 3s ease-in-out infinite !important;
}

/* ===== CONNECTOR LINES (SVG) ===== */
.connector-line {
    grid-column: 1 / 13;
    height: 150px;
    margin: -1rem 0;
    opacity: 0;
    animation: connectorFadeIn 0.6s ease-out forwards;
}

.connector-line[data-connector="1"] {
    animation-delay: 0.35s;
}

.connector-line[data-connector="2"] {
    animation-delay: 0.5s;
}

.connector-line-crimson .connector-path {
    stroke: var(--crimson-signal) !important;
}

@keyframes connectorFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.connector-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 1.2s ease-out forwards;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

/* ===== FIXED ACCENT ELEMENT ===== */
.fixed-accent {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 80px;
    height: 80px;
    z-index: 100;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.fixed-accent:hover {
    transform: scale(1.1);
}

.fixed-accent svg {
    width: 100%;
    height: 100%;
}

.orbit-ring {
    stroke: var(--electric-cyan);
    animation: orbitRotate 4s linear infinite;
}

.orbit-dot {
    fill: var(--electric-cyan);
    animation: orbitDotPulse 2s ease-in-out infinite;
}

@keyframes orbitRotate {
    from {
        transform: rotate(0deg);
        transform-origin: center;
    }
    to {
        transform: rotate(360deg);
        transform-origin: center;
    }
}

@keyframes orbitDotPulse {
    0%, 100% {
        opacity: 0.6;
        r: 4px;
    }
    50% {
        opacity: 1;
        r: 6px;
    }
}

/* ===== SCROLL INDICATOR ===== */
#scroll-indicator {
    position: fixed;
    right: 0;
    top: 0;
    width: 2px;
    height: 0%;
    background: linear-gradient(180deg, var(--electric-cyan), var(--crimson-signal));
    z-index: 50;
    transition: height 0.1s linear;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .node[data-node="1"] { grid-column: 1 / 7; }
    .node[data-node="2"] { grid-column: 7 / 13; }
    .node[data-node="3"] { grid-column: 1 / 7; }
    .node[data-node="4"] { grid-column: 1 / 13; }
    .node[data-node="5"] { grid-column: 1 / 7; }
    .node[data-node="6"] { grid-column: 7 / 13; }
    
    .node-left { grid-column: 1 / 7; }
    .node-center { grid-column: 7 / 13; }
    .node-right { grid-column: 1 / 7; }
    .node-wide { grid-column: 1 / 13; }
    .node-left-small { grid-column: 1 / 7; }
    .node-center-small { grid-column: 7 / 13; }
}

@media (max-width: 768px) {
    .node,
    .node[data-node="1"],
    .node[data-node="2"],
    .node[data-node="3"],
    .node[data-node="4"],
    .node[data-node="5"],
    .node[data-node="6"],
    .node-left,
    .node-center,
    .node-right,
    .node-wide,
    .node-left-small,
    .node-center-small {
        grid-column: 1 / -1;
    }
    
    .node-grid {
        grid-template-columns: 1fr;
        gap: clamp(1.5rem, 3vw, 2.5rem);
        padding: clamp(2rem, 5vh, 4rem) clamp(1.5rem, 3vw, 2rem);
    }
    
    .connector-line {
        grid-column: 1 / -1;
        height: 100px;
        margin: -0.5rem 0;
    }
    
    .fixed-accent {
        width: 60px;
        height: 60px;
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .node-accent {
        right: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: clamp(2rem, 5vh, 3rem) clamp(1rem, 3vw, 2rem);
    }
    
    .site-title {
        font-size: clamp(1.8rem, 8vw, 3rem);
    }
    
    .pulse-orbit {
        width: 80px;
        height: 80px;
    }
    
    .node-grid {
        padding: clamp(1.5rem, 3vh, 2rem) clamp(1rem, 2vw, 1.5rem);
        gap: clamp(1rem, 2vw, 1.5rem);
    }
    
    .node {
        padding: clamp(1.5rem, 3vw, 2rem);
    }
    
    .node-heading {
        font-size: clamp(1rem, 2.5vw, 1.5rem);
        margin-bottom: 0.8rem;
    }
    
    .node-text {
        font-size: clamp(0.85rem, 1vw, 0.95rem);
    }
}

/* ===== UTILITY CLASSES ===== */
.fade-in-scroll {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== SCROLLBAR STYLING (optional browser-specific) ===== */
::-webkit-scrollbar {
    width: 2px;
}

::-webkit-scrollbar-track {
    background: var(--void-black);
}

::-webkit-scrollbar-thumb {
    background: var(--electric-cyan);
    border-radius: 1px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--crimson-signal);
}

/* Firefox */
* {
    scrollbar-color: var(--electric-cyan) var(--void-black);
    scrollbar-width: thin;
}

/* ===== PRINT STYLES ===== */
@media print {
    body {
        background-color: white;
        color: black;
    }
    
    .fixed-accent,
    #scroll-indicator,
    .connector-line {
        display: none;
    }
}
