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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mobile Menu */
.mobile-nav-link {
    display: block;
}

#mobile-menu.open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu.open .menu-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu.open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }

    .reveal.revealed {
        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 geometric animations */
    .hero-geo {
        animation: float 6s ease-in-out infinite;
    }

    .hero-geo:nth-child(2) { animation-delay: -1s; animation-duration: 7s; }
    .hero-geo:nth-child(3) { animation-delay: -2s; animation-duration: 5s; }
    .hero-geo:nth-child(4) { animation-delay: -3s; animation-duration: 8s; }
    .hero-geo:nth-child(5) { animation-delay: -1.5s; animation-duration: 6s; }
    .hero-geo:nth-child(6) { animation-delay: -4s; animation-duration: 7s; }
    .hero-geo:nth-child(7) { animation-delay: -2.5s; animation-duration: 9s; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(var(--rotation, 0deg)); }
    50% { transform: translateY(-15px) rotate(var(--rotation, 0deg)); }
}

.hero-geo {
    --rotation: 0deg;
}

.hero-geo:nth-child(4) { --rotation: 45deg; }
.hero-geo:nth-child(7) { --rotation: 12deg; }

/* Service card hover */
.service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease;
}

/* Navbar scroll state */
.navbar-scrolled {
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08) !important;
}

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

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

::-webkit-scrollbar-thumb {
    background: #e8552a;
    border-radius: 4px;
}

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

/* Selection color */
::selection {
    background: #fce3d8;
    color: #7a2716;
}

/* Form focus styles */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* Image loading placeholder */
img {
    background-color: #faf0d5;
}
