/* Custom styles for Romar Place 204 */

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

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

::-webkit-scrollbar-track {
    background: #050d1a;
}

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

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

/* Scroll animation for scroll indicator */
@keyframes scrollDown {
    0% {
        top: -16px;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

.animate-scrollDown {
    animation: scrollDown 1.5s ease-in-out infinite;
}

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

/* Fade-in animation for sections */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered fade-in for grid items */
.fade-in-stagger {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-stagger.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile menu animations */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Gold shimmer effect for hero text */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.text-gold-shimmer {
    background: linear-gradient(90deg, #c9a84c 0%, #e8d5a0 50%, #c9a84c 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

/* Image hover overlay */
.group:hover .img-overlay {
    opacity: 1;
}

.img-overlay {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #0f2236 inset !important;
    -webkit-text-fill-color: #fff !important;
}

/* Floating particles (decorative) */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Responsive typography adjustments */
@media (max-width: 640px) {
    .font-serif {
        line-height: 1.1;
    }
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #c9a84c;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    nav, #contact, footer {
        display: none;
    }
}
