/**
 * Atmabhav Premium Home Page Styles
 * Ultra-clean, polished design with advanced effects
 */

/* ========================================
   SMOOTH SCROLLING & BASE
   ======================================== */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   GRADIENT TEXT EFFECTS
   ======================================== */
.gradient-text {
  background: linear-gradient(135deg, #D28B43 0%, #FFD700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.gradient-gold {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #D28B43 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   HERO SECTION ADVANCED EFFECTS
   ======================================== */
.hero-premium {
  position: relative;
  overflow: hidden;
}

.hero-premium::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,215,0,0.1) 0%, transparent 70%);
  animation: pulseGlow 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.3; }
  50% { transform: scale(1.1) rotate(180deg); opacity: 0.6; }
}

/* Floating animation for hero elements */
.float-slow {
  animation: floatSlow 6s ease-in-out infinite;
}

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

/* ========================================
   GLASSMORPHISM EFFECTS
   ======================================== */
.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

.glass-card-dark {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================================
   ADVANCED CARD HOVER EFFECTS
   ======================================== */
.premium-card {
  position: relative;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
}

.premium-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,215,0,0) 0%, rgba(255,215,0,0.2) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  border-radius: inherit;
  pointer-events: none;
}

.premium-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

.premium-card:hover::before {
  opacity: 1;
}

/* ========================================
   PREMIUM BUTTON STYLES
   ======================================== */
.btn-premium {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-premium::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-premium:hover::before {
  width: 400px;
  height: 400px;
}

.btn-premium:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4);
}

/* ========================================
   SCROLL-TRIGGERED ANIMATIONS
   ======================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* ========================================
   PARALLAX EFFECTS
   ======================================== */
.parallax-layer {
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ========================================
   ADVANCED TYPOGRAPHY
   ======================================== */
.text-highlight {
  position: relative;
  display: inline-block;
}

.text-highlight::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 12px;
  background: linear-gradient(90deg, rgba(255,215,0,0.3), rgba(255,165,0,0.3));
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  animation: highlightExpand 1.5s ease forwards;
  animation-delay: 0.5s;
}

@keyframes highlightExpand {
  to { transform: scaleX(1); }
}

/* ========================================
   STAT COUNTER ANIMATIONS
   ======================================== */
.stat-card {
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: rotate(45deg);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* ========================================
   SECTION DIVIDERS
   ======================================== */
.section-divider {
  position: relative;
  overflow: hidden;
}

.section-divider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(210,139,67,0.3), transparent);
}

/* Wave divider */
.wave-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
}

/* ========================================
   ADVANCED IMAGE EFFECTS
   ======================================== */
.image-overlay-gradient {
  position: relative;
  overflow: hidden;
}

.image-overlay-gradient::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
  pointer-events: none;
}

/* Ken Burns effect on images */
.image-ken-burns {
  overflow: hidden;
}

.image-ken-burns img {
  transition: transform 20s ease;
  transform: scale(1);
}

.image-ken-burns:hover img {
  transform: scale(1.1);
}

/* ========================================
   GRID LAYOUTS WITH STAGGER
   ======================================== */
.stagger-grid > * {
  opacity: 0;
  transform: translateY(30px);
  animation: staggerIn 0.6s ease forwards;
}

.stagger-grid > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-grid > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-grid > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-grid > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-grid > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-grid > *:nth-child(6) { animation-delay: 0.6s; }

@keyframes staggerIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   CUSTOM CURSOR EFFECTS
   ======================================== */
.cursor-pointer {
  cursor: pointer;
  user-select: none;
}

/* ========================================
   MODERN SHADOWS
   ======================================== */
.shadow-soft {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.shadow-medium {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.shadow-hard {
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
}

.shadow-colored {
  box-shadow: 0 20px 50px rgba(210, 139, 67, 0.25);
}

/* ========================================
   LOADING STATES
   ======================================== */
.skeleton-loader {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s ease-in-out infinite;
}

@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ========================================
   RESPONSIVE UTILITIES
   ======================================== */
@media (max-width: 768px) {
  .hero-premium::before {
    animation-duration: 12s;
  }

  .premium-card:hover {
    transform: translateY(-8px) scale(1.01);
  }
}

/* ========================================
   PERFORMANCE OPTIMIZATIONS
   ======================================== */
.gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: #D28B43;
  color: white;
  padding: 8px;
  text-decoration: none;
  transition: top 0.3s;
}

.skip-to-content:focus {
  top: 0;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================
   CUSTOM ELEMENTOR OVERRIDES
   ======================================== */
.elementor-widget-heading .gradient-text {
  display: inline-block;
}

.elementor-button.btn-premium {
  z-index: 1;
}

/* ========================================
   ADVANCED BORDER EFFECTS
   ======================================== */
.border-gradient {
  position: relative;
  background: white;
}

.border-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, #D28B43, #FFD700);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* ========================================
   MAGNETIC HOVER EFFECT
   ======================================== */
.magnetic-element {
  transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Applied via JavaScript */
