/* ============================================================
   EYCIA — Dynamic Effects Styles
   Premium animations and interactions
   ============================================================ */

/* ═══════════════════════════════════════════════════════════
   CUSTOM CURSOR
   ═══════════════════════════════════════════════════════════ */
.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease, background 0.2s ease;
  mix-blend-mode: difference;
}

.cursor-circle {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(244, 160, 28, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.cursor-dot.hovering {
  width: 50px;
  height: 50px;
  background: transparent;
  border: 2px solid var(--gold);
  mix-blend-mode: normal;
}

.cursor-circle.hovering {
  width: 60px;
  height: 60px;
  border-color: var(--gold);
  background: rgba(244, 160, 28, 0.1);
}

.cursor-dot.clicking {
  transform: translate(-50%, -50%) scale(0.5);
}

.cursor-circle.clicking {
  transform: translate(-50%, -50%) scale(0.8);
}

/* Hide default cursor on desktop */
@media (hover: hover) and (pointer: fine) {
  body {
    cursor: none !important;
  }
  a, button, input, textarea, select, [role="button"] {
    cursor: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   SCROLL PROGRESS BAR
   ═══════════════════════════════════════════════════════════ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  z-index: 10002;
  transition: width 0.05s linear;
  box-shadow: 0 0 10px rgba(244, 160, 28, 0.5);
}

/* ═══════════════════════════════════════════════════════════
   PAGE LOADER
   ═══════════════════════════════════════════════════════════ */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--navy-dark);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: loaderFadeIn 0.8s ease forwards;
}

.loader-logo span {
  color: var(--gold);
}

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

.loader-bar {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar-inner {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  animation: loaderProgress 1.5s ease forwards;
}

@keyframes loaderProgress {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* ═══════════════════════════════════════════════════════════
   HERO PARTICLES CANVAS
   ═══════════════════════════════════════════════════════════ */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════
   3D CARD TILT EFFECT
   ═══════════════════════════════════════════════════════════ */
.tilt-card {
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
  transition: transform 0.1s ease-out, box-shadow 0.3s ease;
}

.tilt-card:hover {
  box-shadow: 
    0 25px 50px -12px rgba(26, 46, 90, 0.25),
    0 0 0 1px rgba(244, 160, 28, 0.1);
}

.tilt-card .tilt-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.15) 0%,
    transparent 60%
  );
  border-radius: inherit;
  z-index: 10;
}

.tilt-card:hover .tilt-shine {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════
   MAGNETIC BUTTON EFFECT
   ═══════════════════════════════════════════════════════════ */
.magnetic-btn {
  position: relative;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ═══════════════════════════════════════════════════════════
   ANIMATED GRADIENT BACKGROUND
   ═══════════════════════════════════════════════════════════ */
.gradient-mesh {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(244, 160, 28, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(26, 46, 90, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 40%, rgba(244, 160, 28, 0.1) 0%, transparent 40%);
  animation: gradientMove 20s ease-in-out infinite;
  z-index: 0;
}

@keyframes gradientMove {
  0%, 100% {
    background-position: 0% 0%, 100% 100%, 50% 50%;
  }
  25% {
    background-position: 100% 0%, 0% 100%, 75% 25%;
  }
  50% {
    background-position: 100% 100%, 0% 0%, 25% 75%;
  }
  75% {
    background-position: 0% 100%, 100% 0%, 50% 50%;
  }
}

/* ═══════════════════════════════════════════════════════════
   FLOATING SHAPES IN HERO
   ═══════════════════════════════════════════════════════════ */
.floating-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.floating-shape {
  position: absolute;
  opacity: 0.1;
  animation: floatShape 15s ease-in-out infinite;
}

.floating-shape:nth-child(1) {
  width: 80px;
  height: 80px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  top: 15%;
  left: 10%;
  animation-delay: 0s;
}

.floating-shape:nth-child(2) {
  width: 40px;
  height: 40px;
  background: var(--gold);
  top: 70%;
  right: 15%;
  animation-delay: -5s;
  transform: rotate(45deg);
}

.floating-shape:nth-child(3) {
  width: 60px;
  height: 60px;
  border: 2px solid var(--gold);
  top: 40%;
  right: 25%;
  animation-delay: -10s;
}

.floating-shape:nth-child(4) {
  width: 100px;
  height: 100px;
  border: 1px solid rgba(244, 160, 28, 0.5);
  border-radius: 50%;
  bottom: 20%;
  left: 20%;
  animation-delay: -7s;
}

.floating-shape:nth-child(5) {
  width: 20px;
  height: 20px;
  background: rgba(244, 160, 28, 0.5);
  border-radius: 50%;
  top: 30%;
  right: 40%;
  animation-delay: -3s;
}

@keyframes floatShape {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(90deg);
  }
  50% {
    transform: translateY(10px) rotate(180deg);
  }
  75% {
    transform: translateY(-15px) rotate(270deg);
  }
}

/* ═══════════════════════════════════════════════════════════
   ANIMATED GRADIENT BORDER
   ═══════════════════════════════════════════════════════════ */
.gradient-border {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-md);
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    45deg,
    var(--gold),
    var(--navy),
    var(--gold-light),
    var(--navy-mid),
    var(--gold)
  );
  background-size: 400% 400%;
  border-radius: inherit;
  z-index: -1;
  animation: borderGradient 8s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gradient-border:hover::before {
  opacity: 1;
}

@keyframes borderGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ═══════════════════════════════════════════════════════════
   STATISTICS COUNTER SECTION
   ═══════════════════════════════════════════════════════════ */
.stats-section {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(244, 160, 28, 0.05) 0%, transparent 50%);
  animation: rotateBg 30s linear infinite;
}

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

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: 2rem;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-number span {
  display: inline-block;
}

