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

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

body {
    overflow-x: hidden;
}

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

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

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Navbar ===== */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled .nav-link {
    color: rgba(30, 41, 59, 0.85);
}

#navbar.scrolled .nav-link:hover {
    color: #0d9488;
}

#navbar.scrolled .logo-text {
    color: #1e293b;
}

#navbar.scrolled .mobile-link {
    color: #334155;
}

#navbar.scrolled .mobile-link:hover {
    color: #0d9488;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
    font-family: 'Lora', Georgia, serif;
}

p, li, a, span, input, textarea, button {
    font-family: 'Raleway', Helvetica, Arial, sans-serif;
}

/* ===== Button Focus ===== */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

/* ===== Selection ===== */
::selection {
    background: rgba(13, 148, 136, 0.2);
    color: #134e4a;
}

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

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

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}
