/* Custom Tailwind Configuration */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* Custom Properties */
:root {
    --terracotta-400: #d4845a;
    --terracotta-500: #c4724a;
    --terracotta-600: #b3603a;
    --sand-100: #f5f0e8;
    --sand-200: #e8dfd0;
}

/* Custom Color Classes */
.text-terracotta-400 {
    color: var(--terracotta-400);
}

.text-terracotta-500 {
    color: var(--terracotta-500);
}

.text-terracotta-600 {
    color: var(--terracotta-600);
}

.bg-terracotta-400 {
    background-color: var(--terracotta-400);
}

.bg-terracotta-500 {
    background-color: var(--terracotta-500);
}

.bg-terracotta-600 {
    background-color: var(--terracotta-600);
}

.border-terracotta-400 {
    border-color: var(--terracotta-400);
}

.border-terracotta-500 {
    border-color: var(--terracotta-500);
}

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

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

::-webkit-scrollbar-track {
    background: #0c0a09;
}

::-webkit-scrollbar-thumb {
    background: #c4724a;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d4845a;
}

/* Navigation Active State */
.nav-link.active {
    color: #d4845a;
}

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

.service-card:hover {
    box-shadow: 0 20px 40px rgba(196, 114, 74, 0.15);
}

/* Testimonial Card Hover */
.testimonial-card {
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    border-color: rgba(196, 114, 74, 0.5);
    transform: translateY(-5px);
}

/* Gallery Item Hover */
.gallery-item {
    overflow: hidden;
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12, 10, 9, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Fade In Animation for Scroll Reveal */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Animation Delays */
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* Mobile Menu Animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

#mobile-menu.open {
    max-height: 500px;
}

/* Input Focus Styles */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 2px rgba(196, 114, 74, 0.3);
}

/* Button Ripple Effect */
button,
a {
    position: relative;
    overflow: hidden;
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Print Styles */
@media print {
    nav,
    #back-to-top,
    .gallery-item {
        display: none;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .text-stone-400 {
        color: #a8a29e;
    }
    
    .border-stone-800 {
        border-color: #44403c;
    }
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4845a' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
