/* ═══════════════════════════════════════════════════════════════
   NEXUS - SCI-FI THEME STYLES
   Futuristic, Holographic, Cyberpunk Aesthetics
═══════════════════════════════════════════════════════════════ */

:root {
    /* Core Colors */
    --primary: #00f0ff;
    --primary-glow: rgba(0, 240, 255, 0.5);
    --secondary: #ff00ff;
    --secondary-glow: rgba(255, 0, 255, 0.5);
    --accent: #00ff88;
    --accent-glow: rgba(0, 255, 136, 0.5);
    
    /* Background Colors */
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --bg-card: rgba(15, 15, 25, 0.8);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-glow: linear-gradient(135deg, var(--primary-glow), var(--secondary-glow));
}

/* ═══════════════════════════════════════════════════════════════
   BASE STYLES & RESET
═══════════════════════════════════════════════════════════════ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATED BACKGROUND ELEMENTS
═══════════════════════════════════════════════════════════════ */

/* Grid Background */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px); }
}

/* Scanning Line Effect */
.scan-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--primary), 
        var(--primary), 
        transparent
    );
    box-shadow: 
        0 0 20px var(--primary),
        0 0 60px var(--primary-glow);
    animation: scanMove 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 1000;
}

@keyframes scanMove {
    0%, 100% { top: -10px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100vh; opacity: 0; }
}

/* Floating Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary);
    border-radius: 50%;
    animation: particleFloat 15s linear infinite;
    box-shadow: 0 0 10px var(--primary);
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Holographic Rings */
.holo-ring {
    position: fixed;
    border: 2px solid transparent;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.ring-1 {
    width: 600px;
    height: 600px;
    top: 50%;
    right: -200px;
    transform: translateY(-50%) rotateX(75deg);
    border-color: rgba(0, 240, 255, 0.1);
    animation: ringRotate 20s linear infinite;
}

.ring-2 {
    width: 500px;
    height: 500px;
    top: 50%;
    right: -150px;
    transform: translateY(-50%) rotateX(75deg);
    border-color: rgba(255, 0, 255, 0.1);
    animation: ringRotate 15s linear infinite reverse;
}

.ring-3 {
    width: 400px;
    height: 400px;
    top: 50%;
    right: -100px;
    transform: translateY(-50%) rotateX(75deg);
    border-color: rgba(0, 255, 136, 0.1);
    animation: ringRotate 10s linear infinite;
}

@keyframes ringRotate {
    from { transform: translateY(-50%) rotateX(75deg) rotateZ(0deg); }
    to { transform: translateY(-50%) rotateX(75deg) rotateZ(360deg); }
}

/* ═══════════════════════════════════════════════════════════════
   CONTAINER & LAYOUT
═══════════════════════════════════════════════════════════════ */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

/* ═══════════════════════════════════════════════════════════════
   HEADER & NAVIGATION
═══════════════════════════════════════════════════════════════ */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    margin-bottom: 4rem;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0.3em;
    color: var(--primary);
    text-shadow: 
        0 0 10px var(--primary-glow),
        0 0 20px var(--primary-glow),
        0 0 40px var(--primary-glow);
}

/* Glitch Effect */
.glitch {
    position: relative;
    animation: glitchShake 3s ease-in-out infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    color: var(--secondary);
    animation: glitchLeft 2s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.glitch::after {
    color: var(--accent);
    animation: glitchRight 3s infinite linear alternate-reverse;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitchShake {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitchLeft {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-3px, 0); }
    40% { transform: translate(3px, 0); }
}

@keyframes glitchRight {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(3px, 0); }
    40% { transform: translate(-3px, 0); }
}

/* Navigation */
.nav {
    display: flex;
    gap: 3rem;
}

.nav-link {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary-glow);
}

.nav-link:hover::before {
    width: 100%;
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════════════════════ */

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 70vh;
    padding: 2rem 0;
}

.hero-content {
    animation: fadeSlideIn 1s ease-out;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Status Bar */
.status-bar {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.5rem;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 30px;
    margin-bottom: 2rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px var(--accent);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

.status-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--accent);
}

/* Typing Animation */
.typing {
    overflow: hidden;
    white-space: nowrap;
    animation: typing 3s steps(25) infinite;
}

@keyframes typing {
    0%, 100% { width: 0; }
    50%, 90% { width: 100%; }
}

/* Hero Title */
.hero-title {
    margin-bottom: 1.5rem;
}

.line {
    display: block;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.1em;
}

.line-1 {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    animation: fadeIn 1s ease-out 0.3s both;
}

.line-2 {
    font-size: 4rem;
    font-weight: 900;
    animation: fadeIn 1s ease-out 0.6s both;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Glowing Text Effect */
.glow-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGlow 2s ease-in-out infinite alternate;
    position: relative;
}

