/* Custom CSS for Arunesha Palace - Luxury Stays */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --color-purple: #3D0066;
    --color-purple-dark: #2A0047;
    --color-purple-light: #52008A;
    --color-gold: #F5C542;
    --color-gold-hover: #E5B42F;
    --color-dark: #1E1E1E;
    --color-bg: #F8F6FB;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-dark);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-display {
    font-family: 'Playfair Display', serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F1F1F1;
}
::-webkit-scrollbar-thumb {
    background: var(--color-purple);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-purple-dark);
}

/* Glassmorphism Styles */
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 40px rgba(61, 0, 102, 0.08);
}

/* Glass Navbar */
.glass-nav {
    background: rgba(61, 0, 102, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Scroll Active Navbar */
.nav-scrolled {
    background: linear-gradient(135deg, var(--color-purple-dark) 0%, var(--color-purple) 100%) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(245, 197, 66, 0.15);
}

/* Golden Underline Hover Animation for Nav Links */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -6px;
    left: 0;
    background-color: var(--color-gold);
    transform-origin: bottom right;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.nav-link:hover {
    color: var(--color-gold);
}
.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Custom Gradients */
.bg-purple-gradient {
    background: linear-gradient(135deg, var(--color-purple-dark) 0%, var(--color-purple) 100%);
}

.hero-overlay {
    background: linear-gradient(to bottom, rgba(42, 0, 71, 0.4) 0%, rgba(61, 0, 102, 0.85) 100%);
}

.special-offer-gradient {
    background: linear-gradient(135deg, #4A0E6F 0%, #290044 100%);
}

/* Interactive Image Hover Zoom */
.zoom-container {
    overflow: hidden;
}
.zoom-img {
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.zoom-container:hover .zoom-img {
    transform: scale(1.08);
}

/* Fade-in & Reveal Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

/* Micro interactions and card hover lift */
.hover-lift {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 40px rgba(61, 0, 102, 0.12);
}

/* Testimonial slider transitions */
.review-slide {
    display: none;
    transition: opacity 0.5s ease-in-out;
}
.review-slide.active {
    display: block;
    opacity: 1;
}

/* Custom active classes */
.active-dot {
    background-color: var(--color-purple) !important;
    width: 24px !important;
}

/* Dropdown styling */
.dropdown-menu {
    transform: translateY(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.dropdown-menu.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* --- Phase 2 Additions --- */

/* Branded Preloader */
#preloader {
    z-index: 99999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}
@keyframes spin-slow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.animate-spin-slow {
    animation: spin-slow 10s linear infinite;
}
.shimmer-text {
    background: linear-gradient(90deg, #ffffff 0%, #F5C542 50%, #ffffff 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}
@keyframes shimmer {
    to { background-position: 200% center; }
}

/* Modals (Booking Inquiry & Lightbox) */
.modal-overlay {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    transform: scale(0.95) translateY(15px);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

/* Image Lightbox specific overrides */
.lightbox-img {
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.modal-overlay.active .lightbox-img {
    transform: scale(1);
}

/* Inline Input Validation & Error UX */
.input-error {
    border-color: rgba(239, 68, 68, 0.8) !important;
    background-color: rgba(239, 68, 68, 0.03) !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.1) !important;
}
.error-msg {
    color: #EF4444;
    font-size: 11px;
    font-weight: 500;
    margin-top: 4px;
    display: block;
    animation: slideDownError 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
@keyframes slideDownError {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.luxury-input {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.luxury-input:focus {
    outline: none;
    border-color: var(--color-gold) !important;
    box-shadow: 0 0 8px rgba(245, 197, 66, 0.25) !important;
}

/* Touch Sliders Momentum / Custom Drag Cursor */
.carousel-drag {
    cursor: grab;
}
.carousel-drag:active {
    cursor: grabbing;
}

/* Micro Interactions & Glows */
.icon-glow:hover {
    color: var(--color-gold) !important;
    filter: drop-shadow(0 0 6px rgba(245, 197, 66, 0.6));
}
.ripple-btn {
    position: relative;
    overflow: hidden;
}
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    background-color: rgba(255, 255, 255, 0.35);
    pointer-events: none;
}
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Luxury Date Pickers Focus styling */
.luxury-date-wrapper {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.luxury-date-wrapper:hover {
    border-color: rgba(61, 0, 102, 0.35) !important;
}
.luxury-date-wrapper:focus-within {
    border-color: var(--color-gold) !important;
    box-shadow: 0 0 10px rgba(245, 197, 66, 0.3) !important;
}
#extracharge {
    position: relative;
    cursor: pointer;
}

#extracharge::after {
    content: "                         Extra guests will be charged ₹500 per person.";
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    
    background-color: #333;
    color: #fff;
    padding: 2px 12px;
    border-radius: 6px;
    white-space: nowrap;
    
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    
    font-size: 14px;
    z-index: 1000;
}

#extracharge:hover::after {
    opacity: 1;
    visibility: visible;
}

