/* ============================================
   supremacy.international - Global Authority
   ============================================ */

:root {
    --bg-primary: #0f1419;
    --bg-secondary: #1a2332;
    --accent-primary: #4a9eff;
    --accent-secondary: #7b3ff2;
    --accent-tertiary: #e8e8e8;
    --text-primary: #e8e8e8;
    --text-secondary: #8fa3c0;
    --text-accent: #4a9eff;
    --accent-quaternary: #ff6b5a;
    
    --font-display: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Inconsolata', monospace;
    
    --transition-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Reset & Base Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    letter-spacing: 0.01em;
    position: relative;
}

/* ============================================
   Background & Network Visualization
   ============================================ */

.background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.network-bg {
    width: 100%;
    height: 100%;
    position: absolute;
    opacity: 0.15;
    animation: networkFadeIn 1s ease-out forwards;
}

.network-dots .dot {
    fill: var(--accent-primary);
    opacity: 0.6;
    animation: dotPulse 4s ease-in-out infinite;
}

.network-lines .line {
    stroke: var(--accent-primary);
    stroke-width: 1;
    opacity: 0.4;
    animation: lineFlow 8s linear infinite;
}

@keyframes networkFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.15;
    }
}

@keyframes dotPulse {
    0%, 100% {
        opacity: 0.4;
        r: 3;
    }
    50% {
        opacity: 0.8;
        r: 4;
    }
}

@keyframes lineFlow {
    0% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: -20;
    }
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, rgba(15, 20, 25, 0.95) 0%, rgba(26, 35, 50, 0.8) 100%);
    overflow: hidden;
    padding: 2rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #4a9eff, #7b3ff2, #4a9eff);
    background-size: 400% 400%;
    opacity: 0.05;
    animation: gradientShift 8s ease infinite;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    animation: heroContentEnter 0.8s var(--transition-smooth) forwards;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 12vw, 9rem);
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInScale 0.8s var(--transition-smooth) 0.2s both;
    text-transform: lowercase;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    font-weight: 400;
    animation: fadeInScale 0.8s var(--transition-smooth) 0.4s both;
    max-width: 500px;
    margin: 0 auto;
}

.hero-accent {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.accent-line {
    width: 2px;
    height: 60px;
    background: linear-gradient(180deg, var(--accent-primary), transparent);
    animation: fadeInDown 1s var(--transition-ease) 0.6s both;
}

@keyframes heroContentEnter {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* ============================================
   Content Rings
   ============================================ */

.page-content {
    position: relative;
    z-index: 1;
    padding: 3rem 2rem;
}

.content-ring {
    margin: 6rem auto;
    max-width: 1300px;
    padding: 4rem 3rem;
    background: rgba(26, 35, 50, 0.6);
    border: 1px solid rgba(74, 158, 255, 0.15);
    border-radius: 8px;
    position: relative;
    opacity: 0;
    animation: ringFadeIn 0.8s var(--transition-ease) forwards;
    backdrop-filter: blur(10px);
}

.ring-1 {
    animation-delay: 0s;
}

.ring-2 {
    animation-delay: 0.15s;
    margin-left: 2%;
}

.ring-3 {
    animation-delay: 0.3s;
    margin-left: -2%;
}

.ring-4 {
    animation-delay: 0.45s;
    margin-left: 1%;
}

@keyframes ringFadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ring-inner {
    position: relative;
    z-index: 1;
}

.ring-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.ring-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(74, 158, 255, 0.6);
}

.ring-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.ring-card {
    padding: 2rem;
    background: rgba(15, 20, 25, 0.5);
    border: 1px solid rgba(74, 158, 255, 0.1);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s var(--transition-ease);
    cursor: pointer;
}

.ring-card:hover {
    background: rgba(15, 20, 25, 0.8);
    border-color: rgba(123, 63, 242, 0.3);
    transform: translateY(-4px);
}

.ring-card.compact {
    padding: 1.5rem;
}

.card-accent-point {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(74, 158, 255, 0.8);
    animation: pointPulse 3s ease-in-out infinite;
}

.ring-card:hover .card-accent-point {
    animation: pointBrighten 0.3s ease-out forwards;
}

@keyframes pointPulse {
    0%, 100% {
        opacity: 0.6;
        box-shadow: 0 0 8px rgba(74, 158, 255, 0.4);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 16px rgba(74, 158, 255, 0.8);
    }
}

@keyframes pointBrighten {
    to {
        opacity: 1;
        box-shadow: 0 0 20px rgba(123, 63, 242, 1);
    }
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    margin-right: 1.5rem;
}

.card-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    letter-spacing: 0.005em;
}

