/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

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

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

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

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

/* Hero Animations */
.hero-anim {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-anim.translate-y-full {
    transform: translateY(100%);
}

.hero-anim.translate-y-0 {
    transform: translateY(0);
}

.hero-image {
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-image.scale-100 {
    transform: scale(1);
}

.hero-image.scale-105 {
    transform: scale(1.05);
}

/* Scroll Reveal */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

.menu-line {
    display: block;
}

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

.menu-line.open-2 {
    opacity: 0;
}

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

/* Navbar Scroll State */
.navbar-scrolled {
    background: rgba(250, 250, 248, 0.95);
    backdrop-filter: blur(10px);
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-shadow: 0 1px 0 rgba(45, 96, 61, 0.1);
}

/* Form Focus States */
input:focus,
textarea:focus,
select:focus {
    border-color: #2d603d !important;
}

/* Selection Color */
::selection {
    background: #c5dfca;
    color: #163220;
}

/* 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;
    }
}

/* Utility */
.font-serif {
    font-family: 'Cormorant Garamond', serif;
}

.font-sans {
    font-family: 'Montserrat', sans-serif;
}
