@layer reset, base, components, utilities;

@layer reset {
  *,
  *::before,
  *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  a {
    color: inherit;
    text-decoration: none;
  }
  ul,
  ol {
    list-style: none;
  }

  button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
  }
}

@layer base {
  :root {
    --color-bg: #0a0a0a;
    --color-bg-elevated: #0f0f14;
    --color-text: #fafafa;
    --color-text-muted: #a3a3a3;
    --color-text-subtle: #737373;
    --color-accent: #38bdf8;
    --color-accent-soft: rgba(56, 189, 248, 0.12);
    --color-purple: #a855f7;
    --color-cyan: #22d3ee;
    --color-pink: #ec4899;
    --color-green: #10b981;
    --color-border: rgba(255, 255, 255, 0.06);
    --color-border-strong: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient-primary: linear-gradient(135deg, #38bdf8, #818cf8);
    --gradient-text: linear-gradient(135deg, #38bdf8, #a855f7, #ec4899);
    --font-sans:
      "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
      Oxygen, Ubuntu, Cantarell, sans-serif;
    --nav-height: 72px;
    --section-padding: 6rem 0;
    --container-max: 1280px;
  }

  html {
    scroll-behavior: smooth;
    scrollbar-width: none;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color-scheme: dark;
  }

  body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
  }

  ::selection {
    background: rgba(56, 189, 248, 0.3);
    color: var(--color-text);
  }

  ::-webkit-scrollbar {
    width: 0;
  }

  :focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: 4px;
  }

  nav :focus-visible,
  .footer :focus-visible {
    outline-offset: 4px;
  }

  .btn-primary:focus-visible,
  .btn-secondary:focus-visible,
  .custom-card-btn:focus-visible,
  .cta-btn-primary:focus-visible,
  .cta-btn-secondary:focus-visible {
    outline-offset: 3px;
    outline-color: var(--color-accent);
  }
}

/* ── Loading Screen ── */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  transition:
    opacity 0.8s ease,
    visibility 0.8s ease;
}

.loading-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.loading-logo-icon {
  animation: loadingPulse 1.5s ease-in-out infinite;
  border-radius: 12px;
}

@keyframes loadingPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.loading-bar-track {
  width: 120px;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.loading-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #06b6d4);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Noise Overlay ── */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  image-rendering: pixelated;
}

/* ── Utility ── */
.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
}

.glass-strong {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #38bdf8, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2.5rem 1rem 3rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  position: relative;
  background: rgba(56, 189, 248, 0.06);
  clip-path: polygon(16px 0, 100% 0, 100% 100%, 0 100%, 0 16px);
}

.section-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(56, 189, 248, 0.15);
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px);
  pointer-events: none;
}

.section-title {
  font-size: clamp(2.75rem, 6.5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 1.0625rem;
  color: #a3a3a3;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-dark {
  background: rgba(255, 255, 255, 0.02);
}

.section-fullscreen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Keyframes ── */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes float-reverse {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(20px);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

@keyframes grid-flow {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes orbit {
  0% {
    transform: rotate(0deg) translateX(120px) rotate(0deg);
  }
  100% {
    transform: rotate(360deg) translateX(120px) rotate(-360deg);
  }
}

@keyframes scroll-dot {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(16px);
  }
}

@keyframes timeline-glow {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

@keyframes meshFlow {
  0% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(30px, -20px) scale(1.05);
  }
  50% {
    transform: translate(-20px, 30px) scale(0.95);
  }
  75% {
    transform: translate(20px, 10px) scale(1.02);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

@keyframes cta-particle-float {
  0%,
  100% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.15;
  }
  25% {
    transform: translateY(-30px) translateX(15px) scale(1.5);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-10px) translateX(-10px) scale(1);
    opacity: 0.2;
  }
  75% {
    transform: translateY(-40px) translateX(5px) scale(1.2);
    opacity: 0.25;
  }
}

/* ── Scroll Animations ── */
[data-animate] {
  opacity: 0;
}

.hero-title[data-animate],
.hero-subtitle[data-animate],
.hero-badge[data-animate],
.hero-cta[data-animate],
.hero-stats[data-animate],
.hero-floating-cards[data-animate],
.scroll-indicator[data-animate] {
  opacity: 1;
}

.fade-up {
  animation: fadeInUp 0.8s ease forwards;
}
.fade-left {
  animation: slideInLeft 0.8s ease forwards;
}
.fade-right {
  animation: slideInRight 0.8s ease forwards;
}
.scale-in {
  animation: scaleIn 0.6s ease forwards;
}
.is-visible {
  opacity: 1;
}

/* ── Canvas ── */
.grid-background,
.floating-particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.grid-background {
  opacity: 0.6;
}
.floating-particles {
  opacity: 0.5;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── Cursor ── */
.cursor-glow-outer,
.cursor-glow-inner {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
}

.cursor-glow-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.12) 0%,
    rgba(168, 85, 247, 0.06) 30%,
    transparent 70%
  );
}

.cursor-glow-dot--inner {
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(251, 146, 60, 0.2) 0%,
    rgba(168, 85, 247, 0.15) 40%,
    transparent 70%
  );
}

.card-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.3s ease;
  opacity: 0;
  border-radius: inherit;
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  padding: 0;
  transition: all 0.3s ease;
  width: auto;
  animation: navFloat 4s ease-in-out infinite;
}

@keyframes navFloat {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-4px);
  }
}

.navbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1px solid rgba(56, 189, 248, 0.06);
  border-radius: 0;
  pointer-events: none;
  z-index: -1;
  clip-path: polygon(
    0 0,
    100% 0,
    100% 100%,
    calc(100% - 16px) 100%,
    100% calc(100% - 16px),
    16px 100%,
    0 calc(100% - 16px)
  );
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.5);
}

