/* ===== MODERN ANIMATIONS & EFFECTS ===== */

html {
  scroll-behavior: smooth;
}

* {
  -webkit-font-smoothing: antialiased;
}

/* ===== KEYFRAME ANIMATIONS ===== */

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

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

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

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

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

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

/* ===== SCROLL ANIMATIONS ===== */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.grid-modern > * {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

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

/* ===== CARD EFFECTS ===== */

.card-modern {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-modern:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* ===== IMAGE EFFECTS ===== */

.card-modern img, .gallery-item img, .room-card img {
  transition: transform 0.5s ease;
}

.card-modern:hover img, .gallery-item:hover img, .room-card:hover img {
  transform: scale(1.08);
}

/* ===== BUTTON EFFECTS ===== */

.btn-modern, .btn-primary-modern, .btn-secondary-modern, .btn-outline {
  transition: all 0.3s ease;
}

.btn-modern:hover, .btn-primary-modern:hover, .btn-secondary-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.btn-modern:active, .btn-primary-modern:active, .btn-secondary-modern:active {
  transform: translateY(0);
}

/* ===== HEADER EFFECTS ===== */

.header-modern {
  transition: all 0.3s ease;
}

.header-modern.scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* ===== HERO EFFECTS ===== */

.hero-content > * {
  animation: fadeInUp 0.8s ease backwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.2s; }
.hero-content > *:nth-child(2) { animation-delay: 0.4s; }
.hero-content > *:nth-child(3) { animation-delay: 0.6s; }

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

.floating-element {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
}

.floating-element:nth-child(1) {
  width: 100px;
  height: 100px;
  top: 20%;
  left: 10%;
}

.floating-element:nth-child(2) {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.floating-element:nth-child(3) {
  width: 80px;
  height: 80px;
  bottom: 20%;
  left: 50%;
  animation-delay: 4s;
}

/* ===== GALLERY EFFECTS ===== */

.gallery-item {
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

/* ===== ROOM CARD EFFECTS ===== */

.room-card {
  transition: all 0.3s ease;
}

.room-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* ===== EVENT CARD EFFECTS ===== */

.event-card {
  transition: all 0.3s ease;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

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

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.loader {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #2c5f2d;
  border-radius: 50%;
  animation: rotate 1s linear infinite;
}

/* ===== WHATSAPP BUTTON ===== */

.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 30px;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
  color: white;
  text-decoration: none;
}

/* ===== SCROLL INDICATOR ===== */

.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  z-index: 9999;
  transition: width 0.1s ease;
}









/* ===== RESPONSIVE OPTIMIZATIONS ===== */

@media (max-width: 1024px) {
  #events .container-modern > div:last-child {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .animate-on-scroll {
    transform: translateY(20px);
  }
  
  .card-modern:hover {
    transform: translateY(-4px);
  }
  
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 24px;
    bottom: 20px;
    right: 20px;
  }
  
  .grid-modern > * {
    animation-delay: 0s !important;
  }
  
  .hero-content > * {
    animation-delay: 0.1s !important;
  }
  
  .scroll-to-top {
    bottom: 80px !important;
    right: 20px !important;
    width: 45px !important;
    height: 45px !important;
  }
  
  #events .container-modern > div:last-child {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--space-md) !important;
  }
}

@media (max-width: 480px) {
  #events .container-modern > div:last-child {
    grid-template-columns: 1fr !important;
  }
}



/* ===== ACCESSIBILITY ===== */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* ===== FOCUS STATES ===== */

.btn-modern:focus, .btn-primary-modern:focus, .btn-secondary-modern:focus,
.nav-link:focus, .scroll-to-top:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}






