:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-soft: #102033;
  --surface: rgba(8, 21, 38, 0.88);
  --surface-strong: #13253f;
  --text: #f4f7fb;
  --muted: #9eb0c7;
  --accent: #2dd4bf;
  --accent-strong: #14b8a6;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
  --container: 1120px;
}

body[data-theme='light'] {
  color-scheme: light;
  --bg: #f5f7fb;
  --bg-soft: #eef5ff;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --accent: #0f766e;
  --accent-strong: #0d9488;
  --border: rgba(15, 23, 42, 0.08);
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at top left, rgba(45, 212, 191, 0.14), transparent 30%), var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
}

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

.container {
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
}

.section {
  padding: 5.5rem 0;
  scroll-margin-top: 5.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 17, 31, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

body[data-theme='light'] .site-header {
  background: rgba(245, 247, 251, 0.85);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--accent);
}

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

.nav-links a,
.theme-toggle {
  color: var(--text);
  font-size: 0.95rem;
  transition: color 180ms ease;
}

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

.theme-toggle {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  border: 0;
  background: transparent;
  padding: 0.25rem;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  display: block;
  border-radius: 999px;
}

.hero {
  padding-top: 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.hero h1,
.section-heading h2 {
  margin: 0 0 1rem;
  line-height: 1.1;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.hero-copy {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.6rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #03111d;
}

.btn-secondary {
  background: var(--surface-strong);
  border-color: var(--border);
}

.btn-outline {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--muted);
}

.hero-highlights li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-card,
.card,
.skill-card,
.timeline-card,
.project-card,
.contact-card,
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 24px;
}

.hero-card {
  padding: 1.5rem;
}

.hero-card-inner {
  background: linear-gradient(145deg, rgba(45, 212, 191, 0.16), rgba(255, 255, 255, 0.02));
  padding: 1.6rem;
  border-radius: 20px;
}

.card-label {
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.hero-stats div {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.hero-stats strong {
  display: block;
  font-size: 1.2rem;
  color: var(--accent);
}

.hero-stats span {
  font-size: 0.92rem;
  color: var(--muted);
}

.section-heading {
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.about-grid,
.education-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.card,
.skill-card,
.project-card,
.contact-card,
.contact-form {
  padding: 1.5rem;
}

.profile-points {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.profile-points div,
.info-list li,
.contact-links li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--muted);
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.info-list span {
  display: block;
  color: var(--accent);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

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

.skill-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.skill-title i {
  color: var(--accent);
}

.badges,
.project-tags,
.languages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.badges span,
.project-tags span,
.languages span {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  background: rgba(45, 212, 191, 0.12);
  color: var(--accent);
  border: 1px solid rgba(45, 212, 191, 0.18);
}

.timeline {
  position: relative;
  margin-left: 0.8rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.45rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--accent), transparent);
}

.timeline-item {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 1.25rem;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(45, 212, 191, 0.16);
}

.timeline-role {
  margin: 0 0 0.25rem;
  font-weight: 700;
  font-size: 1.08rem;
}

.timeline-company {
  margin: 0 0 0.7rem;
  color: var(--accent);
  font-weight: 600;
}

.timeline-card ul,
.project-card ul {
  margin: 0.75rem 0 0;
  padding-left: 1rem;
  color: var(--muted);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}

.project-badge {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
}

.project-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}

.project-actions a {
  color: var(--accent);
  font-weight: 600;
}

.edu-title {
  margin: 0 0 0.25rem;
  font-weight: 700;
}

.edu-school,
.edu-date {
  margin: 0;
  color: var(--muted);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

label {
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(45, 212, 191, 0.28);
  border-color: var(--accent);
}

.form-feedback {
  min-height: 1.2rem;
  color: var(--accent);
  margin-top: 0.8rem;
}

.contact-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.site-footer {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

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

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background: var(--surface);
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-actions,
  .project-actions,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }
}
