:root {
  --background: hsl(40 20% 98%);
  --foreground: hsl(30 10% 12%);
  --card: hsl(40 30% 96%);
  --primary: hsl(15 70% 50%);
  --primary-fg: hsl(40 20% 98%);
  --secondary: hsl(35 25% 90%);
  --muted: hsl(35 15% 92%);
  --muted-foreground: hsl(30 10% 45%);
  --accent: hsl(180 25% 35%);
  --border: hsl(35 20% 88%);
  --ease-snappy: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--foreground);
  background: var(--background);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 12% 10%, hsl(15 70% 50% / 0.08), transparent 36%),
    radial-gradient(circle at 88% 22%, hsl(180 25% 35% / 0.08), transparent 34%),
    linear-gradient(180deg, hsl(40 20% 99%), hsl(40 20% 97%));
}

h1, h2, h3, h4 { font-family: "Fraunces", serif; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
.container { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.section { padding: 96px 0; position: relative; overflow: hidden; }
.overlay { position: absolute; inset: 0; pointer-events: none; }
.section .overlay {
  transition: transform 0.75s var(--ease-snappy), opacity 0.45s ease;
}
.section:not(.in-view) .overlay {
  transform: translateY(18px) scale(0.985);
}
.section.in-view .overlay {
  transform: translateY(-10px) scale(1.012);
}

.texture-dots {
  background-image: radial-gradient(hsl(30 10% 12% / 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
}
.texture-lines {
  background-image: repeating-linear-gradient(-45deg, transparent, transparent 10px, hsl(30 10% 12% / 0.02) 10px, hsl(30 10% 12% / 0.02) 11px);
}
.texture-weave {
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 14px, hsl(30 10% 12% / 0.04) 14px, hsl(30 10% 12% / 0.04) 15px),
    repeating-linear-gradient(90deg, transparent, transparent 14px, hsl(15 70% 50% / 0.06) 14px, hsl(15 70% 50% / 0.06) 15px);
}
.texture-grid {
  background-image:
    linear-gradient(hsl(180 25% 35% / 0.1) 1px, transparent 1px),
    linear-gradient(90deg, hsl(180 25% 35% / 0.1) 1px, transparent 1px);
  background-size: 22px 22px;
}
.texture-diagonal {
  background-image: repeating-linear-gradient(
    -35deg,
    transparent,
    transparent 16px,
    hsl(15 70% 50% / 0.08) 16px,
    hsl(15 70% 50% / 0.08) 18px
  );
}
.texture-crosshatch {
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 13px, hsl(30 10% 12% / 0.04) 13px, hsl(30 10% 12% / 0.04) 14px),
    repeating-linear-gradient(-45deg, transparent, transparent 13px, hsl(180 25% 35% / 0.045) 13px, hsl(180 25% 35% / 0.045) 14px);
}
.texture-wave {
  background-image:
    radial-gradient(120% 45px at 50% 0, hsl(15 70% 50% / 0.09) 24%, transparent 25%),
    radial-gradient(120% 45px at 50% 100%, hsl(180 25% 35% / 0.09) 24%, transparent 25%);
  background-size: 100% 120px;
  background-position: 0 0, 0 60px;
}
.texture-dots-soft {
  background-image: radial-gradient(hsl(180 25% 35% / 0.14) 0.9px, transparent 0.9px);
  background-size: 18px 18px;
}


.about .overlay,
.industries .overlay,
.code-growth .overlay,
.process .overlay,
.why-us .overlay,
.contact .overlay {
  z-index: 1;
}
.about .container,
.industries .container,
.code-growth .container,
.process .container,
.why-us .container,
.contact .container {
  position: relative;
  z-index: 2;
}
.about .overlay { opacity: 0.95; }
.industries .overlay { opacity: 0.86; }
.code-growth .overlay { opacity: 0.78; }
.process .overlay { opacity: 0.9; }
.why-us .overlay { opacity: 0.82; }
.contact .overlay { opacity: 0.84; }

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  padding: 22px 0;
  transition: all 0.35s ease;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: hsl(40 20% 98% / 0.9);
  backdrop-filter: blur(10px);
  padding: 16px 0;
  box-shadow: 0 5px 20px hsl(30 10% 12% / 0.06);
  border-bottom-color: hsl(35 20% 88% / 0.8);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.logo-mark-wrap {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  transition: transform 0.3s ease;
}
.logo-mark { width: 40px; height: 40px; display: block; object-fit: contain; }
.brand:hover .logo-mark-wrap { transform: scale(1.06); }
.brand-title { display: block; font-family: "Fraunces", serif; font-size: 22px; font-weight: 600; line-height: 1; }
.brand-hamza { color: #2b2018; }
.brand-soft { color: #f35a2d; }
.brand-subtitle { display: block; font-size: 11px; color: #5c4a38; margin-top: 2px; }
.desktop-nav { display: flex; align-items: center; gap: 30px; }
.desktop-nav > a:not(.btn) { color: var(--muted-foreground); font-size: 14px; font-weight: 500; position: relative; }
.desktop-nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  border-radius: 10px;
  background: var(--primary);
  transition: width 0.25s ease;
}
.desktop-nav > a:not(.btn):hover { color: var(--foreground); }
.desktop-nav > a:not(.btn):hover::after { width: 100%; }

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--foreground);
  cursor: pointer;
}
.menu-toggle:hover { background: var(--secondary); }
.mobile-menu {
  display: none;
  margin: 14px 16px 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 8px 28px hsl(30 10% 12% / 0.08);
}
.mobile-menu.open { display: grid; gap: 14px; }
.mobile-menu > a:not(.btn) { color: var(--muted-foreground); font-size: 18px; padding: 4px 0; }
.mobile-menu > a:not(.btn):hover { color: var(--foreground); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  cursor: pointer;
  transition: transform 0.28s var(--ease-snappy), box-shadow 0.28s var(--ease-snappy), color 0.25s ease, background-color 0.25s ease, filter 0.25s ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn::before {
  content: "";
  position: absolute;
  top: -120%;
  left: -40%;
  width: 38%;
  height: 340%;
  background: linear-gradient(90deg, transparent, hsl(0 0% 100% / 0.48), transparent);
  transform: translateX(-220%) rotate(18deg);
  transition: transform 0.7s var(--ease-snappy);
  z-index: -1;
}
.btn:hover::before { transform: translateX(420%) rotate(18deg); }
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 10px 22px; }
.btn-lg { padding: 12px 28px; font-size: 15px; }
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { filter: brightness(0.95); box-shadow: 0 14px 28px hsl(15 70% 50% / 0.28); }
.btn-ghost:hover { background: hsl(180 25% 35% / 0.1); color: hsl(180 25% 35%); }
.btn-outline { border-color: var(--border); background: var(--background); }
.btn-outline:hover { background: hsl(180 25% 35% / 0.1); color: hsl(180 25% 35%); }
.btn-green { border-color: #16a34a; color: #16a34a; }
.btn-green:hover { background: hsl(142 76% 36% / 0.1); color: #15803d; }

.hero { min-height: 100vh; display: grid; align-items: center; padding-top: 128px; padding-bottom: 72px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; position: relative; z-index: 2; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--secondary);
  padding: 8px 16px;
  margin-bottom: 28px;
  color: var(--muted-foreground);
  font-size: 14px;
}
.pill [data-lucide="star"] { width: 16px; height: 16px; color: var(--primary); fill: var(--primary); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.1; margin-bottom: 22px; max-width: 780px; }
.squiggle-underline {
  text-decoration: underline;
  text-decoration-style: wavy;
  text-decoration-color: var(--primary);
  text-underline-offset: 5px;
}
.hero p { font-size: 19px; line-height: 1.65; color: var(--muted-foreground); max-width: 640px; }
.hero-cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }
.trust-row { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 24px; }
.trust-value { font-size: 32px; font-family: "Fraunces", serif; }
.trust-label { font-size: 14px; color: var(--muted-foreground); }
.divider { width: 1px; height: 48px; background: var(--border); }
.hero-image-wrap {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px hsl(30 10% 12% / 0.2);
  transform: rotate(2deg);
  transition: transform 0.45s ease;
}
.hero-image-wrap:hover { transform: rotate(0deg); }
.hero-image-wrap img { width: 100%; display: block; }
.floating-card {
  position: absolute;
  border-radius: 16px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 8px 26px hsl(30 10% 12% / 0.12);
}
.card-bottom {
  left: -26px;
  bottom: -24px;
  font-family: "Caveat", cursive;
  color: var(--primary);
  font-size: 34px;
  animation: bob-up 4s ease-in-out infinite;
}
.card-top {
  right: -20px;
  top: -14px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: bob-down 5s ease-in-out 1s infinite;
}
.avatar-stack { display: flex; margin-right: 2px; }
.avatar-stack span { width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; font-size: 13px; margin-left: -8px; }
.avatar-stack span:nth-child(1) { background: hsl(15 70% 50% / 0.2); margin-left: 0; }
.avatar-stack span:nth-child(2) { background: hsl(180 25% 35% / 0.2); }
.avatar-stack span:nth-child(3) { background: var(--secondary); }

.bg-shape { position: absolute; pointer-events: none; }
.shape-1 {
  top: -80px;
  right: -80px;
  width: 380px;
  height: 380px;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  background: hsl(15 70% 50% / 0.1);
  animation: float-slow 8s ease-in-out infinite;
}
.shape-2 {
  top: 30%;
  left: -130px;
  width: 290px;
  height: 290px;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  background: hsl(180 25% 35% / 0.1);
  animation: float-slow 8s ease-in-out 2s infinite;
}
.shape-3 {
  right: 26%;
  bottom: 84px;
  width: 190px;
  height: 190px;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  background: var(--secondary);
  animation: float-slow 8s ease-in-out infinite;
}
.shape-4 {
  bottom: -170px;
  right: -170px;
  width: 420px;
  height: 420px;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  background: hsl(15 70% 50% / 0.05);
}
.shape-5 {
  top: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  background: hsl(180 25% 35% / 0.05);
}

.top-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
}
.handwritten { display: inline-block; font-family: "Caveat", cursive; color: var(--primary); font-size: 34px; }
.services-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 54px; position: relative; z-index: 2; }
.services h2, .about h2, .code-growth h2, .industries h2, .process h2, .why-us h2, .portfolio h2, .contact h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-top: 6px; }
.services-head p { align-self: end; color: var(--muted-foreground); font-size: 20px; line-height: 1.6; max-width: 500px; }
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; position: relative; z-index: 2; }
.warm-card, .warm-card-hover { background: var(--card); border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 4px 20px hsl(30 10% 12% / 0.08); }
.warm-card-hover { padding: 22px; transition: all 0.3s ease; }
.warm-card-hover:hover { transform: translateY(-6px); box-shadow: 0 14px 34px hsl(30 10% 12% / 0.14); border-color: hsl(15 70% 50% / 0.25); }
.icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; }
.bg-primary-soft { background: hsl(15 70% 50% / 0.1); color: var(--primary); }
.bg-accent-soft { background: hsl(180 25% 35% / 0.1); color: var(--accent); }
.services-grid h3 { font-size: 24px; margin-bottom: 8px; transition: color 0.25s ease; }
.services-grid p { color: var(--muted-foreground); line-height: 1.6; font-size: 14px; }
.warm-card-hover:hover h3 { color: var(--primary); }

