/* Ocean Gate Tower Condo — Custom Styles */

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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection {
    background-color: #831d37;
    color: #fdf8f6;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #fdf8f6;
}
::-webkit-scrollbar-thumb {
    background: #c2294b;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #831d37;
}

/* Navbar transitions */
#navbar {
    background-color: transparent;
}

#navbar.scrolled {
    background-color: rgba(253, 240, 241, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(131, 29, 55, 0.08);
}

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

#mobile-menu .mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }

/* Mobile menu icon animation */
#mobile-menu-btn.active #menu-line-1 {
    transform: rotate(45deg) translate(3px, 3px);
}
#mobile-menu-btn.active #menu-line-2 {
    opacity: 0;
}

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

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Image hover effects */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Form focus states */
input:focus,
textarea:focus {
    border-color: #c2294b !important;
    box-shadow: 0 0 0 2px rgba(194, 41, 75, 0.1);
}

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Button transitions */
a, button {
    transition-property: color, background-color, border-color, transform, box-shadow;
    transition-duration: 300ms;
    transition-timing-function: ease;
}

/* Subtle pattern overlay for hero */
.hero-pattern {
    background-image: radial-gradient(ellipse at 20% 80%, rgba(194, 41, 75, 0.15) 0%, transparent 60%),
                      radial-gradient(ellipse at 80% 20%, rgba(140, 30, 61, 0.1) 0%, transparent 50%);
}

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