.navbar::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38bdf8, transparent);
  opacity: 0.6;
  pointer-events: none;
  z-index: -1;
  animation: scanLine 3s ease-in-out infinite;
}

@keyframes scanLine {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  30% {
    opacity: 0.8;
  }
  70% {
    opacity: 0.8;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

.navbar .corner-bracket {
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: rgba(56, 189, 248, 0.25);
  border-style: solid;
  pointer-events: none;
  z-index: 1;
  animation: bracketPulse 3s ease-in-out infinite;
}

.corner-bracket-tl {
  top: 4px;
  left: 4px;
  border-width: 1px 0 0 1px;
  animation-delay: 0s;
}
.corner-bracket-tr {
  top: 4px;
  right: 4px;
  border-width: 1px 1px 0 0;
  animation-delay: 0.15s;
}
.corner-bracket-bl {
  bottom: 4px;
  left: 4px;
  border-width: 0 0 1px 1px;
  animation-delay: 0.3s;
}
.corner-bracket-br {
  bottom: 4px;
  right: 4px;
  border-width: 0 1px 1px 0;
  animation-delay: 0.45s;
}

@keyframes bracketPulse {
  0%,
  100% {
    border-color: rgba(56, 189, 248, 0.15);
  }
  50% {
    border-color: rgba(56, 189, 248, 0.5);
  }
}

.navbar::before {
  animation: borderGlow 4s ease-in-out infinite;
}

@keyframes borderGlow {
  0%,
  100% {
    border-color: rgba(56, 189, 248, 0.06);
  }
  50% {
    border-color: rgba(56, 189, 248, 0.15);
  }
}

.navbar .nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex-shrink: 0;
}

.nav-logo-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 9px;
}

.nav-logo-text {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

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

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #c8d6e5;
  position: relative;
  padding: 0.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  clip-path: polygon(6px 0, 100% 0, 100% 100%, 0 100%, 0 6px);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: #fafafa;
  background: rgba(56, 189, 248, 0.06);
  border-color: rgba(56, 189, 248, 0.12);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.03);
}

.navbar .nav-link::after {
  display: none;
}

.nav-link.is-active {
  color: #fafafa;
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.15);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.05);
}

/* ── Scroll Progress Bar ── */
#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-purple));
  z-index: 1001;
  pointer-events: none;
  transition: width 0.1s linear;
  will-change: width;
}

/* ── Back to Top ── */
#backToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text-muted);
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  pointer-events: none;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease,
    background 0.3s ease,
    border-color 0.3s ease;
  will-change: transform, opacity;
}

#backToTop.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

#backToTop:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.25);
  color: var(--color-accent);
  transform: translateY(-3px) scale(1);
}

#backToTop:active {
  transform: translateY(0) scale(0.95);
}

/* ── Navbar Scroll State ── */
.navbar.is-scrolled::before {
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.4);
}

.navbar .nav-active-indicator {
  position: absolute;
  bottom: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
  transition:
    left 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  opacity: 0;
  z-index: 2;
}

.navbar.has-active .nav-active-indicator {
  opacity: 1;
}

/* ── Mobile Nav ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  padding: 8px;
  gap: 5px;
  transition:
    border-color 0.3s ease,
    background 0.3s ease;
  z-index: 1001;
  position: relative;
}

.nav-toggle:hover {
  border-color: rgba(56, 189, 248, 0.2);
  background: rgba(56, 189, 248, 0.06);
}

.nav-toggle-line {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--color-text);
  border-radius: 2px;
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease;
  transform-origin: center;
  will-change: transform, opacity;
}

.nav-toggle.is-active .nav-toggle-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.is-active .nav-toggle-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 80vw);
  height: 100dvh;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.96);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  padding: 6rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.mobile-nav-panel.is-open {
  transform: translateX(0);
}

.mobile-nav-link {
  position: relative;
  overflow: hidden;
  display: block;
  padding: 1rem 1.25rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-text-muted);
  border-radius: 10px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
  color: var(--color-text);
  background: rgba(56, 189, 248, 0.06);
  border-color: rgba(56, 189, 248, 0.1);
}

.mobile-nav-link.is-active {
  color: var(--color-accent);
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.12);
}

.mobile-nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--color-accent);
  border-radius: 0 2px 2px 0;
  transition: height 0.3s ease;
}

.mobile-nav-link.is-active::before {
  height: 60%;
}

/* ── Image Loading ── */
img[data-src] {
  opacity: 0;
  transition: opacity 0.4s ease;
}

img.loaded {
  opacity: 1;
}

.img-skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 25%,
    rgba(255, 255, 255, 0.06) 50%,
    rgba(255, 255, 255, 0.03) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: inherit;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ── Touch Device Optimizations ── */
@media (hover: none) and (pointer: coarse) {
  .service-card::before,
  .card-glow,
  .cursor-glow-outer,
  .cursor-glow-inner,
  .hero-orb,
  .hero-spotlight,
  .hero-mesh-canvas,
  .noise-overlay {
    display: none;
  }

  .navbar {
    animation: none;
  }

  .hero-content {
    perspective: none;
  }

  .service-card:hover,
  .project-card:hover,
  .tech-column:hover {
    transform: none;
  }

  .btn-primary:hover,
  .btn-secondary:hover,
  .custom-card-btn:hover,
  .cta-btn-primary:hover,
  .cta-btn-secondary:hover {
    transform: none;
    box-shadow: none;
  }
}

@media (pointer: fine) {
  ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
  }
}

/* ── @starting-style for entry animations ── */
@starting-style {
  .navbar.is-scrolled::before {
    background: rgba(10, 10, 15, 0.6);
  }
}

