/* === CUSTOM STYLES === */

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* === NAVBAR === */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background: rgba(254, 253, 251, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(128, 38, 38, 0.1);
}

.nav-logo-text {
    color: #1a140e;
    transition: color 0.4s ease;
}

.nav-sub-text {
    color: #802626;
    transition: color 0.4s ease;
}

#navbar.scrolled .nav-logo-text {
    color: #1a140e;
}

#navbar.scrolled .nav-sub-text {
    color: #802626;
}

/* === MOBILE MENU === */
.mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* === HERO FLOATING CARDS === */
.floating-card {
    animation: float1 6s ease-in-out infinite;
}

.floating-card-2 {
    animation: float2 7s ease-in-out infinite;
}

.floating-card-3 {
    animation: float3 5.5s ease-in-out infinite;
}

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

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

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

/* === RESIDENCE CARDS === */
.residence-card {
    opacity: 1;
}

.residence-card .relative {
    overflow: hidden;
}

/* === AMENITY CARDS === */
.amenity-card {
    opacity: 1;
}

/* === GALLERY === */
.gallery-item {
    overflow: hidden;
}

.gallery-item img {
    display: block;
}

/* === SCROLL REVEAL (progressive enhancement) === */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Default state — visible without JS */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* === SECTION DIVIDER === */
.divider-line {
    height: 1px;
    background: linear-gradient(to right, transparent, #fadada, transparent);
}

/* === BUTTON HOVER EFFECTS === */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* === FOCUS STYLES === */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* === MOBILE MENU ANIMATION === */
#mobileMenu {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

/* === RESPONSIVE === */
@media (max-width: 767px) {
    .floating-card,
    .floating-card-2,
    .floating-card-3 {
        display: none;
    }
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
    .floating-card,
    .floating-card-2,
    .floating-card-3 {
        animation: none;
    }
}

/* === IMAGE ASPECT RATIOS === */
.aspect-\[4\/5\] {
    aspect-ratio: 4/5;
}

/* === SUBTLE SHADOWS === */
.shadow-sm {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.shadow-lg {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.shadow-xl {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

/* === SELECTION COLOR === */
::selection {
    background: #fce7e7;
    color: #672121;
}
