:root {
  --bg: #f4f7fb;
  --bg-2: #eef3f8;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --text: #0f172a;
  --muted: #5b6475;
  --line: rgba(15, 23, 42, 0.08);
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.12);
  --accent: #2146ff;
  --accent-2: #6d28d9;
  --accent-3: #0f766e;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1180px;
  --section-pad: clamp(4.5rem, 7vw, 8rem);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 15%, rgba(33, 70, 255, 0.12), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(15, 118, 110, 0.10), transparent 25%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  overflow-x: hidden;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(244, 247, 251, 0.72);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.nav-shell {
  min-height: 4.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  letter-spacing: -0.05em;
  font-size: 1.2rem;
}

.brand span {
  color: var(--accent);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.primary-nav a,
.footer-links a,
.footer-socials a {
  color: var(--muted);
  transition: color 180ms ease, transform 180ms ease;
}

.primary-nav a:hover,
.footer-links a:hover,
.footer-socials a:hover {
  color: var(--text);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  padding: 0.75rem 1rem;
  color: var(--text);
}

.progress-bar {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  z-index: 120;
  background: rgba(15, 23, 42, 0.06);
}

.progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), #14b8a6);
  box-shadow: 0 0 20px rgba(33, 70, 255, 0.35);
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hero-section {
  position: relative;
  padding: var(--section-pad) 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  pointer-events: none;
}

.hero-bg-a {
  width: 26rem;
  height: 26rem;
  background: radial-gradient(circle, rgba(33, 70, 255, 0.22), transparent 66%);
  top: -8rem;
  right: -4rem;
}

.hero-bg-b {
  width: 20rem;
  height: 20rem;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.18), transparent 68%);
  left: -6rem;
  bottom: -5rem;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 75%);
  opacity: 0.7;
  pointer-events: none;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-copy h1,
.section-heading h2,
.section-header h2 {
  font-family: 'Manrope', sans-serif;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.2rem);
}

.hero-subtitle {
  margin: 1rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--muted);
}

.typing-label {
  color: var(--text);
  font-weight: 700;
}

.typing-cursor {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}

.hero-description,
.section-heading p,
.section-header p,
.contact-layout p {
  color: var(--muted);
  font-size: 1.04rem;
  max-width: 60ch;
}

.hero-description {
  margin: 1.4rem 0 0;
  max-width: 56ch;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.15rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 18px 32px rgba(33, 70, 255, 0.24);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.75);
  border-color: var(--line);
  color: var(--text);
}

.hero-socials {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.75rem;
}

.hero-socials a,
.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
  border-radius: 999px;
}

.hero-socials a {
  width: 2.8rem;
  height: 2.8rem;
}

.hero-socials svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
  color: var(--muted);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.25rem;
}

.hero-metrics div,
.about-panel,
.glass-card,
.testimonial-card,
.contact-form,
.service-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero-metrics div {
  border-radius: var(--radius-md);
  padding: 1rem;
}

.hero-metrics strong {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 1.15rem;
}

.hero-metrics span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-visual {
  position: relative;
  min-height: 32rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card {
  position: relative;
  width: min(100%, 29rem);
  padding: 1.2rem;
  border-radius: calc(var(--radius-xl) + 8px);
}

.avatar-frame {
  overflow: hidden;
  border-radius: calc(var(--radius-xl) - 4px);
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, rgba(33, 70, 255, 0.12), rgba(15, 118, 110, 0.08));
}

.avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.status-pill,
.code-panel,
.floating-chip {
  position: absolute;
  border-radius: 999px;
  font-weight: 700;
}

.status-pill {
  left: 1.85rem;
  top: 1.85rem;
  padding: 0.55rem 0.9rem;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.code-panel {
  right: 1.4rem;
  bottom: 1.4rem;
  padding: 0.9rem 1rem;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  border-radius: 1.2rem;
  display: grid;
  gap: 0.2rem;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.22);
}

.code-panel span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}

.code-panel strong {
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
}

.floating-chip {
  padding: 0.7rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
  animation: float 7s ease-in-out infinite;
}

.chip-a {
  top: 2rem;
  right: -0.4rem;
}

.chip-b {
  left: -0.4rem;
  top: 48%;
  animation-delay: 1.2s;
}

.chip-c {
  right: 1.3rem;
  bottom: 5.5rem;
  animation-delay: 2.4s;
}

.section-shell {
  padding: var(--section-pad) 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.18));
}

.two-column-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.section-heading h2,
.section-header h2 {
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 3.8rem);
}

.section-heading p,
.section-header p {
  margin-top: 1rem;
}

.glass-card {
  border-radius: var(--radius-xl);
}

.about-panel {
  padding: 1.25rem;
  display: grid;
  gap: 1rem;
}

