/* =============================================================
   ANIMATIONS — Keyframes, Reveal, Responsive
   ============================================================= */

/* ----- Keyframes ----- */
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0);    opacity: 1;   }
  50%       { transform: translateX(-50%) translateY(10px); opacity: 0.3; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ----- Hero Entrance ----- */
.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.7s ease forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.30s; }
.delay-3 { animation-delay: 0.45s; }

/* ----- Scroll Reveal ----- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* =============================================================
   RESPONSIVE
   ============================================================= */

/* ----- Tablet (≤1024px) ----- */
@media (max-width: 1024px) {
  .wwd-grid          { grid-template-columns: repeat(2, 1fr); }
  .industry-grid     { grid-template-columns: repeat(4, 1fr); }
  .cred-grid         { grid-template-columns: repeat(3, 1fr); }
  .cred-item:nth-child(3) { border-right: none; }
  .footer-inner      { grid-template-columns: 1fr 1fr; gap: 32px; }
  /* .approach-steps    { flex-wrap: wrap; } */
  .approach-steps { grid-template-columns: repeat(2, 1fr); }
  .step-arrow        { display: none; }
  /* .approach-step     { flex: 1 1 calc(50% - 12px); } */
}

/* ----- Mobile (≤768px) ----- */
@media (max-width: 768px) {
  .section-pad { padding: 64px 0; }

  /* Hamburger */
  .hamburger { display: flex; }

  /* Mobile nav drawer */
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 24px 40px;
    gap: 4px;
    transition: right var(--transition);
    box-shadow: -8px 0 32px rgba(0,0,0,0.3);
    z-index: 999;
  }

  .nav-links.open { right: 0; }
  .nav-links a    { color: rgba(255,255,255,0.85) !important; width: 100%; padding: 12px 16px; }
  .nav-links a:hover { background: rgba(255,255,255,0.1) !important; color: #fff !important; }
  .nav-cta        { background: var(--accent) !important; }
  /* Mobile overlay */
  body.menu-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
  }

  /* Hero */
  .hero-content { padding: 120px 24px 80px; }
  .hero-ctas    { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }

  /* Credibility */
  .cred-grid { grid-template-columns: repeat(2, 1fr); }
  .cred-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); }
  .cred-item:last-child { border-bottom: none; }

  /* Sections */
  .wwd-grid          { grid-template-columns: 1fr; }
  .why-inner         { grid-template-columns: 1fr; gap: 40px; }
  .service-detail    { grid-template-columns: 1fr; padding: 28px; }
  .service-list-grid { grid-template-columns: 1fr; }
  /* .approach-step     { flex: 1 1 100%; } */
  .approach-steps     { grid-template-columns: 1fr; }
  .industry-grid     { grid-template-columns: repeat(2, 1fr); }
  .leader-card       { grid-template-columns: 1fr; padding: 28px; }
  .leader-avatar     { min-width: unset; }
  .sus-inner         { grid-template-columns: 1fr; gap: 40px; }
  .sus-cards         { grid-template-columns: 1fr; }
  .loc-grid          { grid-template-columns: 1fr; }
  .contact-inner     { grid-template-columns: 1fr; }
  .form-row          { grid-template-columns: 1fr; }
  .footer-inner      { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .back-to-top       { bottom: 20px; right: 20px; }
  .whatsapp          { bottom: 20px; right: 20px; }
}

/* ----- Small Mobile (≤480px) ----- */
@media (max-width: 480px) {
  .cred-grid      { grid-template-columns: 1fr; }
  .industry-grid  { grid-template-columns: repeat(2, 1fr); }
  .services-tabs  { flex-direction: column; align-items: stretch; }
  .tab-btn        { text-align: center; }
}