.about {
  background: hsl(35 25% 90% / 0.35);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 34px;
  align-items: start;
  position: relative;
  z-index: 2;
}
.about-copy h2 {
  margin-top: 6px;
}
.about-copy p {
  margin-top: 18px;
  color: var(--muted-foreground);
  font-size: 18px;
  line-height: 1.75;
  max-width: 700px;
}
.about-highlights {
  margin-top: 28px;
  display: grid;
  gap: 12px;
}
.about-highlights > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
}
.about-highlights .icon {
  margin: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
}
.about-highlights span:last-child {
  font-size: 15px;
  font-weight: 600;
}
.about-cards {
  display: grid;
  gap: 14px;
}
.about-card {
  padding: 24px;
}
.about-card h3 {
  font-size: 28px;
  margin-bottom: 8px;
}
.about-card p {
  color: var(--muted-foreground);
  line-height: 1.65;
}
.about-stat {
  text-align: center;
  padding: 30px 24px;
}
.about-stat-number {
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}
.about-stat-label {
  font-size: 14px;
}

:where(
  .warm-card,
  .warm-card-hover,
  .about-highlights > div,
  .code-feature-list li,
  .industry-card,
  .process-card,
  .why-item,
  .project,
  .contact-info > div,
  .form-card,
  .hero-image-wrap,
  .feature-gif,
  .code-gif
) {
  transition: transform 0.35s var(--ease-snappy), box-shadow 0.35s var(--ease-snappy), border-color 0.3s ease, filter 0.3s ease;
}

