/* Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background-color: #d4573a;
    color: #fefdfb;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf8f5;
}
::-webkit-scrollbar-thumb {
    background: #d4573a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b8432a;
}

/* Hero Animations */
.hero-tagline {
    animation: slideDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}
.hero-headline {
    animation: slideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}
.hero-subtitle {
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
}
.hero-ctas {
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.9s both;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll Line Animation */
@keyframes scrollLine {
    0% { top: -16px; }
    100% { top: 48px; }
}
.animate-scroll-line {
    animation: scrollLine 1.5s ease-in-out infinite;
}

/* Service Cards */
.service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.service-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Gallery Items */
.gallery-item {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.gallery-item.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* Testimonial Cards */
.testimonial-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.testimonial-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section Titles */
.section-title {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.section-title.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar */
.nav-scrolled {
    background-color: rgba(250, 248, 245, 0.97) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
.nav-scrolled .menu-line {
    background-color: #3a2a22 !important;
}

/* Mobile Menu */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* 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;
    }
    .service-card,
    .gallery-item,
    .testimonial-card,
    .section-title {
        opacity: 1;
        transform: none;
    }
}
