/*
Theme Name: Vistara Homes
Theme URI: https://vistarahomes.com/
Author: Vistara Homes
Author URI: https://vistarahomes.com/
Description: A luxury township and interior solutions theme for Vistara Homes.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vistara-homes
*/

/* Luxury Custom Styles for Vistara Homes */

:root {
  --gold: #C5A059;
  --dark: #000000;
  --dark-soft: #111111;
  --dark-card: #1A1A1A;
}

/* Base Overrides */
::selection {
  background-color: var(--gold);
  color: var(--dark);
}

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

::-webkit-scrollbar-track {
  background: var(--dark);
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Full screen menu overlay transition */
#overlay-menu.active {
  opacity: 1;
  pointer-events: auto;
}

/* Menu Toggle Animation */
#menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

#menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

#menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Link Stagger in Overlay */
#overlay-menu.active .menu-link {
  animation: slideIn 0.8s forwards ease-out;
}

#overlay-menu .menu-link {
  opacity: 0;
  transform: translateY(20px);
}

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

.menu-link:nth-child(1) { animation-delay: 0.3s; }
.menu-link:nth-child(2) { animation-delay: 0.4s; }
.menu-link:nth-child(3) { animation-delay: 0.5s; }
.menu-link:nth-child(4) { animation-delay: 0.6s; }

/* Custom Underline Effect */
.menu-link::after {
  content: attr(data-text);
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  text-align: center;
  color: var(--gold);
  opacity: 0;
  transform: perspective(100px) rotateX(-90deg);
  transition: transform 0.5s, opacity 0.5s;
}

.menu-link:hover::after {
  opacity: 1;
  transform: perspective(100px) rotateX(0deg);
}

/* Mega Menu Dropdown */
.group:hover .absolute {
    pointer-events: auto;
}

/* Custom Dropdown Animation */
.group .absolute {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Dynamic Navbar Background */
#navbar.scrolled {
  background: rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}

/* Hero Zoom Effect */
#hero-img {
    animation: slowZoom 30s infinite alternate ease-in-out;
}

@keyframes slowZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.15); }
}

/* Staggered Reveal Animation & Transition Delays */
.delay-100 { transition-delay: 0.1s; animation-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; animation-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; animation-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; animation-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; animation-delay: 0.5s; }
.delay-600 { transition-delay: 0.6s; animation-delay: 0.6s; }
/* Animation Delays */
.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }
.animate-delay-500 { animation-delay: 0.5s; }
.animate-delay-600 { animation-delay: 0.6s; }
.animate-delay-700 { animation-delay: 0.7s; }
.animate-delay-800 { animation-delay: 0.8s; }
.animate-delay-900 { animation-delay: 0.9s; }
.animate-delay-1000 { animation-delay: 1s; }

/* Hero Carousel Custom Styles */
.carousel-slide {
  transition: opacity 2s ease-in-out, transform 8s ease-in-out;
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1.1);
  pointer-events: auto;
  z-index: 1;
}

.carousel-slide:not(.active) {
  opacity: 0;
  transform: scale(1.05);
  z-index: 0;
}

.carousel-dot.active .bg-gold {
  transform: translateY(0) !important;
}

.carousel-dot:hover .bg-gold {
  transform: translateY(0);
  opacity: 0.5;
}

.carousel-dot.active {
  background-color: rgba(197, 160, 89, 0.4);
}
