/* ==========================================
   SIMISAZ DEL FUEGO - MODERN CLEAN LIGHT THEME (EMERALD & AQUA GLASSMORPHISM)
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@500;600;700;800&family=Outfit:wght@400;600;700;800&display=swap');

:root {
  --bg-primary: #F8FAFC;
  --bg-secondary: #F1F5F9;
  --bg-card: rgba(255, 255, 255, 0.75);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --border-subtle: rgba(226, 232, 240, 0.85);
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --accent-emerald: #059669;
  --accent-emerald-light: #10B981;
  --accent-aqua: #06B6D4;
  --accent-teal: #0D9488;
}

/* Base Reset & Smooth Scroll */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.02em;
}

.font-outfit {
  font-family: 'Outfit', sans-serif;
}

/* ------------------------------------------
   1. SCROLL PROGRESS BAR
------------------------------------------ */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  width: 0%;
  background: linear-gradient(90deg, #059669 0%, #0D9488 50%, #06B6D4 100%);
  z-index: 100;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
  transition: width 0.1s ease-out;
}

/* ------------------------------------------
   2. LIGHT PATTERNS & BACKGROUND EFFECTS
------------------------------------------ */
.bg-noise {
  background-image: radial-gradient(rgba(16, 185, 129, 0.05) 1px, transparent 0);
  background-size: 24px 24px;
}

.bg-dot-grid {
  background-size: 32px 32px;
  background-image: radial-gradient(circle, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
}

/* ------------------------------------------
   3. GLASSMORPHISM & SHADOWS
------------------------------------------ */
.glass-panel {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.05), 0 4px 12px rgba(0, 0, 0, 0.02);
}

.glass-nav {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 4px 25px -4px rgba(15, 23, 42, 0.05) !important;
}

/* Multi-layered Card Shadows */
.glow-card-hover {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.4s ease, 
              box-shadow 0.4s ease;
}

.glow-card-hover:hover {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 20px 40px -15px rgba(16, 185, 129, 0.12),
              0 0 25px -5px rgba(6, 182, 212, 0.1);
  transform: translateY(-5px);
}

/* ------------------------------------------
   4. GRADIENT TEXTS & BUTTONS (EMERALD - AQUA)
------------------------------------------ */
.text-gradient-emerald,
.text-gradient-fire {
  background: linear-gradient(135deg, #047857 0%, #059669 40%, #0D9488 75%, #0284C7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-aqua,
.text-gradient-violet {
  background: linear-gradient(135deg, #0D9488 0%, #06B6D4 50%, #0284C7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #059669 0%, #10B981 50%, #14B8A6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Philosophy Pillar Color Gradients */
.text-gradient-insieme {
  background: linear-gradient(135deg, #047857 0%, #059669 50%, #10B981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-mitsaq {
  background: linear-gradient(135deg, #0D9488 0%, #14B8A6 50%, #06B6D4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-alpaz {
  background: linear-gradient(135deg, #059669 0%, #0D9488 50%, #0284C7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-pill-emerald,
.btn-pill-fire {
  background: linear-gradient(135deg, #059669 0%, #0D9488 50%, #0284C7 100%);
  color: #FFFFFF !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  box-shadow: 0 6px 20px -2px rgba(16, 185, 129, 0.35);
  will-change: transform;
}

.btn-pill-emerald:hover,
.btn-pill-fire:hover {
  box-shadow: 0 10px 25px 2px rgba(16, 185, 129, 0.45), 0 0 20px rgba(6, 182, 212, 0.25);
  transform: translateY(-2px);
}

.btn-pill-outline {
  border: 1px solid rgba(16, 185, 129, 0.3);
  background: rgba(255, 255, 255, 0.7);
  color: #0F172A;
  backdrop-filter: blur(10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, background 0.3s ease;
  will-change: transform;
}

.btn-pill-outline:hover {
  border-color: #059669;
  background: rgba(16, 185, 129, 0.08);
  color: #047857;
  transform: translateY(-2px);
}

/* ------------------------------------------
   5. MICRO-ANIMATIONS & TILT
------------------------------------------ */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(0.8deg); }
}

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

@keyframes pulseGlow {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(1.06); }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-bounce-slow {
  animation: bounceSlow 2s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulseGlow 4s ease-in-out infinite;
}

/* 3D Tilt Card Container */
.tilt-card-wrapper {
  perspective: 1000px;
}

.tilt-card {
  transition: transform 0.2s ease-out, border-color 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
}

/* ------------------------------------------
   6. SCROLL REVEAL & STAGGER
------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.99);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger delay classes */
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }

/* Masking Reveal for Gallery Images */
.reveal-mask {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s ease-out;
}

.reveal-mask.active {
  clip-path: inset(0 0 0 0);
}

/* Gradient Section Divider Reveal */
.divider-reveal {
  opacity: 0;
  transform: scaleX(0);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.divider-reveal.active {
  opacity: 1;
  transform: scaleX(1);
}

/* Gallery Container & Fade Overlay */
#gallery-container {
  transition: all 0.5s ease;
}

#gallery-fade-overlay {
  transition: opacity 0.4s ease;
}

/* ------------------------------------------
   7. FLOATING CARD / WIDGET
------------------------------------------ */
.floating-widget-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(16, 185, 129, 0.2);
  box-shadow: 0 16px 36px -8px rgba(16, 185, 129, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-widget-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 20px 42px -10px rgba(16, 185, 129, 0.18);
}

/* ------------------------------------------
   8. SIDE NAV DOT INDICATOR
------------------------------------------ */
#side-nav-dots {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.15);
  border: 1px solid rgba(15, 23, 42, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.nav-dot:hover {
  background: #059669;
  transform: scale(1.3);
}

.nav-dot.active {
  height: 24px;
  border-radius: 12px;
  background: linear-gradient(180deg, #059669, #06B6D4);
  border-color: transparent;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

/* Tooltip on dot hover */
.nav-dot .dot-tooltip {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  opacity: 0;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.9);
  color: #0F172A;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.nav-dot:hover .dot-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 768px) {
  #side-nav-dots {
    display: none;
  }
}

/* ------------------------------------------
   9. MODAL TRANSITIONS (SMOOTH SCALE-IN)
------------------------------------------ */
@keyframes modalZoomIn {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-enter-animation {
  animation: modalZoomIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ------------------------------------------
   10. ACCESSIBILITY & SCROLLBAR
------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .custom-cursor-dot, .custom-cursor-ring {
    display: none !important;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}

::-webkit-scrollbar-track {
  background: #F1F5F9;
}

::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 5px;
  border: 2px solid #F1F5F9;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #10B981, #06B6D4);
}

/* ------------------------------------------
   11. GALLERY SKELETON SHIMMER (LIGHT THEME WITH EMERALD-AQUA TINT)
------------------------------------------ */
@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.skeleton-shimmer {
  position: relative;
  overflow: hidden;
  background-color: #E2E8F0;
}

.skeleton-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 25%,
    rgba(16, 185, 129, 0.1) 50%,
    rgba(255, 255, 255, 0.6) 75%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shimmer 1.8s infinite;
  pointer-events: none;
  z-index: 1;
}
