:root {
    --bg-dark: #030306;
    --bg-deep-zone: #05050a;
    --bg-card: rgba(8, 8, 15, 0.75);
    --neon-cyan: #00f2fe;
    --neon-purple: #4facfe;
    --text-main: #f0f2f5;
    --text-muted: #8fa0b5;
    --border-premium: rgba(0, 242, 254, 0.08);
}

* {
    margin: 0; padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* ==========================================================================
   MINDBLOWING CORE SYSTEM PRELOADER
   ========================================================================== */
#loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #020205;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    z-index: 99999; overflow: hidden;
    transition: transform 0.8s cubic-bezier(0.85, 0, 0.15, 1), opacity 0.6s ease;
}

/* Cyber Matrix Subtle Background Grid */
.loader-bg-grid {
    position: absolute; inset: 0;
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(0, 242, 254, 0.02) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(0, 242, 254, 0.02) 1px, transparent 1px);
    z-index: 1; pointer-events: none;
}

/* Glitch Hologram Scanline Effect */
.loader-scanline {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(0, 242, 254, 0.04) 50%, rgba(255,255,255,0));
    background-size: 100% 8px;
    animation: scanlineAnimation 8s linear infinite;
    z-index: 2; pointer-events: none;
}
@keyframes scanlineAnimation { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }

/* Cyber Terminal Windows Matrix Logs */
.loader-terminal {
    width: 90%; max-width: 650px;
    height: 180px; background: rgba(5, 5, 10, 0.9);
    border: 1px solid rgba(0, 242, 254, 0.15);
    border-radius: 8px; margin-bottom: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), inset 0 0 20px rgba(0,242,254,0.03);
    z-index: 3; display: flex; flex-direction: column; overflow: hidden;
}
.terminal-header {
    background: rgba(12, 12, 25, 0.9); padding: 10px 15px;
    border-bottom: 1px solid rgba(0, 242, 254, 0.08);
    display: flex; align-items: center; gap: 8px;
}
.terminal-dot { width: 8px; height: 8px; border-radius: 50%; }
.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }
.terminal-title {
    font-family: 'Fira Code', monospace; font-size: 0.7rem;
    color: var(--text-muted); margin-left: auto; letter-spacing: 1px;
}
.terminal-body {
    padding: 15px; flex: 1; overflow-y: hidden;
    font-family: 'Fira Code', monospace; font-size: 0.75rem;
    line-height: 1.6; color: rgba(0, 242, 254, 0.85);
    display: flex; flex-direction: column; justify-content: flex-end;
}
.terminal-row {
    white-space: nowrap; overflow: hidden;
    animation: typeLog 0.15s ease-out both;
}
@keyframes typeLog { from { opacity: 0; transform: translateX(-5px); } to { opacity: 1; transform: translateX(0); } }

/* Quantum Energy Core Rings & Counter */
.loader-core-wrapper {
    position: relative; width: 110px; height: 110px;
    z-index: 3; margin-bottom: 30px;
}
.quantum-loader-ring {
    position: absolute; inset: 0; border-radius: 50%;
    border: 2px dashed rgba(0, 242, 254, 0.4);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.15);
    animation: ringRotateClockwise 4s linear infinite;
}
.quantum-loader-ring-inner {
    position: absolute; inset: 12px; border-radius: 50%;
    border: 2px solid transparent; border-top-color: var(--neon-purple);
    border-bottom-color: var(--neon-purple);
    animation: ringRotateCounter 1.8s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}
.loader-percentage {
    position: absolute; inset: 0; display: flex;
    justify-content: center; align-items: center;
    font-family: 'Orbitron', sans-serif; font-size: 1.15rem;
    font-weight: 700; color: #fff; text-shadow: 0 0 10px rgba(0, 242, 254, 0.6);
}

@keyframes ringRotateClockwise { to { transform: rotate(360deg); } }
@keyframes ringRotateCounter { to { transform: rotate(-360deg); } }

