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

body {
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #fdf8f0;
}
::-webkit-scrollbar-thumb {
    background: #e0a560;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c98a48;
}

/* Selection */
::selection {
    background: #d44f30;
    color: white;
}

/* Animations */
@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

.animate-scroll-line {
    animation: scrollLine 2s ease-in-out infinite;
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.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; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* Hero specific */
.hero-label { transition-delay: 0.1s; }
.hero-title { transition-delay: 0.2s; }
.hero-subtitle { transition-delay: 0.3s; }
.hero-cta { transition-delay: 0.4s; }
.hero-scroll { transition-delay: 0.6s; }

/* Service cards */
.service-card { transition: background-color 0.5s ease; }
.service-card:hover .rounded-full {
    background-color: #d44f30;
    border-color: #d44f30;
}

/* Navbar */
.navbar-scrolled {
    background: rgba(254, 252, 249, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(232, 226, 216, 0.6);
}

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

/* Menu button animation */
.menu-line.active:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}
.menu-line.active:nth-child(2) {
    transform: rotate(-45deg) translate(0px, 0px);
}

/* Form select styling */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a0a0a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Hover underline for nav links */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #d44f30;
    transition: width 0.3s ease;
}
.nav-link {
    position: relative;
}
.nav-link:hover::after {
    width: 100%;
}

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Print styles */
@media print {
    header, footer, .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
