/* ════════════════════════════════════════
   GALAXY PERSONAL SITE — Shared Stylesheet
   ════════════════════════════════════════ */

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

/* ─── DESIGN TOKENS ─── */
:root {
  --cyan:    #00f5ff;
  --purple:  #b44fff;
  --blue:    #4488ff;
  --pink:    #ff44aa;
  --dark:    #03040d;
  --dark2:   #080c1a;
  --text:    #c8d8ff;
  --muted:   #6a7fa8;
  --glow-c:  0 0 12px #00f5ff88, 0 0 40px #00f5ff33;
  --glow-p:  0 0 12px #b44fff88, 0 0 40px #b44fff33;
}

/* ─── BASE ─── */
html, body {
  min-height: 100%;
  background: var(--dark);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

/* ─── STARFIELD ─── */
#stars-canvas,
#scene-3d {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#scene-3d {
  width: 100vw;
  height: 100vh;
  display: block;
}

/* ─── NEBULA BLOBS ─── */
.nebula {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

/* Home page nebula positions */
body.page-home .nebula-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #b44fff22 0%, transparent 70%);
  top: -200px; left: -200px;
}
body.page-home .nebula-2 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, #00f5ff18 0%, transparent 70%);
  bottom: -250px; right: -200px;
}
body.page-home .nebula-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #4488ff15 0%, transparent 70%);
  top: 40%; left: 50%;
  transform: translate(-50%, -50%);
}

/* About page nebula positions */
body.page-about .nebula-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #4488ff1a 0%, transparent 70%);
  top: 10%; right: -150px;
}
body.page-about .nebula-2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #b44fff18 0%, transparent 70%);
  bottom: -200px; left: -150px;
}

/* ─── SCANLINES ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.04) 2px,
    rgba(0,0,0,0.04) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: linear-gradient(180deg, rgba(3,4,13,0.95) 0%, transparent 100%);
  backdrop-filter: blur(4px);
}

.nav-logo {
  font-family: 'Orbitron', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--cyan);
  text-shadow: var(--glow-c);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-family: 'Orbitron', monospace;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s, text-shadow 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cyan);
  text-shadow: var(--glow-c);
}

/* ─── FOOTER ─── */
footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(0,245,255,0.08);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copy {
  font-family: 'Orbitron', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  font-family: 'Orbitron', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s, text-shadow 0.3s;
}

.footer-links a:hover {
  color: var(--cyan);
  text-shadow: var(--glow-c);
}

/* ══════════════════════════════════════
   HOME PAGE STYLES
   ══════════════════════════════════════ */

/* ─── HERO ─── */
.hero {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 32px 80px;
}

h1 {
  font-family: 'Orbitron', monospace;
  font-size: clamp(2.8rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, var(--cyan) 40%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.6s;
}

.hero-sub {
  margin-top: 8px;
  font-family: 'Orbitron', monospace;
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--purple);
  text-shadow: var(--glow-p);
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.85s;
}

.hero-desc {
  margin-top: 32px;
  max-width: 560px;
  text-shadow: 0 0 12px var(--dark), 0 0 24px var(--dark);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--muted);
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 1.1s;
}

.hero-cta {
  margin-top: 52px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 1.35s;
}

.btn-primary {
  position: relative;
  padding: 14px 36px;
  font-family: 'Orbitron', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dark);
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 0 24px #00f5ff66, 0 0 60px #00f5ff22;
  transition: box-shadow 0.3s, transform 0.2s;
}

.btn-primary:hover {
  box-shadow: 0 0 36px #00f5ffaa, 0 0 80px #00f5ff44;
  transform: translateY(-2px);
}

.btn-outline {
  padding: 14px 36px;
  font-family: 'Orbitron', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  background: transparent;
  border: 1px solid rgba(0, 245, 255, 0.4);
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
}

.btn-outline:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 20px #00f5ff44;
  transform: translateY(-2px);
}

/* ─── COORDINATES ─── */
.coordinates {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Orbitron', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  opacity: 0;
  animation: fadeUp 1s ease forwards 1.7s;
}

/* ─── SKILLS STRIP ─── */
.skills-strip {
  position: relative;
  z-index: 10;
  padding: 80px 32px;
}

.strip-label {
  text-align: center;
  font-family: 'Orbitron', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 40px;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}

.skill-chip {
  position: relative;
  padding: 10px 24px;
  font-family: 'Orbitron', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  font-weight: 400;
  color: var(--text);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(0, 245, 255, 0.2);
  border-radius: 2px;
  transition: border-color 0.3s, box-shadow 0.3s, color 0.3s;
  cursor: default;
}

.skill-chip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,245,255,0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.skill-chip:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 20px #00f5ff33;
}

.skill-chip:hover::before { opacity: 1; }

/* ─── SIGNAL CARD ─── */
.signal-section {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 32px 120px;
}

.signal-card {
  position: relative;
  padding: 48px;
  background: rgba(8, 12, 26, 0.8);
  border: 1px solid rgba(0, 245, 255, 0.15);
  border-radius: 4px;
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.signal-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--purple), transparent);
}

.signal-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), var(--cyan), transparent);
}

.card-tag {
  font-family: 'Orbitron', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--cyan);
  text-shadow: var(--glow-c);
  margin-bottom: 24px;
}

.card-title {
  font-family: 'Orbitron', monospace;
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.3;
}

.card-text {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--muted);
}

.card-corner {
  position: absolute;
  width: 20px; height: 20px;
  border-color: var(--cyan);
  border-style: solid;
  opacity: 0.6;
}

