/* Base styles and custom utilities */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Custom selection color */
::selection {
    background-color: #C1666B;
    color: #FAFAF8;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: #D9AD9F;
    border-radius: 3px;
}

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

/* Hero animations */
.hero-subtitle {
    animation: slideUp 0.8s ease forwards 0.2s;
}

.hero-headline {
    animation: slideUp 0.8s ease forwards 0.4s;
}

.hero-body {
    animation: slideUp 0.8s ease forwards 0.6s;
}

.hero-cta {
    animation: slideUp 0.8s ease forwards 0.8s;
}

.hero-image-wrapper {
    animation: fadeIn 1.2s ease forwards 0.5s;
    opacity: 0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Service card hover effects */
.service-card {
    transition: background-color 0.5s ease;
}

.service-card:hover {
    transform: translateY(-2px);
    transition: background-color 0.5s ease, transform 0.3s ease;
}

/* Process step hover */
.process-step {
    transition: background-color 0.3s ease;
}

.process-step:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

/* Intersection Observer animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Mobile menu transitions */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Navbar scroll state */
.nav-scrolled {
    background-color: rgba(250, 250, 248, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .hero-subtitle,
    .hero-headline,
    .hero-body,
    .hero-cta,
    .hero-image-wrapper {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    .service-card:hover {
        transform: none;
    }
}

/* Tablet and up adjustments */
@media (min-width: 768px) {
    .service-card {
        padding: 2rem 2.5rem;
    }
}

/* Large desktop adjustments */
@media (min-width: 1280px) {
    .service-card {
        padding: 3rem;
    }
}
