:root{
    --bg: #fbfbfc;
    --card: #ffffff;
    --muted: #6b7280;
    --text: #0b1220;
    --accent: #311599;
    --accent-2: #130F30;
    --radius: 12px;
    --container: 1100px;
    --shadow-sm: 0 6px 18px rgba(11,18,32,0.06);
    --glass: rgba(11,18,32,0.03);
}

.theme-dark{
    --bg: #010414;
    --card: #071428;
    --muted: #9aa4b2;
    --text: #e6eef8;
    --accent: #DDFCFF;
    --accent-2: #187FDE;
    --shadow-sm: 0 8px 28px rgba(0,0,0,0.6);
    --glass: rgba(255,255,255,0.02);
}

header{
    position:sticky; top:0; z-index:40;
    backdrop-filter: blur(6px);
    background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0.4));
    border-bottom:1px solid rgba(11,18,32,0.04);
}

body.theme-dark header{
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border-bottom:1px solid rgba(255,255,255,0.03);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
    margin:0;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background:linear-gradient(180deg,var(--bg),var(--bg));
    color:var(--text);
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
    line-height:1.45;
    padding-bottom:3rem;
    scroll-behavior:smooth;
}

.main{
    max-width:var(--container);
    margin:0 auto;
    padding:28px 20px;

}

.header{
    max-width:var(--container);
    margin:0 auto;padding:12px 20px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px
}

.header-title{
    font-weight:700
}

.header-subtitle{
    font-size:.78rem;color:var(--muted)
}

.title{
    display:flex;
    align-items:center;
    gap:10px;
    text-decoration:none;
    color:var(--text)
}

.title .logo {
    width: 40px;
    height: 40px;
    border-radius: 1px;
    overflow: hidden; 
    display: inline-block;
}


.title .logo img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    display: block; 
}


.navnotbootstrap{
    display:flex;
    align-items:center;
    gap:12px
}

.nav-linknotbootstrap{
    color:var(--muted);
    text-decoration:none;
    font-weight:600;
    font-size:.95rem
}

.nav-linknotbootstrap:hover{
    color:var(--text)
}

.shiny{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 12px;
    border-radius:10px;
    border:0;
    background:linear-gradient(90deg,var(--accent),var(--accent-2));
    color:white;
    font-weight:700;
    text-decoration:none;
    cursor:pointer;
    
}

#hello{
    margin-left:8px
}

.invis{
    background:transparent;
    border:1px solid rgba(11,18,32,0.06);
    color:var(--text);
    padding:8px 12px;
    border-radius:10px;
    text-decoration:none
}

body.theme-dark .invis{
    border-color:rgba(255,255,255,0.04);
    color:var(--text)
}

.intro{
    display:grid;
    grid-template-columns: 320px 1fr;
    gap:28px;
    align-items:center;
    margin-top:24px;
}



@media(max-width:880px){ 
    .intro{
        grid-template-columns:1fr; 
        text-align:center
    } 
    .intro .bio{
        order:2
    } 
    .intro .avatar{
        order:1; 
        margin-bottom:10px
    } 
}

.avatar{
    width:320px;
    max-width:100%;
    height:320px;
    max-height:320px;
    border-radius:18px;
    overflow:hidden;
    box-shadow:var(--shadow-sm);
    background:var(--card);
    display:flex;
    align-items:center;
    justify-content:center;
}

.avatar img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block
}

.intro-bio{
    margin:0;
    font-size:2.1rem
}

.sub-bio{
    color:var(--muted);
    margin:10px 0 16px
}

.badges{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin-top:8px
}

.badge{
    font-weight:700;
    padding:6px 10px;
    border-radius:999px;
    background:var(--card);
    box-shadow:var(--shadow-sm);
    color:var(--muted);
    font-size:.85rem
}

.rownotbootstrap{
    display:flex;
    gap:12px;
    margin-top:18px;
    flex-wrap:wrap
}

.subsub-bio{
    margin-top:10px;
    color:var(--muted);
    font-size:.92rem
}

.section{
    margin-top:40px
}

h2.section-title{
    margin:0 0 14px;
    font-size:1.25rem
}

.grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:14px;
}

#grid{
    margin-top:12px;
}

@media (max-width:980px){ 
    .grid{
        grid-template-columns:repeat(2,1fr)
    } 
}
@media (max-width:640px){ 
    .grid{grid-template-columns:1fr} 
}

.article{
    background:var(--card);
    border-radius:12px;
    box-shadow:var(--shadow-sm);
    overflow:hidden;
    display:flex;flex-direction:column;
    transition:transform .18s ease, box-shadow .18s ease;
}

.article:hover{
    transform:translateY(-6px)
}

.article .thumbnail{
    height:160px;
    background:var(--glass);
    display:block
}

.article .thumbnail img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block
}

.article .project-title{
    padding:12px 14px
}

.article h3{
    margin:0 0 6px;
    font-size:1rem
}