:where(
  .warm-card,
  .warm-card-hover,
  .about-highlights > div,
  .code-feature-list li,
  .industry-card,
  .process-card,
  .why-item,
  .project,
  .contact-info > div,
  .form-card,
  .hero-image-wrap,
  .feature-gif,
  .code-gif
):hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 18px 36px hsl(30 10% 12% / 0.14);
  border-color: hsl(15 70% 50% / 0.28);
  filter: saturate(1.05);
}

:where(.about-highlights > div, .code-feature-list li, .contact-info > div):hover .icon {
  transform: translateY(-2px) rotate(-5deg);
}

:where(.desktop-nav > a:not(.btn), .mobile-menu > a:not(.btn), .footer li a) {
  transition: color 0.25s ease, transform 0.25s var(--ease-snappy), letter-spacing 0.25s ease;
}
:where(.desktop-nav > a:not(.btn), .mobile-menu > a:not(.btn), .footer li a):hover {
  transform: translateY(-2px);
  letter-spacing: 0.01em;
}

.code-growth {
  background: hsl(35 25% 90% / 0.35);
}
.code-growth-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 34px;
  align-items: center;
}
.code-gif {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  box-shadow: 0 14px 34px hsl(30 10% 12% / 0.12);
}
.code-gif img {
  display: block;
  width: 100%;
  height: auto;
}
.code-copy p {
  margin-top: 16px;
  color: var(--muted-foreground);
  font-size: 18px;
  line-height: 1.7;
}
.code-feature-list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.code-feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
}
.code-feature-list li .icon {
  margin: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  flex-shrink: 0;
}
.code-feature-list li span:last-child {
  font-size: 16px;
  font-weight: 600;
}

