/* Custom styles for Newton Apartments */

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

/* Base font settings */
body {
    font-family: 'Nunito', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Quicksand', sans-serif;
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.nav-logo-text {
    color: #1c1d21;
}

#navbar:not(.scrolled) .nav-logo-text {
    color: #ffffff;
}

/* Scroll indicator animation */
.scroll-indicator {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* Decorative circles in hero */
.deco-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}

.deco-circle-1 {
    width: 400px;
    height: 400px;
    background: white;
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.deco-circle-2 {
    width: 250px;
    height: 250px;
    background: white;
    bottom: 10%;
    left: -50px;
    animation: float 6s ease-in-out infinite reverse;
}

.deco-circle-3 {
    width: 150px;
    height: 150px;
    background: white;
    top: 40%;
    right: 10%;
    animation: float 7s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

/* Card hover effect */
.card-hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.card-hover:hover {
    box-shadow: 0 12px 40px rgba(255, 107, 74, 0.12);
    transform: translateY(-4px);
}

/* Reveal animation (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.open {
    max-height: 400px;
}

/* Input focus ring */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 4px rgba(255, 107, 74, 0.1);
}

/* Gallery image overlay on hover */
.group:hover img {
    transform: scale(1.1);
}

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

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

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

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

/* Active nav link */
.nav-link.active {
    color: #ff6b4a !important;
}

/* Mobile link underline on hover */
.mobile-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #ff6b4a;
    transition: width 0.2s ease;
}

.mobile-link:hover::after {
    width: 100%;
}
