/* --- Global --- */

:root {
  --brightblue-color: #21b3dc;
}


body {
margin: 0;
font-family: "Inter", Arial, sans-serif;
background: #141414;
color: #eaeaea;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
text-align: center;
}


header {
padding: 30px 20px;
text-align: center;
background: #141414;
border-bottom: 1px solid #21b3dc33;
backdrop-filter: blur(4px);
position: sticky;
top: 0;
z-index: 20;
}
header img {
    max-width: 300px;
}

h1 {
margin: 0;
font-size: 40px;
font-weight: 600;
color:  var(--brightblue-color);
}

h3 {
    margin: 15px 0 0 0;
    letter-spacing: -1px;
}

.project-card p{
    margin: 0;
}

#long{
    
}

#short{
    font-size: 12px;
    color:  var(--brightblue-color);
margin: 0px 0;
}

.back {
position: absolute;
left: 20px;
top: 28px;
text-decoration: none;
color: var(--brightblue-color);
font-size: 16px;
opacity: 0.8;
transition: opacity 0.2s ease;
}


.back:hover {
opacity: 1;
}


/* --- Grid Layout --- */
.project-grid {
display: grid;
grid-template-columns: 1fr;
gap: 25px;
padding: 25px;
max-width: 80%;
margin: auto;
text-align: center;
}


@media (min-width: 900px) {
.project-grid {
        max-width: 100%;
    }
.project-grid {
grid-template-columns: repeat(3, 1fr);
}
}

a { color: var(--brightblue-color);; text-decoration: none; transition: color 0.2s ease; }

a:hover { color: #00e0ff; }

a p {font-size: 11px;}

/* --- Project Cards --- */
.project-card {
background: #2e2e2e;
border-radius: 8px;
padding: 0 0 20px 0;
text-decoration: none;
color: inherit;
border: 1px solid #2a2a2a;
overflow: hidden;
transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}


.project-card:hover {
transform: translateY(-6px) scale(1.02);
border-color: #21b3dc;
box-shadow: 0 10px 22px rgba(0,0,0,0.45);
}


.project-card img {
width: 100%;
display: block;
}

.project-top {
    display: flex;
    flex-direction: row;
    gap: 32px;
    margin-top: 24px;
    margin-bottom: 32px;
       max-width: 1000px;    /* keeps it clean */
    margin-left: auto;    /* centers container */
    margin-right: auto;   /* centers container */
    padding: 0 20px;      /* nice breathing room */
}

.project-top-info {
    flex: 1;
    text-align: left;

}

.project-top-info h1 {
    margin-top: 0;
    letter-spacing: -3px;
}

.project-top-info p {
    line-height: 1.5;
    margin-bottom: 12px;
}

.project-link {
    color: #21b3dc;
    text-decoration: none;
    font-size: 16px;
    transition: opacity 0.2s;
}

.project-link:hover {
    opacity: 0.7;
}

.project-top-thumb {
    width: 280px;
    border-radius: 12px;
    object-fit: cover;
}

.gallery{
    max-width: 1000px;
        margin-left: auto;
    margin-right: auto;
}
.gallery img{
    width: 100%;
}

/* Mobile layout */
/* Mobile */
@media (max-width: 800px) {
    .project-top {
        flex-direction: column;
    }

    .project-top-thumb {
        width: 100%;
    }

    .project-top-info {
    text-align: center;

}
}