/* Additional custom styles beyond Tailwind */

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: #FDF8F0;
}

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

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

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid #d15c33;
    outline-offset: 2px;
}

/* Animation keyframes */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse-slow {
    0%, 100% {
        opacity: 0.1;
    }
    50% {
        opacity: 0.2;
    }
}

/* Floating animation for decorative elements */
.circle-1,
.circle-2 {
    animation: float 6s ease-in-out infinite;
}

.circle-2 {
    animation-delay: 1s;
}

/* Pulse animation for background shapes */
.geometric-shape {
    animation: pulse-slow 4s ease-in-out infinite;
}

/* Image placeholder styling */
img {
    max-width: 100%;
    height: auto;
}

/* Print styles */
@media print {
    nav,
    .mobile-menu,
    button,
    form {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* Reduced motion preferences */
@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 support */
@media (prefers-contrast: high) {
    .service-card {
        border: 2px solid currentColor;
    }
}

/* Dark mode support (if browser/system supports it) */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1a1a1a;
        --text-color: #f5f5f5;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .service-card:hover {
        transform: none;
    }
    
    .gallery-item:hover img {
        transform: none;
    }
}

/* Ensure proper spacing on small screens */
@media (max-width: 640px) {
    .circle-1 {
        width: 200px;
        height: 200px;
    }
    
    .circle-2 {
        width: 100px;
        height: 100px;
    }
    
    .triangle {
        border-left-width: 50px;
        border-right-width: 50px;
        border-bottom-width: 87px;
    }
}
