/* Custom styles for Landon Goff Real Estate */

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

body {
    overflow-x: hidden;
}

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

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

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

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

/* Selection color */
::selection {
    background: rgba(201, 162, 39, 0.3);
    color: #f7f7f5;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(12, 11, 9, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 162, 39, 0.1);
}

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

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

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

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

/* Smooth section transitions */
section {
    scroll-margin-top: 80px;
}

/* Gold gradient text effect */
.gold-gradient {
    background: linear-gradient(135deg, #e8c97a 0%, #C9A227 50%, #b8860b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Image hover overlay */
.listing-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12, 11, 9, 0.8) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.group:hover .listing-overlay {
    opacity: 1;
}

/* Button shine effect */
.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    transform: rotate(30deg);
    transition: left 0.7s ease;
}

.btn-shine:hover::after {
    left: 100%;
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.3);
}

/* Testimonial card hover */
.testimonial-card {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Decorative line animation */
.gold-line {
    position: relative;
    overflow: hidden;
}

.gold-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #C9A227, #e8c97a);
    transition: width 0.5s ease;
}

.gold-line:hover::after {
    width: 100%;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Scroll reveal base (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; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.2;
    }
}

/* Print styles */
@media print {
    nav, #contactForm, .btn-shine {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    a {
        color: black !important;
    }
}
