*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --font-cormorant: 'Cormorant Garamond', Georgia, serif;
    --font-inter: 'Inter', system-ui, sans-serif;
}

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

body {
    font-family: var(--font-inter);
    font-weight: 300;
    line-height: 1.7;
    color: #1E293B;
    background-color: #FFFFFF;
}

.font-cormorant {
    font-family: var(--font-cormorant);
}

.font-inter {
    font-family: var(--font-inter);
}

.section-label {
    font-family: var(--font-inter);
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #1A3A3A;
    font-weight: 500;
}

/* Hero reveal animations */
.hero-reveal {
    opacity: 0;
    transform: translateY(24px);
    animation: heroReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-reveal:nth-child(1) { animation-delay: 0.1s; }
.hero-reveal:nth-child(2) { animation-delay: 0.2s; }
.hero-reveal:nth-child(3) { animation-delay: 0.3s; }
.hero-reveal:nth-child(4) { animation-delay: 0.4s; }
.hero-reveal:nth-child(5) { animation-delay: 0.5s; }
.hero-reveal:nth-child(6) { animation-delay: 0.6s; }
.hero-reveal:nth-child(7) { animation-delay: 0.7s; }

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal for below-fold sections */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Service cards */
.service-card {
    transition: background-color 0.3s ease;
}

.service-card:hover {
    background-color: #F8FAFC;
}

.service-card:hover svg {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.service-card svg {
    transition: transform 0.3s ease;
}

/* Navigation */
#main-header {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#main-header.scrolled {
    border-bottom-color: #F1F5F9;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

/* Mobile menu */
#mobile-menu {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

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

.mobile-link {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* Menu lines animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

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

/* Image hover */
img {
    display: block;
    max-width: 100%;
}

/* Selection color */
::selection {
    background-color: #1A3A3A;
    color: #FFFFFF;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #1A3A3A;
    outline-offset: 2px;
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}
