:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #eef2ff;
  --text: #182230;
  --muted: #5e6b7d;
  --brand: #166088;
  --brand-2: #0f3f5a;
  --accent: #ff7a59;
  --border: #d8e0ea;
  --shadow: 0 12px 30px rgba(13, 37, 63, 0.12);
}

html[data-theme="dark"] {
  --bg: #0f1218;
  --surface: #191f29;
  --surface-2: #132739;
  --text: #e6ecf5;
  --muted: #a7b3c4;
  --brand: #4aa2d1;
  --brand-2: #89c2e2;
  --accent: #ff9f80;
  --border: #2c3a4f;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 10%, rgba(22, 96, 136, 0.18), transparent 35%),
    radial-gradient(circle at 92% 85%, rgba(255, 122, 89, 0.15), transparent 30%),
    var(--bg);
  line-height: 1.6;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: "Sora", sans-serif;
  line-height: 1.2;
}

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

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
}

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

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand);
}

.menu-toggle,
.theme-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  height: 40px;
  width: 40px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

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

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
}

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

.eyebrow {
  display: inline-block;
  background: var(--surface-2);
  color: var(--brand);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
}

.hero h1 {
  margin: 1rem 0 0.5rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.typing-line {
  font-size: 1.1rem;
  min-height: 1.8rem;
  color: var(--brand-2);
  font-weight: 700;
}

.cursor {
  animation: blink 1s infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero-description {
  color: var(--muted);
  max-width: 62ch;
}

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

.btn {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0.72rem 1.1rem;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: var(--brand);
  color: #fff;
}

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

.quick-info {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.96rem;
}

.quick-info i {
  color: var(--accent);
  margin-right: 0.3rem;
}

.hero-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  padding: 2rem;
  box-shadow: var(--shadow);
  text-align: center;
  overflow: hidden;
}

.glow {
  position: absolute;
  inset: auto -25% -45% -25%;
  height: 240px;
  background: linear-gradient(180deg, rgba(22, 96, 136, 0), rgba(22, 96, 136, 0.2));
}

.avatar {
  height: 92px;
  width: 92px;
  margin: 0 auto 1rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  font-weight: 800;
  font-size: 1.4rem;
}

.hero-socials,
.footer-socials {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
}

.hero-socials a,
.footer-socials a {
  border: 1px solid var(--border);
  height: 40px;
  width: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--brand);
  background: var(--surface);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.education-grid,
.skills-grid,
.projects-grid,
.contact-grid {
  display: grid;
  gap: 1rem;
}

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

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

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.filters {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.filter-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
  font-weight: 700;
}

.filter-btn.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.projects-grid {
  margin-top: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card {
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.project-card:hover {
  transform: translateY(-4px);
}

.project-card .tag {
  display: inline-block;
  margin-top: 0.8rem;
  background: var(--surface-2);
  color: var(--brand);
  border-radius: 999px;
  padding: 0.26rem 0.6rem;
  font-size: 0.82rem;
  font-weight: 800;
}

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

.timeline-item ul {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
}

.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1rem 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 600;
}

.contact-item i {
  color: var(--brand);
}

.contact-form {
  display: grid;
  gap: 0.5rem;
  max-width: 700px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.7rem;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.form-status {
  min-height: 1.2rem;
  color: var(--brand);
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.3rem 0;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

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

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.8rem 4vw 1rem;
    flex-direction: column;
    display: none;
  }

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