/* ── Hero ── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6rem 0 4rem;
  background: transparent;
}

.hero-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to bottom, transparent, #0a0a0a);
  pointer-events: none;
  z-index: 5;
}

.hero-spotlight {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    600px circle at 50% 50%,
    rgba(56, 189, 248, 0.18),
    rgba(139, 92, 246, 0.1) 20%,
    rgba(236, 72, 153, 0.07) 40%,
    rgba(251, 146, 60, 0.045) 55%,
    transparent 70%
  );
  transition: background 0.1s ease;
  will-change: background;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
}

.hero-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.hero-video-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-video-bg {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: calc(100% + 113px);
  object-fit: cover;
  object-position: center top;
  opacity: 0.25;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  will-change: transform;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    hsla(200, 100%, 60%, 0.15),
    transparent 70%
  );
  top: -15%;
  right: -10%;
  animation:
    float 8s ease-in-out infinite,
    hueCycle 12s linear infinite;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    hsla(270, 100%, 65%, 0.12),
    transparent 70%
  );
  bottom: -10%;
  left: -5%;
  animation:
    float-reverse 10s ease-in-out infinite,
    hueCycle2 15s linear infinite;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(
    circle,
    hsla(180, 100%, 60%, 0.1),
    transparent 70%
  );
  top: 40%;
  left: 50%;
  animation:
    pulse-glow 6s ease-in-out infinite,
    hueCycle3 18s linear infinite;
  transition: transform 0.3s ease;
}

@keyframes hueCycle {
  0% {
    filter: blur(80px) hue-rotate(0deg);
  }
  50% {
    filter: blur(80px) hue-rotate(60deg);
  }
  100% {
    filter: blur(80px) hue-rotate(0deg);
  }
}

@keyframes hueCycle2 {
  0% {
    filter: blur(80px) hue-rotate(0deg);
  }
  50% {
    filter: blur(80px) hue-rotate(-40deg);
  }
  100% {
    filter: blur(80px) hue-rotate(0deg);
  }
}

@keyframes hueCycle3 {
  0% {
    filter: blur(80px) hue-rotate(0deg);
  }
  50% {
    filter: blur(80px) hue-rotate(30deg);
  }
  100% {
    filter: blur(80px) hue-rotate(0deg);
  }
}

.orb-4 {
  width: 280px;
  height: 280px;
  background: radial-gradient(
    circle,
    hsla(35, 100%, 55%, 0.12),
    transparent 70%
  );
  bottom: 15%;
  right: 15%;
  animation:
    float 9s ease-in-out infinite,
    hueCycle4 14s linear infinite;
}

.orb-5 {
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    hsla(160, 80%, 50%, 0.1),
    transparent 70%
  );
  top: 5%;
  left: 20%;
  animation:
    float-reverse 11s ease-in-out infinite,
    hueCycle5 20s linear infinite;
}

.orb-6 {
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    hsla(330, 90%, 60%, 0.12),
    transparent 70%
  );
  bottom: 30%;
  left: 30%;
  animation:
    pulse-glow 7s ease-in-out infinite,
    hueCycle6 16s linear infinite;
}

@keyframes hueCycle4 {
  0% { filter: blur(80px) hue-rotate(0deg); }
  50% { filter: blur(80px) hue-rotate(-50deg); }
  100% { filter: blur(80px) hue-rotate(0deg); }
}

@keyframes hueCycle5 {
  0% { filter: blur(80px) hue-rotate(0deg); }
  50% { filter: blur(80px) hue-rotate(40deg); }
  100% { filter: blur(80px) hue-rotate(0deg); }
}

@keyframes hueCycle6 {
  0% { filter: blur(80px) hue-rotate(0deg); }
  50% { filter: blur(80px) hue-rotate(-30deg); }
  100% { filter: blur(80px) hue-rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  .orb-1,
  .orb-2,
  .orb-3,
  .orb-4,
  .orb-5,
  .orb-6 {
    animation: none;
  }
}

/* ── Floating Tech Badges ── */
.hero-floating-badges {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.badge span {
  background: linear-gradient(135deg, #38bdf8, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: shimmer 4s ease-in-out infinite;
}

.badge.is-visible {
  opacity: 1;
}

.badge svg {
  opacity: 0.6;
  flex-shrink: 0;
}

.badge-1 {
  top: 20%;
  right: 8%;
  animation: badgeFloat1 6s ease-in-out infinite;
}

.badge-2 {
  top: 55%;
  right: 5%;
  animation: badgeFloat2 7s ease-in-out infinite 0.5s;
}

.badge-3 {
  top: 35%;
  left: 6%;
  animation: badgeFloat3 6.5s ease-in-out infinite 1s;
}

.badge-4 {
  top: 65%;
  left: 8%;
  animation: badgeFloat4 7.5s ease-in-out infinite 0.3s;
}

@keyframes badgeFloat1 {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(-12px, -18px) rotate(2deg);
  }
  66% {
    transform: translate(8px, -8px) rotate(-1deg);
  }
}

@keyframes badgeFloat2 {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(10px, -14px) rotate(-2deg);
  }
  66% {
    transform: translate(-6px, -20px) rotate(1deg);
  }
}

@keyframes badgeFloat3 {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(14px, -16px) rotate(-1deg);
  }
  66% {
    transform: translate(-10px, -10px) rotate(2deg);
  }
}

@keyframes badgeFloat4 {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(-8px, -22px) rotate(1deg);
  }
  66% {
    transform: translate(12px, -12px) rotate(-2deg);
  }
}

@media (max-width: 768px) {
  .hero-floating-badges {
    display: none;
  }
}

.dot-red {
  background: #ef4444;
}
.dot-yellow {
  background: #f59e0b;
}
.dot-green {
  background: #10b981;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 960px;
  margin: 8rem auto 0;
  transform-style: preserve-3d;
  perspective: 800px;
}

.hero-title-wrapper {
  position: relative;
  display: inline-block;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: 100px;
  font-size: 0.8125rem;
  color: #7dd3fc;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

/* ── Word Split Animation ── */
.hero-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px) rotateX(30deg);
  animation: wordReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-title .word-space {
  display: inline-block;
  width: 0.3em;
}

