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

:root {
    --terracotta-gold: #C4A484;
    --terracotta-dark: #8B6914;
    --sand-light: #E8D5C4;
    --stone-950: #0C0A09;
    --stone-900: #1C1917;
    --stone-800: #292524;
    --stone-700: #44403C;
    --stone-600: #57534E;
    --stone-500: #78716C;
    --stone-400: #A8A29E;
    --stone-300: #D6D3D1;
    --stone-100: #F5F5F4;
}

* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
}

.font-cinzel {
    font-family: 'Cinzel', serif;
}

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

::-webkit-scrollbar-track {
    background: var(--stone-950);
}

::-webkit-scrollbar-thumb {
    background: var(--stone-700);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--terracotta-gold);
}

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

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

@keyframes scrollIndicator {
    0%, 100% {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: top;
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

.animate-scroll-indicator {
    animation: scrollIndicator 2s ease-in-out infinite;
}

/* Service card hover effects */
.service-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(196, 164, 132, 0.1);
}

/* Input focus styles */
input:focus,
textarea:focus,
select:focus {
    border-color: var(--terracotta-gold) !important;
    box-shadow: 0 0 0 2px rgba(196, 164, 132, 0.2);
}

/* Navigation active state */
nav.scrolled {
    background: rgba(12, 10, 9, 0.95);
    backdrop-filter: blur(10px);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

nav.scrolled a {
    color: var(--stone-300);
}

nav.scrolled a:hover {
    color: var(--terracotta-gold);
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

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

/* Gallery hover effect */
#gallery img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#gallery img:hover {
    transform: scale(1.1);
}

/* Button hover effects */
button:hover,
a:hover {
    transition: all 0.3s ease;
}

/* Form select styling */
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 12 12'%3E%3Cpath fill='%23C4A484' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

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

img.loaded {
    opacity: 1;
}
