:root {
  color-scheme: dark;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #111827;
  background: #f8fafc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
  color: #0f172a;
}

img {
  max-width: 100%;
  display: block;
}

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

button,
input,
textarea {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

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

.brand {
  font-size: 1.2rem;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
}

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

.site-nav a {
  color: #0f172a;
  font-weight: 500;
}

.lang-switcher {
  display: flex;
  gap: 0.5rem;
}

.lang-btn {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: transparent;
  color: #0f172a;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.lang-btn:hover,
.lang-btn.active {
  background: #2563eb;
  color: #ffffff;
  border-color: transparent;
}

.section-dark .lang-btn:hover,
.section-dark .lang-btn.active {
  background: #60a5fa;
  color: #0f172a;
}

.hero-section {
  padding: 4rem 0 3rem;
}

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.83rem;
  margin-bottom: 0.75rem;
  color: #2563eb;
}

h1 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  margin: 0;
}

.hero-avatar {
  width: 160px;
  height: 160px;
  display: block;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(37, 99, 235, 0.16);
  margin-bottom: 1.5rem;
}

.hero-copy {
  margin: 1.5rem 0;
  max-width: 42rem;
  color: #334155;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

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

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

.btn-primary {
  background: #2563eb;
  color: #ffffff;
}

.btn-secondary {
  background: #e2e8f0;
  color: #0f172a;
}

.hero-card {
  padding: 2rem;
  border-radius: 1.5rem;
  background: white;
  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.08);
}

.hero-card-title {
  margin: 0;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  color: #2563eb;
}

.section-light,
.section-dark {
  padding: 4rem 0;
}

.section-dark {
  background: #0f172a;
  color: #e2e8f0;
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 1.75rem;
}

.card,
.skill-card,
.timeline-item,
.contact-form {
  background: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  border-radius: 1.2rem;
}

.section-dark .card,
.section-dark .skill-card,
.section-dark .timeline-item,
.section-dark .contact-form {
  background: rgba(15, 23, 42, 0.9);
}

.card h3,
.skill-card h3,
.timeline-item h3 {
  margin-top: 0;
}

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

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

.timeline-item {
  border-left: 3px solid #2563eb;
}

.resume-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.resume-dates {
  color: #2563eb;
  font-weight: 700;
  font-size: 0.95rem;
}

.resume-location {
  margin: 0.3rem 0 0.7rem;
  color: #475569;
  font-weight: 600;
}

.resume-bullets {
  margin: 0;
  padding-left: 1.2rem;
  color: #334155;
}

.resume-bullets li + li {
  margin-top: 0.45rem;
}

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

.project-card {
  padding: 1.25rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.9);
}

.section-dark .project-card {
  background: rgba(15, 23, 42, 0.9);
}

.project-card h3 {
  margin-top: 0;
}

.project-link {
  display: inline-block;
  margin-top: 0.75rem;
  color: #2563eb;
  font-weight: 600;
}

.goals-list {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
  list-style: disc inside;
}

.goals-list li {
  background: rgba(255, 255, 255, 0.9);
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
}

.section-dark .goals-list li {
  background: rgba(15, 23, 42, 0.9);
}

 .quotes-grid {
   margin-top: 1rem;
   display: grid;
   gap: 1rem;
 }
 
 .quote-card {
   padding: 1.25rem 1.5rem;
   border-left: 4px solid #2563eb;
   border-radius: 1rem;
   background: rgba(255, 255, 255, 0.9);
   color: #0f172a;
   font-style: italic;
 }
 
 .section-dark .quote-card {
   background: rgba(15, 23, 42, 0.9);
   color: #e2e8f0;
 }
 
 .hobbies-grid {
   margin-top: 1rem;
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
   gap: 1rem;
 }
 
 .hobby-card {
   padding: 1.25rem;
   border-radius: 1rem;
   background: rgba(255, 255, 255, 0.9);
 }
 
 .section-dark .hobby-card {
   background: rgba(15, 23, 42, 0.9);
 }
 
 .hobby-card h3 {
   margin-top: 0;
 }
 
.contact-card-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: #2563eb;
}

.contact-link {
  display: inline-block;
  margin: 0.75rem 0 0;
  color: #2563eb;
  font-weight: 700;
}

.section-dark .contact-link {
  color: #60a5fa;
}

.contact-info-card p:last-child {
  margin-top: 0.75rem;
  color: #475569;
}

.section-dark .contact-info-card p:last-child {
  color: #cbd5e1;
}

.contact-form label {
  display: block;
  margin: 1rem 0 0.5rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 0.9rem;
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
}

.section-dark .contact-form input,
.section-dark .contact-form textarea {
  background: rgba(15, 23, 42, 0.9);
  color: #e2e8f0;
  border: 1px solid rgba(226, 232, 240, 0.12);
}

.contact-form button {
  margin-top: 1.25rem;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.site-footer {
  padding: 1.5rem 0;
}

.footer-inner {
  display: flex;
  justify-content: center;
  color: #334155;
}

@media (max-width: 840px) {
  .hero-grid,
  .section-grid,
  .skill-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 0.75rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

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

@media (max-width: 560px) {
  .hero-section {
    padding-top: 3rem;
  }

  .btn {
    width: 100%;
  }
}
