:root {
  --color-background: #f8f9fa;
  --color-surface: #ffffff;
  --color-primary: #1a56db;
  --color-text-primary: #111827;
  --color-text-secondary: #6b7280;
  --color-accent: #10b981;
}

[data-theme="dark"] {
  --color-background: #0f1117;
  --color-surface: #1a1d27;
  --color-primary: #4f8ef7;
  --color-text-primary: #f1f5f9;
  --color-text-secondary: #94a3b8;
  --color-accent: #34d399;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-background);
  transition: background-color 250ms ease, color 250ms ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Sora", sans-serif;
  color: var(--color-text-primary);
}

p {
  color: var(--color-text-secondary);
}

ul,
ol {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}
img {
  max-width: 100%;
  display: block;
}
body {
  overflow-x: hidden;
}
h1,
h2,
h3 {
  line-height: 1.2;
}

/* ===== Navbar ===== */
.navbar {
  position: sticky;
  top: 0;
  height: 64px;
  background: var(--color-background);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  z-index: 100;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar__logo {
  color: var(--color-primary);
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
}

.navbar__links {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar__links a {
  color: var(--color-text-primary);
  font-size: 0.95rem;
  text-decoration: none;
}

.navbar__links a:hover {
  color: var(--color-primary);
}

.navbar__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text-primary);
  border-radius: 2px;
}

/* Theme Toggle */
.navbar__theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: background-color 150ms ease;
}

.navbar__theme-toggle:hover {
  background-color: rgba(107, 114, 128, 0.15);
}

/* Active Nav Highlighting */
.navbar__links a.active {
  color: var(--color-primary);
  font-weight: 600;
}

.navbar__links--open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 64px;
  left: 0;
  width: 100%;
  background: var(--color-surface);
  padding: 1.5rem 1rem;
  gap: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-background);
  text-align: center;
}

.hero .container {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
}

.hero__name {
  font-family: "Sora", sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero__tagline {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.hero__description {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 2rem;
}

.hero__cta {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 200ms ease,
    color 200ms ease,
    border-color 200ms ease;
  border: 2px solid transparent;
}

.btn--primary {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.btn--primary:hover {
  filter: brightness(0.9);
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--secondary:hover {
  background-color: var(--color-primary);
  color: #ffffff;
}

/* ===== About Section ===== */
.about {
  padding: 5rem 0;
  background-color: var(--color-surface);
}

.about .container {
  max-width: 720px;
}

.about h2 {
  font-family: "Sora", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 1.5rem;
}

.about p {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about p:last-child {
  margin-bottom: 0;
}

/* ===== Skills Section ===== */
.skills {
  padding: 5rem 0;
  background-color: var(--color-background);
}

.skills h2 {
  font-family: "Sora", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 2.5rem;
}

.skills-category {
  margin-bottom: 2rem;
}

.skills-category:last-child {
  margin-bottom: 0;
}

.skills-category h3 {
  font-family: "Sora", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-secondary);
  margin-bottom: 0.75rem;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.skills-list li {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: "DM Sans", sans-serif;
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--color-accent);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

/* ===== Projects Section ===== */
.projects {
  padding: 5rem 0;
  background-color: var(--color-surface);
}

.projects h2 {
  font-family: "Sora", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 2.5rem;
  grid-column: 1 / -1;
}

.projects .container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.project-card {
  background-color: var(--color-surface);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition:
    box-shadow 180ms ease,
    transform 180ms ease;
}

.project-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.09);
  transform: translateY(-3px);
}

.project-card h3 {
  font-family: "Sora", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0;
}

.project-card p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin: 0;
  flex-grow: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-tech li {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: "DM Sans", sans-serif;
  background-color: rgba(107, 114, 128, 0.1);
  color: var(--color-text-secondary);
  border: 1px solid rgba(107, 114, 128, 0.2);
}

.project-link {
  display: inline-block;
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  transition: color 180ms ease;
}

.project-link:hover {
  color: var(--color-accent);
}

/* ===== Contact Section ===== */
.contact {
  padding: 5rem 0;
  background-color: var(--color-background);
  text-align: center;
}

.contact .container {
  max-width: 600px;
}

.contact h2 {
  font-family: "Sora", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}

.contact p {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.contact-email {
  font-size: 1rem;
  font-weight: 500;
  font-family: "DM Sans", sans-serif;
  color: var(--color-text-primary);
  margin: 0;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.contact-item {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: "DM Sans", sans-serif;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  text-decoration: none;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.contact-item:hover {
  background-color: var(--color-primary);
  color: #ffffff;
}

/* ===== Footer ===== */
.footer {
  background-color: var(--color-surface);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 2rem 0;
}

.footer .container {
  display: flex;
  justify-content: center;
}

.footer__inner {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__copy {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin: 0;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__links a {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 150ms ease;
}

.footer__links a:hover {
  color: var(--color-primary);
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 400ms ease, transform 400ms ease;
}

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

/* ===== Responsive: Mobile ===== */
@media (max-width: 767px) {
  .navbar__links {
    display: none;
  }

  .navbar__links.navbar__links--open {
    display: flex;
  }

  .navbar__hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .hero__name {
    font-size: 2.2rem;
  }

  .hero__tagline {
    font-size: 1rem;
  }

  .hero__eyebrow {
    font-size: 0.8rem;
  }

  .hero__cta {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  .about {
    padding: 3rem 0;
  }

  .about h2 {
    font-size: 1.6rem;
  }

  .skills {
    padding: 3rem 0;
  }

  .skills h2 {
    font-size: 1.6rem;
  }

  .projects {
    padding: 3rem 0;
  }

  .projects h2 {
    font-size: 1.6rem;
  }

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

  .contact {
    padding: 3rem 0;
  }

  .contact h2 {
    font-size: 1.6rem;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
  }

  .contact-item {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .footer {
    padding: 1.5rem 0;
  }

  .footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero__description {
    font-size: 0.95rem;
  }
}

/* ===== Responsive: Tablet and Up ===== */
@media (min-width: 768px) {
  .navbar__links {
    display: flex;
  }

  .navbar__hamburger {
    display: none;
  }

  .hero__name {
    font-size: 3rem;
  }

  .projects .container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Responsive: Desktop ===== */
@media (min-width: 1024px) {
  .hero__name {
    font-size: 3.5rem;
  }

  .projects .container {
    grid-template-columns: repeat(3, 1fr);
  }
}
