/* ============================================================
   INDEX PAGE — Specific styles for the hero / landing page
   Depends on: styles.css (loaded first)
   ============================================================ */

/* Lock page to exactly one viewport — no scroll */
html, body {
    height: 100%;
    overflow: hidden;
}

/* Three.js canvas background */
#three-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
}

/* ===== LOADING SCREEN ===== */
#loading-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #030a07;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
#loading-screen.hidden { opacity: 0; visibility: hidden; }

.loading-logo {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    color: #00ff88;
    letter-spacing: 8px;
    text-shadow: 0 0 20px rgba(0,255,136,0.7), 0 0 40px rgba(0,255,136,0.3);
    animation: flicker 3s infinite;
}
.loading-bar-wrap {
    width: 260px;
    height: 2px;
    background: rgba(0,255,136,0.1);
    overflow: hidden;
}
.loading-bar {
    height: 100%;
    background: linear-gradient(90deg, #00ff88, #e8d44d);
    animation: loadBar 1.8s ease-out forwards;
    box-shadow: 0 0 10px #00ff88;
}
@keyframes loadBar {
    from { width: 0; }
    to   { width: 100%; }
}
.loading-text {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    color: rgba(0,255,136,0.5);
    letter-spacing: 3px;
}
.loading-step {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.55rem;
    color: rgba(0,255,136,0.3);
    letter-spacing: 2px;
    min-height: 1em;
}

/* ===== CURSOR GLOW ===== */
.cursor-glow {
    position: fixed;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,255,136,0.055) 0%, transparent 70%);
    pointer-events: none;
    z-index: 2;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
}

/* ===== HERO SECTION ===== */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    padding: 1rem 2rem;
    padding-top: 70px;
    overflow: hidden;
}

/* Scanner line */
.scanner-line {
    position: absolute;
    left: 0; right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0,255,136,0.6) 20%,
        rgba(232,212,77,0.4) 50%,
        rgba(0,255,136,0.6) 80%,
        transparent
    );
    box-shadow: 0 0 15px rgba(0,255,136,0.4);
    animation: scanLine 6s linear infinite;
    z-index: 5;
    pointer-events: none;
}

/* ===== CSS 3D RINGS ===== */
.ring-3d {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.ring-3d-1 {
    width: 140px; height: 140px;
    border: 1px solid rgba(0,255,136,0.12);
    top: 18%; right: 7%;
    animation: cssRing 14s linear infinite;
}
.ring-3d-2 {
    width: 90px; height: 90px;
    border: 1px solid rgba(232,212,77,0.1);
    bottom: 22%; left: 6%;
    animation: cssRing 9s linear infinite reverse;
}
.ring-3d-3 {
    width: 60px; height: 60px;
    border: 1px solid rgba(0,204,255,0.1);
    top: 30%; left: 12%;
    animation: cssRing 7s linear infinite;
}
@keyframes cssRing {
    from { transform: rotateX(65deg) rotateZ(0deg); }
    to   { transform: rotateX(65deg) rotateZ(360deg); }
}

/* ===== HUD CORNERS ===== */
.hud-corner {
    position: absolute;
    width: 50px; height: 50px;
    opacity: 0.6;
}
.hud-corner-tl { top: 90px; left: 20px; }
.hud-corner-tr { top: 90px; right: 20px; transform: scaleX(-1); }
.hud-corner-bl { bottom: 20px; left: 20px; transform: scaleY(-1); }
.hud-corner-br { bottom: 20px; right: 20px; transform: scale(-1,-1); }

/* ===== HERO INNER (3D parallax target) ===== */
.hero-inner {
    text-align: center;
    max-width: 900px;
    position: relative;
    z-index: 10;
    transition: transform 0.15s ease-out;
}

.hero-sys-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    color: var(--cyber-yellow);
    letter-spacing: 5px;
    margin-bottom: 0.8rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.6s forwards;
}

.circuit-deco {
    display: block;
    margin: 0 auto 0.6rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.8s forwards;
}

