/* ========================================
   CUSTOM ANIMATIONS & RESPONSIVE ENHANCEMENTS
   ======================================== */

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* =========================
   ANIMATIONS KEYFRAMES
   ========================= */

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

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

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

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

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

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

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

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 157, 255, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 20px rgba(0, 157, 255, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 157, 255, 0);
  }
}

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

@keyframes shine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-200deg) scale(0);
  }
  to {
    opacity: 1;
    transform: rotate(0) scale(1);
  }
}

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

/* =========================
   SLIDER ANIMATIONS
   ========================= */

.slider_text {
  animation: fadeInUp 1s ease-out;
}

.slider_text h3 {
  animation: fadeInDown 1.2s ease-out;
  animation-delay: 0.2s;
  opacity: 0;
  animation-fill-mode: forwards;
}

.slider_text p {
  animation: fadeInUp 1.2s ease-out;
  animation-delay: 0.4s;
  opacity: 0;
  animation-fill-mode: forwards;
}

/* =========================
   SECTION ANIMATIONS
   ========================= */

.section_title {
  animation: fadeInUp 0.8s ease-out;
}

.section_title span {
  display: inline-block;
  animation: fadeInLeft 0.8s ease-out;
  position: relative;
}

.section_title span::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #C9A961;
  animation: expandWidth 1s ease-out forwards;
  animation-delay: 0.5s;
}

@keyframes expandWidth {
  to {
    width: 100%;
  }
}

.section_title h3 {
  animation: fadeInUp 0.8s ease-out;
  animation-delay: 0.2s;
  opacity: 0;
  animation-fill-mode: forwards;
}

/* =========================
   ABOUT SECTION ANIMATIONS
   ========================= */

.about_info {
  animation: fadeInLeft 1s ease-out;
}

.about_thumb .img_1 {
  animation: fadeInRight 1s ease-out;
  animation-delay: 0.2s;
  opacity: 0;
  animation-fill-mode: forwards;
}

.about_thumb .img_2 {
  animation: fadeInRight 1s ease-out;
  animation-delay: 0.4s;
  opacity: 0;
  animation-fill-mode: forwards;
}

.about_thumb img {
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.about_thumb img:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* =========================
   OFFERS SECTION ANIMATIONS
   ========================= */

.single_offers {
  animation: scaleIn 0.6s ease-out;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.single_offers:nth-child(1) {
  animation-delay: 0.1s;
  opacity: 0;
  animation-fill-mode: forwards;
}

.single_offers:nth-child(2) {
  animation-delay: 0.3s;
  opacity: 0;
  animation-fill-mode: forwards;
}

.single_offers:nth-child(3) {
  animation-delay: 0.5s;
  opacity: 0;
  animation-fill-mode: forwards;
}

.single_offers::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.6s ease;
}

.single_offers:hover::before {
  left: 100%;
}

.single_offers:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 157, 255, 0.2);
}

.single_offers h3 {
  transition: color 0.3s ease;
}

.single_offers:hover h3 {
  color: #C9A961;
}

/* Offers card layout improvements */
.offers_area .single_offers {
  background: #fff;
  border-radius: 18px;
  padding: 24px 24px 28px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.offers_area .single_offers .about_thumb {
  margin: -24px -24px 18px;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
}

.offers_area .single_offers .about_thumb img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.offers_area .single_offers h3 {
  margin-top: 6px;
  margin-bottom: 12px;
  line-height: 1.35;
}

.offers_area .single_offers ul {
  margin-top: 6px;
  margin-bottom: 22px;
  padding-left: 0;
}

.offers_area .single_offers ul li {
  padding-left: 20px;
  line-height: 1.6;
}

.offers_area .single_offers .book_now {
  margin-top: auto;
  align-self: flex-start;
  padding: 12px 26px;
  border-radius: 999px;
}

.book_now {
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.book_now::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #C9A961;
  transition: left 0.4s ease;
  z-index: -1;
}

.book_now:hover::before {
  left: 0;
}

.book_now:hover {
  color: #fff !important;
  transform: scale(1.05);
}

/* =========================
   ROOMS SECTION ANIMATIONS
   ========================= */

.single_rooms {
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease;
}

.single_rooms::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
  opacity: 0.6;
  transition: opacity 0.5s ease;
}