.stat-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ═══════════════════════════════════════════════════════════
   PARALLAX IMAGE EFFECT
   ═══════════════════════════════════════════════════════════ */
.parallax-image {
  overflow: hidden;
  position: relative;
}

.parallax-image img {
  transition: transform 0.1s linear;
  will-change: transform;
}

/* ═══════════════════════════════════════════════════════════
   ENHANCED REVEAL ANIMATIONS
   ═══════════════════════════════════════════════════════════ */
.reveal-scale {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.reveal-up-strong.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Text reveal character by character */
.text-reveal {
  overflow: hidden;
}

.text-reveal span {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  animation: textReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* ═══════════════════════════════════════════════════════════
   SMOOTH SECTION DIVIDERS (SVG WAVES)
   ═══════════════════════════════════════════════════════════ */
.section-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  overflow: hidden;
  pointer-events: none;
}

.section-divider svg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
}

/* ═══════════════════════════════════════════════════════════
   BUTTON ENHANCEMENTS
   ═══════════════════════════════════════════════════════════ */
.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  border-radius: 50%;
  z-index: 0;
}

.btn-glow:hover::before {
  width: 300px;
  height: 300px;
}

.btn-glow span {
  position: relative;
  z-index: 1;
}

/* Ripple effect */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: rippleEffect 0.6s ease-out;
  pointer-events: none;
}

@keyframes rippleEffect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ═══════════════════════════════════════════════════════════
   NAV LINK ANIMATED UNDERLINE
   ═══════════════════════════════════════════════════════════ */
.nav-link-animated {
  position: relative;
}

.nav-link-animated::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link-animated:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ═══════════════════════════════════════════════════════════
   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.15);
  border-radius: var(--radius-md);
}

.glass-dark {
  background: rgba(17, 30, 58, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ═══════════════════════════════════════════════════════════
   HOVER LIFT WITH SHADOW
   ═══════════════════════════════════════════════════════════ */
.hover-lift {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 20px 40px -15px rgba(26, 46, 90, 0.3),
    0 0 0 1px rgba(244, 160, 28, 0.2);
}

/* ═══════════════════════════════════════════════════════════
   IMAGE ZOOM ON HOVER
   ═══════════════════════════════════════════════════════════ */
.img-zoom-container {
  overflow: hidden;
  border-radius: var(--radius-md);
}

.img-zoom-container img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-zoom-container:hover img {
  transform: scale(1.1);
}

/* ═══════════════════════════════════════════════════════════
   STAGGER ANIMATION DELAYS
   ═══════════════════════════════════════════════════════════ */
.stagger-1 { transition-delay: 0.1s !important; }
.stagger-2 { transition-delay: 0.2s !important; }
.stagger-3 { transition-delay: 0.3s !important; }
.stagger-4 { transition-delay: 0.4s !important; }
.stagger-5 { transition-delay: 0.5s !important; }
.stagger-6 { transition-delay: 0.6s !important; }
.stagger-7 { transition-delay: 0.7s !important; }
.stagger-8 { transition-delay: 0.8s !important; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Disable custom cursor on touch devices */
  .cursor-dot,
  .cursor-circle {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .stat-item {
    padding: 1.5rem 1rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .floating-shape {
    display: none;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .stat-label {
    font-size: 0.85rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .cursor-dot,
  .cursor-circle {
    display: none !important;
  }
}