/* Sleek Horizontal Cyber Loading Bar Track */
.loader-progress-track {
    width: 250px; height: 3px; background: rgba(255,255,255,0.03);
    border-radius: 10px; overflow: hidden; z-index: 3; margin-bottom: 15px;
    border: 1px solid rgba(255,255,255,0.01);
}
.loader-progress-bar {
    width: 0%; height: 100%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    box-shadow: 0 0 12px var(--neon-cyan);
    transition: width 0.08s ease-out;
}
.loader-status {
    font-family: 'Orbitron', sans-serif; font-size: 0.75rem;
    letter-spacing: 3px; color: var(--text-muted); z-index: 3;
}

/* System Ready Exiting Transition Classes */
#loader.loaded {
    transform: translateY(-100%);
    opacity: 0; pointer-events: none;
}

/* Particle Canvas Layer */
#particleCanvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; pointer-events: all;
}

/* Header */
header {
    position: fixed; top: 0; left: 0; width: 100%;
    background: rgba(3, 3, 6, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    z-index: 100;
}
.nav-container {
    max-width: 1300px; margin: 0 auto;
    padding: 20px; display: flex;
    justify-content: space-between; align-items: center;
}
.logo {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900; font-size: 1.3rem;
    display: flex; align-items: center; gap: 10px;
}
.logo-box {
    width: 24px; height: 24px; border: 2px solid var(--neon-cyan);
    transform: rotate(45deg); display: flex; justify-content: center; align-items: center;
}
.logo-inner { width: 10px; height: 10px; background: var(--neon-purple); }
.neon-text { color: var(--neon-cyan); text-shadow: 0 0 10px rgba(0, 242, 254, 0.5); }
.nav-links { display: flex; list-style: none; gap: 35px; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--neon-cyan); }
.btn-cyber-nav {
    border: 1px solid var(--neon-cyan); padding: 8px 18px; border-radius: 4px;
    color: var(--neon-cyan); text-decoration: none; font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem; background: rgba(0, 242, 254, 0.03); transition: 0.3s;
}

