/* === AXIOM Portfolio — main.css === */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700;900&family=Share+Tech+Mono&display=swap');

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --color-bg:         #050510;
  --color-primary:    #00F5FF;
  --color-secondary:  #7B2FFF;
  --color-accent:     #FF2D78;
  --color-text:       #E2E8F0;
  --color-text-muted: #94A3B8;
  --color-border:     rgba(0, 245, 255, 0.15);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: 'Share Tech Mono', monospace;
  line-height: 1.6;
  overflow-x: hidden;
}

img, canvas, svg { display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; }

/* ── Utilities ─────────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.neon-glow {
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.4);
}

.glass-panel {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

/* ── Container ─────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Section base ──────────────────────────────────────────── */
section {
  width: 100%;
  min-height: 100vh;
  padding: 80px 0;
}

.section-header {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.85rem;
  color: var(--color-primary);
  letter-spacing: 0.2em;
  margin-bottom: 48px;
  opacity: 0.8;
}

/* ── Navbar ────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5, 5, 16, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.navbar-logo {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  letter-spacing: 0.1em;
}

.navbar-menu {
  display: flex;
  gap: 32px;
}

.navbar-menu a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.3s ease;
  position: relative;
}

.navbar-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-primary);
  box-shadow: 0 0 8px var(--color-primary);
  transition: width 0.3s ease;
}

.navbar-menu a:hover,
.navbar-menu a.active {
  color: var(--color-primary);
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
  width: 100%;
}

/* ── Hamburger (mobile) ────────────────────────────────────── */
.navbar-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: none;
  padding: 4px;
  background: none;
  border: none;
}

.navbar-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-primary);
  transition: all 0.3s ease;
}

/* ── Mobile nav panel ──────────────────────────────────────── */
.navbar-mobile-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: rgba(5, 5, 16, 0.97);
  border-left: 1px solid var(--color-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  padding: 80px 40px 40px;
  transition: right 0.4s ease;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.navbar-mobile-panel.open {
  right: 0;
}

.navbar-mobile-panel a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-family: 'Share Tech Mono', monospace;
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.navbar-mobile-panel a:hover {
  color: var(--color-primary);
}

/* ── Scroll progress bar ───────────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  box-shadow: 0 0 8px rgba(0, 245, 255, 0.6);
  z-index: 1001;
  pointer-events: none;
}

/* ── Back to top ───────────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 16, 0.85);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-primary);
  z-index: 998;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#back-to-top:hover {
  box-shadow: 0 0 16px rgba(0, 245, 255, 0.35);
  border-color: rgba(0, 245, 255, 0.5);
}

/* ── Reduced motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  section { padding: 64px 0; }
  .container { padding: 0 32px; }
}

@media (max-width: 768px) {
  .navbar { padding: 14px 20px; }
  .navbar-logo { font-size: 1.2rem; }
  .navbar-menu { display: none; }
  .navbar-hamburger { display: flex; }
  .container { padding: 0 20px; }
  section { padding: 48px 0; }
  .section-header { font-size: 0.75rem; margin-bottom: 32px; }
}

@media (max-width: 480px) {
  .navbar-logo { font-size: 1rem; }
  .container { padding: 0 16px; }
  section { padding: 40px 0; }
}
