:root {
  --bg: #ecf0f3;
  --text: #3c3e41;
  --muted: #878e99;
  --primary: #ff014f;
  --primary-soft: rgba(255, 1, 79, 0.12);
  --white: #ffffff;
  --shadow: 12px 12px 24px #cbced1, -12px -12px 24px #ffffff;
  --shadow-hover: 16px 16px 32px #c5c9cd, -10px -10px 28px #ffffff;
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --reveal-dist: 32px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text);
  background: linear-gradient(165deg, #e8eef2 0%, var(--bg) 38%, #e5eaee 100%);
  background-attachment: fixed;
  line-height: 1.7;
  overflow-x: hidden;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: var(--scroll-progress, 0%);
  z-index: 1200;
  background: linear-gradient(90deg, #ff014f, #ff5f8d, #8b5cf6);
  box-shadow: 0 0 16px rgba(255, 1, 79, 0.4);
  transition: width 0.08s linear;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .ambient {
    display: none;
  }

  .reveal-item {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition-delay: 0ms !important;
  }

  .typing[data-caret]::after {
    animation: none !important;
    opacity: 0 !important;
  }
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.55;
  animation: orbFloat var(--orb-dur, 24s) var(--ease-smooth) infinite alternate;
}

.orb-1 {
  width: min(560px, 90vw);
  height: min(560px, 90vw);
  top: -12%;
  right: -8%;
  background: radial-gradient(
    circle at 35% 35%,
    rgba(255, 1, 79, 0.11),
    transparent 62%
  );
  --orb-dur: 22s;
}

.orb-2 {
  width: min(420px, 75vw);
  height: min(420px, 75vw);
  bottom: -6%;
  left: -14%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(60, 120, 200, 0.08),
    transparent 62%
  );
  --orb-dur: 28s;
  animation-delay: -5s;
}

.orb-3 {
  width: min(340px, 55vw);
  height: min(340px, 55vw);
  top: 36%;
  left: 52%;
  background: radial-gradient(
    circle at 50% 45%,
    rgba(255, 1, 79, 0.06),
    transparent 58%
  );
  --orb-dur: 32s;
  animation-delay: -12s;
  opacity: 0.65;
}

@keyframes orbFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-24px, 18px) scale(1.04);
  }
}

@keyframes fadeRise {
  from {
    opacity: 0;
    transform: translateY(var(--reveal-dist));
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes fadeSlideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes thumbShimmer {
  0% {
    transform: translateX(-120%) skewX(-12deg);
    opacity: 0;
  }
  35% {
    opacity: 0.85;
  }
  100% {
    transform: translateX(120%) skewX(-12deg);
    opacity: 0;
  }
}

@keyframes typingPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.025);
  }
}

/* Scroll reveal — applied via script */
.reveal-item {
  opacity: 0;
  transform: translateY(var(--reveal-dist));
  filter: blur(5px);
  transition:
    opacity 0.75s var(--ease-smooth),
    transform 0.75s var(--ease-smooth),
    filter 0.75s var(--ease-smooth);
  transition-delay: calc(var(--i, 0) * 72ms);
  will-change: opacity, transform, filter;
}

.section-visible .reveal-item {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@media (prefers-reduced-motion: no-preference) {
  body:not(.is-ready) .hero-content > *,
  body:not(.is-ready) .hero-image.card {
    opacity: 0;
  }

  body.is-ready .hero-content > * {
    animation: fadeRise 0.82s var(--ease-smooth) forwards;
  }

  body.is-ready .hero-content > *:nth-child(1) {
    animation-delay: 0.06s;
  }
  body.is-ready .hero-content > *:nth-child(2) {
    animation-delay: 0.12s;
  }
  body.is-ready .hero-content > *:nth-child(3) {
    animation-delay: 0.2s;
  }
  body.is-ready .hero-content > *:nth-child(4) {
    animation-delay: 0.28s;
  }
  body.is-ready .hero-content > *:nth-child(5) {
    animation-delay: 0.34s;
  }
  body.is-ready .hero-content > *:nth-child(6) {
    animation-delay: 0.4s;
  }

  body.is-ready .hero-image.card {
    animation: fadeSlideInRight 1s var(--ease-smooth) both;
    animation-delay: 0.18s;
  }
}

.shimmer-bg {
  position: relative;
  overflow: hidden;
}

.shimmer-bg::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(
    115deg,
    transparent 42%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 58%
  );
}