/* Hero Section */
.hero-section {
    min-height: 100vh; max-width: 1300px;
    margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center; gap: 20px;
    position: relative; z-index: 10;
}
.hero-content { flex: 1.1; margin-top: -40px; will-change: transform, opacity, filter; }
.hero-content h1 {
    font-family: 'Orbitron', sans-serif; font-size: 3.4rem; font-weight: 900;
    line-height: 1.15; margin-bottom: 25px; min-height: 120px;
    background: linear-gradient(45deg, #ffffff, var(--neon-purple));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-content p { color: var(--text-muted); font-size: 1.1rem; line-height: 1.6; max-width: 520px; margin-bottom: 35px; }
.hero-btns { display: flex; gap: 20px; }
.btn-primary-cyber {
    padding: 14px 28px; border-radius: 4px; background: linear-gradient(45deg, var(--neon-cyan), var(--neon-purple));
    color: #000; font-family: 'Orbitron', sans-serif; text-decoration: none; font-weight: bold; transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0, 242, 254, 0.2);
}
.btn-secondary-cyber {
    padding: 14px 28px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.08);
    color: #fff; font-family: 'Orbitron', sans-serif; text-decoration: none; transition: 0.3s;
    background: rgba(255,255,255,0.02);
}

.hero-visual { flex: 0.9; display: flex; justify-content: center; align-items: center; will-change: transform, opacity, filter; }
.hologram-viewport {
    position: relative; width: 680px; height: 680px;
    display: flex; justify-content: center; align-items: center;
    animation: floatingObj 6s ease-in-out infinite;
}
#hero3DCanvas { width: 100%; height: 100%; position: relative; z-index: 5; }
.hologram-glow {
    position: absolute; width: 450px; height: 450px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.18) 0%, transparent 70%);
    z-index: -1; pointer-events: none;
}
@keyframes floatingObj { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

/* Floating Cubes Background */
.floating-bg-container {
    position: absolute; top: 0; left: 0; width: 100%; height: 260vh;
    pointer-events: none; z-index: 1; overflow: hidden; perspective: 1200px;
}
.premium-cube {
    position: absolute; width: 65px; height: 65px;
    transform-style: preserve-3d; will-change: transform;
}
.cube-pos-1 { top: 110vh; left: 8%; transform: rotateX(20deg) rotateY(40deg); }
.cube-pos-2 { top: 160vh; right: 10%; transform: rotateX(45deg) rotateY(15deg); }
.cube-pos-3 { top: 220vh; left: 12%; transform: rotateX(10deg) rotateY(55deg); }
.face {
    position: absolute; width: 65px; height: 65px;
    border: 1px solid rgba(0, 242, 254, 0.25);
    background: linear-gradient(135deg, rgba(12, 12, 22, 0.95), rgba(5, 5, 10, 0.98));
    box-shadow: inset 0 0 15px rgba(0, 242, 254, 0.08), 0 0 30px rgba(0,0,0,0.6);
}
.f   { transform: translateZ(32.5px); background: linear-gradient(135deg, #0f0f1a, #06060c); }
.b   { transform: rotateY(180deg) translateZ(32.5px); filter: brightness(0.5); }
.r   { transform: rotateY(90deg) translateZ(32.5px); filter: brightness(0.8); }
.l   { transform: rotateY(-90deg) translateZ(32.5px); filter: brightness(0.6); }
.t   { transform: rotateX(90deg) translateZ(32.5px); filter: brightness(1.2); border-color: rgba(0, 242, 254, 0.4); }
.bot { transform: rotateX(-90deg) translateZ(32.5px); filter: brightness(0.4); }

/* Core Sections */
.section-padding { padding: 120px 20px; position: relative; z-index: 2; }
.container { max-width: 1300px; margin: 0 auto; }
.section-header { margin-bottom: 60px; }
.sub-title {
    font-family: 'Orbitron', sans-serif; font-size: 0.85rem; letter-spacing: 3px;
    color: var(--neon-cyan); display: block; margin-bottom: 12px;
}
.section-header h2 { font-family: 'Orbitron', sans-serif; font-size: 2.3rem; font-weight: 700; letter-spacing: -0.5px; }

.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

/* Interactive Glow & 3D Tilt */
.glow-card {
    position: relative;
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.15s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.15s ease;
}
.glow-card::after {
    content: '';
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    border-radius: inherit;
    background: radial-gradient(400px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), rgba(0, 242, 254, 0.09), transparent 60%);
    z-index: 1; pointer-events: none; opacity: 0;
    transition: opacity 0.4s ease;
}
.glow-card:hover::after { opacity: 1; }

/* Ecosystem Cards */
.cyber-card {
    background: var(--bg-card); border: 1px solid var(--border-premium);
    padding: 50px 35px; border-radius: 12px; overflow: hidden;
    backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}
.cyber-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 242, 254, 0.05), transparent 60%); pointer-events: none;
}
.cyber-card:hover {
    box-shadow: 0 30px 60px rgba(0,0,0,0.7), 0 0 35px rgba(0, 242, 254, 0.06);
}
.card-icon { font-size: 2rem; color: var(--neon-cyan); margin-bottom: 25px; text-shadow: 0 0 15px rgba(0, 242, 254, 0.3); position: relative; z-index: 2; }
.cyber-card h3 { font-family: 'Orbitron', sans-serif; font-size: 1.35rem; margin-bottom: 15px; font-weight: 700; position: relative; z-index: 2; }
.cyber-card p { color: var(--text-muted); line-height: 1.6; font-size: 0.95rem; margin-bottom: 25px; position: relative; z-index: 2; }
.card-link {
    color: var(--neon-cyan); text-decoration: none; font-size: 0.85rem;
    font-family: 'Orbitron', sans-serif; font-weight: bold; display: inline-flex; align-items: center; gap: 8px; transition: 0.3s; position: relative; z-index: 2;
}
.card-link:hover i { transform: translateX(5px); }

