@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;600&family=Outfit:wght@300;400;500&display=swap');

:root {
    --gold: #D4AF37;
    --gold-dark: #C5A028;
    --noir: #0A0A0A;
    --noir-light: #1A1A1A;
    --text-primary: #F5F5F5;
    --text-secondary: #A0A0A0;
}

body {
    background-color: var(--noir);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    cursor: none;
}

@media (max-width: 1024px) {
    body {
        cursor: auto;
    }
}

h1, h2, h3, .serif {
    font-family: 'Cormorant Garamond', serif;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
}

.custom-cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease;
    opacity: 0.5;
}

.custom-cursor-follower.hover {
    width: 60px;
    height: 60px;
    opacity: 0.8;
}

/* Scroll Progress Bar */
.scroll-progress {
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Page Loader */
#page-loader {
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-progress {
    transition: width 0.3s ease;
}

/* Custom Scrollbar - Global & Modal */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--noir);
}
::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
}

.custom-modal-scroll {
    -webkit-overflow-scrolling: touch;
}
.custom-modal-scroll::-webkit-scrollbar {
    width: 4px;
}
.custom-modal-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.custom-modal-scroll::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.5);
    border-radius: 10px;
}
.custom-modal-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.8);
}

/* Glassmorphism */
.glass {
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.glass-light {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Gold Gradient */
.gold-gradient {
    background: linear-gradient(135deg, #D4AF37 0%, #F9E29B 50%, #B8860B 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gold-bg-gradient {
    background: linear-gradient(135deg, #D4AF37 0%, #F9E29B 50%, #B8860B 100%);
}

/* Button Animations */
.btn-gold {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}
.btn-gold:hover::before {
    left: 100%;
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

/* Navigation Reveal */
.nav-reveal {
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), background 0.6s ease;
}

/* Image Reveal */
.reveal-img-container {
    overflow: hidden;
}
.reveal-img-container img {
    transform: scale(1.2);
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}
.reveal-img-container:hover img {
    transform: scale(1.05);
}

/* Section Spacing */
section {
    padding: 120px 0;
}

/* Hero Section Specifics */
.hero-overlay {
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.4) 0%, rgba(10, 10, 10, 0.8) 100%);
}

/* Property Cards */
.property-card {
    transition: transform 0.5s ease;
}
.property-card:hover {
    transform: translateY(-10px);
}

/* Legacy Gallery Masonry */
#gallery img {
    transition: transform 1.5s cubic-bezier(0.23, 1, 0.32, 1);
}
#gallery .reveal-img-container:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    background: linear-gradient(to top, rgba(10,10,10,0.8), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}
.reveal-img-container:hover .gallery-overlay {
    opacity: 1;
}

/* Side Nav Dots */
.nav-dot .dot.active {
    background-color: #D4AF37;
    transform: scale(1.5);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}
.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
}

/* Property Modal */
#property-modal {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#property-modal.active {
    opacity: 1;
    visibility: visible;
}

#property-modal.active #modal-backdrop {
    animation: fadeInBackdrop 0.5s ease;
}

/* Modal Content Animations */
#property-modal.active #modal-content .space-y-8 > * {
    animation: slideUpFade 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}
#property-modal.active #modal-content .space-y-8 > *:nth-child(1) { animation-delay: 0.1s; }
#property-modal.active #modal-content .space-y-8 > *:nth-child(2) { animation-delay: 0.15s; }
#property-modal.active #modal-content .space-y-8 > *:nth-child(3) { animation-delay: 0.2s; }
#property-modal.active #modal-content .space-y-8 > *:nth-child(4) { animation-delay: 0.25s; }
#property-modal.active #modal-content .space-y-8 > *:nth-child(5) { animation-delay: 0.3s; }
#property-modal.active #modal-content .space-y-8 > *:nth-child(6) { animation-delay: 0.35s; }
#property-modal.active #modal-content .space-y-8 > *:nth-child(7) { animation-delay: 0.4s; }

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInBackdrop {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Contact Form Styles */
#contact-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23A0A0A0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus {
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.1);
}

/* Gold Particles Canvas */
#gold-particles {
    opacity: 0.6;
}

/* 3D Tilt Effect for Property Cards */
.property-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.property-card.tilting {
    transition: transform 0.1s ease;
}

/* Text Split Animation */
.split-text .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px) rotateX(90deg);
}

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

.parallax-img-container img {
    will-change: transform;
}

/* Luxury Hover Effects */
.hover-lift {
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
}

/* Shimmer Effect for Loading States */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Success/Error States for Form */
.form-success {
    border-color: #22c55e !important;
    background: rgba(34, 197, 94, 0.05) !important;
}

.form-error {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.05) !important;
}

/* Smooth Number Counter */
.counter-value {
    display: inline-block;
    transition: all 0.3s ease;
}

/* Mobile Menu Animation */
#mobile-menu {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

#mobile-menu.active .mobile-menu-link {
    animation: slideInFromBottom 0.4s ease forwards;
    opacity: 0;
}

#mobile-menu.active .mobile-menu-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.active .mobile-menu-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.active .mobile-menu-link:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu.active .mobile-menu-link:nth-child(5) { animation-delay: 0.25s; }
#mobile-menu.active .mobile-menu-link:nth-child(6) { animation-delay: 0.3s; }
#mobile-menu.active .mobile-menu-link:nth-child(7) { animation-delay: 0.35s; }

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