@keyframes wordReveal {
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
  }
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-title .text-gradient-3d {
  display: inline-block;
  transform-style: preserve-3d;
}

/* ── Subtitle Word Split ── */
.hero-subtitle .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: wordFadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-subtitle .word-space {
  display: inline-block;
  width: 0.3em;
}

.hero-subtitle .word {
  transition:
    text-shadow 0.3s ease,
    color 0.3s ease;
  cursor: default;
}

.hero-subtitle .word:hover {
  color: #ffffff;
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.25);
}

@keyframes wordFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: #e8edf5;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* ── Word Hover Glow ── */
.hero-title .word {
  transition:
    text-shadow 0.3s ease,
    color 0.3s ease;
  cursor: default;
}

.hero-title .word:hover {
  text-shadow:
    0 0 30px rgba(56, 189, 248, 0.3),
    0 0 60px rgba(168, 85, 247, 0.15);
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 2rem;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  color: #fafafa;
  background: transparent;
  border: none;
  border-radius: 0;
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%, 0 14px);
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  z-index: -1;
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%, 0 14px);
  transition: opacity 0.4s ease;
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.12),
    transparent
  );
  transform: skewX(-20deg);
  z-index: -1;
  animation: btnShimmer 3s ease-in-out infinite;
}

@keyframes btnShimmer {
  0% {
    left: -80%;
  }
  100% {
    left: 120%;
  }
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 8px 32px rgba(99, 102, 241, 0.3),
    0 0 20px rgba(6, 182, 212, 0.1);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 2rem;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  color: #fafafa;
  background: transparent;
  border: none;
  border-radius: 0;
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%, 0 14px);
}

.btn-secondary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(99, 102, 241, 0.25);
  z-index: -1;
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%, 0 14px);
  transition: all 0.4s ease;
}

.btn-secondary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(99, 102, 241, 0.1),
    transparent
  );
  transform: skewX(-20deg);
  z-index: -1;
  animation: btnShimmer 3s ease-in-out infinite;
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 8px 32px rgba(99, 102, 241, 0.2),
    0 0 20px rgba(6, 182, 212, 0.08);
  border-color: rgba(99, 102, 241, 0.4);
}

.btn-secondary:hover::before {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.25);
}

.btn-secondary:active {
  transform: translateY(-1px);
}

/* ── Button Glow Effect ── */
.btn-glow {
  position: relative;
}

.btn-glow .btn-glow-ring {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  clip-path: polygon(16px 0, 100% 0, 100% 100%, 0 100%, 0 16px);
  pointer-events: none;
  z-index: -2;
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(56, 189, 248, 0.3),
    transparent,
    rgba(168, 85, 247, 0.3),
    transparent
  );
  animation: rotateGlow 4s linear infinite;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.btn-glow:hover .btn-glow-ring {
  opacity: 1;
}

@keyframes rotateGlow {
  to {
    transform: rotate(360deg);
  }
}

.btn-glow .btn-text {
  position: relative;
  z-index: 1;
}

/* ── Magnetic Button Override ── */
.btn-glow {
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
  will-change: transform;
}

/* ── Hero Mesh Canvas ── */
.hero-mesh-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
  opacity: 0.6;
}

/* ── Performance: content-visibility for off-screen sections ── */
.services-section,
.projects-section,
.process-section,
.tech-section,
.cta-section,
.footer {
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}

/* ── Reduced motion for scroll-driven hero effects ── */
@media (prefers-reduced-motion: reduce) {
  .hero-content {
    transition: none;
  }
}

.btn-lg,
.btn-xl {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

.hero-cta-primary,
.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 2rem;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 1.75rem 3rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  max-width: fit-content;
  margin: 0 auto;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-size: 2.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fafafa, #a3a3a3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero-stat-label {
  font-size: 0.8125rem;
  color: #737373;
  font-weight: 500;
  margin-top: 0.25rem;
  letter-spacing: 0.02em;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.06);
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: #94a3b8;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  z-index: 2;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.scroll-indicator.is-hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  pointer-events: none;
}

.scroll-text {
  opacity: 0.85;
  animation: scrollTextPulse 2s ease-in-out infinite;
}

@keyframes scrollTextPulse {
  0%,
  100% {
    opacity: 0.85;
  }
  50% {
    opacity: 1;
  }
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  position: relative;
  transition: border-color 0.3s ease;
}

.scroll-indicator:hover .scroll-mouse {
  border-color: rgba(56, 189, 248, 0.3);
}

.scroll-mouse-wheel {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: linear-gradient(to bottom, #38bdf8, #a855f7);
  border-radius: 2px;
  animation: scroll-dot 2s ease-in-out infinite;
  transition: height 0.3s ease;
}

.scroll-indicator:hover .scroll-mouse-wheel {
  height: 12px;
}

  .scroll-text {
    opacity: 0.8;
  }

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  position: relative;
}

.scroll-mouse-wheel {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: #38bdf8;
  border-radius: 2px;
  animation: scroll-dot 2s ease-in-out infinite;
}

/* ── Trust Section ── */
.trust-section {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

.trust-logos {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 1.25rem;
  margin-bottom: 4rem;
}

.trust-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  aspect-ratio: 1;
}

.trust-logo-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.trust-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.trust-stat-card {
  position: relative;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  overflow: hidden;
}

.trust-stat-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.05);
}

.trust-stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fafafa;
  line-height: 1.2;
}

.trust-stat-label {
  font-size: 0.875rem;
  color: #a3a3a3;
  margin-top: 0.375rem;
  font-weight: 500;
}

/* ── Services ── */
.section-divider {
  position: relative;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(56, 189, 248, 0.15),
    rgba(168, 85, 247, 0.15),
    transparent
  );
  margin: 0;
  border: none;
}

