
@tailwind base;
@tailwind components;
@tailwind utilities;

/* CUSTOM FONTS & BASE */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #ffffff;
    color: #0a0a0a;
}

/* TYPOGRAPHY OVERRIDES */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.02em;
}

/* CUSTOM SCROLLBAR - MINIMALIST */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #000;
}

::-webkit-scrollbar-thumb:hover {
    background: #333;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

/* FILM STRIP ANIMATION (INFINITE SCROLL) */
@keyframes filmScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-400px * 4 - 2rem * 4)); } /* Adjust based on image width + gap */
}

@media (min-width: 768px) {
    @keyframes filmScroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-600px * 4 - 2rem * 4)); }
    }
}

.film-strip-track {
    animation: filmScroll 30s linear infinite;
    width: max-content;
}

.film-strip-container:hover .film-strip-track {
    animation-play-state: paused;
}

/* FADE IN ANIMATIONS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }

/* UTILITIES */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: black;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.service-card img {
    will-change: transform;
}

/* WHATSAPP BUTTON PULSE */
@keyframes pulse-ring {
    0% { transform: scale(0.8); box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0, 0, 0, 0); }
    100% { transform: scale(0.8); box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}

.whatsapp-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 9999px;
    z-index: -1;
    animation: pulse-ring 2s infinite;
}

/* GALLERY GRID HOVER EFFECTS */
.gallery-item img {
    filter: grayscale(100%);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.03);
}

.lead-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #333;
}