/* Custom Styles for Flavia Zabala Real Estate */

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

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

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

::-webkit-scrollbar-thumb {
    background: #ddb67c;
    border-radius: 0;
}

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

/* Selection Color */
::selection {
    background-color: #ddb67c;
    color: #000;
}

::-moz-selection {
    background-color: #ddb67c;
    color: #000;
}

/* Navbar Styles */
.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

/* Minimal Navigation Hover */
nav a {
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #ddb67c;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Slide in from left animation */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slideInLeft {
    opacity: 0;
    animation: slideInLeft 1s ease-out forwards;
}

/* Slide in from right animation */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slideInRight {
    opacity: 0;
    animation: slideInRight 1s ease-out forwards;
}

/* Ensure sections start hidden */
section:not(#hero) {
    opacity: 0;
}

/* Hero Section Animations */
.hero-bg {
    animation: slowZoom 30s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    0% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1.25);
    }
}

/* Light sweep animation */
.light-sweep {
    animation: sweep 12s ease-in-out infinite;
}

@keyframes sweep {
    0% {
        transform: translateX(-200%);
    }
    50% {
        transform: translateX(200%);
    }
    100% {
        transform: translateX(-200%);
    }
}

/* Hero parallax */
#hero .hero-bg {
    will-change: transform;
    transition: transform 0.3s ease-out;
}

/* Hero text animations */
#hero h1 {
    animation: fadeInUp 1.2s ease-out;
}

#hero p {
    animation: fadeInUp 1.4s ease-out;
}

#hero .flex {
    animation: fadeInUp 1.6s ease-out;
}

/* Scroll indicator pulse */
#hero .animate-bounce {
    animation: bounce 2s ease-in-out infinite;
}

/* Button Hover Effects */
.btn-hover-lift {
    transition: all 0.3s ease;
}

.btn-hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(221, 182, 124, 0.3);
}

/* Card Hover Effects */
.card-hover-grow {
    transition: all 0.3s ease;
}

.card-hover-grow:hover {
    transform: scale(1.02);
}

/* Form Focus States */
input:focus, select:focus, textarea:focus {
    border-color: #ddb67c;
    box-shadow: 0 0 0 3px rgba(221, 182, 124, 0.1);
}

/* Loading Animation for Form */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ddb67c;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

/* Responsive Image Container */
.img-container {
    position: relative;
    overflow: hidden;
}

.img-container img {
    transition: transform 0.3s ease;
}

.img-container:hover img {
    transform: scale(1.05);
}

/* Typography Enhancements */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Mobile Menu Animation */
.mobile-menu-enter {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Padding Adjustments */
@media (max-width: 768px) {
    section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* Custom Gold Gradient */
.gold-gradient {
    background: linear-gradient(135deg, #ddb67c 0%, #f4e4bc 100%);
}

/* Testimonial Quote Style */
.quote-mark::before {
    content: '"';
    font-size: 4rem;
    color: #ddb67c;
    position: absolute;
    top: -20px;
    left: -20px;
    opacity: 0.3;
}

/* Property Status Badges */
.badge-pulse {
    position: relative;
}

.badge-pulse::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 9999px;
    background: currentColor;
    opacity: 0.3;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
}

/* Footer Link Underline Effect */
footer a {
    position: relative;
}

footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #ddb67c;
    transition: width 0.3s ease;
}

footer a:hover::after {
    width: 100%;
}

/* Utility Classes */
.backdrop-blur-light {
    backdrop-filter: blur(5px);
}

.text-balance {
    text-wrap: balance;
}

.scale-120 {
    transform: scale(1.2);
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
    }
    
    a {
        text-decoration: underline;
    }
}