:root {
  --bg: #0d0d0d;
  --bg-elevated: #121212;
  --bg-soft: #161616;
  --text: #f5f5f5;
  --text-muted: #b3b3b3;
  --accent: #5bffb8;
  --accent-soft: #6aa8ff;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: rgba(0, 0, 0, 0.45);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: radial-gradient(circle at top, #161616 0%, #0d0d0d 65%);
  color: var(--text);
  line-height: 1.6;
  animation: pageFade 0.8s ease forwards;
}

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

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

.container {
  width: min(1120px, 90%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(13, 13, 13, 0.7);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.logo {
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
  letter-spacing: 1px;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.nav-links.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  right: 5%;
  top: 70px;
  background: var(--bg-elevated);
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px var(--shadow);
  animation: dropIn 0.3s ease;
}

.nav-links a {
  transition: color 0.3s ease;
}

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
}

.hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  padding: 120px 0 80px;
  animation: slideIn 0.9s ease forwards;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  letter-spacing: 1px;
}

.hero-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--accent);
  margin-top: 8px;
}

.hero-text {
  margin-top: 18px;
  color: var(--text-muted);
  max-width: 500px;
}

.eyebrow {
  font-family: "JetBrains Mono", monospace;
  color: var(--accent-soft);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(106, 168, 255, 0.3);
  color: var(--accent-soft);
  font-size: 0.85rem;
  margin-bottom: 18px;
  background: rgba(106, 168, 255, 0.08);
  animation: pulse 3.2s ease-in-out infinite;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 28px;
}

.btn {
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.btn.primary {
  background: var(--accent);
  color: #0d0d0d;
  box-shadow: 0 12px 30px rgba(91, 255, 184, 0.25);
}

.btn.ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  filter: brightness(1.05);
}

.hero-card {
  background: linear-gradient(145deg, #151515, #0f0f0f);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px var(--shadow);
  animation: float 6s ease-in-out infinite;
}

.code-block {
  background: var(--bg-soft);
  padding: 18px;
  border-radius: var(--radius-md);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  color: #d1d1d1;
  position: relative;
}

.code-block pre {
  white-space: pre-wrap;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

.dot.green {
  background: #5bffb8;
}

.dot.blue {
  background: #6aa8ff;
}

.dot.gray {
  background: #555;
}

.hero-meta {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  font-size: 0.9rem;
}

.hero-meta span {
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}

.section {
  padding: 80px 0;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.tag {
  font-family: "JetBrains Mono", monospace;
  color: var(--accent-soft);
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.section-text {
  color: var(--text-muted);
  max-width: 900px;
}

.grid {
  display: grid;
  gap: 24px;
}

.skills-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.formation-grid,
.language-grid,
.cert-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: transform 0.3s ease, border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(91, 255, 184, 0.4);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
}

.card h4 {
  margin-bottom: 10px;
}

.card ul {
  list-style: none;
  color: var(--text-muted);
  display: grid;
  gap: 6px;
}

.timeline {
  display: grid;
  gap: 24px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 16px;
}

.timeline-marker {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 8px;
  box-shadow: 0 0 12px rgba(91, 255, 184, 0.5);
  animation: pulse 2.6s ease-in-out infinite;
}

.timeline-content {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 22px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-3px);
  border-color: rgba(91, 255, 184, 0.35);
}

.timeline-content span {
  display: block;
  color: var(--text-muted);
  margin: 6px 0 16px;
  font-size: 0.9rem;
}

.timeline-content ul {
  list-style: none;
  color: var(--text-muted);
  display: grid;
  gap: 6px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.contact-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: var(--radius-md);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.contact-card p {
  color: var(--text-muted);
  margin-bottom: 8px;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(106, 168, 255, 0.4);
}

.socials {
  margin-top: 24px;
  display: flex;
  gap: 16px;
  color: var(--text-muted);
}

.socials a {
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: 999px;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.socials a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 40px;
  color: var(--text-muted);
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger > * {
  opacity: 0;
  transform: translateY(16px);
}

.stagger.is-visible > * {
  animation: staggerFade 0.7s ease forwards;
}

.stagger > *:nth-child(1) {
  animation-delay: 0.05s;
}

.stagger > *:nth-child(2) {
  animation-delay: 0.15s;
}

.stagger > *:nth-child(3) {
  animation-delay: 0.25s;
}

.stagger > *:nth-child(4) {
  animation-delay: 0.35s;
}

.stagger > *:nth-child(5) {
  animation-delay: 0.45s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 10px rgba(91, 255, 184, 0.4);
  }
  50% {
    box-shadow: 0 0 18px rgba(91, 255, 184, 0.8);
  }
}

@keyframes pageFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes staggerFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dropIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 90px 0 60px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