.services-section {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

.services-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(56, 189, 248, 0.04),
    transparent 60%
  );
  pointer-events: none;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  padding: 2.5rem 2rem;
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  opacity: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(56, 189, 248, 0.06),
    transparent 40%
  );
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(56, 189, 248, 0.12);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(56, 189, 248, 0.05);
}

.service-card-number {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.08);
  letter-spacing: 0.04em;
  font-feature-settings: "tnum";
  transition: color 0.3s ease;
  pointer-events: none;
  user-select: none;
}

.service-card:hover .service-card-number {
  color: rgba(56, 189, 248, 0.2);
}

.service-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
}

.service-icon-box svg {
  transition:
    transform 0.4s ease,
    color 0.3s ease;
}

.service-card:hover .service-icon-box svg {
  transform: scale(1.15) rotate(-5deg);
  color: #fafafa;
}

.service-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fafafa;
  margin-bottom: 0.75rem;
}

.service-card-desc {
  font-size: 0.9375rem;
  color: #a3a3a3;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

/* ── Service Card: Custom Build Anything ── */

.service-card-custom {
  grid-column: 1 / -1;
  padding: 0;
  border-radius: 24px;
  border: 1px solid rgba(56, 189, 248, 0.15);
  background: transparent;
  cursor: default;
  transform: none !important;
  transition:
    border-color 0.4s ease,
    box-shadow 0.4s ease;
  overflow: hidden;
}

.service-card-custom::before {
  display: none;
}

.service-card-custom:hover {
  transform: none !important;
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow:
    0 0 60px rgba(56, 189, 248, 0.08),
    0 20px 80px rgba(0, 0, 0, 0.4);
}

.custom-card-glow {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(
    135deg,
    rgba(56, 189, 248, 0.15),
    rgba(139, 92, 246, 0.15)
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
  pointer-events: none;
}

.service-card-custom:hover .custom-card-glow {
  opacity: 1;
}

.custom-card-bg {
  position: absolute;
  inset: 1px;
  border-radius: 23px;
  background:
    radial-gradient(
      ellipse at 30% 20%,
      rgba(56, 189, 248, 0.05),
      transparent 60%
    ),
    radial-gradient(
      ellipse at 70% 80%,
      rgba(139, 92, 246, 0.05),
      transparent 60%
    ),
    #0f0f14;
  z-index: 1;
  pointer-events: none;
}

.custom-card-shine {
  position: absolute;
  inset: 1px;
  border-radius: 23px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.03) 0%,
    transparent 50%
  );
  z-index: 2;
  pointer-events: none;
}

.custom-card-content {
  position: relative;
  z-index: 3;
  padding: 3rem 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.custom-card-badge {
  display: inline-flex;
  padding: 0.35rem 1rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  margin-bottom: 1rem;
}

.custom-card-title {
  font-size: 2rem;
  font-weight: 800;
  color: #fafafa;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.custom-card-input-wrap {
  width: 100%;
  text-align: center;
}

.custom-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #fff;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  border-radius: 100px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  text-decoration: none;
}

.custom-card-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(56, 189, 248, 0.3);
}

.custom-card-btn:active {
  transform: translateY(-1px);
}

.custom-card-input {
  flex: 1;
  padding: 0.9rem 1.25rem;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #fafafa;
  font-family: inherit;
  font-size: 0.9375rem;
  outline: none;
  transition:
    border-color 0.3s ease,
    background 0.3s ease;
  resize: none;
  line-height: 1.5;
}

.custom-card-input::placeholder {
  color: #555;
}

.custom-card-input:focus {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.custom-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #fff;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  background: transparent;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%, 0 12px);
}

.custom-card-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  z-index: -1;
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%, 0 12px);
}

.custom-card-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.12),
    transparent
  );
  transform: skewX(-20deg);
  z-index: -1;
  animation: btnShimmer 3s ease-in-out infinite;
}

.custom-card-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(56, 189, 248, 0.3);
}

.custom-card-btn:active {
  transform: translateY(-1px);
}

.custom-card-btn.is-loading {
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

.custom-card-btn.is-loading .btn-text {
  visibility: hidden;
}

.custom-card-btn.is-loading .btn-spinner {
  display: block;
}

.custom-card-btn .btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btnSpin 0.6s linear infinite;
}

@keyframes btnSpin {
  to {
    transform: rotate(360deg);
  }
}

.custom-card-btn.is-loading svg {
  display: none;
}

.custom-card-btn.is-success {
  pointer-events: none;
  transform: none;
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.3);
}

.custom-card-btn.is-success::before {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.custom-card-btn.is-success svg {
  display: block;
}

.custom-card-btn.is-success .btn-text {
  color: #86efac;
}

.custom-card-input.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ── Projects ── */
.projects-section {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

.projects-grid {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
}

.project-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  perspective: 1000px;
  transform-style: preserve-3d;
  cursor: default;
  max-width: 520px;
  width: 100%;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.12);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.3),
    0 0 48px rgba(56, 189, 248, 0.04);
}

.project-card-mockup {
  overflow: hidden;
}

.mockup-screenshot {
  transition:
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.6s ease;
}

.project-card:hover .mockup-screenshot {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.project-card-mockup {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #141414, #0f0f0f);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-window {
  width: 80%;
  height: 70%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.mockup-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mockup-title {
  font-size: 0.625rem;
  color: #525252;
  margin-left: auto;
  font-family: monospace;
}

.mockup-content {
  padding: 1rem;
}

.mockup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 0.75rem;
}

.grid-2x3 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3x2 {
  grid-template-columns: repeat(3, 1fr);
}

.mockup-cell {
  height: 20px;
  border-radius: 4px;
}

.cell-primary {
  background: rgba(99, 102, 241, 0.3);
}
.cell-secondary {
  background: rgba(168, 85, 247, 0.3);
}
.cell-accent {
  background: rgba(6, 182, 212, 0.3);
}

.mockup-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.mockup-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #38bdf8);
  border-radius: 2px;
}

