@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Josefin+Sans:wght@300;400;600&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
    --gold: #C9A24A;
    --gold-dark: #9C7A2F;
    --gold-light: #E5C782;
    --black: #050505;
    --near-black: #0A0A0A;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
}

@layer base {
    body {
        background-color: var(--black);
        color: white;
        font-family: 'Josefin Sans', sans-serif;
        overflow-x: hidden;
        -webkit-font-smoothing: antialiased;
    }

    body::selection {
        background-color: var(--gold);
        color: black;
    }

    h1, h2, h3, h4, h5, h6 {
        font-family: 'Cinzel', serif;
        letter-spacing: -0.05em;
        font-weight: bold;
        text-transform: uppercase;
        font-style: italic;
    }
}

@layer components {
    .btn-gold {
        background: linear-gradient(to right, var(--gold), var(--gold-light), var(--gold));
        background-size: 200% auto;
        color: black;
        font-weight: bold;
        padding: 1.25rem 3rem;
        border-radius: 9999px;
        transition: all 0.7s;
        text-align: center;
        display: inline-block;
        box-shadow: 0 15px 35px rgba(201, 162, 74, 0.3);
        position: relative;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.3);
        text-transform: uppercase;
        letter-spacing: 0.2em;
        font-size: 0.75rem;
        animation: shimmer 5s infinite linear;
    }
    
    .btn-gold:hover {
        background-position: right center;
        transform: scale(1.05);
        box-shadow: 0 25px 50px rgba(201, 162, 74, 0.5);
    }
    
    .btn-gold:active {
        transform: scale(0.95);
    }

    .btn-outline-gold {
        border: 1px solid rgba(201, 162, 74, 0.4);
        color: var(--gold);
        font-weight: bold;
        padding: 1.25rem 3rem;
        border-radius: 9999px;
        transition: all 0.5s;
        text-align: center;
        display: inline-block;
        box-shadow: 0 10px 20px rgba(201, 162, 74, 0.05);
        text-transform: uppercase;
        letter-spacing: 0.2em;
        font-size: 0.75rem;
    }
    
    .btn-outline-gold:hover {
        background-color: var(--gold);
        color: black;
        transform: scale(1.05);
    }

    .glass-nav {
        background-color: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(24px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        position: sticky;
        top: 0;
        z-index: 50;
        transition: all 0.5s;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .glass-nav.scrolled {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
        background-color: rgba(0, 0, 0, 0.9);
    }

    .glass-card {
        background-color: var(--glass-bg);
        backdrop-filter: blur(20px);
        border: 1px solid var(--glass-border);
        border-radius: 1rem;
        padding: 2rem;
        transition: all 0.5s;
    }

    .service-card {
        position: relative;
        overflow: hidden;
        border-radius: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.05);
        background-color: rgba(10, 10, 10, 0.5);
        padding: 2.5rem;
        transition: all 0.7s;
    }
    
    .service-card:hover {
        border-color: rgba(201, 162, 74, 0.3);
        box-shadow: 0 0 50px rgba(201, 162, 74, 0.1);
        transform: translateY(-0.5rem);
    }

    .section-title {
        font-size: 3rem;
        font-weight: bold;
        margin-bottom: 2.5rem;
        text-align: center;
        letter-spacing: -0.05em;
        font-style: italic;
    }
    
    @media (min-width: 768px) {
        .section-title {
            font-size: 4.5rem;
        }
    }

    .gold-text {
        @apply bg-gradient-to-r from-gold via-gold-light to-gold-dark bg-clip-text text-transparent;
    }

    .whatsapp-float {
        position: fixed;
        bottom: 2rem;
        right: 2rem;
        background-color: #25D366;
        color: white;
        width: 64px;
        height: 64px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
        z-index: 100;
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    
    .whatsapp-float:hover {
        transform: scale(1.1) rotate(5deg);
        background-color: #128C7E;
        box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
    }

    .btn-whatsapp {
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 9999px;
        text-transform: uppercase;
        padding: 1.25rem 3rem !important;
        font-size: 0.875rem !important;
        background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold-dark) 100%) !important;
        background-size: 200% auto !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        color: #000 !important;
        box-shadow: 
            0 10px 25px -5px rgba(201, 162, 74, 0.4),
            0 8px 10px -6px rgba(201, 162, 74, 0.4),
            inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
        text-shadow: 0 1px 0 rgba(255, 255, 255, 0.1);
        letter-spacing: 0.15em !important;
        font-weight: 700 !important;
        animation: shimmer 5s infinite linear, pulse-gold 3s infinite ease-in-out;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    }

    .btn-whatsapp:hover {
        background-position: right center !important;
        transform: translateY(-2px) scale(1.02) !important;
        box-shadow: 
            0 20px 35px -5px rgba(201, 162, 74, 0.5),
            0 15px 15px -10px rgba(201, 162, 74, 0.4),
            inset 0 1px 2px rgba(255, 255, 255, 0.4) !important;
    }

    .btn-whatsapp:active {
        transform: translateY(0) scale(0.98) !important;
    }
}

/* Luxury Utilities */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05;
    pointer-events: none;
    z-index: 9999;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 0 0 rgba(201, 162, 74, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(201, 162, 74, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(201, 162, 74, 0);
    }
}

.animate-fade-in {
    animation: fadeIn 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.bg-near-black {
    background-color: var(--near-black);
}
/* Masonry Grid */
.masonry-grid {
    columns: 1;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .masonry-grid {
        columns: 2;
    }
}

@media (min-width: 1024px) {
    .masonry-grid {
        columns: 3;
    }
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    background-color: #111;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.masonry-item img {
    width: 100%;
    display: block;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.masonry-item:hover {
    border-color: rgba(201, 162, 74, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(-5px);
}

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

.masonry-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    transition: all 0.4s ease;
}

.masonry-item:hover .masonry-overlay {
    opacity: 1;
}

/* Lightbox Styles */
#lightbox {
    backdrop-filter: blur(15px);
}

.lightbox-nav {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s;
}

.lightbox-nav:hover {
    background-color: var(--gold);
    color: black;
    transform: scale(1.1);
}