/* ===== SCROLL REVEAL ANIMATIONS ===== */
/* Elements with class "reveal" start hidden/transformed */
/* When "revealed" class is added by JS, they animate in */

.reveal {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* fade-up: starts 40px below */
.reveal[data-reveal="fade-up"], .reveal:not([data-reveal]) {
  transform: translateY(40px);
}

/* fade-left: starts 60px from left */
.reveal[data-reveal="fade-left"] {
  transform: translateX(-60px);
}

/* fade-right: starts 60px from right */
.reveal[data-reveal="fade-right"] {
  transform: translateX(60px);
}

/* fade-in: just opacity */
.reveal[data-reveal="fade-in"] {
  transform: none;
}

/* zoom-in: starts at 0.85 scale */
.reveal[data-reveal="zoom-in"] {
  transform: scale(0.85);
}

/* When revealed */
.reveal.revealed {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Stagger delays */
.reveal[data-delay="100"] { transition-delay: 0.1s; }
.reveal[data-delay="200"] { transition-delay: 0.2s; }
.reveal[data-delay="300"] { transition-delay: 0.3s; }
.reveal[data-delay="400"] { transition-delay: 0.4s; }
.reveal[data-delay="500"] { transition-delay: 0.5s; }
.reveal[data-delay="600"] { transition-delay: 0.6s; }

/* ===== NAVBAR SCROLL STATE ===== */
.main-nav {
  transition: height 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease;
}

.main-nav.scrolled {
  height: 75px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.main-nav.scrolled .nav-logo img {
  width: 300px;
  transition: width 0.4s ease;
}

/* ===== IMAGE LOAD FADE ===== */
img.img-fade {
  opacity: 0;
  transition: opacity 0.6s ease;
}

img.img-fade.img-loaded {
  opacity: 1;
}

/* ===== ENHANCED BUTTON HOVER EFFECTS ===== */
/* Gold shimmer sweep on buttons */
.btn-contact,
.btn-read-more,
.btn-view-all,
.btn-learn-more,
.footer-contact-btn,
.footer-email-input button {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-contact::before,
.btn-read-more::before,
.btn-view-all::before,
.footer-contact-btn::before,
.footer-email-input button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
  z-index: -1;
}

.btn-contact:hover::before,
.btn-read-more:hover::before,
.btn-view-all:hover::before,
.footer-contact-btn:hover::before,
.footer-email-input button:hover::before {
  left: 100%;
}

/* Learn More button glow on hover */
.btn-learn-more {
  transition: all 0.4s ease, box-shadow 0.4s ease;
}

.btn-learn-more:hover {
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
}

/* ===== REDUCE REVEAL MOTION FOR PERFORMANCE ===== */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero-content { animation: none !important; }
  .testimonial-img-1, .testimonial-img-2 { animation: none !important; }
}

/* ===== HERO ENHANCEMENTS ===== */
/* Subtle floating animation for hero content */
.hero-content {
  animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Gradient overlay animation */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(99, 75, 29, 0.15) 0%, transparent 60%);
  z-index: 1;
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { opacity: 0.3; }
  100% { opacity: 0.8; }
}

/* ===== ENHANCED CARD HOVER EFFECTS ===== */
/* Service cards - lift with depth */
.service-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

/* Service card image zoom on hover */
.service-card-image {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* overflow hidden on the image container */
.service-card {
  overflow: hidden;
  border-radius: 12px;
}

/* Blog card image zoom */
.blog-card {
  overflow: hidden;
}

.blog-card-image {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Country cards - glassmorphism enhance */
.country-card {
  transition: transform 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}

.country-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.28);
}

/* Country flag subtle rotate on hover */
.country-card img {
  transition: transform 0.4s ease;
}

.country-card:hover img {
  transform: scale(1.15) rotate(2deg);
}

/* ===== CEO PHOTO ENHANCEMENTS ===== */
.ceo-photo-container {
  overflow: hidden;
  border-radius: 8px;
  transition: box-shadow 0.4s ease;
}

.ceo-photo-container:hover {
  box-shadow: 0 20px 50px rgba(99, 75, 29, 0.25);
}

.ceo-photo-container img {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.ceo-photo-container:hover img {
  transform: scale(1.05);
}

/* Client logo hover handled in styles.css */

/* ===== TESTIMONIAL IMAGES FLOAT ===== */
.testimonial-img-1 {
  animation: float1 5s ease-in-out infinite;
}

.testimonial-img-2 {
  animation: float2 6s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes float2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ===== SECTION DIVIDER DECORATION ===== */
/* Subtle gold line between sections */
.about::before,
.services::before,
.blog::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  border-radius: 2px;
}

.about,
.services,
.blog {
  position: relative;
}

/* ===== SOCIAL ICON HOVER RIPPLE ===== */
.social-icon {
  position: relative;
  overflow: hidden;
}

.social-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.4s ease;
}

.social-icon:hover::after {
  transform: scale(1);
  opacity: 0;
}

/* ===== FOOTER ENHANCEMENTS ===== */
.footer-links-col ul li a {
  position: relative;
  display: inline-block;
}

.footer-links-col ul li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.footer-links-col ul li a:hover::after {
  width: 100%;
}

/* ===== PAGE BANNER PARALLAX ENHANCEMENT ===== */
.page-banner {
  overflow: hidden;
}

.page-banner-content h1 {
  animation: bannerSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.page-banner-breadcrumb {
  animation: bannerSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
  opacity: 0;
}

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

/* ===== CURSOR GLOW (subtle) ===== */
/* Only on desktop */
@media (hover: hover) and (pointer: fine) {
  body {
    cursor: default;
  }

  a, button {
    cursor: pointer;
  }
}

/* ===== SELECTION COLOR ===== */
::selection {
  background-color: rgba(99, 75, 29, 0.25);
  color: var(--text-dark);
}

/* ===== FOCUS STYLES (accessibility) ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), #8a6b30);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #7a5e28, var(--primary));
}

/* Firefox scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--light-bg);
}

/* ===== TILT HOVER CARDS ===== */
.tilt-hover {
  transform-style: preserve-3d;
  perspective: 1000px;
}

/* ===== MAGNETIC BUTTON ===== */
.magnetic {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== PRESENCE MAP GLOW ===== */
.presence-map img {
  transition: filter 0.4s ease;
}

.presence-map:hover img {
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3)) brightness(1.05);
}

/* ===== HELPING HANDS SERVICE ITEMS ===== */
.service-item {
  transition: transform 0.3s ease, background 0.3s ease;
  padding: 12px;
  border-radius: 12px;
}

.service-item:hover {
  transform: translateX(8px);
  background: rgba(99, 75, 29, 0.04);
}

.service-icon {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.service-item:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 20px rgba(99, 75, 29, 0.4);
}

/* ===== LOADING SKELETON (optional) ===== */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ===== PRINT STYLES ===== */
@media print {
  .top-header,
  .main-nav,
  .footer,
  .back-to-top,
  .preloader {
    display: none !important;
  }

  body {
    max-width: none;
  }
}
