/* ========================================
   Renee Garcia Real Estate — Custom Styles
   Premium Dark Luxury Theme
   ======================================== */

/* Base Reset & Smooth Scrolling */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Selection Color */
::selection {
    background-color: rgba(197, 160, 89, 0.3);
    color: #ffffff;
}

/* ========================================
   Scroll Reveal Animations
   Progressive enhancement — content is
   visible by default, animated via JS.
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Staggered delays for grid items */
    .scroll-reveal:nth-child(1) { transition-delay: 0.1s; }
    .scroll-reveal:nth-child(2) { transition-delay: 0.2s; }
    .scroll-reveal:nth-child(3) { transition-delay: 0.3s; }
    .scroll-reveal:nth-child(4) { transition-delay: 0.4s; }
    .scroll-reveal:nth-child(5) { transition-delay: 0.5s; }
    .scroll-reveal:nth-child(6) { transition-delay: 0.6s; }
}

/* ========================================
   Scroll Indicator Animation
   ======================================== */
@keyframes scrollIndicator {
    0% {
        top: 0;
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

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

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

::-webkit-scrollbar-track {
    background: #0A1628;
}

::-webkit-scrollbar-thumb {
    background: rgba(197, 160, 89, 0.4);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(197, 160, 89, 0.6);
}

/* ========================================
   Navbar Glass Effect
   ======================================== */
#navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(197, 160, 89, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ========================================
   Select Dropdown Styling
   ======================================== */
select option {
    background-color: #0F1F3D;
    color: #ffffff;
    padding: 10px;
}

/* ========================================
   Form Input Focus States
   ======================================== */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 1px rgba(197, 160, 89, 0.3);
}

/* ========================================
   Image Loading Placeholder
   ======================================== */
img {
    background-color: #162A4A;
}

/* ========================================
   Mobile Menu Transition
   ======================================== */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

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

/* ========================================
   Gold Gradient Text Utility
   ======================================== */
.text-gold-gradient {
    background: linear-gradient(135deg, #C5A059 0%, #E2CA7B 50%, #C5A059 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Hover Card Lift Effect
   ======================================== */
.group:hover .group-hover\:lift {
    transform: translateY(-4px);
}

/* ========================================
   Reduced Motion
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .animate-scroll-indicator {
        animation: none;
    }
}
