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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar transition */
#navbar {
    transition: background-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

#navbar .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

#navbar.scrolled .nav-link {
    color: #2D2D2D;
}

#navbar .font-serif {
    color: #fff;
}

#navbar.scrolled .font-serif {
    color: #1A1A1A;
}

#navbar #menu-icon {
    stroke: #fff;
}

#navbar.scrolled #menu-icon {
    stroke: #2D2D2D;
}

/* Mobile menu links */
.mobile-link {
    color: #2D2D2D;
}

/* Smooth underline on nav links */
.nav-link {
    position: relative;
}

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

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

/* Image hover zoom */
section img {
    transition: transform 0.6s ease;
}

/* Selection */
::selection {
    background: #E8653A;
    color: #fff;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    section img { transition: none !important; }
    .nav-link::after { transition: none !important; }
}