.about-stat {
  padding: 1rem 1.05rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.about-stat span {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

.about-stat strong {
  display: block;
  font-size: 1.02rem;
  line-height: 1.6;
}

.skills-grid,
.projects-grid,
.services-grid,
.testimonials-grid {
  display: grid;
  gap: 1rem;
}

.skills-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 2rem;
}

.skill-card {
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.skill-card:hover,
.project-card:hover,
.service-card:hover,
.testimonial-card:hover {
  transform: translateY(-6px);
}

.skill-icon {
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 0.95rem;
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
  color: #fff;
  font-size: 1.2rem;
}

.skill-card h3,
.service-card h3,
.project-content h3,
.timeline-card h3,
.testimonial-card strong {
  font-family: 'Manrope', sans-serif;
}

.skill-card h3,
.service-card h3,
.project-content h3,
.timeline-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.skill-card p,
.service-card p,
.project-content p,
.timeline-card p,
.testimonial-card p {
  color: var(--muted);
}

.skill-meter {
  margin-top: 1rem;
  width: 100%;
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.skill-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  width: 0;
  transition: width 1200ms cubic-bezier(.2,.75,.25,1);
}

.projects-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}

.project-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-media {
  min-height: 14rem;
  background: var(--project-bg, linear-gradient(135deg, #2146ff, #6d28d9));
  position: relative;
}

.project-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--project-pattern, radial-gradient(circle at 20% 20%, rgba(255,255,255,0.4) 0 10%, transparent 11%));
  opacity: 0.75;
}

.project-thumb {
  position: absolute;
  right: 1rem;
  bottom: 0;
  width: 58%;
  height: 88%;
  object-fit: cover;
  border-radius: 1.2rem 1.2rem 0 0;
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.18);
}

.project-content {
  padding: 1.2rem 1.2rem 1.35rem;
  background: rgba(255, 255, 255, 0.78);
}

.project-tag {
  display: inline-flex;
  margin-bottom: 0.75rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(33, 70, 255, 0.09);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.tech-list span {
  padding: 0.36rem 0.62rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--muted);
  font-size: 0.78rem;
}

.project-actions {
  display: flex;
  gap: 0.7rem;
  margin-top: 1rem;
}

.project-actions a {
  flex: 1;
  justify-content: center;
}

.button-compact {
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
}

.services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}

.service-card {
  border-radius: var(--radius-lg);
  padding: 1.35rem;
}

.service-card span {
  display: inline-flex;
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.timeline {
  position: relative;
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 1.05rem;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(33, 70, 255, 0.08));
}

.timeline-card {
  position: relative;
  margin-left: 2.75rem;
  padding: 1.2rem 1.25rem;
  border-radius: var(--radius-lg);
}

.timeline-card::before {
  content: '';
  position: absolute;
  left: -2.1rem;
  top: 1.55rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  box-shadow: 0 0 0 0.35rem rgba(33, 70, 255, 0.12);
}

.timeline-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
  margin-bottom: 0.75rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.testimonials-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}

.testimonial-card {
  padding: 1.4rem;
  border-radius: var(--radius-lg);
}

.testimonial-card p {
  margin: 0 0 1.25rem;
  font-size: 1rem;
}

.testimonial-card strong {
  display: block;
  font-size: 1rem;
}

.testimonial-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-section {
  padding-bottom: 5.5rem;
}

.contact-layout {
  align-items: stretch;
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.contact-details a,
.contact-details span {
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  color: var(--text);
}

.contact-form {
  padding: 1.35rem;
  border-radius: var(--radius-xl);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  color: var(--text);
  font-weight: 600;
}

.contact-form span {
  font-size: 0.84rem;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(33, 70, 255, 0.38);
  box-shadow: 0 0 0 4px rgba(33, 70, 255, 0.1);
}

.submit-button {
  width: 100%;
  margin-top: 0.5rem;
}

.site-footer {
  padding: 2rem 0 2.25rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.45);
}

.footer-layout {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 0.6rem;
}

.footer-layout p {
  margin: 0;
  color: var(--muted);
}

.footer-links,
.footer-socials {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-socials a {
  padding: 0.6rem 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@media (max-width: 1100px) {
  .hero-layout,
  .two-column-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .skills-grid,
  .services-grid,
  .projects-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.75rem);
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: var(--shadow);
    display: none;
  }

  .primary-nav.open {
    display: flex;
  }

  .hero-metrics,
  .skills-grid,
  .services-grid,
  .projects-grid,
  .testimonials-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .footer-layout {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline::before {
    left: 0.55rem;
  }

  .timeline-card {
    margin-left: 1.75rem;
  }

  .timeline-card::before {
    left: -1.4rem;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 1.3rem, var(--container));
  }

  .nav-shell {
    min-height: 4.4rem;
  }

  .hero-section {
    padding-top: 4.5rem;
  }

  .hero-visual {
    min-height: auto;
  }

  .hero-card {
    width: 100%;
  }

  .status-pill,
  .code-panel {
    position: static;
    margin-top: 0.85rem;
  }

  .hero-visual {
    display: grid;
    gap: 0.85rem;
  }

  .floating-chip {
    display: none;
  }

  .hero-copy h1 {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .button,
  .contact-details a,
  .contact-details span {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}