/* Custom styles for Princeton Townhomes */

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

/* Scroll reveal base - content visible by default */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Scroll reveal with JS enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar transition */
.navbar-scrolled {
    background: rgba(61, 10, 10, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-scrolled .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F4;
}
::-webkit-scrollbar-thumb {
    background: #b82828;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9a1f1f;
}

/* Select styling */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Mobile nav link hover */
.mobile-nav-link::after {
    content: '';
    display: block;
    height: 1px;
    background: transparent;
    transition: background 0.3s;
}

.mobile-nav-link:hover::after {
    background: rgba(255, 255, 255, 0.2);
}

/* Pulse animation for hero badge */
@keyframes pulse-subtle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.animate-pulse {
    animation: pulse-subtle 2s ease-in-out infinite;
}

/* Geometric shape float animation */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(12deg); }
    50% { transform: translateY(-12px) rotate(12deg); }
}

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

/* Print styles */
@media print {
    nav, .reveal, #contactForm, #successMessage {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
