/* Restore Default Scrollbar Visibility */
html, body {
    overflow-y: auto !important;
}

/* Reset scrollbar styling to defaults */
::-webkit-scrollbar {
    display: block !important;
    width: auto !important;
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

body { font-family: 'Inter', sans-serif; }
.font-serif { font-family: 'Playfair Display', serif; }
/* Glass Nav */
.glass-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
/* Button Hover Effect */
.btn-curtain {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
}
.btn-curtain::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background-color: #3305d8;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}
.btn-curtain:hover::before {
    height: 100%;
}
.btn-curtain:hover {
    color: white !important;
    border-color: #3305d8;
}
/* Nav Link Hover */
.nav-link {
    position: relative;
}
.nav-link::before, .nav-link::after {
    display: inline-block;
    opacity: 0;
    transition: transform 0.3s, opacity 0.2s;
    color: #3305d8;
    font-weight: 400;
}
.nav-link::before { content: '['; margin-right: 6px; transform: translateX(10px); }
.nav-link::after { content: ']'; margin-left: 6px; transform: translateX(-10px); }
.nav-link:hover::before, .nav-link:hover::after {
    opacity: 1;
    transform: translateX(0);
}
/* Active Link State */
.nav-link.active {
    color: #3305d8;
}
.nav-link.active::before, .nav-link.active::after {
    opacity: 1;
    transform: translateX(0);
}
/* Process Section Animations */
.process-line {
    background: linear-gradient(to bottom, transparent, #3305d8, transparent);
    background-size: 100% 200%;
    animation: flow 3s linear infinite;
}
@keyframes flow {
    0% { background-position: 0% 100%; }
    100% { background-position: 0% 0%; }
}
/* Mobile Menu Transitions */
#mobile-menu {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}
.menu-open {
    overflow: hidden;
}
/* Custom Pattern Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
.animate-float {
    animation: float 6s ease-in-out infinite;
}
/* Mobile Submenu Transition */
.mobile-sub-hidden {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}
.mobile-sub-visible {
    max-height: 300px;
    opacity: 1;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* Nav Solid State (for Mobile Menu) */
.nav-solid {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Z-Index Fixes */
.z-nav-fixed {
    z-index: 9999 !important;
}
.z-menu-overlay {
    z-index: 9998 !important;
}

/* Content Typography (.prose) */
.prose {
    color: #334155; /* text-slate-700 */
    font-size: 1.125rem; /* text-lg */
    line-height: 1.8;
}

.prose p {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
}

.prose h1, .prose h2, .prose h3, .prose h4 {
    color: #0f172a; /* text-slate-900 */
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    line-height: 1.3;
    margin-top: 2em;
    margin-bottom: 1em;
}

.prose h2 { font-size: 1.875rem; } /* 30px */
.prose h3 { font-size: 1.5rem; }   /* 24px */
.prose h4 { font-size: 1.25rem; }  /* 20px */

.prose strong {
    color: #0f172a;
    font-weight: 600;
}

.prose a {
    color: #3305d8;
    text-decoration: none;
    font-weight: 500;
}

.prose a:hover,
.prose a:focus {
    text-decoration: underline;
}

.prose ul, .prose ol {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    padding-left: 1.625em;
}

.prose ul { list-style-type: disc; }
.prose ol { list-style-type: decimal; }

.prose li {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    padding-left: 0.375em;
}

/* Nested lists */
.prose ul ul, .prose ul ol, .prose ol ul, .prose ol ol {
    margin-top: 0.75em;
    margin-bottom: 0.75em;
}

.prose blockquote {
    font-weight: 500;
    font-style: italic;
    color: #0f172a;
    border-left-width: 0.25rem;
    border-left-color: #cbd5e1; /* slate-300 */
    margin-top: 1.6em;
    margin-bottom: 1.6em;
    padding-left: 1em;
}

.prose img {
    margin-top: 2em;
    margin-bottom: 2em;
    border-radius: 0.75rem; /* rounded-xl */
    width: 100%;
    height: auto;
}

.prose hr {
    margin-top: 3em;
    margin-bottom: 3em;
    border-color: #e2e8f0; /* slate-200 */
}

/* Adjustments for the first element usually */
.prose > *:first-child {
    margin-top: 0;
}