@media (prefers-reduced-motion: no-preference) {
  .shimmer-bg::before {
    opacity: 0.45;
    animation: slowShimmer 11s linear infinite;
  }

  .shimmer-bg:hover::before {
    opacity: 0.75;
  }
}

@keyframes slowShimmer {
  0% {
    transform: translate(-35%, -35%) rotate(12deg);
  }
  100% {
    transform: translate(35%, 35%) rotate(12deg);
  }
}

.typing.pulse-word {
  animation: typingPulse 0.42s var(--ease-smooth);
}

.typing[data-caret]::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 0.92em;
  margin-left: 3px;
  vertical-align: -0.12em;
  background: linear-gradient(
    180deg,
    var(--primary),
    rgba(255, 1, 79, 0.45)
  );
  border-radius: 2px;
  animation: caretBlink 0.92s ease-in-out infinite;
}

@keyframes caretBlink {
  0%,
  46% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section {
  padding: 90px 0;
  border-bottom: 1px solid rgba(220, 225, 228, 0.65);
}

.section-subtitle {
  text-transform: uppercase;
  color: var(--primary);
  font-size: 13px;
  letter-spacing: 1.6px;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  margin-bottom: 35px;
  font-family: "Montserrat", sans-serif;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  display: block;
  width: 0;
  height: 3px;
  margin-top: 11px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary), rgba(255, 1, 79, 0.15));
  transition: width 0.72s var(--ease-smooth);
}

.section-visible .section-title::after {
  width: 72px;
}

.section-visible .section-subtitle {
  animation: subtitlePop 0.55s var(--ease-smooth) both;
}

@keyframes subtitlePop {
  from {
    opacity: 0.6;
    letter-spacing: 2.6px;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    letter-spacing: 1.6px;
    transform: translateY(0);
  }
}

.card {
  background: var(--bg);
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition:
    transform 0.42s var(--ease-smooth),
    box-shadow 0.42s var(--ease-smooth),
    border-color 0.35s ease;
  border: 1px solid rgba(220, 225, 228, 0.35);
  position: relative;
  transform-style: preserve-3d;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  left: var(--mx, 50%);
  top: var(--my, 50%);
  width: 220px;
  height: 220px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 1, 79, 0.18), transparent 68%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.card.is-hovered::before {
  opacity: 1;
}

@media (hover: hover) {
  .card:focus-within {
    outline: none;
    box-shadow:
      var(--shadow-hover),
      0 0 0 2px rgba(255, 1, 79, 0.12);
  }

  .feature:hover,
  .project:hover,
  .timeline:hover,
  .collab-card:hover,
  .cert-card:hover,
  .skill-block:hover,
  .contact-info:hover,
  .contact-form:hover,
  .about-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(255, 1, 79, 0.18);
  }

  .hero-image.card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--shadow-hover);
  }

  .tilt-card {
    transition:
      transform 0.22s ease,
      box-shadow 0.25s ease,
      border-color 0.25s ease;
  }
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(236, 240, 243, 0.88);
  backdrop-filter: blur(12px) saturate(1.06);
  border-bottom: 1px solid transparent;
  transition:
    box-shadow 0.35s var(--ease-smooth),
    background 0.35s ease,
    border-color 0.35s ease;
}

.header.is-scrolled {
  background: rgba(236, 240, 243, 0.96);
  box-shadow:
    0 10px 28px rgba(60, 62, 65, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.72) inset;
  border-bottom-color: rgba(220, 225, 228, 0.72);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  text-decoration: none;
  color: var(--primary);
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
  letter-spacing: -0.02em;
  transition: color 0.25s ease, transform 0.25s var(--ease-smooth);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
}

.logo:hover {
  color: var(--primary);
  transform: translateY(-1px);
}

.logo-mark {
  height: 30px;
  width: auto;
  object-fit: contain;
  object-position: left center;
  display: block;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.logo span {
  font-size: 17px;
}

@media (max-width: 980px) {
  .logo-mark {
    height: 26px;
    width: auto;
  }

  .logo span {
    font-size: 16px;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.26s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), rgba(255, 1, 79, 0.35));
  transition: width 0.3s var(--ease-smooth);
}

.nav a:hover,
.nav a.is-active {
  color: var(--primary);
}

