/* ============================================
   ARVY REALTY — Custom Styles
   Michelle Juarez | Islip, NY
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
    background: #0a1628;
}

::-webkit-scrollbar-thumb {
    background: #c9983e;
    border-radius: 3px;
}

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

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* --- Scroll Reveal --- */
.reveal-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Navbar Transition --- */
#navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

#navbar.scrolled #nav-logo-text,
#navbar.scrolled #nav-logo-sub {
    color: #ffffff;
}

/* --- Mobile Menu --- */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.open #menu-line-1 {
    transform: rotate(45deg) translate(3px, 3px);
}

#mobile-menu.open #menu-line-2 {
    opacity: 0;
}

#mobile-menu.open #menu-line-3 {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.5rem;
}

/* --- Select styling --- */
select option {
    background: #0a1628;
    color: #ffffff;
}

/* --- Focus styles --- */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .animate-fade-in-up {
        animation: none;
        opacity: 1;
    }
    
    .reveal-on-scroll group:hover img {
        transform: none;
    }
}

/* --- Print styles --- */
@media print {
    nav, #mobile-menu-btn, #contact-form {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
