/* ============================================================
   INVERA Consulting — Custom CSS
   Complements Tailwind CSS with custom tokens & animations
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700;800;900&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --color-navy: #0f172a;
  --color-navy2: #1e293b;
  --color-gold: #c9a227;
  --color-gold2: #e6b830;
  --color-white: #ffffff;
  --color-gray50: #f8fafc;
  --color-gray100: #f1f5f9;
  --color-gray200: #e2e8f0;
  --color-gray400: #94a3b8;
  --color-gray600: #475569;
  --color-gray800: #1e293b;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, .10);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, .14);
  --shadow-gold: 0 8px 30px rgba(201, 162, 39, .25);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Base Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-navy);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Typography ---------- */
.font-heading {
  font-family: var(--font-heading);
}

.font-body {
  font-family: var(--font-body);
}

.text-gold {
  color: var(--color-gold);
}

.text-navy {
  color: var(--color-navy);
}

.bg-navy {
  background-color: var(--color-navy);
}

.bg-gold {
  background-color: var(--color-gold);
}

/* ---------- Section Labels ---------- */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-gold);
  color: var(--color-navy);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--color-gold2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-secondary:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  transform: translateY(-2px);
}

.btn-outline-navy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--color-navy);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  border: 2px solid var(--color-navy);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-outline-navy:hover {
  background: var(--color-navy);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* ---------- Navbar ---------- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding: 1.25rem 0;
}

#navbar.scrolled {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, .3);
  padding: 0.75rem 0;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color var(--transition);
  position: relative;
  padding-bottom: 4px;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--transition);
}

.nav-link:hover {
  color: var(--color-gold);
}

.nav-link:hover::after {
  width: 100%;
}

/* ---------- Hero ---------- */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--color-navy) 0%, #1a2744 40%, #0d1b35 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

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

.orb-1 {
  width: 500px;
  height: 500px;
  top: -150px;
  left: -100px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.15) 0%, transparent 70%);
  animation: float-orb 8s ease-in-out infinite;
}

.orb-2 {
  width: 400px;
  height: 400px;
  bottom: -100px;
  right: -80px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  animation: float-orb 10s ease-in-out infinite reverse;
}

.orb-3 {
  width: 300px;
  height: 300px;
  top: 30%;
  right: 20%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.08) 0%, transparent 70%);
  animation: float-orb 12s ease-in-out infinite 2s;
}

@keyframes float-orb {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(20px, -20px) scale(1.05);
  }

  66% {
    transform: translate(-15px, 15px) scale(0.95);
  }
}

/* ---------- Service Cards ---------- */
.service-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  border: 1px solid var(--color-gray200);
  transition: all var(--transition);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold2));
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #fff8e1, #fdecc0);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  transition: transform var(--transition);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(-5deg);
}

/* ---------- Method Cards ---------- */
.method-card {
  padding: 2rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: transform var(--transition);
}

.method-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(201, 162, 39, 0.15);
  line-height: 1;
  margin-bottom: 0.25rem;
}

/* ---------- MVV Cards (Mission/Vision/Values) ---------- */
.mvv-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  border: 1px solid var(--color-gray200);
  transition: all var(--transition);
}

.mvv-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.mvv-card.values-card {
  background: var(--color-navy);
  border-color: transparent;
  color: var(--color-white);
}

/* ---------- Team Cards ---------- */
.team-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-gray200);
  transition: all var(--transition);
  position: relative;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.team-card img {
  width: 100%;
  c height: 320px;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover img {
  transform: scale(1.06);
}

.team-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 320px;
  background: linear-gradient(to bottom, transparent 50%, rgba(15, 23, 42, 0.6) 100%);
  transition: opacity var(--transition);
  opacity: 0;
}

.team-card:hover .team-card-overlay {
  opacity: 1;
}

/* ---------- CTA Section ---------- */
#cta {
  background: linear-gradient(135deg, var(--color-navy) 0%, #1a2744 50%, #0d1b35 100%);
  position: relative;
  overflow: hidden;
}

#cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a227' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.btn-cta-pulse {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-gold);
  color: var(--color-navy);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-cta-pulse:hover {
  background: var(--color-gold2);
  transform: translateY(-3px);
  box-shadow: 0 0 0 8px rgba(201, 162, 39, 0.2), var(--shadow-gold);
}

/* ---------- Footer ---------- */
#footer {
  background: var(--color-navy);
}

.footer-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer-link:hover {
  color: var(--color-gold);
}

.social-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all var(--transition);
}

.social-icon:hover {
  background: var(--color-gold);
  color: var(--color-navy);
  transform: translateY(-2px);
}

/* ---------- WhatsApp Float ---------- */
#whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3.5rem;
  height: 3.5rem;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  text-decoration: none;
  transition: all var(--transition);
  animation: pulse-whatsapp 2.5s infinite;
}

#whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
  animation: none;
}

@keyframes pulse-whatsapp {

  0%,
  100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }

  50% {
    box-shadow: 0 4px 40px rgba(37, 211, 102, 0.7), 0 0 0 10px rgba(37, 211, 102, 0.08);
  }
}

/* ---------- Mobile Menu ---------- */
#mobile-menu {
  display: none;
  background: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1rem 0 2rem;
}

#mobile-menu.open {
  display: block;
}

.mobile-nav-link {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.85rem 1.5rem;
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
}

.mobile-nav-link:hover {
  color: var(--color-gold);
  background: rgba(201, 162, 39, 0.06);
}

/* ---------- Intersection Observer Animations ---------- */
.anim-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.anim-fade-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.anim-fade-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.anim-fade-in {
  opacity: 0;
  transition: opacity 0.7s ease;
}

.anim-scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.anim-visible {
  opacity: 1 !important;
  transform: none !important;
}

/* Stagger delays */
.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

.delay-5 {
  transition-delay: 0.5s;
}

.delay-6 {
  transition-delay: 0.6s;
}

/* ---------- Responsive Utilities ---------- */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem !important;
  }

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

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem !important;
  }

  .btn-primary,
  .btn-secondary {
    font-size: 0.85rem;
    padding: 0.75rem 1.5rem;
  }
}

/* ---------- Divider ---------- */
.gold-divider {
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold2));
  border-radius: 2px;
}

/* ---------- Stats badge ---------- */
.stat-badge {
  position: absolute;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
}