/* ============================================
   LITE SOFT DZ — STYLE SYSTEM v3
   Enhanced animations & fluidity
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --color-bg: #0A1A0A;
  --color-bg-light: #0F260F;
  --color-bg-card: #122612;
  --color-bg-card-hover: #183818;
  --color-primary: #1B4332;
  --color-primary-light: #2D6A4F;
  --color-accent: #E8E409;
  --color-accent-dim: rgba(232, 228, 9, 0.15);
  --color-accent-glow: rgba(232, 228, 9, 0.3);
  --color-text: #F0F0F0;
  --color-text-muted: #8FA88F;
  --color-text-dim: #5A7A5A;
  --color-border: rgba(232, 228, 9, 0.1);
  --color-border-hover: rgba(232, 228, 9, 0.3);

  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --nav-height: 72px;
  --container-max: 1200px;
  --container-padding: 24px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.no-scroll {
  overflow: hidden;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #f0ec40;
}

img {
  max-width: 100%;
  display: block;
}

::selection {
  background: var(--color-accent);
  color: var(--color-bg);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.text-accent {
  color: var(--color-accent);
  position: relative;
}

/* ---------- CUSTOM CURSOR GLOW ---------- */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  background: radial-gradient(circle, rgba(232, 228, 9, 0.06) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
  opacity: 0;
}

.cursor-glow.is-active {
  opacity: 1;
}

@media (max-width: 768px) {
  .cursor-glow { display: none; }
}

/* ---------- PRELOADER ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease-out), visibility 0.8s;
}

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

.preloader__logo {
  animation: preloaderPulse 1.2s ease-in-out infinite;
}

.preloader__line {
  animation: preloaderLineSlide 1.2s ease-in-out infinite;
}

.preloader__line:nth-child(2) { animation-delay: 0.05s; }
.preloader__line:nth-child(3) { animation-delay: 0.1s; }
.preloader__line:nth-child(4) { animation-delay: 0.15s; }
.preloader__line:nth-child(5) { animation-delay: 0.2s; }
.preloader__line:nth-child(6) { animation-delay: 0.25s; }

@keyframes preloaderPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.8; }
}

@keyframes preloaderLineSlide {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ---------- NAVIGATION ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background 0.5s ease, box-shadow 0.5s ease, backdrop-filter 0.5s ease;
}

.nav.is-scrolled {
  background: rgba(10, 26, 10, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 var(--color-border);
}

.nav__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  transition: transform 0.3s var(--ease-out);
}

.nav__logo:hover {
  color: var(--color-text);
  transform: scale(1.03);
}

.nav__logo svg {
  flex-shrink: 0;
  transition: transform 0.5s var(--ease-out);
}

.nav__logo:hover svg {
  transform: rotate(10deg) scale(1.1);
}

.nav__brand {
  display: none;
}

@media (min-width: 480px) {
  .nav__brand {
    display: inline;
  }
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav__link {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: color 0.3s ease, background 0.3s ease, transform 0.3s var(--ease-out);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
  transition: width 0.3s var(--ease-out), left 0.3s var(--ease-out);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  width: 60%;
  left: 20%;
}

.nav__link:hover {
  color: var(--color-text);
}

.nav__link--cta {
  color: var(--color-bg);
  background: var(--color-accent);
  font-weight: 600;
}

.nav__link--cta::after {
  display: none;
}

.nav__link--cta:hover {
  color: var(--color-bg);
  background: #f0ec40;
  box-shadow: 0 0 24px var(--color-accent-glow);
  transform: translateY(-1px);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.4s var(--ease-out), opacity 0.3s ease;
}

.nav__hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger.is-active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav__hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav__hamburger {
    display: flex;
  }

  .nav__links {
    position: fixed;
    inset: 0;
    background: rgba(10, 26, 10, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s var(--ease-out), visibility 0.5s;
  }

  .nav__links.is-open {
    opacity: 1;
    visibility: visible;
  }

  .nav__links.is-open .nav__link {
    animation: mobileNavSlide 0.5s var(--ease-out) forwards;
    opacity: 0;
  }

  .nav__links.is-open li:nth-child(1) .nav__link { animation-delay: 0.1s; }
  .nav__links.is-open li:nth-child(2) .nav__link { animation-delay: 0.15s; }
  .nav__links.is-open li:nth-child(3) .nav__link { animation-delay: 0.2s; }
  .nav__links.is-open li:nth-child(4) .nav__link { animation-delay: 0.25s; }

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

  .nav__link {
    font-size: 1.4rem;
    padding: 12px 24px;
  }

  .nav__link::after {
    display: none;
  }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

/* Shimmer effect on buttons */
.btn--primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: none;
}

