/* ========================================
   Peggy Ann - Beach House
   Premium Dark Luxury Styles
   ======================================== */

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a070f;
}
::-webkit-scrollbar-thumb {
    background: #4a2435;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #763a52;
}

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

/* Base Styles */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Floating Card Animations */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    animation-delay: -2s;
}

.floating-card:nth-child(3) {
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* Reveal Animations (Progressive Enhancement) */
.reveal {
    opacity: 1;
    transform: none;
}

@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: none;
    }
    
    /* Staggered delays */
    .reveal.delay-100 { transition-delay: 0.1s; }
    .reveal.delay-200 { transition-delay: 0.2s; }
    .reveal.delay-300 { transition-delay: 0.3s; }
    .reveal.delay-400 { transition-delay: 0.4s; }
}

/* Navbar Transition */
.nav-scrolled {
    background: rgba(10, 7, 15, 0.92) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(138, 74, 98, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Gold Accent Line Animation */
.gold-line {
    position: relative;
}
.gold-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #fbbf24, transparent);
    transition: width 0.4s ease;
}
.gold-line:hover::after {
    width: 100%;
}

/* Glass Effect */
.glass {
    background: rgba(26, 20, 32, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(138, 74, 98, 0.2);
}

/* Button Hover Glow */
.btn-glow:hover {
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.3);
}

/* Image Hover Overlay */
.img-overlay {
    position: relative;
    overflow: hidden;
}
.img-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 7, 15, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.img-overlay:hover::after {
    opacity: 1;
}

/* Selection Color */
::selection {
    background: rgba(251, 191, 36, 0.3);
    color: #f5f0f7;
}

/* Focus Styles */
:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* Select Dropdown */
select option {
    background: #1a1420;
    color: #e8dce8;
}