.mockup-content {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mockup-screenshot {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ── Project Details ── */

.project-details {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.project-detail-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
}

.project-detail-label {
  color: #737373;
  font-weight: 500;
  min-width: 56px;
  text-transform: uppercase;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
}

.project-detail-value {
  color: #a3a3a3;
}

.project-card-body {
  padding: 1.75rem 2rem 2rem;
}

.project-card-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #fafafa;
  margin-bottom: 0.5rem;
}

.project-card-desc {
  font-size: 0.9375rem;
  color: #a3a3a3;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.project-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-tag {
  padding: 0.25rem 0.75rem;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.12);
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #38bdf8;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.project-card-link {
  font-size: 0.875rem;
  color: #38bdf8;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: gap 0.3s ease;
}

.project-card-link:hover {
  gap: 0.75rem;
}

/* ── Process ── */
.process-section {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

.process-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.process-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(56, 189, 248, 0.3),
    rgba(168, 85, 247, 0.3),
    transparent
  );
  animation: timeline-glow 3s ease-in-out infinite;
}

.process-timeline-fill {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 0%;
  background: linear-gradient(
    to bottom,
    var(--color-accent),
    var(--color-purple)
  );
  transition: height 0.1s linear;
  z-index: 1;
  border-radius: 1px;
}

.process-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: 3rem;
}

.step-left {
  flex-direction: row;
  padding-right: calc(50% + 2rem);
  text-align: right;
}

.step-right {
  flex-direction: row-reverse;
  padding-left: calc(50% + 2rem);
  text-align: left;
}

.step-number {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  z-index: 2;
  background: #0a0a0a;
  border: 2px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  transition: all 0.3s ease;
}

.process-step:hover .step-number {
  border-color: #38bdf8;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.2);
  transform: translateX(-50%) scale(1.1);
}

.process-step .step-number {
  transition:
    all 0.3s ease,
    transform 0.3s ease;
}

.step-line {
  position: absolute;
  left: 50%;
  top: 2rem;
  bottom: -1rem;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, rgba(56, 189, 248, 0.3), transparent);
}

.process-step:last-child .step-line {
  display: none;
}

.step-card {
  padding: 1.75rem 2rem;
  width: 100%;
  transition: all 0.3s ease;
}

.step-card:hover {
  border-color: rgba(56, 189, 248, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.step-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fafafa;
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.9375rem;
  color: #a3a3a3;
  line-height: 1.7;
}

/* ── Testimonials ── */
.testimonials-section {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

.testimonials-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(34, 211, 238, 0.03),
    transparent 60%
  );
  pointer-events: none;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  padding: 2.25rem 2rem;
  border-radius: 20px;
  transition: all 0.3s ease;
  cursor: default;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.1);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1rem;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(56, 189, 248, 0.2),
    rgba(168, 85, 247, 0.2)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.avatar-initials {
  font-size: 0.875rem;
  font-weight: 700;
  color: #fafafa;
}

.testimonial-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fafafa;
}

.testimonial-role {
  font-size: 0.8125rem;
  color: #737373;
}

.testimonial-rating {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.testimonial-quote {
  font-size: 0.9375rem;
  color: #d4d4d4;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: #10b981;
  font-weight: 500;
}

/* ── Tech Stack ── */
.tech-section {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

/* ── Team Section ── */
.team-section {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

.team-grid {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
}

.team-card {
  padding: 2.5rem 2rem;
  border-radius: 16px;
  text-align: center;
  flex: 1;
  max-width: 400px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  position: relative;
}

.team-avatar-m {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(6, 182, 212, 0.2));
  border: 2px solid rgba(99, 102, 241, 0.3);
}

.team-avatar-s {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(236, 72, 153, 0.2));
  border: 2px solid rgba(6, 182, 212, 0.3);
}

.team-avatar-initials {
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.team-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.team-role {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}

.team-role-ai {
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.team-role-web {
  background: rgba(6, 182, 212, 0.12);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.team-bio {
  font-size: 0.9375rem;
  color: #a3a3a3;
  line-height: 1.7;
  max-width: 340px;
}

.tech-grid {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: stretch;
}

.tech-column {
  padding: 2rem 1.5rem;
  border-radius: 16px;
  transition: all 0.3s ease;
  flex: 1;
  max-width: 360px;
}

.tech-column:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.tech-column-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  margin-bottom: 1rem;
}

.tech-column-title {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fafafa;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tech-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
}

.tech-item {
  list-style: none;
}

.tech-item a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  clip-path: polygon(6px 0, 100% 0, 100% 100%, 0 100%, 0 6px);
  font-size: 0.9375rem;
  color: #c0c0c0;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
}

.tech-item a:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.06);
}

.tech-item-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  object-fit: contain;
  transition:
    transform 0.4s ease,
    filter 0.4s ease;
}

.tech-item:hover .tech-item-icon {
  transform: scale(1.2) rotate(-8deg);
  filter: brightness(1.4) saturate(1.2);
}

