/* Custom Styles for Spindrift Condominiums */

:root {
    --color-charcoal: #0c0c0c;
    --color-stone-950: #0c0a09;
    --color-stone-900: #1c1917;
    --color-stone-800: #292524;
    --color-stone-700: #44403c;
    --color-stone-500: #78716c;
    --color-stone-400: #a8a29e;
    --color-stone-300: #d6d3d1;
    --color-rose-400: #fb7185;
    --color-rose-500: #f43f5e;
    --color-rose-600: #e11d48;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--color-stone-950);
    color: var(--color-stone-300);
}

/* Font Families */
.font-serif {
    font-family: 'Cormorant Garamond', serif;
}

/* Animations */
@keyframes slow-zoom {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}

.animate-slow-zoom {
    animation: slow-zoom 20s ease-in-out infinite alternate;
}

/* Scroll Reveal Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-text {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Active states for scroll reveal */
.reveal-up.active,
.reveal-left.active,
.reveal-right.active,
.reveal-text.active {
    opacity: 1;
    transform: translate(0);
}

/* Stagger animations */
.reveal-up:nth-child(1) { transition-delay: 0ms; }
.reveal-up:nth-child(2) { transition-delay: 100ms; }
.reveal-up:nth-child(3) { transition-delay: 200ms; }
.reveal-up:nth-child(4) { transition-delay: 300ms; }

/* Navbar Styles */
#navbar {
    background: transparent;
    backdrop-filter: blur(0px);
}

#navbar.scrolled {
    background: rgba(12, 10, 9, 0.95);
    backdrop-filter: blur(10px);
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-shadow: 0 1px 0 rgba(251, 113, 133, 0.1);
}

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

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

::-webkit-scrollbar-track {
    background: var(--color-stone-950);
}

::-webkit-scrollbar-thumb {
    background: var(--color-stone-700);
    border-radius: 4px;
}

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

/* Selection */
::selection {
    background: var(--color-rose-500);
    color: white;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .animate-slow-zoom {
        animation: none;
    }
}

/* Focus Styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--color-rose-400);
    outline-offset: 2px;
}

/* Image Aspect Ratios */
img {
    max-width: 100%;
    height: auto;
}

/* Form Styles */
input,
textarea,
select {
    appearance: none;
    border-radius: 0;
}

/* Button Hover Effects */
button,
a {
    transition: all 0.3s ease;
}
