/* Base */

:root {
  --bg: #f5f5f7;
  --bg-elevated: #ffffff;
  --bg-accent: #e5e5f0;
  --text: #111111;
  --text-muted: #5f5f6a;
  --border-subtle: #dddddf;
  --accent: #0070f3;
  --accent-soft: rgba(0, 112, 243, 0.1);
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.1);
  --radius-lg: 18px;
  --radius-xl: 26px;
  --transition-fast: 0.18s ease-out;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #050509;
    --bg-elevated: #0f1118;
    --bg-accent: #141621;
    --text: #f9fafb;
    --text-muted: #9ca3af;
    --border-subtle: #1f2532;
    --accent: #4f9cff;
    --accent-soft: rgba(79, 156, 255, 0.15);
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.65);
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top left, var(--bg-accent) 0, var(--bg) 45%, var(--bg) 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* Layout helpers */

.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-accent {
  background: linear-gradient(145deg, var(--bg-accent), var(--bg));
}

.section-header {
  max-width: 640px;
  margin: 0 auto 2.5rem auto;
  text-align: center;
}

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

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: linear-gradient(
    to bottom,
    rgba(245, 245, 247, 0.9),
    rgba(245, 245, 247, 0.6),
    transparent
  );
}

@media (prefers-color-scheme: dark) {
  .site-header {
    background: linear-gradient(
      to bottom,
      rgba(5, 5, 9, 0.96),
      rgba(5, 5, 9, 0.8),
      transparent
    );
  }
}

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

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 0 0 1px var(--accent-soft);
}

/* Navigation */

.nav {
  position: relative;
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  padding-bottom: 0.25rem;
  border-bottom: 1px solid transparent;
  transition:
    color var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast);
}

.nav-links a:hover {
  color: var(--text);
  border-color: var(--border-subtle);
  transform: translateY(-1px);
}

/* Hero */

.hero {
  padding: 5rem 0 3rem;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-text {
  max-width: 700px;
  padding: 2.5rem 2rem;
  border-radius: 32px;
  background: radial-gradient(circle at top left, var(--accent-soft), var(--bg-elevated));
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.hero h1 {
  margin: 0 0 0.9rem 0;
  font-size: 2.4rem;
  line-height: 1.15;
}

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

.hero-subtitle {
  margin: 0 0 1.7rem 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.62rem 1.3rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast),
    border-color var(--transition-fast);
}

.btn.primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 112, 243, 0.35);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 35px rgba(0, 112, 243, 0.4);
}

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

.btn.ghost:hover {
  background: var(--bg-elevated);
}

.btn.full-width {
  width: 100%;
}

/* About layout & typography */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.about-lead p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.9;
  letter-spacing: 0.01em;
  font-weight: 400;
}

.about-details p {
  margin-top: 0;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.about-highlight {
  font-weight: 500;
}

/* Two-column generic layout */

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
  gap: 2.5rem;
  align-items: flex-start;
}

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

.highlight-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.highlight-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
}

/* Skills / Services grid */

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

.card {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
}

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

.card-subtitle {
  margin: 0 0 0.7rem 0;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.card li + li {
  margin-top: 0.25rem;
}

/* Timeline */

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

.timeline-item {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 3.2fr);
  gap: 2rem;
  padding: 1.8rem 1.6rem;
  border-radius: var(--radius-xl);
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.timeline-meta h3 {
  margin: 0 0 0.35rem 0;
  font-size: 1.02rem;
}

.company {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.period {
  margin: 0.3rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.timeline-content .project-title {
  margin: 0 0 0.6rem 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.timeline-content ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.timeline-content li + li {
  margin-top: 0.35rem;
}

/* Education */

.education-list {
  display: grid;
  gap: 1.4rem;
}

.education-item {
  padding: 1.4rem 1.3rem;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.education-item h3 {
  margin: 0 0 0.4rem 0;
  font-size: 1rem;
}

.school {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
  gap: 2.2rem;
}

.contact-details {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.09);
}

.contact-item + .contact-item {
  margin-top: 0.9rem;
}

.contact-item .label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.contact-item a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
}

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

/* Footer */

.site-footer {
  padding: 1.9rem 0 2.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-inner {
  display: flex;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsive */

@media (max-width: 768px) {
  .hero {
    padding-top: 4rem;
  }

  .hero-text {
    padding: 1.8rem 1.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .about-grid,
  .two-column,
  .timeline-item,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    padding: 1.4rem 1.3rem;
  }

  /* Mobile nav */
  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    right: 0;
    top: 120%;
    flex-direction: column;
    background: var(--bg-elevated);
    padding: 0.7rem 1rem;
    border-radius: 999px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition:
      opacity var(--transition-fast),
      transform var(--transition-fast);
  }

  .nav-links.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .hero-text {
    border-radius: 24px;
  }

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