.single_rooms:hover::after {
  opacity: 0.8;
}

.room_heading {
  position: relative;
  z-index: 10;
  transition: transform 0.5s ease;
}

.single_rooms:hover .room_heading {
  transform: translateY(-10px);
}

.room_heading h3 {
  transition: all 0.3s ease;
}

.single_rooms:hover .room_heading h3 {
  color: #C9A961;
  text-shadow: 0 0 20px rgba(0, 157, 255, 0.5);
}

/* =========================
   BUTTON ANIMATIONS
   ========================= */

.boxed-btn, .boxed-btn3, .line-button {
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

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

.boxed-btn:hover::before, .boxed-btn3:hover::before {
  width: 300px;
  height: 300px;
}

.line-button {
  display: inline-block;
  animation: pulse 2s infinite;
}

.line-button:hover {
  animation: none;
  transform: translateX(10px);
}

/* =========================
   VIDEO AREA ANIMATIONS
   ========================= */

.video_area_inner {
  animation: fadeInUp 1s ease-out;
}

.video_btn {
  animation: pulse 2s infinite;
  transition: all 0.3s ease;
  cursor: pointer;
}

.video_btn:hover {
  animation: none;
  transform: scale(1.2);
  box-shadow: 0 0 30px rgba(255, 200, 0, 0.8), 0 0 60px rgba(255, 166, 0, 0.5);
}

/* =========================
   INSTAGRAM SECTION ANIMATIONS
   ========================= */

.single_instagram {
  animation: fadeInUp 0.6s ease-out;
  position: relative;
  overflow: hidden;
}

.single_instagram:nth-child(1) { animation-delay: 0.1s; opacity: 0; animation-fill-mode: forwards; }
.single_instagram:nth-child(2) { animation-delay: 0.2s; opacity: 0; animation-fill-mode: forwards; }
.single_instagram:nth-child(3) { animation-delay: 0.3s; opacity: 0; animation-fill-mode: forwards; }
.single_instagram:nth-child(4) { animation-delay: 0.4s; opacity: 0; animation-fill-mode: forwards; }
.single_instagram:nth-child(5) { animation-delay: 0.5s; opacity: 0; animation-fill-mode: forwards; }

.single_instagram img {
  transition: transform 0.5s ease, filter 0.5s ease;
}

.single_instagram:hover img {
  transform: scale(1.1) rotate(3deg);
  filter: brightness(1.2);
}

.ovrelay {
  transition: all 0.5s ease;
}

.ovrelay a {
  transform: scale(0);
  transition: transform 0.5s ease;
}

.single_instagram:hover .ovrelay a {
  transform: scale(1);
  animation: rotateIn 0.5s ease;
}

/* =========================
   FOOTER ANIMATIONS
   ========================= */

.footer {
  background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
  border-top: 2px solid #C9A961;
}

.footer_widget {
  animation: fadeInUp 0.8s ease-out;
  transition: all 0.3s ease;
  position: relative;
}

.footer_widget:nth-child(1) { animation-delay: 0.1s; opacity: 0; animation-fill-mode: forwards; }
.footer_widget:nth-child(2) { animation-delay: 0.2s; opacity: 0; animation-fill-mode: forwards; }
.footer_widget:nth-child(3) { animation-delay: 0.3s; opacity: 0; animation-fill-mode: forwards; }
.footer_widget:nth-child(4) { animation-delay: 0.4s; opacity: 0; animation-fill-mode: forwards; }

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

.footer_widget .footer_title {
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 30px;
}

.footer_widget .footer_title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #C9A961, #E5B871);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.footer_widget:hover .footer_title::after {
  width: 60px;
}

