

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&display=swap');

/* Base Settings */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; 
}

body {
    font-family: 'Inter', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Hide Scrollbar */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Custom Selection */
::selection { background-color: #000; color: #fff; }
.dark ::selection { background-color: #fff; color: #000; }

/* Navigation Animations */
.nav-transition {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
}
.nav-hidden {
    transform: translateY(-100%);
}
.nav-visible {
    transform: translateY(0);
}

/* Docs Nav Active State */
.active-doc-btn {
    color: #000 !important;
    font-weight: 700 !important;
}
.dark .active-doc-btn {
    color: #fff !important;
}

/* Text Utilities */
.text-shadow-subtle {
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fadeIn 0.7s ease-out forwards; }

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(5px); }
    60% { transform: translateY(3px); }
}
.animate-scroll-bounce {
    animation: scrollBounce 2s infinite ease-in-out;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}
.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Accordion */
.accordion-content { transition: grid-template-rows 0.3s ease-out; }
.accordion-open { grid-template-rows: 1fr; }
.accordion-closed { grid-template-rows: 0fr; }