.card-corner.tl { top: 12px; left: 12px;   border-width: 1px 0 0 1px; }
.card-corner.tr { top: 12px; right: 12px;  border-width: 1px 1px 0 0; }
.card-corner.bl { bottom: 12px; left: 12px;  border-width: 0 0 1px 1px; }
.card-corner.br { bottom: 12px; right: 12px; border-width: 0 1px 1px 0; }

/* ══════════════════════════════════════
   ABOUT PAGE STYLES
   ══════════════════════════════════════ */

/* ─── PAGE LAYOUT ─── */
.page-wrapper {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 0 auto;
  padding: 160px 32px 120px;
}

/* ─── PAGE HEADER ─── */
.page-header {
  margin-bottom: 80px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.2s;
}

.page-tag {
  font-family: 'Orbitron', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  color: var(--purple);
  text-shadow: var(--glow-p);
  margin-bottom: 20px;
}

.page-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  background: linear-gradient(135deg, #ffffff 0%, var(--purple) 60%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle {
  margin-top: 16px;
  font-size: 1rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.8;
  max-width: 540px;
}

/* ─── DIVIDER ─── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--purple), transparent);
  margin-bottom: 64px;
  opacity: 0.3;
}

/* ─── SECTIONS ─── */
.section {
  margin-bottom: 64px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}
.section:nth-child(1) { animation-delay: 0.4s; }
.section:nth-child(2) { animation-delay: 0.55s; }
.section:nth-child(3) { animation-delay: 0.7s; }
.section:nth-child(4) { animation-delay: 0.85s; }
.section:nth-child(5) { animation-delay: 1.0s; }

.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.section-icon {
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0,245,255,0.3);
  border-radius: 2px;
  font-size: 0.85rem;
  color: var(--cyan);
  flex-shrink: 0;
}

.section-label {
  font-family: 'Orbitron', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--cyan);
  text-shadow: var(--glow-c);
  text-transform: uppercase;
}

/* ─── PROFILE CARD ─── */
.profile-card {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding: 40px;
  background: rgba(8,12,26,0.7);
  border: 1px solid rgba(0,245,255,0.12);
  border-radius: 4px;
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.profile-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
}

.avatar-ring {
  flex-shrink: 0;
  width: 100px; height: 100px;
  border-radius: 50%;
  border: 2px solid rgba(180,79,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 20px #b44fff44, inset 0 0 20px rgba(180,79,255,0.05);
}

.avatar-ring::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(0,245,255,0.15);
  animation: spin 12s linear infinite;
}

.avatar-initials {
  font-family: 'Orbitron', monospace;
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.profile-info h2 {
  font-family: 'Orbitron', monospace;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.profile-role {
  font-family: 'Orbitron', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--purple);
  text-shadow: var(--glow-p);
  margin-bottom: 16px;
}

.profile-bio {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--muted);
}

/* ─── DATA ROWS ─── */
.data-list { display: grid; gap: 12px; }

.data-row {
  display: flex;
  gap: 20px;
  align-items: baseline;
  padding: 16px 24px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 2px;
  transition: border-color 0.3s, background 0.3s;
}

.data-row:hover {
  background: rgba(0,245,255,0.03);
  border-color: rgba(0,245,255,0.15);
}

.data-key {
  font-family: 'Orbitron', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--cyan);
  min-width: 120px;
  flex-shrink: 0;
}

.data-val {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1.6;
}

/* ─── TIMELINE ─── */
.timeline {
  display: grid;
  gap: 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 15px;
  width: 1px;
  background: linear-gradient(180deg, var(--cyan), var(--purple), transparent);
  opacity: 0.3;
}

.timeline-item {
  display: flex;
  gap: 32px;
  padding: 0 0 40px 48px;
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: 8px; top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  background: var(--dark);
  box-shadow: 0 0 10px #00f5ff88;
  flex-shrink: 0;
}

.timeline-dot.purple {
  border-color: var(--purple);
  box-shadow: 0 0 10px #b44fff88;
}

.timeline-period {
  font-family: 'Orbitron', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 6px;
}

.timeline-title {
  font-family: 'Orbitron', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.8;
}

/* ─── SKILLS MATRIX ─── */
.skills-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.skill-block {
  padding: 20px 24px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 2px;
  transition: all 0.3s;
}

.skill-block:hover {
  background: rgba(180,79,255,0.05);
  border-color: rgba(180,79,255,0.3);
  box-shadow: 0 0 20px #b44fff22;
}

.skill-name {
  font-family: 'Orbitron', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 12px;
}

.skill-bar-track {
  height: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: 1px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  border-radius: 1px;
  animation: growBar 1.4s ease forwards;
  transform-origin: left;
}

/* ─── CONTACT ─── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.contact-card {
  padding: 28px 24px;
  background: rgba(8,12,26,0.6);
  border: 1px solid rgba(0,245,255,0.1);
  border-radius: 4px;
  text-decoration: none;
  display: block;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.contact-card:hover {
  border-color: rgba(0,245,255,0.3);
  background: rgba(0,245,255,0.03);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,245,255,0.1);
}

.contact-card:hover::before { opacity: 1; }

.contact-icon {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.contact-label {
  font-family: 'Orbitron', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.contact-value {
  font-size: 0.9rem;
  color: var(--cyan);
  font-weight: 400;
}

/* ══════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-ring {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%       { opacity: 0.8; transform: scale(1.08); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes growBar {
  from { width: 0; }
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */

@media (max-width: 600px) {
  nav { padding: 16px 24px; }
  .nav-links { gap: 20px; }
  footer { padding: 32px 24px; flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }

  /* About page */
  .page-wrapper { padding: 120px 24px 80px; }
  .profile-card { flex-direction: column; padding: 28px; }
  .data-key { min-width: 80px; }
}
