:root {
  --bg: #050816;
  --bg-alt: #0b1020;
  --card-bg: #111827;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.15);
  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.3);
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.8);
  --shadow-subtle: 0 10px 30px rgba(15, 23, 42, 0.7);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #020617 0, #020617 40%, #000 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

main {
  max-width: 1100px;
  margin: 0 auto 4rem;
  padding: 0 1.25rem;
}

.hero {
  position: relative;
  padding: 3.5rem 1.25rem 3rem;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% -10%, rgba(56, 189, 248, 0.4), transparent 55%),
    radial-gradient(circle at 90% -20%, rgba(129, 140, 248, 0.28), transparent 55%);
  opacity: 0.8;
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 1100px;
  width: 100%;
  background: linear-gradient(
      to bottom,
      rgba(15, 23, 42, 0.9),
      rgba(15, 23, 42, 0.95)
    );
  border-radius: 28px;
  padding: 2.5rem 2rem 2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.9);
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 0.35rem 0.9rem;
}

.hero-title {
  font-size: clamp(2.1rem, 4vw, 2.7rem);
  margin: 1.1rem 0 0.35rem;
  letter-spacing: 0.02em;
}

.hero-subtitle {
  margin: 0 0 1.6rem;
  max-width: 640px;
  color: var(--text-muted);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease-out;
}

.btn.primary {
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: #0b1120;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.55);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(37, 99, 235, 0.75);
  text-decoration: none;
}

.btn.ghost {
  background: rgba(15, 23, 42, 0.8);
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.5);
}

.btn.ghost:hover {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(148, 163, 184, 0.9);
  text-decoration: none;
}

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.section {
  margin-top: 2.75rem;
  padding: 1.9rem 1.6rem 1.8rem;
  background: rgba(15, 23, 42, 0.96);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
}

.section-alt {
  background: radial-gradient(circle at top left, #020617, #020617 50%, #000 100%);
}

.section-header h2 {
  margin: 0 0 0.4rem;
  font-size: 1.4rem;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.card {
  background: radial-gradient(circle at top left, #020617, #020617 45%, #020617 100%);
  border-radius: var(--radius-md);
  padding: 1.1rem 1rem 1.05rem;
  border: 1px solid var(--border-subtle);
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.3rem;
  margin-top: 1.5rem;
}

.skills-column h3 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
}

.skills-column ul {
  list-style: none;
  margin: 0 0 0.9rem;
  padding-left: 0;
}

.skills-column li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.18rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.skills-column li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.9rem;
}

.timeline {
  position: relative;
  margin-top: 1.4rem;
  padding-left: 0.4rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(to bottom, rgba(148, 163, 184, 0.7), transparent);
}

.timeline-item {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 1.6rem;
}

.timeline-marker {
  position: absolute;
  left: 3px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #38bdf8, #2563eb);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.timeline-content h3 {
  margin: 0 0 0.15rem;
  font-size: 1.05rem;
}

.timeline-content h4 {
  margin: 0.7rem 0 0.1rem;
  font-size: 0.95rem;
}

.timeline-meta {
  margin: 0 0 0.45rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.timeline-content ul {
  margin: 0.3rem 0 0.5rem;
  padding-left: 1.1rem;
}

.timeline-content li {
  margin-bottom: 0.2rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.stack {
  margin: 0.4rem 0 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.footer {
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  padding: 1.2rem 1.25rem 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 720px) {
  .hero-content {
    padding: 1.9rem 1.4rem 1.7rem;
  }

  .section {
    padding: 1.6rem 1.2rem 1.6rem;
  }

  .timeline::before {
    left: 8px;
  }

  .timeline-marker {
    left: 1px;
  }

  .timeline-item {
    padding-left: 1.6rem;
  }
}