.btn--primary:hover::after {
  animation: btnShimmer 0.6s ease forwards;
}

@keyframes btnShimmer {
  to { left: 100%; }
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-bg);
}

.btn--primary:hover {
  color: var(--color-bg);
  background: #f0ec40;
  transform: translateY(-3px);
  box-shadow: 0 10px 40px var(--color-accent-glow);
}

.btn--outline {
  background: transparent;
  color: var(--color-accent);
  border: 1.5px solid var(--color-border-hover);
}

.btn--outline:hover {
  color: var(--color-accent);
  background: var(--color-accent-dim);
  border-color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(232, 228, 9, 0.1);
}

.btn--full {
  width: 100%;
  justify-content: center;
}

.btn--full:hover svg {
  transform: translateX(4px);
}

.btn svg {
  transition: transform 0.3s var(--ease-out);
}

/* ---------- SECTION HEADERS ---------- */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header__tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-accent);
  background: var(--color-accent-dim);
  border: 1px solid var(--color-border-hover);
  padding: 10px 24px;
  border-radius: 50px;
  margin-bottom: 36px;
  transition: transform 0.3s var(--ease-out);
}

.section-header__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section-header__desc {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 30% 50%, #0F2B0F 0%, var(--color-bg) 70%);
}

/* Animated gradient orbs */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: orbFloat 12s ease-in-out infinite;
}

.hero::before {
  width: 500px;
  height: 500px;
  background: var(--color-accent);
  top: -10%;
  right: -5%;
  animation-delay: 0s;
}

.hero::after {
  width: 400px;
  height: 400px;
  background: var(--color-primary-light);
  bottom: -10%;
  left: -5%;
  animation-delay: -6s;
}

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

.hero__bg {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  pointer-events: none;
}

.hero__circuit {
  width: 100%;
  height: 100%;
}

.circuit-line {
  stroke: var(--color-accent);
  stroke-width: 1;
  opacity: 0.5;
  stroke-dasharray: 8 4;
  animation: circuitDash 20s linear infinite;
}

.circuit-line:nth-child(odd) {
  animation-direction: reverse;
}

@keyframes circuitDash {
  to { stroke-dashoffset: -100; }
}

.circuit-node {
  fill: var(--color-accent);
  opacity: 0.7;
}

.circuit-glow {
  animation: circuitPulse 3s ease-in-out infinite;
}

.circuit-glow:nth-child(odd) {
  animation-delay: 0.5s;
}

.circuit-glow:nth-child(3n) {
  animation-delay: 1s;
}

@keyframes circuitPulse {
  0%, 100% { opacity: 0.2; r: 10; }
  50% { opacity: 0.8; r: 16; }
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--container-padding);
  max-width: 800px;
}

.hero__logo-wrapper {
  margin-bottom: 32px;
  display: inline-block;
}

.hero__logo {
  filter: drop-shadow(0 0 40px var(--color-accent-glow));
  animation: heroLogoFloat 5s ease-in-out infinite;
}

@keyframes heroLogoFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-6px) rotate(1deg); }
  50% { transform: translateY(-10px) rotate(0deg); }
  75% { transform: translateY(-4px) rotate(-1deg); }
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.hero__title-line {
  display: block;
  overflow: hidden;
}

.hero__title-line:first-child {
  color: var(--color-accent);
  text-shadow: 0 0 60px var(--color-accent-glow);
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero__cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-text-dim);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- SECTION DIVIDERS ---------- */
.services,
.about,
.process,
.contact {
  position: relative;
}

.services::before,
.process::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border-hover), transparent);
}