.nav a:hover::after,
.nav a.is-active::after {
  width: 100%;
}

.nav a:active {
  transform: translateY(0.5px);
}

.menu-toggle {
  display: none;
  border: none;
  background: none;
  color: var(--text);
  font-size: 22px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.subtitle {
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 2px;
  margin-bottom: 14px;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Montserrat", sans-serif;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  margin-bottom: 6px;
}

h1 span {
  color: var(--primary);
  background: linear-gradient(
    118deg,
    var(--primary) 0%,
    #ff3d73 52%,
    var(--primary) 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: nameGradient 11s linear infinite;
}

@keyframes nameGradient {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

h2 .typing {
  color: var(--primary);
}

h2 {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  margin-bottom: 18px;
}

.lead {
  max-width: 620px;
  color: var(--muted);
}

.location {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}

.location i {
  margin-right: 6px;
  color: var(--primary);
}

.about-card {
  padding: 32px 36px;
}

.about-card p {
  color: var(--muted);
  margin-bottom: 16px;
}

.about-card .about-last {
  margin-bottom: 0;
}

.hero-image {
  padding: 22px;
}

.placeholder,
.thumb {
  background: linear-gradient(135deg, #d3dae0, #f9fbfd);
  border-radius: 12px;
}

.project .thumb {
  position: relative;
  overflow: hidden;
}

.project .thumb::after {
  content: "";
  position: absolute;
  inset: -4px;
  background: linear-gradient(
    118deg,
    transparent 42%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 56%
  );
  transform: translateX(-115%) skewX(-16deg);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

@media (hover: hover) {
  .project:hover .thumb::after {
    animation: thumbShimmer 1.05s ease-out forwards;
  }
}

.hero-image .placeholder {
  min-height: 420px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 600;
}

.profile-photo-wrap {
  padding: 0;
  position: relative;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: none;
}

.profile-photo-wrap.has-photo .profile-photo {
  display: block;
}

.profile-fallback {
  min-height: inherit;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--muted);
  font-weight: 600;
}

.profile-photo-wrap.has-photo .profile-fallback {
  display: none;
}

.hero-meta {
  margin-top: 30px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.meta-title {
  margin-bottom: 12px;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--muted);
}

.socials {
  display: flex;
  gap: 12px;
}

.socials a,
.socials span {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
  transition:
    transform 0.35s var(--ease-smooth),
    color 0.25s ease,
    box-shadow 0.35s ease,
    border-color 0.25s ease;
  border: 1px solid rgba(220, 225, 228, 0.28);
}

.socials a:hover {
  color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.socials span {
  cursor: default;
}

.socials span:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.socials span:hover i {
  color: var(--primary);
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

.feature,
.project,
.timeline,
.testimonial,
.price,
.blog-card,
.contact-info,
.contact-form {
  padding: 28px;
}

.feature i {
  color: var(--primary);
  font-size: 26px;
  margin-bottom: 14px;
  display: inline-block;
  transition: transform 0.45s var(--ease-smooth);
}

@media (hover: hover) {
  .feature:hover i {
    transform: scale(1.12) rotate(-6deg);
  }
}

.feature h4,
.project h4,
.blog-card h4,
.price h4 {
  margin-bottom: 10px;
}

.project .thumb,
.blog-card .thumb {
  min-height: 170px;
  margin-bottom: 16px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.project .thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(
    160deg,
    rgba(20, 26, 38, 0.08) 0%,
    rgba(20, 26, 38, 0.24) 100%
  );
  pointer-events: none;
}

.project-body p,
.blog-card p {
  font-size: 13px;
  color: var(--primary);
  margin-bottom: 7px;
}

.project-body > p:first-of-type span {
  float: right;
  opacity: 0.85;
}

.project-desc {
  font-size: 14px !important;
  color: var(--muted) !important;
  margin: 12px 0 14px !important;
  line-height: 1.65;
  clear: both;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: gap 0.3s var(--ease-smooth), opacity 0.25s ease;
}

.project-link i {
  transition: transform 0.3s var(--ease-smooth);
}

@media (hover: hover) {
  .project-link:hover {
    gap: 10px;
  }

  .project-link:hover i {
    transform: translateX(2px);
  }
}

.project-link-muted {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}

.thumb-dl {
  background-image: url("https://images.unsplash.com/photo-1677442136019-21780ecad995?auto=format&fit=crop&w=1200&q=80");
}

.thumb-hs {
  background-image: url("https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=1200&q=80");
}

.thumb-vms {
  background-image: url("https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?auto=format&fit=crop&w=1200&q=80");
}

.thumb-ems {
  background-image: url("https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&w=1200&q=80");
}

.thumb-ml {
  background-image: url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=1200&q=80");
}

.thumb-med {
  background-image: url("https://images.unsplash.com/photo-1587854692152-cbe660dbde88?auto=format&fit=crop&w=1200&q=80");
}

.meta-line {
  margin-top: 6px !important;
  font-size: 13px !important;
  color: var(--text) !important;
  font-weight: 600;
}

.timeline-list {
  margin-top: 12px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
}

.timeline-list li {
  margin-bottom: 6px;
}

.collab-label {
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 11px;
  color: var(--primary);
  margin-bottom: 8px;
}

.collab-card h4 {
  margin-bottom: 10px;
}

.collab-card p {
  color: var(--muted);
}

.cert-grid {
  align-items: stretch;
}

.cert-card {
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cert-card h4 {
  font-size: 16px;
  line-height: 1.35;
  margin-bottom: 0;
}

.cert-issuer {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.cert-link {
  margin-top: auto;
  padding-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cert-link i {
  transition: transform 0.28s var(--ease-smooth);
}

.cert-link:hover {
  text-decoration: underline;
}

@media (hover: hover) {
  .cert-link:hover i {
    transform: translate(1px, -2px);
  }
}

.cert-note {
  margin-top: auto;
  padding-top: 10px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 0;
}

.cert-card-wide {
  grid-column: span 3;
}

@media (max-width: 980px) {
  .cert-card-wide {
    grid-column: span 1;
  }
}

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

.skill-block {
  padding: 22px 24px;
}

.skill-block h4 {
  margin-bottom: 14px;
  font-size: 15px;
}

.skill-block-wide {
  grid-column: span 3;
}

.chips {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.85;
}

@media (max-width: 980px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .skill-block-wide {
    grid-column: span 1;
  }
}

.role-line {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px !important;
  margin-bottom: 12px !important;
}

.contact-info a {
  color: var(--primary);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-info p i {
  margin-right: 6px;
  color: var(--primary);
}

.timeline-item {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #d8dde1;
}

.timeline-item p {
  color: var(--muted);
  font-size: 14px;
}

.testimonial h4 {
  margin-bottom: 10px;
}

.testimonial p {
  color: var(--muted);
}

.testimonial span {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
}

.price .amount {
  color: var(--primary);
  font-size: 30px;
  font-weight: 700;
  margin: 8px 0 16px;
}

.price ul {
  list-style: none;
  margin-bottom: 20px;
}

.price li {
  margin-bottom: 8px;
}

button {
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  background: linear-gradient(155deg, #f6f9fb 0%, var(--bg) 52%, #e6ebef 100%);
  color: var(--primary);
  box-shadow: var(--shadow);
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.35s var(--ease-smooth),
    box-shadow 0.35s ease,
    color 0.25s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

button:active {
  transform: translateY(0);
}

.price.active {
  outline: 1px solid #d7dde2;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.35fr;
  gap: 24px;
}

.contact-info .placeholder {
  min-height: 200px;
  margin-bottom: 20px;
}

.contact-form {
  display: grid;
  gap: 12px;
}

input,
textarea {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 14px;
  box-shadow: inset 6px 6px 12px #d5dadf, inset -6px -6px 12px #ffffff;
  font-family: inherit;
  background: var(--bg);
}

input:focus,
textarea:focus {
  outline: none;
  box-shadow:
    inset 6px 6px 12px #d5dadf,
    inset -6px -6px 12px #ffffff,
    0 0 0 3px rgba(255, 1, 79, 0.12);
}

.footer {
  padding: 32px 0;
  text-align: center;
  color: var(--muted);
}

.footer-visible {
  animation: footerFade 0.7s var(--ease-smooth) forwards;
}

@keyframes footerFade {
  from {
    opacity: 0.45;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .cards-3,
  .cards-2,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 78px;
    right: 4%;
    width: 220px;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    background: var(--bg);
    display: none;
  }

  .nav.show {
    display: flex;
    animation: menuDrop 0.38s var(--ease-smooth) both;
  }
}

@keyframes menuDrop {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
