/* Custom styles for Yolanda Cassidy-Bogan Real Estate Website */

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

body {
    overflow-x: hidden;
}

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

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

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

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

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

/* Selection */
::selection {
    background: #c9a84c;
    color: #0d0b0a;
}

/* Navbar transitions */
#navbar.scrolled {
    background: rgba(13, 11, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

#navbar.scrolled .font-display {
    color: #f5f0e8;
}

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

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

#menu-btn.active #bar1 {
    transform: rotate(45deg) translate(4px, 4px);
}

#menu-btn.active #bar2 {
    opacity: 0;
}

#menu-btn.active #bar3 {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.5rem;
}

/* Form focus styles */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: rgba(201, 168, 76, 0.6) !important;
    box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.2);
}

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

/* Testimonial card hover */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Gold shimmer on hover for service cards */
.group:hover {
    transform: translateY(-4px);
}

/* Image hover transitions */
img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Fade-in animation for scroll reveals */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    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);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* Gold line animation */
@keyframes goldLine {
    from { width: 0; }
    to { width: 3rem; }
}

.gold-line-animated {
    animation: goldLine 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

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

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

/* Pulse for scroll indicator */
@keyframes pulse-down {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(8px); opacity: 0.5; }
}

.scroll-indicator {
    animation: pulse-down 2s ease-in-out infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    section[id] {
        scroll-margin-top: 60px;
    }
}

/* Print styles */
@media print {
    #navbar, #mobile-menu, .scroll-indicator {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