/* Continuous Neon RGB Border */
.rgb-border-fx {
    position: absolute; inset: 0; border-radius: inherit; padding: 2px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; z-index: 5;
}
.rgb-border-fx::before {
    content: ''; position: absolute; top: 50%; left: 50%; width: 250%; height: 250%;
    background: conic-gradient(transparent 65%, #00f2fe, #ff0055, #9d00ff, #00f2fe);
    transform: translate(-50%, -50%); animation: spinRGB 3s linear infinite;
}
.cyber-card:hover .rgb-border-fx::before {
    background: conic-gradient(transparent 40%, #00f2fe, #ff0055, #9d00ff, #00f2fe);
    animation: spinRGB 1.5s linear infinite;
}
@keyframes spinRGB { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }

/* Mission & Value Section Wrapper */
.mission-value-wrapper { display: flex; flex-direction: column; gap: 40px; margin-top: 60px; }

.mv-card {
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.9), rgba(4, 4, 8, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-left: 4px solid #333; border-radius: 16px;
    display: flex; align-items: center; justify-content: space-between;
    overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.8);
}
.mv-card:nth-child(1) { border-left-color: var(--neon-cyan); }
.mv-card:nth-child(2) { border-left-color: var(--neon-purple); }
.mv-card:hover {
    box-shadow: 0 35px 70px rgba(0,0,0,0.9), 0 0 40px rgba(0, 242, 254, 0.08);
    border-color: rgba(0, 242, 254, 0.25);
}

.mv-content { padding: 50px 60px; flex: 1.2; z-index: 2; position: relative; }
.mv-header { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.mv-header i {
    font-size: 1.8rem; color: #666; background: rgba(255,255,255,0.03);
    padding: 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); transition: all 0.4s ease;
}
.mv-card:hover .mv-header i {
    color: var(--text-main); background: rgba(0, 242, 254, 0.1);
    border-color: rgba(0, 242, 254, 0.4); box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
}
.mv-header h3 { font-family: 'Orbitron', sans-serif; font-size: 1.8rem; font-weight: 700; color: var(--text-main); }
.mv-content p { color: var(--text-muted); line-height: 1.8; font-size: 1.05rem; }

/* Hologram Cores */
.mv-visual {
    flex: 0.8; position: relative; height: 320px;
    display: flex; justify-content: center; align-items: center;
    background: linear-gradient(90deg, transparent, rgba(0, 242, 254, 0.02));
    perspective: 1000px; z-index: 2; overflow: hidden;
}
.cyber-hologram-core {
    width: 180px; height: 180px;
    position: relative; transform-style: preserve-3d;
    display: flex; justify-content: center; align-items: center;
    will-change: transform;
}
.holo-ring {
    position: absolute; border-radius: 50%;
    border: 2px dashed rgba(0, 242, 254, 0.35);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.1), inset 0 0 15px rgba(0, 242, 254, 0.1);
}
.ring-1 { width: 100%; height: 100%; transform: rotateX(70deg); animation: holoSpinNormal 12s linear infinite; }
.ring-2 {
    width: 80%; height: 80%; border: 1.5px solid rgba(0, 242, 254, 0.5);
    border-right-color: transparent; transform: rotateX(30deg) rotateY(45deg);
    animation: holoSpinReverse 8s linear infinite;
}
.ring-3 { width: 60%; height: 60%; border: 1px dotted var(--neon-cyan); transform: rotateX(60deg) rotateY(-45deg); animation: holoSpinNormal 5s linear infinite; }

.holo-center {
    position: absolute; width: 48px; height: 48px; background: rgba(3, 3, 6, 0.95);
    border: 2px solid var(--neon-cyan); border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    color: var(--neon-cyan); font-size: 1.1rem;
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.6); animation: holoPulse 2s ease-in-out infinite;
}