/* ── FAQ ── */
.faq-section {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.faq-item.is-open {
  border-color: rgba(56, 189, 248, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.faq-question {
  width: 100%;
  padding: 1.375rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #fafafa;
  text-align: left;
  transition: color 0.3s ease;
  cursor: pointer;
}

.faq-question:hover {
  color: #38bdf8;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #737373;
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
  color: #38bdf8;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 1.75rem;
}

.faq-item.is-open .faq-answer {
  max-height: 300px;
  padding: 0 1.75rem 1.375rem;
}

.faq-answer p {
  font-size: 0.9375rem;
  color: #a3a3a3;
  line-height: 1.75;
}

/* ── CTA ── */
.cta-section {
  position: relative;
  padding: 8rem 0;
  overflow: hidden;
  text-align: center;
  background: #0a0a0a;
}

.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.cta-gradient-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 30% 50%,
      rgba(56, 189, 248, 0.08),
      transparent 60%
    ),
    radial-gradient(
      ellipse at 70% 50%,
      rgba(168, 85, 247, 0.08),
      transparent 60%
    );
}

.cta-particle-overlay {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.cta-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem;
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2.5rem 1rem 3rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #10b981;
  margin-bottom: 1.5rem;
  position: relative;
  background: rgba(16, 185, 129, 0.06);
  clip-path: polygon(16px 0, 100% 0, 100% 100%, 0 100%, 0 16px);
}

.cta-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.5px solid rgba(16, 185, 129, 0.2);
  clip-path: polygon(16px 0, 100% 0, 100% 100%, 0 100%, 0 16px);
  pointer-events: none;
}

.cta-content .cta-title {
  font-size: clamp(2.75rem, 6.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.cta-content .cta-subtitle {
  font-size: 1.125rem;
  color: #a3a3a3;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-btn-primary,
.cta-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  clip-path: polygon(16px 0, 100% 0, 100% 100%, 0 100%, 0 16px);
}

.cta-btn-primary {
  color: #fafafa;
  background: transparent;
  border: none;
}

.cta-btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  z-index: -1;
  clip-path: polygon(16px 0, 100% 0, 100% 100%, 0 100%, 0 16px);
}

.cta-btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  transform: skewX(-20deg);
  z-index: -1;
  animation: btnShimmer 3s ease-in-out infinite;
}

.cta-btn-primary.btn-glow .btn-glow-ring,
.cta-btn-secondary.btn-glow .btn-glow-ring {
  clip-path: polygon(16px 0, 100% 0, 100% 100%, 0 100%, 0 16px);
}

.cta-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 12px 48px rgba(56, 189, 248, 0.3),
    0 0 24px rgba(56, 189, 248, 0.08);
}

/* ── Contact Form ── */
.contact-form {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  text-align: left;
  padding: 2.5rem;
  background: rgba(15, 15, 25, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  backdrop-filter: blur(8px);
}

.form-group {
  position: relative;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1.125rem;
  font-size: 0.9375rem;
  font-family: inherit;
  color: #fafafa;
  background: #14141f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  line-height: 1.5;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.15);
}

.form-input:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.form-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.4);
  background: #18182a;
}

.form-group.error .form-input {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.2);
}

.contact-form .btn-primary {
  width: 100%;
  justify-content: center;
  padding: 0.8125rem 2rem;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-top: 0.5rem;
  clip-path: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  letter-spacing: 0.02em;
  overflow: visible;
}

.contact-form .btn-primary::before,
.contact-form .btn-primary::after {
  display: none;
}

.contact-form .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.25);
}

.form-status {
  font-size: 0.8125rem;
  min-height: 1.25rem;
  text-align: center;
  transition: all 0.2s ease;
  color: rgba(255, 255, 255, 0.3);
  padding-top: 0.25rem;
}

.form-status.success {
  color: #10b981;
}

.form-status.error {
  color: #ef4444;
}



.cta-btn-secondary {
  color: #fafafa;
  background: transparent;
  border: none;
}

.cta-btn-secondary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  z-index: -1;
  clip-path: polygon(16px 0, 100% 0, 100% 100%, 0 100%, 0 16px);
  transition: all 0.4s ease;
}

.cta-btn-secondary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(56, 189, 248, 0.08),
    transparent
  );
  transform: skewX(-20deg);
  z-index: -1;
  animation: btnShimmer 3s ease-in-out infinite;
}

.cta-btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.08);
}

.cta-btn-secondary:hover::before {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.25);
}

.cta-content .cta-bottom-text {
  margin-top: 2rem;
  font-size: 0.8125rem;
  color: #737373;
}

/* ── Footer ── */
.footer {
  position: relative;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(56, 189, 248, 0.15),
    rgba(168, 85, 247, 0.15),
    transparent
  );
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.footer-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
}

.footer-logo-text {
  font-size: 1.25rem;
  font-weight: 800;
}

.footer-desc {
  font-size: 0.9375rem;
  color: #a3a3a3;
  line-height: 1.7;
  max-width: 320px;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #a3a3a3;
  transition: all 0.3s ease;
}

.footer-social-link:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.1);
}

.footer-social-link svg {
  transition: transform 0.3s ease;
}

.footer-social-link:hover svg {
  transform: scale(1.1);
}

.footer-col-title {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fafafa;
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
}

.footer-link {
  font-size: 0.875rem;
  color: #a3a3a3;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #38bdf8;
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.08);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: #a3a3a3;
}

.footer-contact a {
  color: #a3a3a3;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: #38bdf8;
}

