@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Sarabun:wght@300;400;700&display=swap');
@font-face {
    font-family: 'Chalkduster';
    src: url('/static/core/fonts/Chalkduster.ttf') format('truetype');
}

:root { 
    --bg-main: #121212;         
    --bg-secondary: #1E1E1E;    
    --text-primary: #c1c1c1;    
    --text-secondary: #A0A0A0;  
    --accent-yellow: #e9cb2f ;   
    --text-black: #000000;      
    
    --fs-base: 16px;      
    --fs-h1: 32px;     
    --fs-h2: 24px;     
    --fs-h3: 22px;    
    --fs-p: 20px;        
    --fs-small: 14px; 
    --fs-big: 48px;      

    --div-yellow: #fec802; 
    --div-dark-gray: #393939; 
    --div-light-gray: #636363; 
    --div-black: #000000; 
}

body {
    color: var(--text-secondary);
    font-family: 'Tahoma','Verdana', sans-serif;
    line-height: 1.6; 
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--bg-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
    margin: 0;
}
main {
    flex: 1 0 auto; 
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    color: var(--text-primary) !important;
    font-weight: 700;
    font-family: 'Tahoma','Verdana', sans-serif !important;
    font-weight: 800; 
    letter-spacing: -0.5px; 
}
h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); font-weight: 600; }

p {
    font-family: 'Tahoma','Verdana', sans-serif !important; 
    font-size: var(--fs-p);
    letter-spacing: 0.3px; 
    color: var(--text-secondary); 
}

html {
    scrollbar-gutter: stable both-edges;
}
html, body{
    height:100%;
}

body{
    min-height:100vh;
    display:flex;
    flex-direction:column;
}
.text-yellow, .text-warning {
    color: var(--accent-yellow) !important;
}
.text-muted, .text-secondary {
    color: var(--text-secondary) !important; 
}
* {
    box-sizing: border-box;
}
.fake-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 26px;
    pointer-events: none;
    z-index: 10000;
    will-change: transform; 
}
.fake-cursor svg {
    width: 100%;
    height: 100%;
    fill: var(--text-primary); 
    transition: fill 0.15s ease;
}

.cursor-hover .fake-cursor svg {
    fill: var(--accent-yellow);
}

.cursor-halo {
    position: fixed;
    pointer-events: none;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.05);
    opacity: 0;
    z-index: 9999;
    transition: opacity 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    will-change: transform;
}


.cursor-hover .cursor-halo {
    opacity: 1;
    
}

a,
button,
.cursor-hover-target {
    cursor: pointer;
}
body.custom-cursor-active {
    cursor: none;
}
body.fake-active {
    cursor: none;
}

body.fake-active * {
    cursor: none !important;
}



.nav-container {
    height: 70px; 
}

.nav-wrapper {
    height: 70px;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
}
.nav-spacer {
    flex: 0.001 ; 
}
.nav-spacer-main {
    flex: 0.07; 
}

.nav-spacer-search {
    flex: 0.001;    
}

.nav-logo-section {
    display: flex;
}

.nav-links-section {
    display: flex;
    flex: 1;


}

.nav-link-item {
    flex: 1; 
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff69;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    border-right: 1px solid #333;
    transition: all 0.3s;
    position: relative;
    height: 100%;
    min-height: 70px;
}

.nav-link-item:hover {
    background-color: var(--bg-secondary);
    color: var(--accent-yellow);
}
.nav-links-section .d-lg-flex {
    width: 100%;
    max-width: 1000px;  
}

.navbar-collapse {
        transition: all 0.3s ease-in-out;
        flex-basis: auto !important;
        justify-content: center;
    }

.border-end-0 {
    border-right: none;
}

.nav-links-section .nav-link-item:first-child {
    border-left: 1px solid #333;
}


