/* ===========================
   ANIMATIONS & EFFECTS
   Customer 1st Consulting
   =========================== */

/* ===========================
   ENTRANCE ANIMATIONS
   =========================== */

[data-animate="fade-up"] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-animate="fade-up"].animate-in {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="fade-left"] {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-animate="fade-left"].animate-in {
  opacity: 1;
  transform: translateX(0);
}

[data-animate="fade-right"] {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-animate="fade-right"].animate-in {
  opacity: 1;
  transform: translateX(0);
}

[data-animate="scale-in"] {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-animate="scale-in"].animate-in {
  opacity: 1;
  transform: scale(1);
}

[data-animate="fade"] {
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-animate="fade"].animate-in {
  opacity: 1;
}

/* ===========================
   STAGGERED CHILDREN
   =========================== */

[data-animate-group] > *:nth-child(1) {
  transition-delay: 0.1s;
}

[data-animate-group] > *:nth-child(2) {
  transition-delay: 0.2s;
}

[data-animate-group] > *:nth-child(3) {
  transition-delay: 0.3s;
}

[data-animate-group] > *:nth-child(4) {
  transition-delay: 0.4s;
}

[data-animate-group] > *:nth-child(5) {
  transition-delay: 0.5s;
}

[data-animate-group] > *:nth-child(6) {
  transition-delay: 0.6s;
}

/* ===========================
   3D CARD TRANSFORMS
   =========================== */

.service-card {
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover {
  transform: translateY(-12px) rotateX(3deg);
  box-shadow: 0 32px 80px rgba(26, 46, 68, 0.22), 0 8px 32px rgba(200, 150, 60, 0.12);
}

.service-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: rgba(200, 150, 60, 0.1);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  font-size: 2rem;
}

.service-card:hover .service-card-icon {
  background: var(--accent);
  color: var(--white);
  transform: scale(1.1);
}

.service-card-image {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  height: 220px;
  margin-bottom: 1.5rem;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover .service-card-image img {
  transform: scale(1.08);
}

/* ===========================
   TESTIMONIAL CARDS
   =========================== */

.testimonial-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  transform-style: preserve-3d;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.25);
}

.testimonial-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.testimonial-tag {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: rgba(200, 150, 60, 0.2);
  color: var(--accent);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 1rem;
}

/* ===========================
   PARALLAX EFFECT
   =========================== */

.parallax-container {
  position: relative;
  overflow: hidden;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  z-index: 0;
}

.parallax-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 25, 35, 0.55);
  z-index: 1;
}

.parallax-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
}

/* ===========================
   SCROLL CHEVRON ANIMATION
   =========================== */

.scroll-chevron {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  animation: bounce 2s ease-in-out infinite;
}

.scroll-chevron svg {
  width: 32px;
  height: 32px;
  stroke: var(--white);
  stroke-width: 2px;
  fill: none;
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateX(-50%) translateY(8px);
    opacity: 0.7;
  }
}

/* ===========================
   FLOATING ELEMENTS
   =========================== */

.floating-orb {
  position: absolute;
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
}

.floating-orb-1 {
  width: 200px;
  height: 200px;
  background: rgba(200, 150, 60, 0.08);
  top: -50px;
  right: -50px;
}

.floating-orb-2 {
  width: 150px;
  height: 150px;
  background: rgba(26, 46, 68, 0.05);
  bottom: 100px;
  left: -75px;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-20px) rotate(3deg);
  }
  66% {
    transform: translateY(-10px) rotate(-2deg);
  }
}

/* ===========================
   COUNTER ANIMATION
   =========================== */

.counter {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
}

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

.counter.animate {
  animation: countUp 0.8s ease-out forwards;
}

/* ===========================
   STATS BAR ANIMATION
   =========================== */

.stats-bar {
  animation: slideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
}

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

/* ===========================
   BUTTON INTERACTIONS
   =========================== */

.btn {
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

/* ===========================
   LINK UNDERLINE ANIMATION
   =========================== */

.link-underline {
  position: relative;
  text-decoration: none;
}

.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ===========================
   MODAL & POPUP
   =========================== */

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: flex;
  opacity: 1;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--white);
  border-radius: 16px;
  padding: 3rem;
  max-width: 600px;
  width: 90%;
  box-shadow: var(--shadow-deep);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal.show .modal-content {
  transform: scale(1);
}

/* ===========================
   LOADING ANIMATION
   =========================== */

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.spinner {
  border: 3px solid rgba(26, 46, 68, 0.1);
  border-top: 3px solid var(--accent);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 0.8s linear infinite;
}

/* ===========================
   FADE TRANSITIONS
   =========================== */

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

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

/* ===========================
   SECTION BACKGROUND EFFECTS
   =========================== */

.section-layered {
  position: relative;
  isolation: isolate;
}

.section-layered::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 40%, rgba(200, 150, 60, 0.07) 0%, transparent 70%);
  z-index: -1;
}

/* ===========================
   TIMELINE ANIMATION
   =========================== */

.timeline-item {
  position: relative;
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-item.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.timeline-item:nth-child(1) {
  transition-delay: 0.1s;
}

.timeline-item:nth-child(2) {
  transition-delay: 0.2s;
}

.timeline-item:nth-child(3) {
  transition-delay: 0.3s;
}

.timeline-item:nth-child(4) {
  transition-delay: 0.4s;
}

.timeline-connector {
  position: absolute;
  top: 60px;
  left: 30px;
  width: 2px;
  height: calc(100% - 60px);
  background: linear-gradient(180deg, var(--accent), transparent);
  transform-origin: top;
  opacity: 0;
  animation: growDown 1s ease-out 0.5s forwards;
}

@keyframes growDown {
  from {
    transform: scaleY(0);
    opacity: 0;
  }
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* ===========================
   TEXT HIGHLIGHT ANIMATION
   =========================== */

.highlight-text {
  position: relative;
  display: inline-block;
}

.highlight-text::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 0;
  height: 8px;
  background: rgba(200, 150, 60, 0.3);
  border-radius: 4px;
  z-index: -1;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.highlight-text.animate::after {
  width: 100%;
}