.industries {
  background: hsl(35 8% 93%);
}
.industries-head {
  text-align: center;
  margin-bottom: 42px;
}
.industries-head p {
  margin: 14px auto 0;
  max-width: 760px;
  color: var(--muted-foreground);
  line-height: 1.7;
}
.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.feature-gif {
  margin: 28px auto 0;
  width: min(800px, 100%);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 10px 28px hsl(30 10% 12% / 0.12);
  background: var(--card);
}
.feature-gif img {
  display: block;
  width: 100%;
  height: auto;
}
.industry-card {
  position: relative;
  border-radius: 18px;
  min-height: 268px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px hsl(30 10% 12% / 0.1);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.industry-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.04);
  transition: transform 0.6s ease, filter 0.4s ease;
}
.industry-card:hover {
  transform: translateY(-6px);
  border-color: hsl(30 20% 78%);
  box-shadow: 0 18px 34px hsl(30 10% 12% / 0.16);
}
.industry-card:hover img {
  transform: scale(1.08);
  filter: saturate(1.12) contrast(1.08);
}
.industry-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: hsl(40 20% 98%);
  text-align: center;
  padding: 22px;
  background: linear-gradient(180deg, hsl(30 10% 12% / 0.08), hsl(30 10% 12% / 0.62));
}
.industry-icon {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: hsl(40 20% 98%);
  color: var(--primary);
  box-shadow: 0 10px 20px hsl(30 10% 12% / 0.28);
  border: 1px solid hsl(35 30% 88%);
}
.industry-icon i { width: 22px; height: 22px; }
.industry-overlay h3 {
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-shadow: 0 5px 16px hsl(30 10% 12% / 0.4);
}
.industries-grid .industry-card:nth-child(7) { grid-column: 2; }

