/**
 * Enhanced Design Improvements
 * Inspired by Rocky Resort's elegant design patterns
 */

/* ========================================
   Enhanced Animations & Transitions
======================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

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

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

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

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

/* Scroll Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
  opacity: 1;
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-down {
  animation: fadeInDown 0.8s ease-out forwards;
}

.slide-in-left {
  animation: slideInLeft 0.8s ease-out forwards;
}

.slide-in-right {
  animation: slideInRight 0.8s ease-out forwards;
}

.zoom-in {
  animation: zoomIn 0.8s ease-out forwards;
}

/* ========================================
   Enhanced Hero Section
======================================== */

.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0.4) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

.hero h1 {
  text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.6);
  letter-spacing: 3px;
  line-height: 1.3;
}

.hero h1 span {
  display: inline-block;
  animation: fadeInUp 1.2s ease-out;
  animation-delay: 0.3s;
  animation-fill-mode: both;
}

.hero p {
  text-shadow: 1px 2px 8px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out;
  animation-delay: 0.5s;
  animation-fill-mode: both;
}

.hero .btn {
  animation: fadeInUp 1s ease-out;
  animation-delay: 0.7s;
  animation-fill-mode: both;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* ========================================
   Enhanced Image Hover Effects
======================================== */

.img-hover-zoom {
  overflow: hidden;
  position: relative;
}

.img-hover-zoom img {
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center center;
}

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

.img-hover-overlay {
  position: relative;
  overflow: hidden;
}

.img-hover-overlay::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.img-hover-overlay:hover::after {
  opacity: 1;
}

/* ========================================
   Enhanced Card Styles
======================================== */

.card-modern {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-modern:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--accent-color);
}

.card-modern .card-image {
  overflow: hidden;
  position: relative;
}

.card-modern .card-image img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ========================================
   Enhanced Grid Layouts
======================================== */

.grid-enhanced {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-enhanced > * {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

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

/* ========================================
   Enhanced Button Styles
======================================== */

.btn-enhanced {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-enhanced::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}

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

/* ========================================
   Enhanced Navigation
======================================== */

.main-nav a {
  position: relative;
  overflow: hidden;
}

.main-nav a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: left 0.4s ease;
  z-index: -1;
}

.main-nav a:hover::before {
  left: 0;
}

/* ========================================
   Enhanced Section Headings
======================================== */

.section-title-enhanced {
  position: relative;
  padding-bottom: 20px;
  margin-bottom: 40px;
}

.section-title-enhanced::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: 2px;
}

.section-title-enhanced.left-aligned::after {
  left: 0;
  transform: none;
}

/* ========================================
   Enhanced Gallery
======================================== */

.gallery-grid-enhanced {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.gallery-item-enhanced {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item-enhanced:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item-enhanced img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item-enhanced:hover img {
  transform: scale(1.1);
  filter: brightness(0.9);
}

.gallery-item-enhanced::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item-enhanced:hover::after {
  opacity: 1;
}

.gallery-item-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  color: white;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.gallery-item-enhanced:hover .gallery-item-caption {
  transform: translateY(0);
}

/* ========================================
   Enhanced Room/Accommodation Cards
======================================== */

.room-card-enhanced {
  position: relative;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.room-card-enhanced:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.room-card-enhanced .room-image {
  position: relative;
  overflow: hidden;
  height: 300px;
}

.room-card-enhanced .room-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.room-card-enhanced:hover .room-image img {
  transform: scale(1.12);
}

.room-card-enhanced .room-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--accent-color);
  color: white;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 2;
  animation: pulse 2s infinite;
}

.room-card-enhanced .room-content {
  padding: 30px;
}

.room-card-enhanced .room-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--heading-color);
  transition: color 0.3s ease;
}

.room-card-enhanced:hover .room-title {
  color: var(--primary-color);
}

.room-card-enhanced .room-features {
  display: flex;
  gap: 15px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.room-card-enhanced .room-feature {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: #666;
}

.room-card-enhanced .room-feature i {
  color: var(--accent-color);
  font-size: 16px;
}

/* ========================================
   Enhanced Dining/Restaurant Cards
======================================== */

.dining-card-enhanced {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 40px;
}

.dining-card-enhanced.featured {
  grid-template-columns: 1fr 1fr;
  margin-bottom: 50px;
}

.dining-card-enhanced.featured .restaurant-image {
  order: 2;
}

.dining-card-enhanced:nth-child(even):not(.featured) {
  grid-template-columns: 1fr 1fr;
}

.dining-card-enhanced:nth-child(even):not(.featured) .restaurant-image {
  order: 2;
}

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

.dining-card-enhanced .dining-image {
  position: relative;
  overflow: hidden;
  min-height: 400px;
}

.dining-card-enhanced .dining-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.dining-card-enhanced:hover .dining-image img {
  transform: scale(1.1);
}

.dining-card-enhanced .dining-content {
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dining-card-enhanced .dining-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--heading-color);
}

.dining-card-enhanced .dining-subtitle {
  font-size: 16px;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  font-weight: 600;
}

@media (max-width: 968px) {
  .dining-card-enhanced {
    grid-template-columns: 1fr;
  }

  .dining-card-enhanced:nth-child(even) .dining-image {
    order: 1;
  }

  .dining-card-enhanced .dining-content {
    padding: 30px;
  }

  .dining-card-enhanced .dining-image {
    min-height: 300px;
  }
}

/* ========================================
   Enhanced Parallax Effect
======================================== */

.parallax-section {
  position: relative;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 500px;
}

.parallax-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.parallax-content {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
  padding: 100px 20px;
}

/* ========================================
   Enhanced Facility Icons
======================================== */

.facility-icon-enhanced {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: white;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.facility-icon-enhanced:hover {
  transform: translateY(-10px) rotate(360deg);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* ========================================
   Enhanced Loading States
======================================== */

.skeleton-loader {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 8px;
}

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

/* ========================================
   Enhanced Smooth Scrolling
======================================== */

html {
  scroll-behavior: smooth;
}

/* ========================================
   Enhanced Focus States for Accessibility
======================================== */

*:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
}

/* ========================================
   Responsive Enhancements
======================================== */

@media (max-width: 768px) {
  .grid-enhanced {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gallery-grid-enhanced {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }

  .room-card-enhanced .room-content {
    padding: 20px;
  }

  .parallax-section {
    background-attachment: scroll;
    min-height: 400px;
  }

  .parallax-content {
    padding: 60px 20px;
  }
}

/* ========================================
   Print Styles
======================================== */

@media print {
  .animate-on-scroll,
  .fade-in-up,
  .fade-in-down,
  .slide-in-left,
  .slide-in-right,
  .zoom-in {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ========================================
   Enhanced Featured Room Card
   ======================================== */

.room-card-enhanced.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 450px;
}

.room-card-enhanced.featured .room-image {
  height: 100%;
}

.room-card-enhanced.featured .room-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 50px;
}

@media (max-width: 1200px) {
  .room-card-enhanced.featured {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
  }

  .room-card-enhanced.featured .room-image {
    height: 280px;
  }

  .room-card-enhanced.featured .room-content {
    padding: 35px;
  }
}