/* ---------- SERVICES ---------- */
.services {
  padding: 120px 0;
}

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

.service-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 36px 28px;
  transition: all 0.5s var(--ease-out);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 800px;
}

/* Gradient border glow on hover */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* Radial glow on hover */
.service-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 0%), var(--color-accent-dim), transparent 50%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.service-card:hover {
  background: var(--color-bg-card-hover);
  border-color: var(--color-border-hover);
  transform: translateY(-8px);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4), 0 0 50px var(--color-accent-dim);
}

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

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

.service-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-dim);
  border-radius: 14px;
  color: var(--color-accent);
  margin-bottom: 20px;
  transition: all 0.4s var(--ease-out);
  position: relative;
  z-index: 1;
}

.service-card:hover .service-card__icon {
  background: var(--color-accent);
  color: var(--color-bg);
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 4px 20px var(--color-accent-glow);
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
  transition: transform 0.4s var(--ease-out);
}

.service-card:hover .service-card__icon svg {
  transform: scale(1.05);
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.service-card:hover .service-card__title {
  color: var(--color-accent);
}

.service-card__desc {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.service-card__tags span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-dim);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s var(--ease-out);
}

.service-card:hover .service-card__tags span {
  border-color: var(--color-border-hover);
  color: var(--color-text-muted);
}

/* ---------- ABOUT ---------- */
.about {
  padding: 120px 0;
  background: var(--color-bg-light);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.about__content .section-header__tag {
  margin-bottom: 40px;
}

.about__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.about__text {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

.about__values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.value-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 24px 20px;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(232, 228, 9, 0.03), transparent);
  transition: left 0.6s var(--ease-out);
}

.value-card:hover::before {
  left: 100%;
}

.value-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.value-card__number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 10px;
  opacity: 0.2;
  transition: all 0.4s var(--ease-out);
  line-height: 1;
}

.value-card:hover .value-card__number {
  opacity: 0.5;
  transform: scale(1.1);
}

.value-card__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.value-card__desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ---------- PROCESS ---------- */
.process {
  padding: 120px 0;
}

.process__timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.process__timeline-line {
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.process__timeline-progress {
  position: absolute;
  left: 28px;
  top: 0;
  width: 2px;
  height: 0;
  background: linear-gradient(to bottom, var(--color-accent), var(--color-accent));
  transition: height 0.1s linear;
  z-index: 1;
}

@media (max-width: 500px) {
  .process__timeline-line,
  .process__timeline-progress {
    left: 20px;
  }
}

.process__step {
  display: flex;
  gap: 28px;
  padding: 32px 0;
  position: relative;
}

.process__step-number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent);
  position: relative;
  z-index: 2;
  transition: all 0.5s var(--ease-out);
}

.process__step.is-active .process__step-number {
  background: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
  box-shadow: 0 0 30px var(--color-accent-glow);
  transform: scale(1.15);
}

.process__step.is-active .process__step-content h3 {
  color: var(--color-accent);
}

@media (max-width: 500px) {
  .process__step-number {
    width: 40px;
    height: 40px;
    font-size: 0.75rem;
  }
  .process__step {
    gap: 20px;
  }
}

.process__step:hover .process__step-number {
  background: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
  box-shadow: 0 0 30px var(--color-accent-glow);
  transform: scale(1.1);
}

.process__step-content h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

.process__step:hover .process__step-content h3 {
  color: var(--color-accent);
}

.process__step-content p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ---------- CONTACT ---------- */
.contact {
  padding: 120px 0;
  background: var(--color-bg-light);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}

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

