/* Custom styles for Park Place Apartments */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf6f3;
}
::-webkit-scrollbar-thumb {
    background: #f9d0d9;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ec7490;
}

/* Selection color */
::selection {
    background: #f9d0d9;
    color: #722F37;
}

/* Fade-in animations for below-fold content */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.visible {
        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; }
}

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(254, 252, 251, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(114, 47, 55, 0.08);
}

/* Hero text glow */
.hero-glow {
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

/* Card hover lift */
.card-lift {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.card-lift:hover {
    transform: translateY(-4px);
}

/* Button ripple effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}
.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
.btn-ripple:active::after {
    width: 200px;
    height: 200px;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #722F37, #ec7490);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Image overlay gradient */
.img-overlay {
    position: relative;
}
.img-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(114, 47, 55, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.img-overlay:hover::after {
    opacity: 1;
}

/* Floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.float-anim {
    animation: float 3s ease-in-out infinite;
}

/* Pulse dot */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}
.pulse-dot {
    animation: pulse-dot 2s ease-in-out infinite;
}

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
#mobile-menu.open {
    max-height: 400px;
}

/* Gallery grid item hover */
.gallery-item {
    overflow: hidden;
    border-radius: 1rem;
}
.gallery-item img {
    transition: transform 0.7s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}

/* Input focus animation */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(219, 74, 55, 0.1);
}

/* Subtle pattern for sections */
.pattern-section {
    background-color: #fefcfb;
    background-image: radial-gradient(circle, #fce7eb 1px, transparent 1px);
    background-size: 24px 24px;
}
