/* Custom styles for Michelle Burgos Real Estate */

:root {
    --navy-900: #0a1628;
    --navy-800: #0f2140;
    --gold-500: #d4a843;
    --gold-400: #e0b95e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--navy-900);
    color: #fff;
    overflow-x: hidden;
}

.font-display {
    font-family: 'Playfair Display', serif;
}

/* Geometric shapes animation */
.geometric-shape {
    position: absolute;
    pointer-events: none;
}

.shape-1 {
    top: 15%;
    right: 5%;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    bottom: 20%;
    right: 15%;
    animation: float 6s ease-in-out infinite reverse;
}

.shape-3 {
    top: 10%;
    left: -5%;
    animation: rotate-slow 30s linear infinite;
}

.shape-4 {
    right: -5%;
    bottom: -5%;
    animation: rotate-slow 25s linear infinite reverse;
}

.shape-5 {
    left: -3%;
    top: 50%;
    transform: translateY(-50%);
    animation: float 10s ease-in-out infinite;
}

.shape-6 {
    right: 5%;
    top: 5%;
    animation: rotate-slow 20s linear infinite;
}

.shape-7 {
    right: 10%;
    top: 10%;
    animation: rotate-slow 35s linear infinite;
}

.shape-8 {
    left: 5%;
    bottom: 5%;
    animation: float 12s ease-in-out infinite reverse;
}

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

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

#mobile-menu.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile navigation lines */
#mobile-toggle.active .nav-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-toggle.active .nav-line:nth-child(2) {
    opacity: 0;
}

#mobile-toggle.active .nav-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

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

::-webkit-scrollbar-track {
    background: var(--navy-900);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-500);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-400);
}

/* Form select styling */
select option {
    background: var(--navy-900);
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .geometric-shape {
        display: none;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .geometric-shape,
    .shape-1, .shape-2, .shape-3, .shape-4,
    .shape-5, .shape-6, .shape-7, .shape-8 {
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        transition: none;
    }
}
