/* Custom Color Palette */
:root {
    --terracotta-50: #fef7f0;
    --terracotta-100: #fdecd8;
    --terracotta-200: #fad4b0;
    --terracotta-300: #f5b07e;
    --terracotta-400: #ed824a;
    --terracotta-500: #e05c28;
    --terracotta-600: #c44418;
    --terracotta-700: #b45309;
    --terracotta-800: #92400e;
    --terracotta-900: #78350f;
    --sand-100: #faf5ef;
    --sand-200: #f0e6d3;
    --sand-300: #e0cdb5;
    --sand-400: #c4a882;
}

/* Tailwind Config */
@tailwind base;
@tailwind components;
@tailwind utilities;

@layer components {
    .font-playfair {
        font-family: 'Playfair Display', serif;
    }
    .font-inter {
        font-family: 'Inter', sans-serif;
    }
}

/* Floating Card Animations */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    animation-delay: -2s;
    animation-duration: 7s;
}

.floating-card:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* Service Card Hover */
.service-card {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.5s ease;
}

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

/* Navbar Scroll State */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

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

/* Selection Color */
::selection {
    background-color: var(--terracotta-200);
    color: var(--terracotta-900);
}

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

::-webkit-scrollbar-track {
    background: var(--sand-100);
}

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

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

/* 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);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .floating-card {
        animation: none;
    }
    .service-card {
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
}