.article p{
    margin:0;
    color:var(--muted);
    font-size:.92rem
}

.tags{
    display:flex;
    gap:8px;
    margin-top:10px;
    flex-wrap:wrap
}

.tag{
    font-size:.78rem;
    padding:6px 8px;
    border-radius:8px;
    background:rgba(11,18,32,0.04);
    color:var(--muted)
}

.note-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:12px;
    margin-top:12px
}

#note-card{
    padding:12px
}

.note-title{
    font-size:1rem;
    margin:0 0 8px
}

.note-text{
    margin:0 0 8px;
    font-size:.92rem
}

.note-hyper{
    text-decoration:none
}

.muted{
    color:var(--muted)
}

.game-grid {
  display:grid;
  grid-template-columns:1fr 320px;
  gap:16px;
  margin-top:12px;
}
@media (max-width:880px){
  .game-grid { grid-template-columns: 1fr; }
}

.dot{
    width:12px;
    height:12px;
    border-radius:50%;
    background:var(--accent)
}

.description{
    color:var(--muted);
    font-size:.9rem
}


.game{
    display:flex;
    gap:12px;
    align-items:flex-start
}

.games{
    display:flex;
    flex-direction:column;
    gap:12px
}

.games-subtitle{
    margin-top:12px; 
    margin-bottom:8px
}


.progress{
  height:8px;
  background:rgba(11,18,32,0.06);
  border-radius:999px;
  overflow:hidden;
}

.level1{
    width:92%
}

.level2{
    width:80%
}

.level3{
    width:70%
}

.level4{
    width:60%
}

.level5{
    width:50%
}

.level6{
    width:40%
}

.skills{
    display:flex;
    gap:14px;
    flex-wrap:wrap
}


.skill{
    min-width:160px;
    background:var(--card);
    padding:10px;
    border-radius:10px;
    box-shadow:var(--shadow-sm)
}

.skill h4{
    margin:0 0 8px;
    font-size:.95rem
}

.progress span{
    display:block;
    height:100%;
    background:linear-gradient(90deg,var(--accent),var(--accent-2));
}

.game-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 6px;
  border-radius: 8px;
}
.game-link:focus-visible,
.game-link:hover {
  background: rgba(0,0,0,0.04);
  outline: none;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12); 
}

.contact-grid{
    display:grid;
    grid-template-columns:1fr 320px;
    gap:16px;
    margin-top:12px
}
@media (max-width:880px){ 
    .contact-grid{
        grid-template-columns:1fr
    } 
}

.field{
    margin-bottom:10px
}
 
input,textarea{
    width:100%;
    padding:10px;
    border-radius:8px;
    border:1px solid rgba(11,18,32,0.06);
    background:transparent;
    color:var(--text)
}

textarea{
    min-height:110px;
    resize:vertical
}

input:focus,textarea:focus{
    outline:none;
    box-shadow:0 0 0 6px rgba(255,107,107,0.06);
    border-color:var(--accent)
}

.send{
    display:flex;
    gap:8px;
    align-items:center
}

#form-status{
    font-size:.95rem
}

.link{
    margin-top:10px;
    color:var(--muted);
    font-size:.92rem
}

.about2{
    background:var(--card);
    padding:14px;
    border-radius:12px;
    box-shadow:var(--shadow-sm)
}

.about2-title{
    margin-top:0
}

.about2-subtitle{
    margin-top:12px;
    margin-bottom:8px
}

#quickbio{
    font-size:.92rem
}

.socials{
    display:flex;
    gap:12px
}

footer{
    margin-top:44px;
    color:var(--muted);
    font-size:.9rem
}

.outro{
    max-width:700px;
    margin:0 auto
}

.outro-name{
    margin:0
}

#end{
    margin-top:8px
}

.footer{
    margin-top:40px;
    text-align:center
}

.popup{
    position:fixed;
    inset:0;background:rgba(2,6,23,0.5);
    display:none;
    align-items:center;
    justify-content:center;
    padding:20px;z-index:60
}

.box{
    max-width:900px;
    background:var(--card);
    border-radius:12px;
    padding:18px;
    box-shadow:var(--shadow-sm);
    display:flex;
    gap:16px;
    flex-direction:row
}

.box-left{flex:1}

.box-right{width:320px}

.close{
    background:transparent;
    border:0;
    font-size:22px;
    color:var(--muted);
    cursor:pointer
}

.box-show{display:flex}

.box-tags{
    margin-top:10px
}

.box-img{
    width:100%;
    height:200px;
    object-fit:cover;
    border-radius:8px
}

.box-btn{
    margin-top:10px;
    display:flex;
}

#box-demo{
    display:inline-block;
    margin-right:8px
}

.resume-item {
    margin-bottom: 8px;
}

.resume-item h4 {
    color: var(--text);
    font-size: 0.95rem;
}


#resume .article:hover {
    transform: none;
    box-shadow: var(--shadow-sm); 
}