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

/* =========================
RESET
========================= */

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

/* =========================
BODY
========================= */

body{
font-family:'Inter', sans-serif;
background:#0d0d12;
color:#d6d6de;
line-height:1.6;
min-height:100vh;
display:flex;
flex-direction:column;
}

/* =========================
HEADER
========================= */

header{
background:#12121a;
text-align:center;
padding:60px 20px;
border-bottom:1px solid #23232e;
max-width:1200px;
margin:0 auto;
width:100%;
}

header h1{
font-family:'Space Grotesk', sans-serif;
font-size:36px;
margin-bottom:10px;
color:#e9e9f1;
}

header p{
color:#9aa0ad;
font-size:14px;
}

/* =========================
NAVBAR
========================= */

nav{
background:#101017;
border-bottom:1px solid #23232e;
position:sticky;
top:0;
z-index:100;
}

nav ul{
display:flex;
justify-content:center;
flex-wrap:wrap;
gap:25px;
padding:14px;
list-style:none;
}

nav a{
text-decoration:none;
color:#a8a8b8;
font-size:14px;
transition:.2s;
}

nav a:hover{
color:#c7a6ff;
}

/* =========================
MAIN LAYOUT
========================= */

main{
max-width:1100px;
margin:auto;
padding:40px 20px;
flex:1;
}

/* =========================
SECTIONS
========================= */

section{
background:#15151d;
border:1px solid #242433;
border-radius:10px;
padding:25px;
margin-bottom:25px;
transition:.25s;
width:100%;
}

section:hover{
border-color:#7b5cff;
transform:translateY(-2px);
}

/* =========================
HEADINGS
========================= */

section h2{
margin-bottom:14px;
font-size:20px;
color:#c7a6ff;
}

/* =========================
BADGES
========================= */

.badges{
list-style:none;
margin-top:10px;
}

.badges li{
display:inline-block;
background:#0f0f16;
border:1px solid #2a2a3a;
padding:6px 12px;
border-radius:20px;
font-size:13px;
margin:4px;
color:#d6d6de;
}

/* =========================
PROJECT GRID
========================= */

#projects{
display:flex;
flex-direction:column;
gap:20px;
}

#projects article{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
gap:20px;
}


/* menu (ATM OS Library MiniDB) */
#projects nav{
display:flex;
justify-content:center;
}

/* project cards grid */
#projects .projects-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
gap:20px;
}


/* =========================
PROJECT CARDS
========================= */

.project-card{
background:#0f0f16;
border:1px solid #2a2a3a;
border-radius:10px;
padding:20px;
transition:.25s;
width:100%;
}

.project-card:hover{
transform:translateY(-3px);
border-color:#7b5cff;
}

/* =========================
BUTTONS
========================= */

.btn{
display:inline-block;
margin-top:15px;
padding:10px 18px;
background:#7b5cff;
color:white;
border-radius:6px;
font-weight:500;
text-decoration:none;
transition:.25s;
}

.btn:hover{
background:#6b4ef0;
}

/* =========================
LINKS
========================= */

a{
color:#9f8cff;
text-decoration:none;
}

a:hover{
text-decoration:underline;
}

/* =========================
TABLE
========================= */

table{
width:100%;
border-collapse:collapse;
}

th, td{
padding:10px;
border-bottom:1px solid #252536;
font-size:14px;
}

th{
text-align:left;
color:#c7a6ff;
}

/* =========================
CODE BLOCKS
========================= */

code{
background:#0f0f16;
padding:3px 6px;
border-radius:4px;
color:#c7a6ff;
}

pre{
background:#0b0b12;
border:1px solid #2a2a3a;
padding:18px;
border-radius:8px;
overflow-x:auto;
margin-top:10px;
}

pre code{
color:#d6d6de;
}

/* =========================
IMAGES
========================= */

img{
max-width:100%;
border-radius:8px;
}

/* =========================
FOOTER
========================= */

footer{
text-align:center;
padding:20px;
font-size:13px;
color:#8a8aa0;
border-top:1px solid #23232e;
}

/* =========================
SMOOTH SCROLL
========================= */

html{
scroll-behavior:smooth;
}

/* =========================
TABLET
========================= */

@media (max-width:1000px){

main{
padding:35px 20px;
}

section{
padding:22px;
}

}

/* =========================
MOBILE
========================= */

@media (max-width:700px){

nav ul{
flex-direction:column;
align-items:center;
gap:14px;
}

header{
padding:40px 15px;
}

header h1{
font-size:28px;
}

main{
padding:30px 15px;
}

section{
padding:20px;
}

.btn{
width:100%;
text-align:center;
padding:12px;
}

}

/* =========================
LARGE SCREENS
========================= */

@media (min-width:1400px){

main{
max-width:1200px;
margin:0 auto;
padding:40px 20px;
}

}

.github-stats{
display:flex;
justify-content:center;
margin-top:20px;
}

.github-stats img{
max-width:100%;
width:700px;
}