@font-face {
    font-family: 'Thmanyah Sans';
    src: url('/static/Fonts/thmanyahsans-Regular.woff2?v=2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Thmanyah Sans';
    src: url('/static/Fonts/thmanyahsans-Medium.woff2?v=2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Thmanyah Sans';
    src: url('/static/Fonts/thmanyahsans-Bold.woff2?v=2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-primary: #8FA486;
    --color-primary-hover: #A5B99A;
    --color-primary-muted: #718668;
    --color-secondary: #F3D8C2;
    --color-secondary-hover: #F8E4D2;
    --color-background: #10130F;
    --color-surface: #171B16;
    --color-surface-hover: #20261F;
    --color-surface-muted: #252D23;
    --color-text-primary: #F4F1EB;
    --color-text-secondary: #B8C0B4;
    --color-text-muted: #7F897C;
    --color-border: #2B352A;
    --color-border-light: #354233;
    --color-warning: #D6A66F;
    --color-error: #D66F6F;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth; 
}

body {
    font-family: 'Thmanyah Sans', sans-serif;
    background-color: var(--color-background);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    scrollbar-width: thin; 
    scrollbar-color: var(--color-border) var(--color-surface); 
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.w-100 { width: 100%; text-align: center; display: block; }
.mb-2 { margin-bottom: 12px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }


.navbar-wrapper {
    position: sticky; 
    top: 20px; 
    z-index: 100;
    padding: 0 24px;
}

.pill-nav {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    height: 64px;
    background-color: rgba(23, 27, 22, 0.7); 
    border: 1px solid var(--color-border);
    border-radius: 15px; 
    padding: 0 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.navbar-links { 
    display: flex; 
    gap: 36px; 
    align-items: center; 
}

.nav-item > a {
    color: var(--color-text-secondary);
    font-weight: 500; 
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 4px;
}


.nav-item > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-item > a:hover { 
    color: var(--color-text-primary); 
    text-shadow: 0 0 8px rgba(143, 164, 134, 0.4);
}

.nav-item > a:hover::after {
    width: 100%;
}

.navbar-actions { display: flex; align-items: center; gap: 20px; }

.btn-text {
    color: var(--color-text-secondary); 
    font-weight: 500; font-size: 0.95rem;
    transition: color 0.2s;
}
.btn-text:hover { color: var(--color-text-primary); }

.btn-primary {
    background-color: var(--color-primary); 
    color: var(--color-background);
    padding: 8px 24px; 
    border-radius: 10px; 
    border: none;
    font-weight: 600; 
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.btn-primary:hover { 
    background-color: var(--color-primary-hover); 
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(143, 164, 134, 0.3);
}

.btn-outline {
    cursor: pointer;
    background-color: transparent; color: var(--color-text-primary);
    padding: 8px 24px; border: 1px solid var(--color-border); border-radius: 10px;
    font-weight: 500; font-size: 0.95rem; transition: all 0.3s ease;
}
.btn-outline:hover { border-color: var(--color-text-muted); background-color: var(--color-surface); }


.menu-toggle { 
    display: none; font-size: 1.4rem; color: var(--color-text-primary); 
    cursor: pointer; transition: color 0.3s;
}
.menu-toggle:hover { color: var(--color-primary); }

.mobile-overlay {
    position: fixed; inset: 0; background: rgba(16, 19, 15, 0.8);
    opacity: 0; visibility: hidden; transition: all 0.4s ease; z-index: 1000;
}
.mobile-overlay.active { opacity: 1; visibility: visible; }

.mobile-drawer {
    position: fixed; top: 0; right: -320px; width: 320px; height: 100vh;
    background-color: var(--color-surface); 
    border-left: 1px solid var(--color-border);
    border-radius: 24px 0 0 24px;
    z-index: 1001; display: flex; flex-direction: column;
    transition: right 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}
.mobile-drawer.active { right: 0; }

.drawer-header { 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 32px 24px 24px; border-bottom: 1px solid var(--color-border-light); 
}
.close-drawer { 
    background: var(--color-surface-muted); width: 36px; height: 36px; 
    border-radius: 50%; border: 1px solid var(--color-border);
    color: var(--color-text-secondary); font-size: 1.1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.close-drawer:hover { background: var(--color-border-light); color: var(--color-text-primary); transform: rotate(90deg); }

.drawer-content { 
    flex: 1; padding: 32px 24px; display: flex; flex-direction: column; gap: 16px; 
}
.drawer-link { 
    font-size: 1.1rem; font-weight: 500; color: var(--color-text-secondary);
    padding: 12px 16px; border-radius: 12px; transition: all 0.3s;
    display: flex; align-items: center; gap: 12px;
}
.drawer-link i { color: var(--color-primary-muted); width: 24px; transition: color 0.3s; }
.drawer-link:hover { 
    background-color: var(--color-surface-muted); 
    color: var(--color-text-primary);
    transform: translateX(-5px);
}
.drawer-link:hover i { color: var(--color-primary); }

.drawer-footer { padding: 24px; border-top: 1px solid var(--color-border-light); background-color: rgba(0,0,0,0.1); }

@media (max-width: 900px) {
    #desktop-nav, .desktop-actions { display: none; }
    .menu-toggle { display: block; }
    .navbar-wrapper { padding: 0 16px; }
}


.site-footer {
    border-top: 1px solid var(--color-border);
    background-color: var(--color-background);
    padding-top: 80px;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-brand {
    flex: 1.2;
    max-width: 320px;
}

.footer-brand p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin: 0 0 24px ;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.social-links a:hover {
    background-color: var(--color-primary-muted);
    color: var(--color-background);
    border-color: var(--color-primary);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 16px rgba(143, 164, 134, 0.2);
}

.footer-links-grid {
    flex: 2.8;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.footer-col h4 {
    color: var(--color-text-primary);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-col a {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    position: relative;
}

.footer-col a:hover {
    color: var(--color-text-primary);
    padding-right: 6px; 
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 0;
    border-top: 1px solid var(--color-border-light);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    background-color: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-primary);
    animation: statusPulse 2.5s infinite;
}

@keyframes statusPulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

@media (max-width: 1024px) {
    .footer-content {
        flex-direction: column;
        gap: 48px;
    }
    .footer-brand {
        max-width: 100%;
    }
    .footer-links-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 24px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-links-grid {
        grid-template-columns: 1fr;
    }
}


.app-loader {
    position: fixed;
    inset: 0;
    background-color: var(--color-background);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999; 
    opacity: 1;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.app-loader.fade-out {
    opacity: 0;
    pointer-events: none; 
}

.loader-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--color-border-light);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spinLoader 0.8s linear infinite;
    box-shadow: 0 0 20px rgba(143, 164, 134, 0.1);
}

@keyframes spinLoader {
    to { transform: rotate(360deg); }
}


.navbar-links {
    display: flex;
    gap: 32px;
    align-items: center;
    margin: 0 auto;
}

.nav-link {
    color: var(--color-text-secondary);
    font-weight: 500;
    text-decoration: none;
    font-size: 1.05rem;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-primary);
}


.drawer-menu {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--color-text-primary);
    font-weight: 500;
    font-size: 1.1rem;
    text-decoration: none;
    padding: 14px 16px;
    border-radius: 12px;
    transition: background 0.3s ease, color 0.3s ease;
}

.drawer-link:hover {
    background: var(--color-background);
    color: var(--color-primary);
}

.drawer-link i {
    color: var(--color-text-muted);
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    transition: color 0.3s ease;
}

.drawer-link:hover i {
    color: var(--color-primary);
}


@media (max-width: 900px) {
    .desktop-links {
        display: none;
    }
}