/* Custom Styles for Creston Park Apartments */

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

/* Scroll Reveal Animations - Progressive Enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .reveal-left {
        opacity: 1;
        transform: translateX(0);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .reveal-right {
        opacity: 1;
        transform: translateX(0);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
}

/* Hero Decorative Elements */
.hero-deco-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.circle-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(68, 135, 74, 0.08) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

.circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(150, 197, 154, 0.12) 0%, transparent 70%);
    bottom: 10%;
    left: 5%;
}

.hero-deco-rect {
    position: absolute;
    pointer-events: none;
}

.rect-1 {
    width: 120px;
    height: 120px;
    background: rgba(45, 106, 53, 0.06);
    border-radius: 24px;
    top: 25%;
    right: 3%;
    transform: rotate(15deg);
}

.hero-deco-triangle {
    position: absolute;
    pointer-events: none;
}

.triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(68, 135, 74, 0.06);
    bottom: 20%;
    right: 15%;
    transform: rotate(-20deg);
}

/* Navbar Scroll State */
.nav-scrolled {
    background: rgba(253, 252, 248, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(45, 106, 53, 0.1);
}

.nav-scrolled .nav-logo-text {
    color: #16351c;
}

.nav-scrolled .nav-link {
    color: #16351c;
}

/* Animation Initial States (for JS progressive enhancement) */
.js-enabled .reveal-up {
    opacity: 0;
    transform: translateY(30px);
}

.js-enabled .reveal-left {
    opacity: 0;
    transform: translateX(-30px);
}

.js-enabled .reveal-right {
    opacity: 0;
    transform: translateX(30px);
}

/* Mobile Menu Transitions */
#mobileMenu {
    animation: slideDown 0.3s ease-out;
}

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

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

::-webkit-scrollbar-track {
    background: #f5f0e3;
}

::-webkit-scrollbar-thumb {
    background: #96c59a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #44874a;
}

/* Selection Color */
::selection {
    background: #c5dfc9;
    color: #16351c;
}
