/*
 * Swaraj - Haware Bhagwati Dombivli East
 * Custom Styles
 * Version: 1.0.0
 */

/* ========================================
   CSS Variables
   ======================================== */
:root {
    --saffron: #FF9933;
    --saffron-dark: #E67300;
    --deep-orange: #FF6B35;
    --royal-blue: #1E3A8A;
    --gold: #D4AF37;
    --gold-light: #F4E4A6;
    --dark-gray: #1F2937;
    --maratha-brown: #8B4513;
}

/* ========================================
   Base Styles
   ======================================== */
html {
    scroll-behavior: smooth;
}

body, html {
    overflow-x: hidden;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--saffron), var(--deep-orange));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--saffron-dark);
}

/* Selection */
::selection {
    background: var(--saffron);
    color: white;
}

/* ========================================
   Maratha Patterns
   ======================================== */
.maratha-pattern {
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255, 153, 51, 0.03) 10px,
            rgba(255, 153, 51, 0.03) 20px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 10px,
            rgba(212, 175, 55, 0.03) 10px,
            rgba(212, 175, 55, 0.03) 20px
        );
}

.maratha-pattern-dark {
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.02) 10px,
            rgba(255, 255, 255, 0.02) 20px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 10px,
            rgba(212, 175, 55, 0.02) 10px,
            rgba(212, 175, 55, 0.02) 20px
        );
}

/* Decorative Border Pattern */
.border-maratha {
    border-image: repeating-linear-gradient(
        90deg,
        var(--saffron) 0px,
        var(--saffron) 10px,
        var(--gold) 10px,
        var(--gold) 20px
    ) 1;
}

/* ========================================
   Header Styles
   ======================================== */
#header {
    transition: all 0.3s ease;
}

#header.scrolled {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--saffron), var(--deep-orange));
    transition: width 0.3s ease;
}

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

/* ========================================
   Hero Section
   ======================================== */
.countdown-box {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ========================================
   Buttons
   ======================================== */
.cta-primary {
    position: relative;
    overflow: hidden;
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.cta-primary:hover::before {
    left: 100%;
}

.cta-secondary {
    position: relative;
    overflow: hidden;
}

.cta-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

/* .cta-secondary:hover::before {
    width: 300%;
    height: 300%;
} */

.cta-secondary span,
.cta-secondary i {
    position: relative;
    z-index: 11;
}

/* ========================================
   Cards
   ======================================== */
.benefit-card {
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--saffron), var(--deep-orange));
    transition: height 0.3s ease;
}

.benefit-card:hover::before {
    height: 100%;
}

.pricing-card {
    position: relative;
    overflow: hidden;
}

.pricing-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle,
        rgba(255, 153, 51, 0.1) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
}

.pricing-card:hover::after {
    opacity: 1;
}

.amenity-card {
    position: relative;
}

.amenity-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--saffron), var(--deep-orange));
    transition: width 0.3s ease;
}

.amenity-card:hover::after {
    width: 80%;
}

/* ========================================
   Gallery
   ======================================== */
.gallery-item {
    position: relative;
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 3px solid transparent;
    border-radius: inherit;
    transition: border-color 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.gallery-item:hover::before {
    border-color: var(--saffron);
}

/* ========================================
   WhatsApp Button
   ======================================== */
.whatsapp-btn {
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
}

/* ========================================
   Modal
   ======================================== */
#enquiryModal {
    transition: opacity 0.3s ease;
}

.animate-modal {
    animation: modalSlideIn 0.3s ease forwards;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Form Input Focus Animation */
#enquiryForm input:focus,
#enquiryForm select:focus,
#enquiryForm textarea:focus {
    box-shadow: 0 0 0 4px rgba(255, 153, 51, 0.1);
}

/* ========================================
   Lightbox
   ======================================== */
#lightbox {
    opacity: 0;
    transition: opacity 0.3s ease;
}

#lightbox.show {
    opacity: 1;
}

#lightboxImage {
    animation: lightboxZoom 0.3s ease forwards;
}

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

/* ========================================
   Toast Notification
   ======================================== */
#toast {
    animation: toastSlideUp 0.3s ease forwards;
}

@keyframes toastSlideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

#toast.hide {
    animation: toastSlideDown 0.3s ease forwards;
}

@keyframes toastSlideDown {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

/* ========================================
   Loading Animation
   ======================================== */
.loader-content p {
    animation: fadeInUp 0.5s ease forwards;
}

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

/* ========================================
   AOS Custom Animations
   ======================================== */
[data-aos="zoom-in"] {
    transform: scale(0.9);
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
    opacity: 1;
}

/* ========================================
   Responsive Styles
   ======================================== */
@media (max-width: 768px) {
    .countdown-box {
        min-width: 60px !important;
        padding: 0.75rem !important;
    }

    .countdown-box span:first-child {
        font-size: 1.5rem !important;
    }

    .countdown-box span:last-child {
        font-size: 0.65rem !important;
    }

    #enquiryModal > div {
        /* margin: 1rem; */
        max-height: calc(100vh - 2rem);
    }

    .whatsapp-btn {
        width: 56px;
        height: 56px;
        bottom: 1rem;
        right: 1rem;
    }

    .whatsapp-btn i {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    #header {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .benefit-card,
    .amenity-card {
        padding: 1rem;
    }

    .pricing-card {
        padding: 1.5rem;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .whatsapp-btn,
    #enquiryModal,
    #minimizedFormBtn,
    .loader {
        display: none !important;
    }

    #header {
        position: relative;
    }

    section {
        break-inside: avoid;
    }
}

/* ========================================
   Accessibility
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus States for Accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--saffron);
    outline-offset: 2px;
}

/* Skip Link for Screen Readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--saffron);
    color: white;
    padding: 8px 16px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* ========================================
   Utility Classes
   ======================================== */
.text-gradient-saffron {
    background: linear-gradient(90deg, var(--saffron), var(--deep-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-saffron {
    background: linear-gradient(135deg, var(--saffron), var(--deep-orange));
}

.shadow-saffron {
    box-shadow: 0 10px 40px rgba(255, 153, 51, 0.3);
}

/* Shimmer Effect */
.shimmer {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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