@keyframes textGlow {
    from {
        filter: drop-shadow(0 0 10px var(--primary-glow));
    }
    to {
        filter: drop-shadow(0 0 25px var(--secondary-glow));
    }
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    margin-bottom: 3rem;
    animation: fadeIn 1s ease-out 0.9s both;
}

/* CTA Buttons */
.cta-group {
    display: flex;
    gap: 1.5rem;
    animation: fadeIn 1s ease-out 1.2s both;
}

.btn {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    padding: 1rem 2.5rem;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    clip-path: polygon(
        0 0, 
        calc(100% - 15px) 0, 
        100% 15px, 
        100% 100%, 
        15px 100%, 
        0 calc(100% - 15px)
    );
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 
        0 0 20px var(--primary-glow),
        inset 0 0 20px rgba(0, 240, 255, 0.1);
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

/* ═══════════════════════════════════════════════════════════════
   HOLOGRAM DISPLAY
═══════════════════════════════════════════════════════════════ */

.hologram-container {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeSlideIn 1s ease-out 0.5s both;
}

.hologram {
    position: relative;
    width: 350px;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Central Core */
.hologram-core {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    border-radius: 50%;
    animation: corePulse 2s ease-in-out infinite;
    box-shadow: 
        0 0 30px var(--primary),
        0 0 60px var(--primary-glow),
        inset 0 0 30px var(--primary);
}

@keyframes corePulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 
            0 0 30px var(--primary),
            0 0 60px var(--primary-glow);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 
            0 0 50px var(--primary),
            0 0 100px var(--primary-glow);
    }
}

/* Orbiting Rings */
.hologram-orbit {
    position: absolute;
    border: 2px solid;
    border-radius: 50%;
    animation: orbitSpin linear infinite;
}

.orbit-1 {
    width: 150px;
    height: 150px;
    border-color: rgba(0, 240, 255, 0.5);
    animation-duration: 4s;
    transform: rotateX(60deg);
}

.orbit-2 {
    width: 220px;
    height: 220px;
    border-color: rgba(255, 0, 255, 0.4);
    animation-duration: 6s;
    animation-direction: reverse;
    transform: rotateX(60deg) rotateY(30deg);
}

.orbit-3 {
    width: 300px;
    height: 300px;
    border-color: rgba(0, 255, 136, 0.3);
    animation-duration: 8s;
    transform: rotateX(60deg) rotateY(-30deg);
}

@keyframes orbitSpin {
    from { transform: rotateX(60deg) rotateZ(0deg); }
    to { transform: rotateX(60deg) rotateZ(360deg); }
}

/* Orbiting Dots */
.orbit-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    top: -6px;
    left: 50%;
    margin-left: -6px;
    box-shadow: 0 0 20px var(--primary);
}

.orbit-2 .orbit-dot {
    background: var(--secondary);
    box-shadow: 0 0 20px var(--secondary);
}

.orbit-3 .orbit-dot {
    background: var(--accent);
    box-shadow: 0 0 20px var(--accent);
}

/* Data Lines */
.hologram-data {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.data-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: dataFlow 3s linear infinite;
}

.data-line:nth-child(1) {
    width: 60%;
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.data-line:nth-child(2) {
    width: 40%;
    top: 40%;
    left: 30%;
    animation-delay: 0.5s;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
}

.data-line:nth-child(3) {
    width: 50%;
    top: 60%;
    left: 25%;
    animation-delay: 1s;
}

.data-line:nth-child(4) {
    width: 30%;
    top: 80%;
    left: 35%;
    animation-delay: 1.5s;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

@keyframes dataFlow {
    0%, 100% { opacity: 0; transform: scaleX(0); }
    50% { opacity: 1; transform: scaleX(1); }
}

/* ═══════════════════════════════════════════════════════════════
   STATS SECTION
═══════════════════════════════════════════════════════════════ */

.stats-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    padding: 3rem 0;
    border-top: 1px solid rgba(0, 240, 255, 0.1);
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid rgba(0, 240, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    clip-path: polygon(
        0 0,
        calc(100% - 20px) 0,
        100% 20px,
        100% 100%,
        20px 100%,
        0 calc(100% - 20px)
    );
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 240, 255, 0.1);
}

.stat-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */

.footer {
    margin-top: 4rem;
    text-align: center;
    padding: 2rem 0;
}

.footer-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    margin-bottom: 2rem;
}

.footer-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
═══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hologram-container {
        order: -1;
        margin-bottom: 2rem;
    }

    .hologram {
        width: 280px;
        height: 280px;
    }

    .cta-group {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav {
        gap: 1.5rem;
    }

    .line-2 {
        font-size: 2.5rem;
    }

    .stats-section {
        grid-template-columns: 1fr;
    }

    .holo-ring {
        display: none;
    }
}