/* Form Styles */
.contact__form {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 40px 32px;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.contact__form:focus-within {
  border-color: var(--color-border-hover);
  box-shadow: 0 0 40px rgba(232, 228, 9, 0.05);
}

@media (max-width: 500px) {
  .contact__form {
    padding: 28px 20px;
  }
}

.form-group {
  position: relative;
  margin-bottom: 28px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--color-border);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 20px 0 8px;
  outline: none;
  transition: border-color 0.4s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group label {
  position: absolute;
  left: 0;
  top: 20px;
  font-size: 0.95rem;
  color: var(--color-text-dim);
  pointer-events: none;
  transition: all 0.4s var(--ease-out);
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group input:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label,
.form-group textarea:valid ~ label {
  top: 0;
  font-size: 0.75rem;
  color: var(--color-accent);
}

.form-group__bar {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: all 0.4s var(--ease-out);
}

.form-group input:focus ~ .form-group__bar,
.form-group textarea:focus ~ .form-group__bar {
  left: 0;
  width: 100%;
}

.contact__form-status {
  margin-top: 16px;
  font-size: 0.9rem;
  text-align: center;
  min-height: 24px;
}

.contact__form-status:empty {
  display: none;
}

.contact__form-status.error {
  color: #f87171;
}

/* Button loader spinner */
.btn-loader {
  display: inline-block;
  width: 22px;
  height: 22px;
  border: 3px solid rgba(10, 26, 10, 0.3);
  border-top-color: var(--color-bg);
  border-radius: 50%;
  animation: btnSpin 0.6s linear infinite;
}

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

.btn-check {
  font-size: 1.1rem;
  margin-right: 6px;
}

/* Contact Info */
.contact__info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__info-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  transition: all 0.4s var(--ease-out);
  cursor: pointer;
}

.contact__info-card:hover {
  border-color: var(--color-border-hover);
  transform: translateX(8px);
  box-shadow: -4px 0 20px rgba(232, 228, 9, 0.05);
}

.contact__info-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-dim);
  border-radius: 12px;
  color: var(--color-accent);
  transition: all 0.4s var(--ease-out);
}

.contact__info-card:hover .contact__info-icon {
  background: var(--color-accent);
  color: var(--color-bg);
  transform: rotate(-5deg) scale(1.05);
}

.contact__info-icon svg {
  width: 20px;
  height: 20px;
}

.contact__info-card h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact__info-card a {
  display: block;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  transition: color 0.3s ease;
}

.contact__info-card a:hover {
  color: var(--color-accent);
}

/* ---------- FOOTER ---------- */
.footer {
  padding: 48px 0 24px;
  border-top: 1px solid var(--color-border);
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__brand strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
}

.footer__brand span {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-dim);
  font-style: italic;
}

.footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__links a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: color 0.3s ease, transform 0.3s var(--ease-out);
  display: inline-block;
}

.footer__links a:hover {
  color: var(--color-accent);
  transform: translateY(-2px);
}

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

.footer__social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  color: var(--color-text-muted);
  transition: all 0.4s var(--ease-out);
}

.footer__social a:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: var(--color-accent-dim);
  transform: translateY(-3px) scale(1.05);
}

.footer__bottom {
  padding-top: 24px;
  text-align: center;
}

.footer__bottom p {
  font-size: 0.8rem;
  color: var(--color-text-dim);
}

/* ---------- WHATSAPP FAB ---------- */
.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.4s var(--ease-out);
  opacity: 0;
  transform: scale(0.5) translateY(20px);
}

.whatsapp-fab.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.whatsapp-fab:hover {
  transform: scale(1.15) translateY(-3px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

/* Pulse ring animation */
.whatsapp-fab::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: fabPulse 2s ease-out infinite;
  opacity: 0;
}

.whatsapp-fab.is-visible::before {
  opacity: 1;
}

@keyframes fabPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ---------- SCROLL ANIMATIONS ---------- */
/* All scroll animations handled by GSAP */
.word { display: inline-block; overflow: hidden; }
.word-inner { display: inline-block; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .hero__title {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .services,
  .about,
  .process,
  .contact {
    padding: 80px 0;
  }

  .section-header {
    margin-bottom: 48px;
  }

  .footer__top {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 400px) {
  :root {
    --container-padding: 16px;
  }

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

  .hero__cta .btn {
    justify-content: center;
  }
}

/* ---------- Smooth Scroll Offset ---------- */
:target {
  scroll-margin-top: var(--nav-height);
}

section[id] {
  scroll-margin-top: var(--nav-height);
}

/* ---------- Smooth page transitions ---------- */
.page-transition {
  animation: pageIn 0.6s var(--ease-out);
}

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