:root {
  --bg: #f5f7fb;
  --text: #111827;
  --card: #ffffff;
  --muted: #5b6472;
  --accent: #0f766e;
  --accent-contrast: #ffffff;
  --border: #dde3ea;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  --surface: #eef3f8;
  --ink: #0b1220;
}

:root[data-theme="dark"] {
  --bg: #0a0f1a;
  --text: #eef2f7;
  --card: #111827;
  --muted: #a3adba;
  --accent: #2dd4bf;
  --accent-contrast: #061013;
  --border: #243044;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  --surface: #0f172a;
  --ink: #f8fafc;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.08), transparent 34rem),
    linear-gradient(180deg, var(--bg), var(--surface));
  min-height: 100vh;
}

header {
  background: rgba(245, 247, 251, 0.82);
}

:root[data-theme="dark"] header {
  background: rgba(10, 15, 26, 0.82);
}

.container {
  width: min(1160px, 92%);
}

.logo a {
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0;
}

nav ul {
  gap: 8px;
}

nav a {
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

nav a.active,
nav a:hover {
  background: rgba(15, 118, 110, 0.1);
  color: var(--accent);
}

.theme-toggle,
.hamburger,
.btn {
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.theme-toggle:hover,
.hamburger:hover,
.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

main {
  padding: 34px 0 72px;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(34px, 6vw, 68px);
  margin: 0 0 16px;
}

h2 {
  font-size: clamp(26px, 4vw, 42px);
  margin: 0 0 16px;
}

h3 {
  margin-top: 0;
}

p {
  color: var(--muted);
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.section {
  margin-top: 64px;
}

.section-head {
  align-items: end;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-head p {
  margin: 0;
  max-width: 560px;
}

.card {
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.btn {
  border-radius: 999px;
}

.btn.primary {
  box-shadow: 0 14px 30px rgba(15, 118, 110, 0.22);
}

.btn.is-disabled {
  cursor: not-allowed;
  opacity: 0.56;
  pointer-events: none;
}

.badge {
  background: rgba(15, 118, 110, 0.08);
  border-color: rgba(15, 118, 110, 0.18);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 6px;
}

.hero {
  min-height: calc(100vh - 190px);
}

.hero p {
  max-width: 640px;
}

.hero-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-panel-top {
  align-items: center;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 8px;
  padding: 14px 16px;
}

.hero-panel-dot {
  background: var(--border);
  border-radius: 50%;
  height: 10px;
  width: 10px;
}

.hero-panel-body {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.signal {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}

.signal strong {
  display: block;
  font-size: 24px;
}

.stat-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
}

.stat strong {
  color: var(--ink);
  display: block;
  font-size: 28px;
  line-height: 1;
}

.feature,
.skill-card,
.project-card,
.testimonial,
.timeline-item,
.contact-card {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.feature:hover,
.skill-card:hover,
.project-card:hover,
.testimonial:hover,
.timeline-item:hover,
.contact-card:hover {
  border-color: rgba(15, 118, 110, 0.28);
  transform: translateY(-3px);
}

.skill-grid {
  display: grid;
  gap: 16px;
}

.skill-card h3 {
  margin-bottom: 10px;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.timeline-item {
  border-left: 3px solid var(--accent);
  margin-bottom: 16px;
  padding-left: 18px;
}

.timeline-meta {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-title {
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  margin: 4px 0;
}

.timeline-list {
  color: var(--muted);
  margin: 10px 0 0;
  padding-left: 18px;
}

.timeline-list li {
  margin-bottom: 8px;
}

.project-card img,
.post-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.project-card h3 a,
.post-card h3 a {
  color: var(--ink);
}

.filters {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  display: inline-flex;
  padding: 6px;
}

.filters .btn {
  border-color: transparent;
  box-shadow: none;
}

.filters .active {
  background: var(--accent);
  color: var(--accent-contrast);
}

.contact-layout {
  align-items: start;
  display: grid;
  gap: 18px;
}

.contact-list {
  display: grid;
  gap: 10px;
}

.contact-card {
  align-items: center;
  display: flex;
  gap: 12px;
}

.contact-icon {
  align-items: center;
  background: rgba(15, 118, 110, 0.1);
  border-radius: 14px;
  color: var(--accent);
  display: inline-flex;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.contact-card a,
.contact-card strong {
  color: var(--ink);
}

footer {
  background: rgba(255, 255, 255, 0.4);
}

:root[data-theme="dark"] footer {
  background: rgba(17, 24, 39, 0.35);
}

.fade-in {
  animation: fadeIn 520ms ease both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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

@media (min-width: 720px) {
  .skill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-layout {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

@media (min-width: 900px) {
  .skill-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  main {
    padding-top: 24px;
  }

  .hero {
    min-height: auto;
    text-align: left;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .section {
    margin-top: 44px;
  }

  .section-head {
    align-items: start;
    display: grid;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .filters {
    border-radius: 18px;
    display: flex;
    width: 100%;
  }
}