.ring-accent-line {
    position: absolute;
    bottom: 0;
    left: 3rem;
    width: calc(100% - 6rem);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0.3;
}

/* ============================================
   Implementation Details Ring
   ============================================ */

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

.implementation-block {
    padding: 1.5rem;
    background: rgba(15, 20, 25, 0.4);
    border-left: 2px solid var(--accent-primary);
    border-radius: 2px;
    position: relative;
    transition: all 0.3s var(--transition-ease);
}

.implementation-block:hover {
    background: rgba(15, 20, 25, 0.7);
    border-left-color: var(--accent-secondary);
    transform: translateX(4px);
}

.impl-heading {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.impl-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   Status Display Ring
   ============================================ */

.status-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(74, 158, 255, 0.05);
    border-radius: 4px;
    border: 1px solid rgba(74, 158, 255, 0.1);
}

.status-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
}

.status-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.8rem;
}

.status-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent-primary);
    letter-spacing: 0.02em;
}

/* ============================================
   Footer
   ============================================ */

.page-footer {
    background: rgba(26, 35, 50, 0.8);
    border-top: 1px solid rgba(74, 158, 255, 0.15);
    padding: 3rem 2rem;
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

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

.footer-text {
    font-size: 1rem;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
}

.footer-meta {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
}

/* ============================================
   Scroll Indicator
   ============================================ */

.scroll-indicator {
    position: fixed;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 100px;
    background: rgba(74, 158, 255, 0.1);
    z-index: 100;
    border-radius: 1px;
}

.scroll-progress-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 1px;
    transition: height 0.3s var(--transition-ease);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1200px) {
    .ring-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    
    .content-ring {
        padding: 3rem 2rem;
    }
}

@media (max-width: 768px) {
    .page-content {
        padding: 2rem 1.5rem;
    }
    
    .content-ring {
        margin: 4rem auto;
        padding: 2rem 1.5rem;
    }
    
    .ring-2, .ring-3, .ring-4 {
        margin-left: 0 !important;
    }
    
    .ring-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .ring-card {
        padding: 1.5rem 1rem;
    }
    
    .card-accent-point {
        width: 4px;
        height: 4px;
        top: 1rem;
        right: 1rem;
    }
    
    .ring-title {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-text {
        font-size: 0.9rem;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .ring-accent-line {
        left: 1.5rem;
        width: calc(100% - 3rem);
    }
    
    .status-display {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 0.95rem;
    }
    
    .hero {
        padding: 1.5rem;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
    
    .page-content {
        padding: 1.5rem 1rem;
    }
    
    .content-ring {
        margin: 3rem auto;
        padding: 1.5rem 1rem;
    }
    
    .ring-title {
        font-size: 1.2rem;
        margin-bottom: 1.2rem;
    }
    
    .ring-grid {
        gap: 0.8rem;
    }
    
    .ring-card {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .card-text {
        font-size: 0.85rem;
    }
    
    .page-footer {
        padding: 2rem 1rem;
    }
    
    .footer-text {
        font-size: 0.9rem;
    }
}

/* ============================================
   Scroll & Interactive Animations
   ============================================ */

@media (prefers-reduced-motion: no-preference) {
    /* Smooth scrolling already set on html */
    
    /* Network animation efficiency */
    .network-lines .line {
        stroke-dasharray: 20;
    }
    
    /* Smooth transitions for interactive elements */
    a, button, .ring-card, .implementation-block {
        transition: all 0.3s var(--transition-ease);
    }
}

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

/* ============================================
   High Contrast Mode Support
   ============================================ */

@media (prefers-contrast: more) {
    :root {
        --accent-primary: #0066ff;
        --accent-secondary: #9933ff;
    }
}

/* ============================================
   Dark Mode (Already implemented)
   ============================================ */

@media (prefers-color-scheme: dark) {
    /* Already dark by default */
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .background-canvas,
    .scroll-indicator,
    .hero-accent {
        display: none;
    }
    
    .page-content {
        padding: 0;
    }
    
    .content-ring {
        page-break-inside: avoid;
        border: 1px solid #ccc;
        background: white;
        color: black;
    }
}