.process {
  background: hsl(35 25% 90% / 0.35);
}
.process-head,
.why-head {
  text-align: center;
  margin-bottom: 44px;
}
.process-head p,
.why-head p {
  margin: 14px auto 0;
  max-width: 760px;
  color: var(--muted-foreground);
  line-height: 1.7;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.process-card {
  position: relative;
  padding: 24px;
}
.step-badge {
  position: absolute;
  top: -10px;
  right: 12px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: hsl(262 65% 42%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.process-card h3 {
  font-size: 27px;
  margin-bottom: 10px;
}
.process-highlight {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 8px;
}
.process-card p {
  color: var(--muted-foreground);
  line-height: 1.6;
  font-size: 14px;
}

.why-us {
  background: var(--background);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 30px;
}
.why-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}
.why-number {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 14px;
  font-weight: 700;
}
.why-item h3 {
  font-size: 28px;
  margin-bottom: 8px;
}
.why-item p {
  color: var(--muted-foreground);
  line-height: 1.7;
}
.why-item {
  padding: 16px 14px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: linear-gradient(90deg, hsl(15 70% 50% / 0.06), transparent 36%);
}
.why-item:hover {
  transform: translateX(8px) scale(1);
  border-color: hsl(15 70% 50% / 0.3);
  box-shadow: 0 12px 28px hsl(15 70% 50% / 0.14);
}
.why-item:hover .why-number {
  transform: scale(1.08) rotate(-9deg);
  box-shadow: 0 10px 20px hsl(15 70% 50% / 0.24);
}
.why-number {
  transition: transform 0.3s var(--ease-snappy), box-shadow 0.3s ease;
}

.portfolio { background: hsl(35 25% 90% / 0.35); }
.portfolio-head { text-align: center; margin-bottom: 54px; position: relative; z-index: 2; }
.portfolio-head p { margin: 12px auto 0; color: var(--muted-foreground); max-width: 700px; line-height: 1.7; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; position: relative; z-index: 2; }
.project { position: relative; border-radius: 18px; overflow: hidden; background: var(--card); min-height: 256px; }
.project-large { grid-row: span 2; min-height: 420px; }
.project img { width: 100%; height: 100%; min-height: 256px; object-fit: cover; transition: transform 0.7s ease, filter 0.7s ease; filter: saturate(0.88) contrast(1.02); }
.project:hover img { transform: scale(1.06); filter: saturate(1.04) contrast(1.04); }
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsl(30 10% 12% / 0.9), hsl(30 10% 12% / 0.3), transparent);
  color: var(--primary-fg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.45s ease;
}
.project:hover .project-overlay { opacity: 1; transform: translateY(0); }
.project-overlay span { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; margin-bottom: 4px; }
.project-overlay h3 { font-size: 30px; margin-bottom: 6px; }
.project-overlay p { font-size: 14px; opacity: 0.8; line-height: 1.5; margin-bottom: 14px; }
.project-overlay div { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.project-tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  box-shadow: 0 5px 14px hsl(30 10% 12% / 0.08);
  transition: opacity 0.3s ease;
}
.project:hover .project-tag { opacity: 0; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: flex-start; position: relative; z-index: 2; }
.contact-lead { margin: 20px 0 34px; color: var(--muted-foreground); font-size: 20px; line-height: 1.6; max-width: 560px; }
.contact-info { display: grid; gap: 22px; margin-bottom: 30px; }
.contact-info > div {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid hsl(35 20% 88% / 0.8);
  background: hsl(40 30% 96% / 0.72);
  overflow: hidden;
}
.contact-info > div::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, hsl(180 25% 35% / 0.22), transparent);
  transition: width 0.35s var(--ease-snappy);
}
.contact-info > div:hover::before {
  width: 72%;
}
.contact-info > div:hover {
  transform: translateX(10px) scale(1);
  border-color: hsl(180 25% 35% / 0.35);
  box-shadow: 0 14px 30px hsl(180 25% 35% / 0.16);
}
.contact-info > div > * {
  position: relative;
  z-index: 1;
}
.contact-info p { font-size: 14px; color: var(--muted-foreground); margin-bottom: 4px; }
.contact-info strong { font-size: 17px; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.form-card { padding: 32px; border-radius: 24px; }
.form-card h3 { font-size: 32px; margin-bottom: 24px; }
#contactForm { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: block; font-size: 14px; color: var(--muted-foreground); margin-bottom: 8px; }
input, textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--background);
  color: var(--foreground);
  padding: 11px 12px;
  font: inherit;
  outline: 0;
}
textarea { resize: none; }
input::placeholder, textarea::placeholder { color: var(--muted-foreground); }
input:focus, textarea:focus { border-color: hsl(15 70% 50% / 0.4); box-shadow: 0 0 0 2px hsl(15 70% 50% / 0.15); }
input:hover, textarea:hover { border-color: hsl(180 25% 35% / 0.4); box-shadow: 0 10px 24px hsl(180 25% 35% / 0.08); }
.form-submit { width: 100%; border: 0; }

