/* ═══════════════════════════════════════════════════════════════
   Urban Sytes — Animations & Transitions v3
   Inspired by: section-level scroll reveal (like sanataani.com)
   ═══════════════════════════════════════════════════════════════ */

/* ── Smooth scroll ──────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

/* ── Keyframes ─────────────────────────────────────────────────── */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroScale {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184,150,46,0.4); }
  50%       { box-shadow: 0 0 0 12px rgba(184,150,46,0); }
}

/* ── Navbar scroll transition ───────────────────────────────────── */
.navbar {
  transition: background 0.35s ease, box-shadow 0.35s ease !important;
}
.navbar.scrolled {
  box-shadow: 0 4px 28px rgba(0,0,0,0.13) !important;
}

/* ─────────────────────────────────────────────────────────────────
   SECTION-LEVEL SCROLL REVEAL
   (same technique as sanataani.com)
   Every .section slides up when scrolled into view.
   ───────────────────────────────────────────────────────────────── */
.us-section {
  opacity: 0;
  transform: translateY(44px);
  transition:
    opacity  0.78s cubic-bezier(0.22, 0.68, 0, 1),
    transform 0.78s cubic-bezier(0.22, 0.68, 0, 1);
  will-change: opacity, transform;
}
.us-section.us-in {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children inside revealed section */
.us-section.us-in .us-child {
  animation: heroFadeUp 0.6s cubic-bezier(0.22, 0.68, 0, 1.1) both;
}
.us-section.us-in .us-child:nth-child(1) { animation-delay: 0.05s; }
.us-section.us-in .us-child:nth-child(2) { animation-delay: 0.15s; }
.us-section.us-in .us-child:nth-child(3) { animation-delay: 0.25s; }
.us-section.us-in .us-child:nth-child(4) { animation-delay: 0.35s; }
.us-section.us-in .us-child:nth-child(5) { animation-delay: 0.45s; }
.us-section.us-in .us-child:nth-child(6) { animation-delay: 0.55s; }

/* Left / Right splits within sections */
.us-from-left {
  opacity: 0;
  transform: translateX(-48px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.us-from-right {
  opacity: 0;
  transform: translateX(48px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.us-in .us-from-left,
.us-from-left.us-in {
  opacity: 1;
  transform: translateX(0);
}
.us-in .us-from-right,
.us-from-right.us-in {
  opacity: 1;
  transform: translateX(0);
}

/* Delay for right side */
.us-from-right { transition-delay: 0.15s; }

/* ── Hero entrance (page load — no scroll needed) ───────────────── */
.hero .hero-content h1,
.hero-title,
[class*="hero"] h1 {
  animation: heroFadeUp 0.85s cubic-bezier(0.22, 0.68, 0, 1.1) 0.1s both;
}
.hero .hero-content p,
.hero-subtitle,
[class*="hero"] h2,
[class*="hero"] > p {
  animation: heroFadeUp 0.85s cubic-bezier(0.22, 0.68, 0, 1.1) 0.25s both;
}
.hero .hero-content .btn,
.hero .hero-content a,
.hero-cta,
[class*="hero"] .btn {
  animation: heroFadeUp 0.85s cubic-bezier(0.22, 0.68, 0, 1.1) 0.4s both;
}
.hero-image,
[class*="hero"] img {
  animation: heroScale 1s cubic-bezier(0.22, 0.68, 0, 1.1) 0.2s both;
}

/* ── Card hover — lift + shadow ─────────────────────────────────── */
.project-card,
.feature-card,
.testimonial-card,
.blog-card,
.why-card,
.service-card {
  transition:
    transform 0.32s cubic-bezier(0.22, 0.68, 0, 1.2),
    box-shadow 0.32s ease !important;
}
.project-card:hover,
.feature-card:hover,
.blog-card:hover,
.why-card:hover,
.service-card:hover {
  transform: translateY(-10px) !important;
  box-shadow: 0 28px 56px rgba(0,0,0,0.15) !important;
}
.testimonial-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 18px 40px rgba(0,0,0,0.12) !important;
}

/* ── Project card image zoom ────────────────────────────────────── */
.project-card-img { overflow: hidden; }
.project-card-img img {
  transition: transform 0.55s cubic-bezier(0.22, 0.68, 0, 1.1) !important;
}
.project-card:hover .project-card-img img {
  transform: scale(1.08) !important;
}

/* ── Button transitions ─────────────────────────────────────────── */
.btn, .button, a.btn, a.button,
input[type="submit"], button[type="submit"] {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.25s ease,
    color 0.25s ease !important;
}
.btn:hover, .button:hover, a.btn:hover, a.button:hover,
input[type="submit"]:hover, button[type="submit"]:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18) !important;
}
.btn:active, .button:active { transform: translateY(0) !important; }

/* CTA gold pulse */
.btn-primary, .cta-btn, a.btn-primary {
  animation: pulseGold 3s ease-in-out 4s infinite;
}
.btn-primary:hover, .cta-btn:hover { animation: none; }

/* ── Form focus glow ────────────────────────────────────────────── */
input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
textarea, select {
  transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
}
input:focus, textarea:focus, select:focus {
  box-shadow: 0 0 0 3px rgba(184,150,46,0.18) !important;
}

/* ── Image hover zoom ───────────────────────────────────────────── */
.about-visual img, .about-image img, .founder-image img {
  transition: transform 0.5s ease !important;
}
.about-visual:hover img,
.about-image:hover img,
.founder-image:hover img {
  transform: scale(1.04) !important;
}

/* ── Links ──────────────────────────────────────────────────────── */
a { transition: color 0.2s ease, opacity 0.2s ease; }

/* ── Reduced motion ──────────────────────────────────────────────  */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .us-section { opacity: 1 !important; transform: none !important; }
}


/* ── Navbar link size ───────────────────────────────────────────── */
.navbar .nav-links a:not(.btn),
.nav-link:not(.btn),
.navbar .nav-menu a:not(.btn) {
  font-size: 15px !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
}