.hero-name {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 900;
    letter-spacing: 4px;
    color: var(--cyber-white);
    line-height: 1.1;
    margin-bottom: 0.4rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 1s forwards, glowPulse 4s ease-in-out 2s infinite;
}
.hero-name .highlight {
    color: var(--cyber-green);
    text-shadow: var(--glow-green);
    display: block;
}

.hero-subtitle-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 1.3s forwards;
}
.hero-subtitle-line {
    width: 40px; height: 1px;
    background: var(--cyber-yellow);
    box-shadow: 0 0 6px var(--cyber-yellow);
}
.hero-subtitle {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    color: var(--cyber-yellow);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.hero-quote {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(0.78rem, 1.5vw, 0.92rem);
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 560px;
    margin: 0 auto 1.2rem;
    padding: 0.7rem 1.2rem;
    border-left: 2px solid var(--cyber-green);
    text-align: left;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 1.6s forwards;
    background: rgba(0,255,136,0.03);
}
.hero-quote::before {
    content: '// ';
    color: var(--cyber-green);
}

@keyframes typeCursor {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}
.typing-cursor {
    display: inline-block;
    width: 8px; height: 1em;
    background: var(--cyber-green);
    box-shadow: 0 0 6px var(--cyber-green);
    vertical-align: text-bottom;
    animation: typeCursor 0.9s step-end infinite;
    margin-left: 2px;
}

/* ===== TECH TAGS ===== */
.hero-tags {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 2.3s forwards;
    max-width: 560px;
    margin: 0 auto;
}
.hero-tag {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.6rem;
    color: var(--text-muted);
    border: 1px solid rgba(0,255,136,0.14);
    padding: 0.25rem 0.65rem;
    letter-spacing: 1.5px;
    border-radius: 2px;
    transition: all 0.3s ease;
    cursor: default;
    user-select: none;
}
.hero-tag:hover {
    color: var(--cyber-green);
    border-color: rgba(0,255,136,0.45);
    background: rgba(0,255,136,0.06);
    box-shadow: 0 0 10px rgba(0,255,136,0.2);
    transform: translateY(-2px);
}

/* ===== HUD PANELS ===== */
.hud-panel {
    position: absolute;
    right: 2rem; top: 50%;
    transform: translateY(-50%);
    display: flex; flex-direction: column;
    gap: 0.8rem;
    opacity: 0;
    animation: hudSlideRight 0.8s ease-out 2.2s forwards;
}
.hud-panel-left {
    position: absolute;
    left: 2rem; top: 50%;
    transform: translateY(-50%);
    display: flex; flex-direction: column;
    gap: 1rem;
    opacity: 0;
    animation: hudSlideLeft 0.8s ease-out 2.2s forwards;
}
@keyframes hudSlideLeft {
    from { opacity: 0; transform: translateY(-50%) translateX(-20px); }
    to   { opacity: 1; transform: translateY(-50%) translateX(0); }
}
@keyframes hudSlideRight {
    from { opacity: 0; transform: translateY(-50%) translateX(20px); }
    to   { opacity: 1; transform: translateY(-50%) translateX(0); }
}
.hud-item {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    display: flex; flex-direction: column;
    gap: 0.2rem;
}
.hud-item-label { color: var(--cyber-yellow); font-size: 0.55rem; }
.hud-item-value { color: var(--cyber-green); }
.hud-bar {
    width: 80px; height: 2px;
    background: rgba(0,255,136,0.15);
}
.hud-bar-fill {
    height: 100%;
    background: var(--cyber-green);
    box-shadow: 0 0 6px var(--cyber-green);
}
.hud-coord {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.55rem;
    color: rgba(0,255,136,0.4);
    letter-spacing: 2px;
    writing-mode: vertical-rl;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hud-panel,
    .hud-panel-left { display: none; }
}
@media (max-width: 768px) {
    .hero-name { font-size: 2.5rem; }
    .hero-subtitle { font-size: 0.65rem; }
    .hud-corner { width: 35px; height: 35px; }
}
