/* Custom styles for Dragonfly Villa */

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

/* Scroll indicator animation */
@keyframes scrollIndicator {
    0% { transform: translateY(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(400%); opacity: 0; }
}

.animate-scroll-indicator {
    animation: scrollIndicator 1.5s ease-in-out infinite;
}

/* Reveal animations - only for below-fold content */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

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

    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* Stat card float animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.stat-card:nth-child(1) {
    animation: float 4s ease-in-out infinite;
}

.stat-card:nth-child(2) {
    animation: float 4s ease-in-out infinite 0.5s;
}

.stat-card:nth-child(3) {
    animation: float 4s ease-in-out infinite 1s;
}

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

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #c9a84c;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #f0c75e;
}

/* Date input styling */
.date-input::-webkit-calendar-picker-indicator {
    filter: invert(0.7) sepia(1) saturate(3) hue-rotate(10deg);
    cursor: pointer;
}

/* Mobile menu transitions */
.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile link transitions */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Gold gradient text utility */
.text-gradient-gold {
    background: linear-gradient(135deg, #f0c75e 0%, #c9a84c 50%, #a8893e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Coral gradient text utility */
.text-gradient-coral {
    background: linear-gradient(135deg, #ff7a6a 0%, #e85d4a 50%, #d14535 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass morphism card */
.glass-card {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(201, 168, 76, 0.15);
}

/* Hover glow effect */
.glow-hover:hover {
    box-shadow: 0 0 40px rgba(201, 168, 76, 0.15);
}

/* Image hover zoom */
.img-zoom {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Selection color */
::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #f0c75e;
}
