/* Base Reset & Typography */
html {
    scroll-behavior: smooth;
}

body {
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes scroll {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

.animate-fade-in-up {
    animation-name: fadeInUp;
    animation-duration: 1s;
    animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
}

.animate-scroll {
    animation: scroll 1.5s ease-in-out infinite;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #2d6a4f;
}

/* Mobile Menu Transitions */
#mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
}

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

#menu-btn.active #line1 {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-btn.active #line2 {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Focus States for Accessibility */
input:focus,
textarea:focus,
button:focus {
    outline: none;
}

/* Selection Color */
::selection {
    background: #1a4a2b;
    color: #f8f7f4;
}
