:root {
  --primary-color: #6366f1;
  --primary-accent: #22d3ee;
  --text-color: #0f172a;
  --muted-text: #475569;
  --bg-color: #f8fafc;
  --surface-color: rgba(255, 255, 255, 0.78);
  --border-color: rgba(15, 23, 42, 0.08);
  --shadow-color: rgba(15, 23, 42, 0.12);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  line-height: 1.7;
  color: var(--text-color);
  background: radial-gradient(circle at top, rgba(99, 102, 241, 0.12), transparent 35%),
    radial-gradient(circle at 20% 80%, rgba(14, 165, 233, 0.18), transparent 45%),
    var(--bg-color);
  min-height: 100vh;
}

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  filter: blur(16px);
  transition:
    opacity var(--reveal-duration, 0.65s) var(--reveal-easing, cubic-bezier(0.33, 1, 0.68, 1)),
    transform var(--reveal-duration, 0.65s) var(--reveal-easing, cubic-bezier(0.33, 1, 0.68, 1)),
    filter calc(var(--reveal-duration, 0.65s) * 0.85)
      var(--reveal-easing, cubic-bezier(0.33, 1, 0.68, 1));
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform, filter;
}

[data-reveal].reveal-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

[data-reveal='left'] {
  transform: translate3d(-48px, 0, 0);
}

[data-reveal='right'] {
  transform: translate3d(48px, 0, 0);
}

[data-reveal='up'] {
  transform: translate3d(0, -48px, 0);
}

[data-reveal='zoom'] {
  transform: scale(0.9);
}

[data-reveal='zoom'].reveal-visible {
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

main {
  position: relative;
  z-index: 1;
}

::selection {
  background-color: rgba(99, 102, 241, 0.2);
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.25rem 0;
  position: relative;
}

.logo {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color);
}

.logo::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-accent));
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1);
  cursor: pointer;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background-color: var(--text-color);
  border-radius: 9999px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  margin: 0 auto;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

.nav-links a {
  text-decoration: none;
  color: var(--muted-text);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 0.35rem;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text-color);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.hero {
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(14, 165, 233, 0.08));
  z-index: -1;
}

.hero-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  gap: 3rem;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--primary-color);
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.15;
  color: var(--text-color);
  font-weight: 700;
}

.hero p {
  max-width: 540px;
  color: var(--muted-text);
  font-size: 1.05rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  padding: 0.85rem 1.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-accent));
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(99, 102, 241, 0.35);
}

.btn-secondary {
  color: var(--text-color);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.25);
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.08);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.12);
}

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

.stat {
  flex: 1 1 140px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: 0 18px 35px var(--shadow-color);
  min-width: 160px;
}

.stat-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--primary-color);
}

.stat-label {
  color: var(--muted-text);
  font-size: 0.85rem;
  font-weight: 500;
}

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero-profile {
  position: relative;
  padding: 0.75rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(14, 165, 233, 0.25));
  box-shadow: 0 25px 45px rgba(99, 102, 241, 0.25);
}

.hero-profile img {
  width: min(280px, 60vw);
  aspect-ratio: 1 / 1;
  border-radius: 9999px;
  display: block;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.7);
  border: 6px solid rgba(255, 255, 255, 0.9);
}

.hero-badge {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 1.1rem 1.3rem;
  text-align: center;
  max-width: 260px;
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.08);
}

.hero-badge span {
  display: inline-block;
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.hero-badge p {
  color: var(--muted-text);
  font-size: 0.9rem;
  line-height: 1.5;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  text-align: center;
  margin-bottom: 2.75rem;
  color: var(--text-color);
  font-weight: 700;
}

.about {
  padding: 5rem 0;
}

.about-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: start;
}

.about-visual {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.about-image {
  width: min(360px, 80%);
  aspect-ratio: 1 / 1;
  border-radius: 2rem;
  object-fit: cover;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.18);
  border: 6px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.65);
}

.about-quote {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 1.5rem;
  color: var(--muted-text);
  font-size: 0.95rem;
  text-align: center;
  box-shadow: 0 18px 35px var(--shadow-color);
}

.about-text {
  background: var(--surface-color);
  border-radius: 1.75rem;
  padding: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  color: var(--muted-text);
  font-size: 1rem;
}

