/* ═══════════════════════════════════════════════════════════════
   GALACTIC ARCHITECT — Design System CSS
   Theme: Cyberpunk × Minimalist Dark
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Fira+Code:wght@400;500;600&display=swap');

/* ─── Tokens ─── */
:root {
  --bg: #0a0a0f;
  --surface: #0e0e13;
  --surface-low: #131319;
  --surface-mid: #19191f;
  --surface-high: #1f1f26;
  --surface-top: #25252d;
  --surface-bright: #2c2b33;
  --primary: #a8a4ff;
  --primary-dim: #675df9;
  --primary-deep: #6C63FF;
  --secondary: #00d2fd;
  --secondary-dim: #00c3eb;
  --tertiary: #ff9dd0;
  --error: #FF6B6B;
  --on-surface: #f9f5fd;
  --on-surface-var: #acaab1;
  --outline: #76747b;
  --outline-var: #48474d;
  --glass: rgba(31, 31, 38, 0.75);
  --glass-border: rgba(108, 99, 255, 0.15);
  --glow-primary: rgba(108, 99, 255, 0.08);
  --glow-secondary: rgba(0, 210, 253, 0.06);
  --radius: 16px;
  --radius-full: 9999px;
  --font: 'Inter', system-ui, sans-serif;
  --mono: 'Fira Code', monospace;
}

/* ─── Reset ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--on-surface-var);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: var(--secondary); text-decoration: none; transition: all 0.3s; }
a:hover { color: var(--primary); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ─── Background particles canvas ─── */
#particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

/* ─── Ambient Glow Orbs ─── */
.glow-orb {
  position: fixed; border-radius: 50%; filter: blur(120px);
  pointer-events: none; z-index: 0; opacity: 0.4;
}
.glow-orb.purple { width: 500px; height: 500px; background: var(--primary-deep); top: -100px; left: -100px; }
.glow-orb.cyan { width: 400px; height: 400px; background: var(--secondary); bottom: 10%; right: -80px; }
.glow-orb.pink { width: 350px; height: 350px; background: var(--tertiary); top: 50%; left: 30%; opacity: 0.2; }

/* ─── Container ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ═══════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.4s;
}
.navbar.scrolled { background: rgba(10, 10, 15, 0.92); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo {
  font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  color: var(--on-surface-var); font-size: 0.875rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--on-surface); }
.nav-links a:hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: none; color: var(--on-surface); font-size: 1.5rem; cursor: pointer; }

/* ═══════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════ */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: 72px; position: relative;
}
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-eyebrow {
  font-family: var(--mono); font-size: 0.8rem; color: var(--secondary);
  text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.hero-eyebrow::before { content: '//'; color: var(--primary); font-weight: 700; }
.hero h1 { font-size: 3.5rem; font-weight: 900; letter-spacing: -0.03em; line-height: 1.1; color: var(--on-surface); margin-bottom: 12px; }
.hero .gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--tertiary) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  background-size: 200% 200%; animation: gradientShift 4s ease infinite;
}
@keyframes gradientShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero-subtitle { font-size: 1.15rem; color: var(--on-surface-var); margin-bottom: 8px; font-weight: 500; }
.hero-tagline { font-size: 0.95rem; color: var(--outline); margin-bottom: 32px; max-width: 480px; }
.hero-buttons { display: flex; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius-full);
  font-family: var(--font); font-size: 0.875rem; font-weight: 600;
  letter-spacing: 0.03em; cursor: pointer; transition: all 0.3s; border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary-dim), var(--primary));
  color: #fff; box-shadow: 0 0 24px var(--glow-primary);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(108, 99, 255, 0.3); color: #fff; }
.btn-outline {
  background: transparent; color: var(--secondary);
  border: 1px solid rgba(0, 210, 253, 0.3);
}
.btn-outline:hover { background: rgba(0, 210, 253, 0.08); transform: translateY(-2px); border-color: var(--secondary); color: var(--secondary); }

/* Social row */
.hero-socials { display: flex; gap: 16px; }
.social-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--surface-high); border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--on-surface-var); font-size: 1.1rem; transition: all 0.3s;
}
.social-icon:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 8px 24px var(--glow-primary); }
.social-icon svg { width: 20px; height: 20px; fill: currentColor; }