.footer_widget ul li a {
  position: relative;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer_widget ul li a::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #C9A961;
  transition: width 0.3s ease;
}

.footer_widget ul li a:hover::before {
  width: 100%;
}

.footer_widget ul li a:hover {
  color: #C9A961;
  padding-left: 5px;
}

.newsletter_form {
  position: relative !important;
  animation: slideInUp 0.8s ease-out;
  animation-delay: 0.4s;
  animation-fill-mode: forwards;
  opacity: 0;
}

.newsletter_form input {
  border-radius: 8px 0 0 8px !important;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.newsletter_form input:focus {
  border-color: #C9A961;
  box-shadow: 0 0 15px rgba(201, 169, 97, 0.2);
}

.newsletter_form button {
  border-radius: 0 8px 8px 0 !important;
  transition: all 0.3s ease;
}

.newsletter_form button:hover {
  background: #E5B871;
  transform: translateX(3px);
}

.footer .copy-right_text {
  background: rgba(0, 0, 0, 0.3);
  padding: 30px 0 !important;
  animation: fadeIn 1s ease-out;
  animation-delay: 0.5s;
  animation-fill-mode: forwards;
  opacity: 0;
}

.footer .copy-right_text .copy_right {
  transition: color 0.3s ease;
}

.footer .copy-right_text .copy_right a {
  position: relative;
  transition: all 0.3s ease;
}

.footer .copy-right_text .copy_right a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #C9A961;
  transition: width 0.3s ease;
}

.footer .copy-right_text .copy_right a:hover::after {
  width: 100%;
}

.socail_links ul li a {
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(201, 169, 97, 0.1);
}

.socail_links ul li a:hover {
  background: #C9A961;
  transform: translateY(-5px) rotate(10deg);
  color: #fff;
}

/* =========================
   HEADER ANIMATIONS
   ========================= */

.main-header-area {
  animation: slideInFromBottom 0.8s ease-out;
}

.main-menu ul li {
  animation: fadeInDown 0.6s ease-out;
}

.main-menu ul li:nth-child(1) { animation-delay: 0.1s; opacity: 0; animation-fill-mode: forwards; }
.main-menu ul li:nth-child(2) { animation-delay: 0.2s; opacity: 0; animation-fill-mode: forwards; }
.main-menu ul li:nth-child(3) { animation-delay: 0.3s; opacity: 0; animation-fill-mode: forwards; }
.main-menu ul li:nth-child(4) { animation-delay: 0.4s; opacity: 0; animation-fill-mode: forwards; }
.main-menu ul li:nth-child(5) { animation-delay: 0.5s; opacity: 0; animation-fill-mode: forwards; }
.main-menu ul li:nth-child(6) { animation-delay: 0.6s; opacity: 0; animation-fill-mode: forwards; }

.logo-img {
  animation: rotateIn 1s ease-out;
}

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