.holo-ring.purple-glow { border-color: rgba(79, 172, 254, 0.4); box-shadow: 0 0 15px rgba(79, 172, 254, 0.1), inset 0 0 15px rgba(79, 172, 254, 0.1); }
.holo-ring.purple-glow.ring-2 { border-color: rgba(79, 172, 254, 0.6); border-left-color: transparent; }
.holo-ring.purple-glow.ring-3 { border-color: var(--neon-purple); }
.holo-center.purple-glow { border-color: var(--neon-purple); color: var(--neon-purple); box-shadow: 0 0 25px rgba(79, 172, 254, 0.6); }

@keyframes holoSpinNormal { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes holoSpinReverse { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }
@keyframes holoPulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.06); opacity: 1; box-shadow: 0 0 35px rgba(0, 242, 254, 0.9); }
}

/* Architecture Section */
.architectural-darkzone { background: var(--bg-deep-zone); border-top: 1px solid rgba(255,255,255,0.01); }
.architecture-layout { display: flex; align-items: center; gap: 8px; }
.arch-content { flex: 1; }
.arch-content h2 { font-family: 'Orbitron', sans-serif; font-size: 2.3rem; margin-bottom: 25px; line-height: 1.2; }
.arch-content p { color: var(--text-muted); line-height: 1.7; font-size: 1.05rem; margin-bottom: 40px; max-width: 540px; }

.stats-box { display: flex; gap: 50px; }
.stat-item { font-family: 'Orbitron', sans-serif; }
.stat-num { font-size: 2.5rem; font-weight: 900; color: #fff; margin-bottom: 5px; }
.stat-item p { font-family: 'Inter', sans-serif; font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0; }

.arch-visual { flex: 1; display: flex; justify-content: center; }
.tech-stack-container { width: 100%; max-width: 480px; display: flex; flex-direction: column; align-items: center; }
.stack-block {
    width: 100%; background: rgba(12, 12, 22, 0.8); border: 1px solid rgba(255,255,255,0.04);
    border-left: 4px solid rgba(255,255,255,0.15); padding: 24px 30px; border-radius: 8px; position: relative;
    font-family: 'Orbitron', sans-serif; font-size: 0.95rem; font-weight: 700; letter-spacing: 1px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); transition: all 0.4s ease;
}
.block-inset { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, rgba(255,255,255,0.01), transparent); pointer-events: none; }
.core-highlight { border-left-color: var(--neon-cyan); background: rgba(0, 242, 254, 0.02); box-shadow: 0 15px 35px rgba(0, 242, 254, 0.05), 0 10px 25px rgba(0,0,0,0.5); }
.stack-block i { margin-right: 12px; color: var(--text-muted); }
.core-highlight i { color: var(--neon-cyan); text-shadow: 0 0 10px rgba(0, 242, 254, 0.5); }
.stack-block:hover { transform: scale(1.02); border-color: rgba(0, 242, 254, 0.25); }
.stack-connector { width: 2px; height: 30px; background: linear-gradient(to bottom, rgba(0,242,254,0.2), transparent); }

/* Footer */
footer { border-top: 1px solid rgba(255,255,255,0.02); padding: 40px 20px; background: #020204; position: relative; z-index: 2; }
.footer-container { max-width: 1300px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--text-muted); font-family: 'Orbitron', sans-serif; letter-spacing: 1px; }
.footer-socials { display: flex; gap: 20px; }
.footer-socials a { color: var(--text-muted); font-size: 1.1rem; transition: 0.3s; }
.footer-socials a:hover { color: var(--neon-cyan); }

@media (max-width: 968px) {
    .hero-section { flex-direction: column; text-align: center; }
    .hero-content { margin-top: 60px; }
    .hologram-viewport { width: 380px; height: 380px; }
    .architecture-layout { flex-direction: column; gap: 60px; }
    .stats-box { justify-content: center; }
    .mv-card { flex-direction: column; }
    .mv-content { padding: 40px 30px; }
    .mv-visual { width: 100%; height: 250px; clip-path: none; justify-content: center; padding: 0; background: rgba(0,0,0,0.4); }
}