* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Inter", "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: linear-gradient(180deg, #f7f8fb 0%, #eef2fb 100%);
  color: #1f2937;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  scroll-behaviour: smooth;
}

:root {
  --bg: #f7f8fb;
  --panel: #ffffff;
  --muted: #6b7280;
  --accent: #6c63ff;
  --accent-2: #3b3b98;
  --glass: rgba(255, 255, 255, 0.6);
  --card-shadow: 0 6px 20px rgba(16, 24, 40, 0.08);
}

.theme-dark {
  --bg: #0f1724;
  --panel: #0b1220;
  --muted: #9ca3af;
  --accent: #8d7bff;
  --accent-2: #5653b5;
  --glass: rgba(255, 255, 255, 0.03);
  --card-shadow: 0 6px 28px rgba(2, 6, 23, 0.6);
  color: #e6eef8;
}

body {
  background: var(--bg);
  color: inherit;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.navbar {
  position: sticky;
  top: 0;
  display: flex;
  align-items: centre;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.35));
  backdrop-filter: blur(6px);
  z-index: 1200;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.theme-dark .navbar {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02));
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 700;
  box-shadow: var(--card-shadow);
}

.brand .brand-name {
  font-weight: 700;
  letter-spacing: 0.4px;
  display: block;
}

.brand-role {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-item {
  display: flex;
  gap: 10px;
  list-style: none;
}

.menu-item li a {
  padding: 8px 14px;
  border-radius: 12px;
  color: inherit;
  font-weight: 600;
  transition: all .18s ease;
}

.menu-item li a:hover {
  color: #fff;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(108, 99, 255, 0.12);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

.nav-right {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 600;
  cursor: pointer;
}

.btn.primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  border: none;
  box-shadow: 0 8px 24px rgba(99, 80, 255, 0.12);
}

.btn.ghost {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 10px;
}

.theme-dark .btn.ghost {
  border-color: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 64px 0;
}

.hero-content {
  flex: 1;
  min-width: 260px;
}

.hello {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 600;
}

.name {
  font-size: 34px;
  line-height: 1.02;
  margin-bottom: 12px;
  color: inherit;
}

.name span {
  color: var(--accent);
  font-weight: 800;
}

.lead {
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 18px;
}

.cta-row {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.btn.outline {
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: transparent;
  color: inherit;
}

.hero-figure {
  width: 260px;
  flex: 0 0 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: var(--card-shadow);
  transition: transform .45s ease, box-shadow .45s ease;
}

.hero-img:hover {
  transform: translateY(-6px) scale(1.02);
}

.section {
  padding: 56px 0;
}

.section-head h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: inherit;
}

.section-head p {
  color: var(--muted);
  margin-bottom: 14px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 18px;
}

.skill-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6));
  padding: 18px;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  text-align: center;
}

.theme-dark .skill-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
}

.skill-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}

.project-grids {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 40px 0;
}

.card {
  width: 300px;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.card h3 {
  margin: 15px 0;
  font-size: 1.2rem;
  color: #333;
}

.contact-form {
  margin-top: 20px;
  max-width: 640px;
}

.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: var(--panel);
  margin-bottom: 12px;
  colour: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  box-shadow: 0 6px 18px rgba(108, 99, 255, 0.12);
  border-color: var(--accent);
}

.footer {
  padding: 36px 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.01));
  margin-top: 10px;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-bottom: 10px;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
}

.footer-legal {
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  padding-top: 12px;
  margin-top: 12px;
  color: var(--muted);
  text-align: center;
}

.to-top {
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 1400;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--card-shadow);
  cursor: pointer;
  transform: translateY(12px);
  opacity: 0;
  visibility: hidden;
  transition: all .28s ease;
}

.to-top.visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

[data-animate] {
  opacity: 0;
  transform: translateY(18px);
  transition: all .6s cubic-bezier(.2, .9, .2, 1);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}


a {
  color: inherit;
  text-decoration: none;
}

@media (max-width: 980px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    gap: 18px;
  }

  .hero-figure {
    flex: 0 0 200px;
    width: 200px;
  }
}

@media (max-width: 720px) {
  .menu-item {
    display: none;
  }

  .nav-toggle {
    display: inline-block;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 20px;
  }

  .nav-center {
    position: relative;
  }

  .menu-item.open {
    display: flex;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 56px;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    background: var(--panel);
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    width: 85%;
  }

  .hero {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-figure {
    margin-bottom: 18px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .name {
    font-size: 26px;
  }

  .hero-figure {
    width: 160px;
  }

  .cta-row {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
}