.scroll-animate {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* =========================
   LOADING ANIMATIONS
   ========================= */

.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-spinner {
  width: 60px;
  height: 60px;
  border: 5px solid rgba(255, 255, 255, 0.1);
  border-top-color: #C9A961;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* =========================
   RESPONSIVE ENHANCEMENTS
   ========================= */

/* Tablets and below */
@media (max-width: 991px) {
  .section_title h3 {
    font-size: 32px !important;
    line-height: 42px !important;
  }
  
  .slider_text h3 {
    font-size: 50px !important;
  }
  
  .single_offers {
    margin-bottom: 30px;
  }
  
  .about_thumb {
    justify-content: center !important;
    margin-top: 30px;
  }
}

/* Mobile devices */
@media (max-width: 767px) {
  .section_title h3 {
    font-size: 26px !important;
    line-height: 36px !important;
  }
  
  .slider_text h3 {
    font-size: 35px !important;
    letter-spacing: 1px !important;
  }
  
  .slider_text p {
    font-size: 16px !important;
  }
  
  .about_info {
    margin-bottom: 30px;
  }
  
  .single_offers {
    margin-bottom: 30px;
  }
  
  .features_room .single_rooms {
    width: 100% !important;
    margin-bottom: 20px;
  }
  
  .instragram_area .single_instagram {
    width: 50% !important;
  }
  
  .video_area {
    padding: 100px 20px !important;
  }
  
  .forQuery .Query_border {
    padding: 30px 20px !important;
    text-align: center;
  }
  
  .forQuery .Query_border p {
    font-size: 20px !important;
    margin-bottom: 15px;
  }
  
  .phone_num {
    text-align: center !important;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .slider_text h3 {
    font-size: 28px !important;
  }
  
  .slider_text p {
    font-size: 14px !important;
  }
  
  .section_title h3 {
    font-size: 22px !important;
    line-height: 32px !important;
  }
  
  .single_offers h3 {
    font-size: 18px !important;
  }
  
  .instragram_area .single_instagram {
    width: 100% !important;
  }
}

/* =========================
   HOVER EFFECTS
   ========================= */

.about_thumb .img_1,
.about_thumb .img_2,
.about_thumb2 .img_1,
.about_thumb2 .img_2 {
  position: relative;
  overflow: hidden;
}

.about_thumb .img_1::after,
.about_thumb .img_2::after,
.about_thumb2 .img_1::after,
.about_thumb2 .img_2::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.about_thumb .img_1:hover::after,
.about_thumb .img_2:hover::after,
.about_thumb2 .img_1:hover::after,
.about_thumb2 .img_2:hover::after {
  left: 100%;
}

/* =========================
   SMOOTH TRANSITIONS
   ========================= */

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

img {
  transition: transform 0.5s ease, filter 0.5s ease;
}

a {
  transition: all 0.3s ease;
}

/* =========================
   PARALLAX EFFECT
   ========================= */

.video_area {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

@media (max-width: 768px) {
  .video_area {
    background-attachment: scroll;
  }
}

/* =========================
   CUSTOM SCROLLBAR
   ========================= */

::-webkit-scrollbar {
  width: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: #C9A961;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0080cc;
}

/* =========================
   FORM POPUP ANIMATIONS
   ========================= */

.popup_box {
  animation: scaleIn 0.5s ease-out;
}

.popup_box input,
.popup_box select {
  transition: all 0.3s ease;
}

.popup_box input:focus,
.popup_box select:focus {
  transform: scale(1.02);
  box-shadow: 0 5px 15px rgba(0, 157, 255, 0.3);
}

/* =========================
   SOCIAL ICONS ANIMATIONS
   ========================= */

.socail_links ul li a {
  display: inline-block;
  transition: all 0.3s ease;
}

.socail_links ul li a:hover {
  transform: translateY(-5px) scale(1.2);
  color: #C9A961 !important;
}

/* =========================
   ADDITIONAL RESPONSIVE FIXES
   ========================= */

@media (max-width: 1200px) {
  .container {
    max-width: 100%;
    padding: 0 30px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  .section_title {
    margin-bottom: 40px !important;
  }
  
  .mb-100 {
    margin-bottom: 50px !important;
  }
  
  .about_area {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }
  
  .offers_area {
    padding-bottom: 60px !important;
  }
  
  .offers_area.padding_top {
    padding-top: 60px !important;
  }
}

/* =========================
   UTILITY ANIMATIONS
   ========================= */

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

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

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

.scale-in {
  animation: scaleIn 0.8s ease-out;
}

.bounce-in {
  animation: bounce 1s ease-out;
}

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

.hover-zoom {
  overflow: hidden;
}

.hover-zoom img {
  transition: transform 0.5s ease;
}

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

/* =========================
   TEXT ANIMATIONS
   ========================= */

.typing-effect {
  overflow: hidden;
  border-right: 2px solid #C9A961;
  white-space: nowrap;
  animation: typing 3s steps(40, end), blink 0.75s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink {
  from, to {
    border-color: transparent;
  }
  50% {
    border-color: #C9A961;
  }
}