/* Terminal Card */
.terminal-card {
  background: var(--glass); backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 0 60px var(--glow-primary);
}
.terminal-header { display: flex; align-items: center; gap: 8px; padding: 14px 18px; background: rgba(0,0,0,0.3); }
.terminal-dot { width: 12px; height: 12px; border-radius: 50%; }
.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #28ca42; }
.terminal-title { font-family: var(--mono); font-size: 0.7rem; color: var(--outline); margin-left: auto; }
.terminal-body { padding: 24px; font-family: var(--mono); font-size: 0.8rem; line-height: 2; }
.terminal-body .comment { color: var(--outline); }
.terminal-body .keyword { color: var(--primary); }
.terminal-body .string { color: var(--secondary); }
.terminal-body .func { color: var(--tertiary); }
.terminal-body .var { color: var(--error); }
.terminal-body .cursor-blink { display: inline-block; width: 8px; height: 16px; background: var(--primary); animation: blink 1s infinite; vertical-align: middle; }
@keyframes blink { 0%,50% { opacity: 1; } 51%,100% { opacity: 0; } }

/* ═══════════════════════════════════════
   SECTIONS (shared)
   ═══════════════════════════════════════ */
section { padding: 100px 0; position: relative; z-index: 1; }
.section-eyebrow {
  font-family: var(--mono); font-size: 0.75rem; color: var(--secondary);
  text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 8px;
  text-align: center;
}
.section-title {
  font-size: 2.5rem; font-weight: 800; color: var(--on-surface);
  text-align: center; margin-bottom: 8px; letter-spacing: -0.02em;
}
.section-subtitle { text-align: center; color: var(--outline); font-size: 0.95rem; margin-bottom: 60px; max-width: 500px; margin-left: auto; margin-right: auto; }
.accent-line { width: 60px; height: 3px; background: linear-gradient(90deg, var(--primary), var(--secondary)); margin: 12px auto 16px; border-radius: 2px; }

/* ═══════════════════════════════════════
   GLASS CARDS
   ═══════════════════════════════════════ */
.glass-card {
  background: var(--glass); backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border); border-radius: var(--radius);
  padding: 32px; transition: all 0.4s;
}
.glass-card:hover { border-color: rgba(108, 99, 255, 0.35); transform: translateY(-4px); box-shadow: 0 16px 48px var(--glow-primary); }

/* ═══════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════ */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.about-text p { margin-bottom: 16px; line-height: 1.8; }
.about-text strong { color: var(--primary); font-weight: 600; }
.stat-row { display: flex; gap: 24px; margin-top: 24px; }
.stat-item { text-align: center; }
.stat-number { font-size: 2rem; font-weight: 800; color: var(--on-surface); }
.stat-number span { background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { font-size: 0.75rem; color: var(--outline); text-transform: uppercase; letter-spacing: 0.1em; }

/* Timeline */
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--primary), var(--secondary), transparent); }
.timeline-item { position: relative; margin-bottom: 28px; }
.timeline-item::before {
  content: ''; position: absolute; left: -22px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--primary-dim); border: 2px solid var(--primary);
  box-shadow: 0 0 12px rgba(108, 99, 255, 0.5);
}
.timeline-item h4 { color: var(--on-surface); font-size: 0.95rem; font-weight: 700; }
.timeline-item p { color: var(--on-surface-var); font-size: 0.8rem; }
.timeline-item .year { font-family: var(--mono); font-size: 0.7rem; color: var(--secondary); }

/* ═══════════════════════════════════════
   SKILLS
   ═══════════════════════════════════════ */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.skill-card { text-align: center; }