.footer { border-top: 1px solid var(--border); background: var(--card); padding: 68px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 34px; margin-bottom: 44px; }
.footer-brand p { color: var(--muted-foreground); max-width: 520px; line-height: 1.7; margin: 14px 0 0; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; color: var(--muted-foreground); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer li a { color: hsl(30 10% 12% / 0.8); transition: color 0.25s ease; }
.footer li a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-bottom p { color: var(--muted-foreground); font-size: 14px; }
.footer-actions { display: flex; align-items: center; gap: 18px; }
.heart-icon { color: var(--primary); fill: var(--primary); }
#scrollTop {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--foreground);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.25s ease;
}
#scrollTop:hover { background: var(--primary); color: var(--primary-fg); }

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: hsl(30 10% 12%);
  color: hsl(40 20% 98%);
  padding: 12px 16px;
  border-radius: 12px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 120;
}
.toast.show { opacity: 1; transform: translateY(0); }

.reveal {
  opacity: 0;
  filter: blur(4px);
  transform: translateY(36px) scale(0.975);
  transition: opacity 0.65s var(--ease-snappy), transform 0.65s var(--ease-snappy), filter 0.65s ease;
  transition-delay: var(--delay, 0ms);
}
.reveal.visible { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }

.icon-confetti-burst {
  position: fixed;
  pointer-events: none;
  z-index: 200;
}
.icon-confetti-piece {
  position: absolute;
  left: 0;
  top: 0;
  width: 8px;
  height: 12px;
  border-radius: 2px;
  background: hsl(var(--hue) 80% 58%);
  box-shadow: 0 0 0 1px hsl(30 10% 12% / 0.08);
  transform: translate(0, 0) rotate(0deg) scale(0.9);
  animation: confetti-burst var(--dur, 700ms) ease-out var(--delay, 0ms) forwards;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, hsl(15 70% 50%), hsl(180 25% 35%));
  z-index: 120;
  transition: width 0.1s linear;
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-15px) rotate(2deg); }
}
@keyframes bob-up {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes bob-down {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}
@keyframes confetti-burst {
  0% { opacity: 0; transform: translate(0, 0) rotate(0deg) scale(0.8); }
  12% { opacity: 1; }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(1);
  }
}

@media (max-width: 1024px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .hero-grid, .services-head, .about-grid, .code-growth-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-copy { order: 2; }
  .hero-visual { order: 1; }
  .services-grid, .portfolio-grid, .industries-grid, .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid { grid-template-columns: 1fr; }
  .industries-grid .industry-card:nth-child(7) {
    grid-column: 1 / -1;
    max-width: 520px;
    justify-self: center;
  }
  .project-large { grid-row: auto; min-height: 320px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .container { width: min(1200px, calc(100% - 32px)); }
  .section { padding: 82px 0; }
  .hero { padding-top: 106px; }
  .about .overlay,
  .industries .overlay,
  .code-growth .overlay,
  .process .overlay,
  .why-us .overlay,
  .contact .overlay { opacity: 0.62; }
  .hero p, .services-head p, .about-copy p, .contact-lead { font-size: 17px; }
  .services-grid, .portfolio-grid, .industries-grid, .process-grid, .form-row, .footer-grid, .footer-bottom { grid-template-columns: 1fr; }
  .industries-grid .industry-card:nth-child(7) {
    grid-column: auto;
    max-width: none;
    justify-self: stretch;
  }
  .industry-overlay h3 { font-size: 26px; }
  .process-card h3, .why-item h3 { font-size: 24px; }
  .trust-row { gap: 16px; }
  .hide-mobile { display: none; }
  .card-top { right: -8px; }
  .card-bottom { left: -6px; }
}
