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

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

body { margin: 0; overflow-x: hidden; }

::selection { background: #C5D2C9; color: #0F3D2E; }

.nav-fixed {
    background: rgba(250, 250, 247, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(197, 210, 201, 0.4);
}

.nav-fixed.scrolled {
    background: rgba(250, 250, 247, 0.95);
    box-shadow: 0 1px 0 rgba(15, 61, 46, 0.06);
}

.nav-logo-text { color: #0F3D2E; }

.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #4A6B4D;
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

.mobile-menu-bg { opacity: 0; transition: opacity 0.5s ease; }
.mobile-menu-bg.active { opacity: 1; }

.mobile-menu { box-shadow: -20px 0 60px rgba(0,0,0,0.3); }

.mobile-link { font-family: 'Cormorant Garamond', Georgia, serif; }

.mobile-menu-open { overflow: hidden; }

.mobile-menu-open #menu-line-1 { transform: rotate(45deg) translate(3px, 3px); }
.mobile-menu-open #menu-line-2 { opacity: 0; width: 0; }
.mobile-menu-open #menu-line-3 { transform: rotate(-45deg) translate(3px, -3px); }

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

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.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; }

/* Floating card animations */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}
@keyframes float-medium {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}
@keyframes float-fast {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.float-slow { animation: float-slow 6s ease-in-out infinite; }
.float-medium { animation: float-medium 4.5s ease-in-out infinite; }
.float-fast { animation: float-fast 5s ease-in-out infinite; }

.float-delay-1 { animation-delay: -1s; }
.float-delay-2 { animation-delay: -2.5s; }
.float-delay-3 { animation-delay: -0.5s; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #F5F4EE; }
::-webkit-scrollbar-thumb { background: #C5D2C9; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #97B09A; }

/* Focus styles */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #4A6B4D;
    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; }
    .reveal { opacity: 1; transform: none; }
}