.skill-card .icon-wrap {
  width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.skill-card .icon-wrap.lang { background: rgba(108, 99, 255, 0.12); color: var(--primary); }
.skill-card .icon-wrap.front { background: rgba(0, 210, 253, 0.12); color: var(--secondary); }
.skill-card .icon-wrap.ai { background: rgba(255, 157, 208, 0.12); color: var(--tertiary); }
.skill-card .icon-wrap.tools { background: rgba(255, 107, 107, 0.12); color: var(--error); }
.skill-card h3 { font-size: 1rem; color: var(--on-surface); font-weight: 700; margin-bottom: 12px; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tech-tag {
  padding: 6px 14px; border-radius: var(--radius-full);
  background: var(--surface-bright); color: var(--on-surface-var);
  font-size: 0.75rem; font-weight: 500; font-family: var(--mono);
  transition: all 0.3s;
}
.tech-tag:hover { background: rgba(108, 99, 255, 0.15); color: var(--primary); }

/* ═══════════════════════════════════════
   PROJECTS
   ═══════════════════════════════════════ */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }
.project-card { position: relative; overflow: hidden; }
.project-card .card-accent { height: 3px; background: linear-gradient(90deg, var(--primary), var(--secondary)); position: absolute; top: 0; left: 0; right: 0; }
.project-card .project-icon { font-size: 2rem; margin-bottom: 16px; }
.project-card h3 { font-size: 1.15rem; color: var(--on-surface); font-weight: 700; margin-bottom: 8px; }
.project-card p { font-size: 0.85rem; margin-bottom: 16px; line-height: 1.7; }
.project-link { font-size: 0.8rem; font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: 4px; }
.project-link:hover { color: var(--secondary); gap: 8px; }

/* ═══════════════════════════════════════
   EXPERIENCE
   ═══════════════════════════════════════ */
.exp-card { max-width: 800px; margin: 0 auto; }
.exp-header { display: flex; justify-content: space-between; align-items: start; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.exp-role { font-size: 1.2rem; color: var(--on-surface); font-weight: 700; }
.exp-company { font-size: 0.95rem; color: var(--primary); }
.exp-date { font-family: var(--mono); font-size: 0.8rem; color: var(--secondary); padding: 6px 14px; background: rgba(0,210,253,0.08); border-radius: var(--radius-full); }
.exp-list { margin-bottom: 24px; }
.exp-list li { padding: 6px 0; padding-left: 20px; position: relative; font-size: 0.9rem; }
.exp-list li::before { content: '▹'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

/* Certifications */
.certs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 32px; }
.cert-card {
  padding: 20px; background: var(--surface-mid); border-radius: 12px;
  border: 1px solid var(--glass-border); text-align: center; transition: all 0.3s;
}
.cert-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.cert-card .cert-icon { font-size: 1.5rem; margin-bottom: 8px; }
.cert-card h4 { font-size: 0.8rem; color: var(--on-surface); font-weight: 600; }
.cert-card p { font-size: 0.7rem; color: var(--outline); }

/* ═══════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════ */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px; }
.contact-card { text-align: center; }
.contact-card .contact-icon {
  width: 48px; height: 48px; border-radius: 14px; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.contact-card h4 { font-size: 0.9rem; color: var(--on-surface); margin-bottom: 4px; }
.contact-card p { font-size: 0.8rem; }
.contact-form { max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 20px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 14px 18px; background: var(--surface-mid);
  border: 1px solid var(--glass-border); border-radius: 12px;
  color: var(--on-surface); font-family: var(--font); font-size: 0.9rem;
  transition: all 0.3s; outline: none;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--secondary); box-shadow: 0 0 20px var(--glow-secondary);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.btn-submit { width: 100%; justify-content: center; font-size: 1rem; padding: 16px; }

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.footer {
  text-align: center; padding: 40px 0;
  border-top: 1px solid var(--glass-border);
}
.footer-socials { display: flex; justify-content: center; gap: 16px; margin-bottom: 16px; }
.footer p { font-size: 0.8rem; color: var(--outline); }
.back-to-top {
  position: fixed; bottom: 24px; right: 24px; width: 48px; height: 48px;
  border-radius: 14px; background: var(--glass); border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px); color: var(--primary); display: flex;
  align-items: center; justify-content: center; cursor: pointer;
  opacity: 0; transition: all 0.3s; z-index: 99; font-size: 1.2rem;
}
.back-to-top.visible { opacity: 1; }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 8px 24px var(--glow-primary); }

/* ═══════════════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero h1 { font-size: 2.5rem; }
  .hero-tagline { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-socials { justify-content: center; }
  .terminal-card { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; position: fixed; top: 72px; left: 0; right: 0; background: rgba(10,10,15,0.95); flex-direction: column; padding: 24px; gap: 20px; backdrop-filter: blur(24px); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 2rem; }
  .section-title { font-size: 1.8rem; }
  .stat-row { flex-wrap: wrap; }
  .certs-grid { grid-template-columns: 1fr 1fr; }
}