.about-text strong {
  color: var(--text-color);
}

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

.highlight-card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 1.25rem;
  padding: 1.35rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
}

.highlight-card h3 {
  font-size: 1rem;
  margin-bottom: 0.65rem;
  color: var(--text-color);
}

.highlight-card p {
  font-size: 0.9rem;
  color: var(--muted-text);
  line-height: 1.6;
}

.about-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary-color);
  font-weight: 500;
  font-size: 0.85rem;
}

.projects {
  padding: 5rem 0;
  background: rgba(255, 255, 255, 0.6);
}

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

.project-card {
  background: var(--surface-color);
  border-radius: 1.75rem;
  overflow: hidden;
  border: 1px solid rgba(99, 102, 241, 0.08);
  box-shadow: 0 24px 45px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 55px rgba(15, 23, 42, 0.18);
}

.project-media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(14, 165, 233, 0.18));
}

.project-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.project-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color);
}

.project-description {
  font-size: 0.95rem;
  color: var(--muted-text);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--muted-text);
  padding: 0.4rem 0.9rem 0.4rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 6px 16px rgba(15, 23, 42, 0.08);
}

.tag img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.12));
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  text-decoration: none;
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: var(--primary-color);
  background: rgba(99, 102, 241, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(99, 102, 241, 0.22);
}

.project-link.primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-accent));
  color: #fff;
  border: none;
}

.skills {
  padding: 5rem 0;
}

.skills-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem auto;
  color: var(--muted-text);
  font-size: 1rem;
}

.tech-stack-showcase {
  margin: 0 auto 3.5rem auto;
  padding: 2.25rem 2.75rem;
  border-radius: 2rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(14, 165, 233, 0.1));
  border: 1px solid rgba(99, 102, 241, 0.15);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.12);
}

.tech-stack-title {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.8rem;
  color: var(--primary-color);
  font-weight: 700;
  text-align: center;
}

.tech-icon-grid {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
}

.tech-icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.4rem 1rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(99, 102, 241, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 12px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-icon-card img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.tech-icon-card figcaption {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-color);
  text-align: center;
}

.tech-icon-card:hover,
.tech-icon-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 18px 35px rgba(99, 102, 241, 0.22);
}

.tech-icon-card:hover img,
.tech-icon-card:focus-within img {
  transform: scale(1.08);
}

.tech-icon-card:focus-within figcaption {
  text-decoration: underline;
  text-decoration-color: rgba(99, 102, 241, 0.45);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .tech-icon-card,
  .tech-icon-card img {
    transition: none;
  }
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.skill-category {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 1.75rem;
  text-align: left;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
}

.skill-category h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.skill-list {
  display: grid;
  gap: 0.7rem;
  color: var(--muted-text);
  font-size: 0.95rem;
}

.contact {
  padding: 5rem 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(14, 165, 233, 0.12));
}

.contact-content {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 2.5rem;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.12);
}

.contact-content p {
  color: var(--muted-text);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
}

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

.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary-color);
  border: 1px solid rgba(99, 102, 241, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(99, 102, 241, 0.2);
}

footer {
  text-align: center;
  padding: 1.5rem 0 2rem;
  color: var(--muted-text);
  font-size: 0.9rem;
}

@media (max-width: 1024px) {
  .hero {
    padding-top: 5rem;
  }

  .hero-content {
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  nav {
    gap: 1rem;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 1rem);
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1.25rem;
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.18);
    flex-direction: column;
  }

  .nav-links a {
    padding: 0.75rem 0;
    text-align: center;
    font-size: 0.95rem;
  }

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

  .hero {
    padding: 4.5rem 0 4rem;
  }

  .hero-stats {
    flex-direction: column;
  }

  .stat {
    width: 100%;
  }

  .about-image {
    width: min(320px, 60%);
  }

  .contact-content {
    padding: 2.5rem 1.75rem;
  }
}

@media (max-width: 540px) {
  .hero h1 {
    font-size: clamp(2.2rem, 8vw, 2.7rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .about-image {
    width: 75%;
  }

  .contact-links {
    flex-direction: column;
  }
}
