/* Custom Styles for REALTOR_Michaella Datu */

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

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

::-webkit-scrollbar-track {
    background: #fdf4f8;
}

::-webkit-scrollbar-thumb {
    background: #d44d78;
    border-radius: 4px;
}

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

/* Diagonal clip for about section */
.clip-diagonal {
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

/* Navigation transition states */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(107, 33, 56, 0.1);
}

.nav-scrolled .font-serif {
    color: #6b2138 !important;
}

.nav-scrolled .hamburger-line {
    background: #6b2138 !important;
}

/* Mobile menu active state */
.mobile-menu-open #mobileMenu {
    transform: translateX(0);
}

.mobile-menu-open .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-open .hamburger-line:nth-child(2) {
    opacity: 0;
}

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

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

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

/* Button hover effects */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}

/* Selection color */
::selection {
    background: #fde68a;
    color: #6b2138;
}

/* Form input focus transitions */
input:focus,
textarea:focus,
select:focus {
    transform: translateY(-1px);
}

/* Service card hover glow */
.group:hover .rounded-full {
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.3);
}

/* Testimonial card hover */
.p-8.rounded-2xl:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(107, 33, 56, 0.15);
}

/* Listing card image zoom container */
.group .aspect-\[4\/3\] {
    overflow: hidden;
}

/* CTA button pulse on hover */
@keyframes subtle-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Floating card animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.absolute.-bottom-6 {
    animation: float 4s ease-in-out infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .clip-diagonal {
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
    }
}
