/* Custom styles and overrides */

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

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

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

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

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

/* Reveal animation */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Service card hover effect */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(229, 90, 41, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 1;
}

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

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Geometric shapes */
.geometric-shape {
    animation: float 6s ease-in-out infinite;
}

.geometric-shape-2 {
    animation: rotate 20s linear infinite;
}

/* Geometric shapes in hero */
.hero-shape-1 {
    animation: float 8s ease-in-out infinite;
}

.hero-shape-2 {
    animation: float 6s ease-in-out infinite 1s;
}

.hero-shape-3 {
    animation: rotate 15s linear infinite;
}

/* Geometric accent shapes */
.geo-accent {
    position: absolute;
    pointer-events: none;
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(174, 50, 23, 0.95) !important;
    backdrop-blur-lg;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Image hover zoom */
img {
    transition: transform 0.5s ease;
}

/* 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;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    .reveal[data-reveal] {
        opacity: 1;
        transform: none;
    }
}

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

/* Button press effect */
button, a {
    transition: all 0.2s ease;
}

button:active, a:active {
    transform: scale(0.98);
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #e55a29;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    nav, .reveal[data-reveal], button, form {
        display: none;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
