/* --- FONTS --- */
@font-face {
  font-family: "GR NORCH";
  src: url("fonts/GR NORCH.otf") format("opentype");
}
@font-face {
  font-family: "BiggerDisplay";
  src: url("fonts/BiggerDisplay.otf") format("opentype");
}

:root {
  --bg-main: #050505;
  --neon: #00ff88;
  --accent: #22d3ee;
  --neon-pink: #ff0055;
  --glass: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.1);
  --font-head: "GR NORCH", "Orbitron", sans-serif;
  --font-body: system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background-color: var(--bg-main); color: white; font-family: var(--font-body); overflow-x: hidden; }

/* --- BACKGROUNDS --- */
.cyber-grid {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -2;
  background-image: linear-gradient(rgba(0, 255, 136, 0.05) 1px, transparent 1px),
  linear-gradient(90deg, rgba(0, 255, 136, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  transform: perspective(500px) rotateX(20deg);
  opacity: 0.5;
}
.aurora-bg {
  position: fixed; top: -50%; left: -50%; width: 200%; height: 200%; z-index: -3;
  background: radial-gradient(circle, rgba(0,255,136,0.1) 0%, rgba(0,0,0,0) 70%);
  animation: aurora 10s infinite alternate;
}
@keyframes aurora { 0% {transform: translate(0,0);} 100% {transform: translate(50px, 50px);} }

/* --- LOGIN --- */
#login-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: #000; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
}
.login-card { width: 90%; max-width: 350px; text-align: center; padding: 40px 20px; }

/* --- HEADER --- */
#site-header {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(5, 5, 5, 0.9); backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border); padding: 10px 0;
}
.header-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; }

#logo-wrapper { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.logo-orbit { position: relative; width: 40px; height: 40px; display: grid; place-items: center; }
.logo-orbit-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid transparent; border-top: 2px solid var(--neon); border-bottom: 2px solid var(--accent);
  animation: breathe 3s ease-in-out infinite; box-shadow: 0 0 15px var(--neon);
}
.logo-text { font-family: var(--font-head); font-size: 1.2rem; color: white; letter-spacing: 2px; }
.logo-subtitle { font-size: 0.7rem; color: #aaa; display: none; }
@media(min-width: 600px) { .logo-subtitle { display: block; } }

@keyframes breathe { 0%, 100% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.1); opacity: 1; } }

/* --- NAV --- */
#main-nav ul { display: none; list-style: none; gap: 20px; margin: 0; padding: 0; }
#main-nav ul.open { display: flex; flex-direction: column; position: absolute; top: 60px; right: 0; background: #111; width: 100%; padding: 20px; border-bottom: 1px solid var(--border); }
@media(min-width: 768px) {
  #main-nav ul { display: flex; position: static; background: transparent; border: none; padding: 0; flex-direction: row; }
  #nav-toggle { display: none; }
}
.nav-link { color: #888; text-decoration: none; text-transform: uppercase; font-size: 0.9rem; transition: 0.3s; }
.nav-link:hover, .nav-link.active { color: var(--neon); text-shadow: 0 0 10px var(--neon); }
#nav-toggle { background: transparent; border: 1px solid #333; color: white; padding: 5px 10px; font-size: 1.2rem; }

/* --- SECTIONS --- */
main { margin-top: 60px; }
.page { display: none; padding-bottom: 80px; animation: fadeUp 0.5s ease; }
.page.active { display: block; }
@keyframes fadeUp { from{opacity:0; transform:translateY(20px);} to{opacity:1; transform:translateY(0);} }

.section-inner { max-width: 1000px; margin: 0 auto; padding: 20px; }
h1 { font-family: var(--font-head); font-size: 2.5rem; margin-bottom: 10px; background: linear-gradient(to right, #fff, var(--neon)); -webkit-background-clip: text; color: transparent; }
h2 { font-family: var(--font-head); border-left: 4px solid var(--neon); padding-left: 15px; margin-bottom: 20px; }

/* --- 3D FEATURE --- */
.work-container {
  width: 100%; height: 60vh; position: relative; background: #000; overflow: hidden; border-top: 1px solid var(--accent); border-bottom: 1px solid var(--accent);
}
canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
#grid-canvas { z-index: 0; opacity: 0.3; }
#letters-canvas { z-index: 1; pointer-events: none; }
.text-container { width: 100%; height: 100%; position: absolute; top: 0; left: 0; z-index: 2; perspective: 1000px; pointer-events: none; }
.letter {
  position: absolute; font-family: "BiggerDisplay", sans-serif; font-size: 8rem; font-weight: bold; color: var(--neon);
  text-shadow: 0 0 20px var(--neon); transform-style: preserve-3d; will-change: transform;
}

/* --- CARDS --- */
.glass-card {
  background: var(--glass); border: 1px solid var(--border); padding: 20px; border-radius: 15px;
  backdrop-filter: blur(10px); margin-bottom: 20px; transition: transform 0.3s;
}
.glass-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.2); }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; }
.vip-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }

/* --- FORMS & BUTTONS --- */
input, select {
  width: 100%; background: #111; border: 1px solid #333; color: white; padding: 12px; margin-bottom: 10px; border-radius: 8px; outline: none;
}
input:focus { border-color: var(--neon); box-shadow: 0 0 10px rgba(0,255,136,0.2); }

.btn { width: 100%; padding: 12px; border-radius: 50px; font-weight: bold; border: none; cursor: pointer; text-transform: uppercase; margin-top: 10px; transition: 0.2s; }
.primary { background: var(--neon); color: black; box-shadow: 0 0 15px rgba(0,255,136,0.3); }
.primary:hover { transform: scale(1.02); box-shadow: 0 0 25px rgba(0,255,136,0.5); }
.secondary { background: transparent; border: 1px solid white; color: white; }

/* --- NOTIFICATIONS --- */
#toast-container { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 9999; width: 90%; max-width: 300px; }
.toast { background: #111; border-left: 4px solid var(--neon); color: white; padding: 15px; margin-top: 10px; border-radius: 5px; box-shadow: 0 5px 20px rgba(0,0,0,0.5); text-align: center; }

.centered { text-align: center; }
.badge { display: inline-block; padding: 5px 10px; border: 1px solid var(--accent); border-radius: 20px; color: var(--accent); font-size: 0.7rem; letter-spacing: 1px; margin-bottom: 10px; }
.checklist { list-style: none; padding: 0; margin: 15px 0; line-height: 1.8; color: #ccc; }
footer { text-align: center; padding: 20px; color: #666; font-size: 0.8rem; border-top: 1px solid #222; margin-top: 50px; }