/* Base */

:root {
  --bg: #050816;
  --bg-alt: #0b1020;
  --bg-elevated: #111827;
  --accent: #4f46e5;
  --accent-soft: rgba(79, 70, 229, 0.12);
  --accent-strong: rgba(79, 70, 229, 0.2);
  --text: #f9fafb;
  --text-muted: #9ca3af;
  --border-subtle: rgba(156, 163, 175, 0.35);
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.6);
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --radius-pill: 999px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top left, #1f2937 0, var(--bg) 38%) fixed;
  color: var(--text);
  line-height: 1.6;
}

/* Layout */

.container {
  width: min(1120px, 100% - 2.5rem);
  margin: 0 auto;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.85), #020617);
}

.section-inner {
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 2.75rem;
}

.section-header h2 {
  font-size: 1.9rem;
  margin: 0 0 0.4rem;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px);
  background: linear-gradient(
    to bottom,
    rgba(3, 7, 18, 0.92),
    rgba(3, 7, 18, 0.78),
    transparent
  );
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: radial-gradient(circle at 20% 20%, #a5b4fc, var(--accent));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #e5e7eb;
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.35),
    0 10px 25px rgba(0, 0, 0, 0.75);
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: #e5e7eb;
}

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

.nav a {
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--text-muted);
  padding: 0.4rem 0.3rem;
  position: relative;
  transition: color 0.18s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -0.15rem;
  height: 2px;
  border-radius: 999px;
  transform-origin: center;
  transform: scaleX(0);
  background: linear-gradient(to right, #a855f7, var(--accent));
  transition: transform 0.18s ease;
}

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

.nav a:hover::after {
  transform: scaleX(1);
}

/* Hero */

.hero {
  padding: 4rem 0 4.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 2.75rem;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}

.hero h1 {
  font-size: clamp(2.3rem, 4vw, 2.85rem);
  line-height: 1.15;
  margin: 0 0 1.1rem;
}

.hero-subtitle {
  margin: 0;
  color: var(--text-muted);
  max-width: 40rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    transform 0.12s ease, box-shadow 0.12s ease;
}

.btn.primary {
  background: radial-gradient(
    circle at 20% 0%,
    #a855f7,
    #4f46e5,
    #312e81 120%
  );
  color: #f9fafb;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.9);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.95);
}

.btn.ghost {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.5);
  color: var(--text-muted);
}

.btn.ghost:hover {
  background: rgba(15, 23, 42, 0.98);
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.95);
}

/* Hero card */

.hero-card {
  background: radial-gradient(circle at 0 0, #1e293b, var(--bg-elevated));
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 1.8rem 1.7rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(
    circle at 30% 0,
    rgba(129, 140, 248, 0.35),
    transparent 60%
  );
  top: -60px;
  right: -40px;
  pointer-events: none;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(129, 140, 248, 0.7);
  background: linear-gradient(
    to right,
    rgba(79, 70, 229, 0.14),
    rgba(129, 140, 248, 0.08)
  );
  color: #e5e7eb;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.8rem;
}

.hero-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.hero-card p {
  margin: 0 0 1.1rem;
  color: var(--text-muted);
}

.hero-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-highlights li {
  font-size: 0.78rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(75, 85, 99, 0.75);
}

/* Grids */

.grid {
  display: grid;
  gap: 2rem;
}

.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-column {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Timeline / Experience */

.timeline {
  display: grid;
  gap: 1.7rem;
}

.timeline-item {
  background: rgba(15, 23, 42, 0.96);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 1.4rem 1.5rem 1.35rem;
  position: relative;
  overflow: hidden;
}

.timeline-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 0 0,
    rgba(79, 70, 229, 0.12),
    transparent 60%
  );
  opacity: 0.7;
  pointer-events: none;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 0.4rem;
}

.timeline-header h3 {
  font-size: 1.1rem;
  margin: 0;
}

.timeline-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.timeline-item p {
  margin: 0.2rem 0 0.9rem;
  color: #d1d5db;
}

.pill-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pill-list li {
  font-size: 0.78rem;
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(55, 65, 81, 0.8);
  color: var(--text-muted);
}

/* Cards / Skills / Projects */

.card {
  background: rgba(15, 23, 42, 0.97);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 1.4rem 1.3rem;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.75);
}

.card h3 {
  margin: 0 0 0.8rem;
  font-size: 1.05rem;
}

.card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.card ul li {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.skills-grid {
  align-items: flex-start;
}

.projects-grid .card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card p {
  margin-top: 0.1rem;
  color: #d1d5db;
}

.inline-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0 0;
  padding: 0;
}

.inline-list li {
  font-size: 0.78rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(55, 65, 81, 0.85);
  color: var(--text-muted);
}

/* Contact */

.contact-card {
  max-width: 720px;
  margin: 0 auto;
  background: rgba(15, 23, 42, 0.97);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-soft);
}

.contact-card p {
  margin-top: 0;
  color: #e5e7eb;
}

.contact-details {
  margin-top: 1.1rem;
  display: grid;
  gap: 0.4rem;
}

.contact-details a {
  color: #a5b4fc;
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.95);
  background: #020617;
}

.footer-inner {
  padding: 1.5rem 0 1.8rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-subtext {
  margin-top: 0.25rem;
}

/* Responsive */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.4fr);
  }

  .hero-card {
    margin-top: 1.75rem;
  }

  .two-column {
    grid-template-columns: minmax(0, 1fr);
  }

  .three-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav {
    gap: 1rem;
  }
}

@media (max-width: 720px) {
  .three-column {
    grid-template-columns: minmax(0, 1fr);
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .nav {
    flex-wrap: wrap;
  }

  .hero {
    padding-top: 3rem;
  }

  .section {
    padding: 3.2rem 0;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 1.6rem, 480px);
  }

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