.footer-bottom {
  padding-top: 2rem;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-copyright {
  font-size: 0.8125rem;
  color: #737373;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-link {
  font-size: 0.8125rem;
  color: #737373;
  transition: color 0.3s ease;
}

.footer-bottom-link:hover {
  color: #a3a3a3;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

/* ── Responsive: Tablet ── */
@media (max-width: 1024px) {
  .hero-floating-cards,
  .float-card {
    display: none;
  }

  .hero-title {
    font-size: clamp(2.25rem, 6vw, 3.5rem);
  }

  .hero-stats {
    padding: 1.5rem 2rem;
    gap: 2rem;
  }

  .hero-stat-value {
    font-size: 1.75rem;
  }

  .hero-stat-divider {
    display: none;
  }

  .trust-logos {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }

  .trust-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .service-card-custom .custom-card-content {
    padding: 2.5rem 2rem 2rem;
  }

  .service-card-custom .custom-card-title {
    font-size: 1.65rem;
  }

  .projects-grid {
    gap: 1.25rem;
    flex-direction: column;
    align-items: center;
  }

  .tech-grid {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .step-left,
  .step-right {
    padding-left: 3rem;
    padding-right: 0;
    text-align: left;
    flex-direction: row;
  }

  .process-timeline::before {
    left: 1.25rem;
  }

  .step-number {
    left: 1.25rem;
    top: 0;
    width: 36px;
    height: 36px;
    font-size: 0.75rem;
  }

  .step-line {
    display: none;
  }

  .testimonials-grid {
    gap: 1.25rem;
  }
}

/* ── Responsive: Tablet / Small Desktop ── */
@media (max-width: 1024px) {
  .nav-container {
    padding: 1rem 1.5rem;
  }
  .navbar {
    min-width: 0;
    width: calc(100% - 2rem);
  }
  .nav-links {
    gap: 0.25rem;
  }
  .nav-link {
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
  }
}

/* ── Responsive: Mobile ── */
@media (max-width: 768px) {
  :root {
    --section-padding: 3.5rem 0;
  }

  .section-container {
    padding: 0 1.5rem;
  }

  .section-title {
    font-size: clamp(2rem, 7vw, 2.75rem);
  }

  .section-desc {
    font-size: 0.9375rem;
  }

  .hero-section {
    min-height: 100dvh;
    padding: 5rem 0 3rem;
  }

  .hero-title {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .hero-subtitle {
    font-size: 0.9375rem;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .hero-cta .btn-primary,
  .hero-cta .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1.5rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.5rem;
    width: 100%;
  }

  .hero-stat-value {
    font-size: 1.5rem;
  }

  .hero-stat-divider {
    display: none;
  }

  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .navbar {
    min-width: 0;
    width: calc(100% - 1.5rem);
    top: 0.75rem;
  }
  .nav-container {
    padding: 0.75rem 1rem;
  }
  .nav-logo-text {
    font-size: 1.5rem;
  }
  .nav-logo-icon {
    width: 36px;
    height: 36px;
  }

  .orb-1 {
    width: 300px;
    height: 300px;
    top: -5%;
    right: -20%;
  }
  .orb-2 {
    width: 250px;
    height: 250px;
    bottom: -5%;
    left: -20%;
  }
  .orb-3 {
    width: 200px;
    height: 200px;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 0.375rem 1rem;
  }

  .scroll-indicator {
    bottom: 1.5rem;
  }

  .trust-section,
  .services-section,
  .process-section,
  .testimonials-section,
  .tech-section,
  .team-section,
  .faq-section,
  .cta-section {
    padding: var(--section-padding);
  }

  .trust-logos {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
  }

  .trust-logo-item {
    padding: 1rem;
  }

  .trust-stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .trust-stat-card {
    padding: 1.5rem;
  }

  .trust-stat-value {
    font-size: 2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .service-card {
    padding: 2rem 1.5rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .project-card-body {
    padding: 1.5rem;
  }

  .project-card-title {
    font-size: 1.125rem;
  }

  .process-section .section-title {
    font-size: 2rem;
  }

  .process-step {
    margin-bottom: 2rem;
  }

  .step-card {
    padding: 1.25rem 1.5rem;
  }

  .step-title {
    font-size: 1.0625rem;
  }

  .step-left,
  .step-right {
    padding-left: 2.5rem;
  }

  .process-timeline::before {
    left: 1rem;
  }

  .step-number {
    left: 1rem;
    width: 32px;
    height: 32px;
    font-size: 0.6875rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .testimonial-card {
    padding: 1.75rem 1.5rem;
  }

  .testimonial-quote {
    font-size: 0.875rem;
  }

  .tech-grid {
    flex-direction: column;
    gap: 1rem;
  }

  .tech-column {
    padding: 1.5rem;
  }

  .team-grid {
    flex-direction: column;
    gap: 1rem;
  }

  .team-card {
    padding: 2rem 1.5rem;
  }

  .team-bio {
    font-size: 0.875rem;
  }

  .faq-list {
    gap: 0.625rem;
  }

  .faq-question {
    padding: 1.125rem 1.25rem;
    font-size: 0.9375rem;
  }

  .faq-item.is-open .faq-answer {
    padding: 0 1.25rem 1.125rem;
  }

  .cta-section {
    padding: 4rem 0;
  }

  .cta-content .cta-title {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
  }

  .cta-content .cta-subtitle {
    font-size: 0.9375rem;
  }

  .cta-content {
    padding: 0 0.5rem;
  }

  .contact-form {
    max-width: 100%;
    padding: 1.5rem 1.25rem;
    gap: 1rem;
  }

  .form-input {
    padding: 0.75rem 1rem;
    font-size: 16px;
  }

  .contact-form .btn-primary {
    padding: 0.8125rem 1.5rem;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cta-btn-primary,
  .cta-btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .custom-card-content {
    padding: 1.5rem 1.25rem;
  }

  .footer {
    padding: 3rem 0 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-desc {
    max-width: 100%;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-social {
    justify-content: center;
  }

  #backToTop {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
  }
}

/* ── Responsive: Tablet ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .section-container {
    padding: 0 2rem;
  }

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

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .tech-grid {
    flex-wrap: wrap;
  }
}

/* ── Responsive: Small Mobile ── */
@media (max-width: 480px) {
  :root {
    --section-padding: 2.5rem 0;
  }

  .section-container {
    padding: 0 1rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.875rem;
    padding: 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .trust-logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  .trust-logo-item {
    padding: 0.75rem;
  }

  .contact-form {
    padding: 1.25rem 1rem;
  }

  .footer-grid {
    gap: 1.5rem;
  }
}

/* ── Container Queries ── */
@container (max-width: 400px) {
  .service-card {
    padding: 1.5rem 1.25rem;
  }
  .service-card-title {
    font-size: 1.0625rem;
  }
}

.services-grid {
  container-type: inline-size;
  container-name: services;
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