.nav-wrapper .nav-spacer:last-child {
    border-left: 1px solid #333;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='var(--accent-yellow)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

.custom-toggler {
    border: 1px solid var(--accent-yellow)  !important;
    padding: 4px 8px;
    outline: none !important;
}

.custom-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 222, 0, 0.25);
    padding: 4px 8px;
}
.custom-toggler:focus,
.custom-toggler:active {
    box-shadow: 0 0 0 0.25rem rgba(255, 222, 0, 0.25) !important; 
    outline: none !important;
}



.nav-link-item.active-nav {
    color: var(--accent-yellow)  !important;
    font-weight: 900; 
}
.nav-link-item.active-nav::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-yellow) ;
    bottom: -1px; 
}

.search-wrapper {
    position: relative;
    max-width: 350px;
    width: 200px; 
}

.search-wrapper input {
    width: 200px;  
    padding: 8px 30px 8px 12px; 

}

.search-btn {
    position: absolute;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    color: #c9c9c9b5;
    font-size: 14px;
    cursor: pointer;
    right: 9px;
    top: 50%;
}

.search-btn:hover {
    color: var(--accent-yellow);
}

@media (max-width: 991px) {
    html, body {
        overflow-y: auto;
    }
}
@media (max-width: 991.98px) {
    html {
    scrollbar-gutter: stable both-edges;
    }
    .navbar-collapse,
    .navbar-collapse.collapse,
    .navbar-collapse.collapsing,
    .navbar-collapse.show {
        display: block !important;
        height: auto !important;
        overflow: visible !important;
    }

    .navbar-collapse {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #000;
        border-top: 1px solid #333;
        z-index: 999;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);

        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(-15px) !important;
        pointer-events: none !important;
        transition: none !important; 
    }
    :root:has(.navbar-toggler[aria-expanded="true"]) .navbar-collapse {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
        transition: opacity 0.35s ease-in-out, transform 0.35s ease-in-out, visibility 0.35s ease-in-out !important;
    }

    :root:has(.navbar-toggler[aria-expanded="false"]) .navbar-collapse.collapsing {
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(-15px) !important;
        pointer-events: none !important;
        transition: opacity 0.35s ease-in-out, transform 0.35s ease-in-out, visibility 0.35s ease-in-out !important;
    }

    .nav-logo-section {
        width: 100%;
        height: 70px;
        border-left: none;
        border-right: none;
        padding-left: 2px;
    }

    .nav-links-section {
        background-color: #111; 
    }

    .nav-link-item {
        justify-content: flex-start; 
        border-right: none;
        border-bottom: 1px solid #222;
        padding: 20px 25px;
    }
    
    .search-bar {
        order: 1;   
        min-width: 0;
    }
    .search-wrapper {
        display: flex;

        margin-right:12px;
        max-width: 250px;
    }
    .search-wrapper input {
        flex: 1;
        width: 100%;
    }
    .navbar-toggler {
        order: 2;  
    }

}

@media (max-width: 768px){
    .nav-wrapper {
        padding: 10px;
    }
    .nav-logo-section {
        padding-left: 0;
    }
    .search-wrapper {
        max-width: 250px;
        width: 100%;
        margin-left: 20px;
        margin-right: 20px;
    }
    .search-wrapper input {
        width: 250px;
        
    }

}
@media (max-width: 575.98px) {

    .search-wrapper {
        max-width: 200px;
        width: 100%;
    }
    .container,
    .nav-wrapper,
    .projects-page {
        width: 100%;
        max-width: 100%;
    }
    .nav-logo-section {
        height: 55px;
        width: auto !important;
        flex: 0 0 auto !important;
    }
    .nav-wrapper{
        justify-content: space-between;
        padding: 10px;
        
    }
    .search-wrapper{
        width: 180px;
    }
    .search-wrapper input{
        height: 35px;
        width: 180px;
    }
    .search-btn{
        right: 10px;
    }
    .navbar-toggler-icon {
        width: 29px;
        height: 29px;
        font-size: 20px;
        align-items: center;
    }
}
@media (max-width: 425px) {

    body, html {
        overflow-x: hidden;
    }

    .projects-page,
    .container {
        width: 100%;
        max-width: 100%;
    }

    .navbar {
        height: 55px;
        justify-content: center;
    
    }

    .nav-wrapper {
        height: 55px;
        width: 185px;
    }

    .nav-logo-section {
        height: 55px;
    }
    .navbar {
        padding-top: 0;
        padding-bottom: 0;
    }
    .navbar-brand img {
        width: 100px;
        height: 25px;
    }
    .search-wrapper input{
        height: 29px;
        width: 185px;
        font-size: 10px;
    }
    .navbar-toggler-icon {
        width: 15px;
        height: 15px;
        font-size: 10px;
        align-items: center;
        margin-bottom: 2px;
    }

}

