* {
    box-sizing: border-box;
    font-family: system-ui, sans-serif;
}

html, body {
    height: 100%;
}

body {
    min-height: 100vh;
    /* min-width: 6cm; */
    display: flex;
    flex-direction: column;
    margin: 0;
    background: #0f1115;
    color: #e6e6e6;

    overflow: hidden;

}

#construction-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 15, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.overlay-card {
    background: rgba(20, 25, 35, 0.9);
    background-image: url("images/construction.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    padding: 3rem 3.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    max-width: 90%;
}

.overlay-card h1 {
    color: gold;
    margin-top: 0;
    font-size: 2rem;
}

.overlay-card p {
    mix-blend-mode: lighten;
    color: gold;
    text-shadow: #0f1115;
    opacity: 1;
    line-height: 1.5;
}

.overlay-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 0;
}

.overlay-card h1,
.overlay-card p {
    position: relative;
    z-index: 1;
}

.page-content {
    flex: 1;
}

.header {
    text-align: center;
    padding: 3rem 1rem;
    background-image: linear-gradient(to bottom, #222d46, #1e2639, #1a1f2d, #161821, #101115);
}

.header h1 {
    margin: 0;
    font-size: 2.5rem;
}

.about {
    max-width: 1100px;
    margin: auto;
    padding: 3rem 1rem;
}

 .projects {
    max-width: 1500px;
    margin: auto;
    padding: 3rem 1rem;
}

.about p{
    font-size: medium;
}

h2 {
    margin-bottom: 1rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: #161b22;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-10px) rotateZ(1deg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.project-card h3 {
    padding: 1rem 1rem 0 1rem;
}

.project-card p {
    padding: 0 1rem 1.25rem 1rem;
    opacity: 0.8;
}

.project-details {
    /* max-width: 1500px; */
    margin: auto;
    padding: 3rem 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.project-details img {
    width: 100%;
    border-radius: 12px;
}

.project-text h2 {
    margin-top: 0;
}

.back-link {
    display: inline-block;
    margin-top: 1rem;
    color: #90a4c7;
    text-decoration: none;
}

.footer {
    text-align: center;
    padding: 2rem;
    opacity: 0.5;
}


@media (max-width: 600px) {

    .header h1 {
        font-size: 1.8rem;
    }

    .about, .projects {
        padding: 2rem 1rem;
    }

    .project-card img {
        height: 160px;
    }

    .project-details {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
        gap: 1.5rem;
    }

    .footer {
        font-size: 0.9rem;
    }
}
