:root {
  --bg: #07090f;
  --bg-2: #0c1018;
  --surface: #111722;
  --surface-2: #161d2b;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(0, 255, 163, 0.35);
  --text: #eef2f7;
  --muted: #9aa3b2;
  --accent: #00ffa3;
  --accent-dim: rgba(0, 255, 163, 0.12);
  --display: "Space Grotesk", sans-serif;
  --body: "IBM Plex Sans", sans-serif;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --container: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 50% 40% at 15% 10%, rgba(0, 255, 163, 0.12), transparent 55%),
    radial-gradient(ellipse 40% 35% at 85% 20%, rgba(56, 189, 248, 0.08), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(0, 255, 163, 0.05), transparent 60%);
  pointer-events: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(7, 9, 15, 0.75);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--accent);
  color: #04140f;
  box-shadow: 0 0 28px rgba(0, 255, 163, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 0 36px rgba(0, 255, 163, 0.4);
}

.btn-ghost,
.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text);
}

.btn-ghost:hover,
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Sections */
.section {
  padding: 5.5rem 0;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.section-head {
  margin-bottom: 2.5rem;
}

.section-head h2,
.section-intro h2,
.contact-info h2,
.hero-name {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section-head h2,
.section-intro h2,
.contact-info h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}

.section-intro p,
.section-head + p,
.hero-bio,
.contact-info > p {
  color: var(--muted);
  max-width: 34rem;
}

/* Hero */
.hero {
  padding-top: 4rem;
  padding-bottom: 4rem;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.hero-name {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.hero-role {
  font-family: var(--display);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  margin-bottom: 1.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.75rem 0 2.25rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 34rem;
}

.hero-stats strong {
  display: block;
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--accent);
  line-height: 1.2;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.85rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.orbit {
  position: relative;
  width: min(100%, 480px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.orbit-ring {
  position: absolute;
  border: 1px dashed rgba(0, 255, 163, 0.16);
  border-radius: 50%;
  pointer-events: none;
}

.ring-inner {
  width: 64%;
  height: 64%;
}

.ring-outer {
  width: 94%;
  height: 94%;
}

.orbit-track {
  --count: 8;
  position: absolute;
  inset: 0;
  animation: orbit-spin 48s linear infinite;
}

.track-inner {
  animation-duration: 36s;
  animation-direction: reverse;
}

.orbit-slot {
  --i: 0;
  position: absolute;
  inset: 0;
  transform: rotate(calc(var(--i) * 360deg / var(--count)));
}

.orbit-icon {
  position: absolute;
  top: 3%;
  left: 50%;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #0e141d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 18px color-mix(in srgb, var(--glow, var(--accent)) 35%, transparent);
  animation: orbit-spin 48s linear infinite reverse;
}

.track-inner .orbit-icon {
  top: 18%;
  animation-duration: 36s;
  animation-direction: normal;
}

.orbit-icon img {
  width: 24px;
  height: 24px;
  display: block;
}

.terminal {
  position: relative;
  z-index: 2;
  width: min(100%, 250px);
  background: #0a0f18;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow), 0 0 50px rgba(0, 255, 163, 0.08);
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  background: #0f1520;
}

.terminal-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff5f57;
}

.terminal-bar span:nth-child(2) { background: #ffbd2e; }
.terminal-bar span:nth-child(3) { background: #28c840; }

.terminal-bar em {
  margin-left: auto;
  font-style: normal;
  font-size: 0.72rem;
  color: var(--muted);
}

.terminal-body {
  padding: 1rem;
  font-size: 0.78rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

.t-g { color: var(--accent); }
.t-w { color: var(--text); }
.t-m { color: #7dd3fc; }

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
  align-items: start;
}

.skill-list {
  display: grid;
  gap: 0.9rem;
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.skill-card:hover {
  transform: translateX(4px);
  border-color: var(--border-strong);
}

.skill-card h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.skill-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.service-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  min-height: 180px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.service-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 1px rgba(0, 255, 163, 0.08), var(--shadow);
  transform: translateY(-4px);
}

.service-card .icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-dim);
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.service-card h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  margin-bottom: 0.55rem;
}

.service-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Work */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.filter {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: 0.2s ease;
}

.filter:hover,
.filter.is-active {
  color: #04140f;
  background: var(--accent);
  border-color: var(--accent);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.work-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

.work-card.is-hidden {
  display: none;
}

.work-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  margin-bottom: 0.9rem;
}

.work-card h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  margin-bottom: 0.55rem;
}

.work-card p {
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.work-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Experience */
.timeline {
  display: grid;
  gap: 1.25rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(17, 23, 34, 0.7);
}

.years {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.company {
  color: var(--muted);
}

.timeline-body h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
}

.timeline-body ul {
  padding-left: 1.1rem;
  color: var(--muted);
  display: grid;
  gap: 0.45rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.contact-details {
  list-style: none;
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.contact-details li {
  display: grid;
  gap: 0.2rem;
}

.contact-details span {
  color: var(--muted);
  font-size: 0.85rem;
}

.contact-details a {
  color: var(--accent);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
}

.contact-form label span {
  font-size: 0.85rem;
  color: var(--muted);
}

.contact-form .full {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}

.form-note {
  grid-column: 1 / -1;
  color: var(--accent);
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes floatY {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .skills-grid,
  .contact-grid,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .work-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 3rem;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1rem 1rem;
    background: rgba(7, 9, 15, 0.96);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 0.85rem 0.4rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links .btn {
    margin-top: 0.75rem;
    width: 100%;
  }

  .services-grid,
  .work-grid,
  .hero-stats,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .orbit {
    width: min(100%, 320px);
  }

  .orbit-icon {
    width: 38px;
    height: 38px;
    margin: -19px 0 0 -19px;
  }

  .orbit-icon img {
    width: 18px;
    height: 18px;
  }

  .terminal {
    width: min(100%, 200px);
  }

  .terminal-body {
    font-size: 0.68rem;
    padding: 0.85rem;
  }
}