@media (max-width: 375px) {
    .navbar {
        height: 55px;
    }
    .nav-wrapper {
        height: 55px;
    }
    .nav-logo-section {
        height: 55px;
        margin-left: 0;
    }
    .navbar-brand img {
        height: 25px;
        width: 100px;
    }
    .search-wrapper input {
        height: 20px;
        font-size: 10px;
    }
    .search-wrapper{
        width: 130px;
    }
    .search-wrapper input{
        width: 130px;
    }
    .navbar-toggler-icon {
        width: 15px;
        height: 15px;
        font-size: 10px;
        align-items: center;
        margin-bottom: 2px;
    }
}


.splash-hidden { 
    opacity: 0; 
    visibility: hidden;
    pointer-events: none;
}

.splash-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity .8s ease, visibility .8s;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(
    180deg,
    var(--accent-yellow) ,
    #e6b800
);
    border-radius: 20px;
    border: 2px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
    180deg,SS
    var(--accent-yellow) ,
    #967800
);
}


.main-content{
    flex:1;
}



.footer-minimal {
    background: transparent;
    width: 100%;
}
footer.footer-minimal {
    flex-shrink: 0;
}


.footer-minimal .copyright-text {
    font-size: 12px !important; 
    line-height: 1.2 !important;
    color: rgba(255, 255, 255, 0.4) !important;
    letter-spacing: 0.5px !important;
    display: inline-block !important;
}


.footer-minimal div.container-fluid.text-center {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

main, .container-fluid {
    flex: 1; 
}

@media (hover: none) and (pointer: coarse) {
    html, body, * {
        cursor: auto !important;
    }
}

@media (max-width: 768px) {

    body {
        cursor: auto !important;
    }

    .fake-cursor,
    .cursor-halo {
        display: none !important;
    }

    body.fake-active * {
        cursor: auto !important;
    }
}
@media (hover: none) and (pointer: coarse) {

    .fake-cursor,
    .cursor-halo {
        display: none !important;
    }

    body.fake-active,
    body.fake-active * {
        cursor: auto !important;
    }
    .custom-cursor,
    .cursor-halo,
    .fake-cursor {
        display: none !important;
    }

    * {
        cursor: auto !important;
    }
}
@media (max-width: 768px) {

    .custom-cursor,
    .cursor-halo,
    .fake-cursor {
        display: none !important;
    }

    * {
        cursor: auto !important;
    }
}
.fake-cursor,
.cursor-halo{
    pointer-events: none;
    position: fixed;
    z-index: 9999;
}

.secret-login-link {
    color: inherit; 
    text-decoration: none; 
    cursor: text; 
}

.secret-login-link:hover {
    color: inherit;
    text-decoration: none;
}


.admin-nav-link {
    color: var(--accent-yellow) !important; 
}


.logout-nav-btn {
    border: none; 
    background: transparent; 
    outline: none;
    padding: 0;
    color: inherit;
}

@supports (-webkit-touch-callout: none) {
@media (max-width: 768px) {
    .navbar-collapse{
        top: 55px;;
    }
}
}
@media (max-width: 768px) {
    .navbar-collapse{
        top: 55px;;
    }
}