/* ===== BASE & RESET ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(6, 78, 59, 0.2);
    color: #064e3b;
}

/* ===== NAVIGATION ===== */
.nav-link {
    position: relative;
    color: rgba(250, 248, 245, 0.7);
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: rgba(250, 248, 245, 0.6);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: rgba(250, 248, 245, 1);
}

.nav-link:hover::after {
    width: 100%;
}

/* Transparent nav link colors */
#navbar.bg-transparent .nav-link {
    color: rgba(250, 248, 245, 0.7);
}

#navbar.bg-transparent .nav-link:hover {
    color: rgba(250, 248, 245, 1);
}

#navbar.bg-transparent .nav-link::after {
    background: rgba(250, 248, 245, 0.6);
}

/* Scrolled nav */
#navbar.scrolled {
    background: rgba(250, 248, 245, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(6, 78, 59, 0.08);
}

#navbar.scrolled .nav-link {
    color: rgba(6, 78, 59, 0.6);
}

#navbar.scrolled .nav-link:hover {
    color: rgba(6, 78, 59, 1);
}

#navbar.scrolled .nav-link::after {
    background: rgba(6, 78, 59, 0.5);
}

#navbar.scrolled .mobile-link {
    color: #064e3b !important;
}

#navbar.scrolled #menu-btn .menu-line {
    background: #064e3b !important;
}

/* Mobile menu */
#mobile-menu.open {
    opacity: 1 !important;
    pointer-events: all !important;
}

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

.mobile-link {
    transition: color 0.3s ease;
}

/* Hamburger animation */
.menu-line {
    transition: all 0.3s ease;
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

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

#menu-btn.active .menu-line:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
    width: 1.5rem;
}

/* ===== HERO ANIMATIONS ===== */
.hero-sub {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.8s ease forwards 0.3s;
}

.hero-title {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.8s ease forwards 0.5s;
}

.hero-body {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.8s ease forwards 0.7s;
}

.hero-cta {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.8s ease forwards 0.9s;
}

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

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ===== GALLERY HOVER ===== */
.gallery-item {
    overflow: hidden;
}

.gallery-item img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ===== FOCUS STYLES ===== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid rgba(6, 78, 59, 0.5);
    outline-offset: 4px;
    border-radius: 2px;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(6, 78, 59, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(6, 78, 59, 0.4);
}
