/* ======= GENERAL ======= */
 *{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(to bottom, #b9ecf5, #9fd8e8);
    color: #234;
    line-height: 1.6;
    animation: moveUp 0.8s ease-out;
}

/* ======= HEADER ======= */
header{
    background: #7ecfe4;
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 5px solid #ff8b8b;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

header h1{
    color: white;
    font-size: 32px;
    font-style: italic;
    letter-spacing: 4px;
    text-shadow: 3px 3px #ff8b8b;
}

/* ======= NAVIGATION ======= */
.navigation ul{
    display: flex;
    list-style: none;
    gap: 15px;
}

.navigation a{
    display: block;
    padding: 12px 24px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    border-radius: 30px;
    transition: .3s;
}

.navigation a:hover{
    background: #ff7f00;
    color: white;
    transform: translateY(-3px);
}

/* ======= LANDING PAGE BUTTON ======= */
.landing-btn-container{
    width: 95%;
    max-width: 1400px;
    margin: 20px auto 0;
    display: flex;
    justify-content: flex-end;
}

.landing-btn{
    text-decoration: none;
    padding: 12px 28px;
    background: #7ecfe4;
    color: white;
    font-weight: bold;
    border-radius: 30px;
    box-shadow: 0 6px 15px rgba(0,0,0,.15);
    transition: .3s ease;
}

.landing-btn:hover{
    background: #ff7f00;
    transform: translateY(-3px);
}

/* ======= PAGE TITLE ======= */
.page-title{
    text-align: center;
    color: white;
    font-size: 38px;
    letter-spacing: 5px;
    margin: 50px 0;
    text-shadow: 2px 2px #ff8b8b;
}

/* ======= PROJECTS LAYOUT ======= */
.projects{
    width: 95%;
    max-width: 1450px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 50px;
    padding: 30px;
}

/* ======= PROJECT BUTTONS ======= */
.project-buttons{
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-buttons button{
    width: 100%;
    padding: 18px;
    background: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: #156d8f;
    transition: .3s;
    box-shadow: 0 6px 15px rgba(0,0,0,.15);
}

.project-buttons button:hover{
    background: #ffd27f;
    color: #234;
    transform: translateY(-5px);
}

/* ======= PROJECT DISPLAY ======= */
.project-display{
    flex: 1;
    background: rgba(255,255,255,.5);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
}

.project-display h2{
    color: #156d8f;
    font-size: 30px;
    margin-bottom: 30px;
}

/* ======= CODE & OUTPUT ======= */
.images{
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

.code,
.output{
    flex: 1;
    min-width: 450px;
    text-align: center;
}

.code h3,
.output h3{
    font-size: 22px;
    margin-bottom: 20px;
    color: #156d8f;
}

.images img{
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0,0,0,.15);
    transition: transform .3s;
    cursor: pointer;
}

.images img:hover{
    transform: scale(1.03);
}

/* ======= IMAGE GALLERY ======= */
.lightbox{
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);

    overflow: auto;
    text-align: center;
    padding: 30px;
}

.lightbox img{
    display: block;
    margin: auto;
    max-width: 50%;
    height: auto;
    cursor: pointer;
    transition: 0.3s;
}

/* ======= FOOTER ======= */
footer{
    margin-top: 40px;
    padding: 25px;
    background: #7ecfe4;
    color: white;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 -3px 10px rgba(0,0,0,.15);
}

/* ======= ANIMATION ======= */
@keyframes moveUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ======= TABLET (RESPONSIVE) ======= */
@media (max-width: 768px){

    header{
        flex-direction: column;
        padding: 20px;
        text-align: center;
        gap: 15px;
    }

    header h1{
        font-size: 26px;
        letter-spacing: 2px;
    }

    .navigation ul{
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .navigation a{
        padding: 10px 18px;
        font-size: 15px;
    }

    .landing-btn-container{
        justify-content: center;
    }

    .page-title{
        font-size: 30px;
        margin: 35px 0;
    }

    .projects{
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding: 20px;
    }

    .project-buttons{
        width: 100%;
        max-width: 450px;
    }

    .project-display{
        width: 100%;
        padding: 25px;
    }

    .project-display h2{
        font-size: 26px;
        text-align: center;
    }

    .code,
    .output{
        min-width: 100%;
    }

    .images{
        gap: 30px;
    }

    .lightbox img{
        max-width: 90%;
    }
}

/* ======= MOBILE (480px and below) ======= */
@media (max-width: 480px){

    header{
        padding: 15px;
    }

    header h1{
        font-size: 20px;
        letter-spacing: 1px;
    }

    .navigation ul{
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .navigation a{
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    .landing-btn{
        width: 100%;
        text-align: center;
    }

    .page-title{
        font-size: 24px;
        letter-spacing: 2px;
        margin: 25px 0;
    }

    .projects{
        width: 100%;
        padding: 15px;
    }

    .project-buttons{
        width: 100%;
    }

    .project-buttons button{
        font-size: 16px;
        padding: 15px;
    }

    .project-display{
        padding: 18px;
    }

    .project-display h2{
        font-size: 22px;
    }

    .code h3,
    .output h3{
        font-size: 18px;
    }

    .images{
        gap: 20px;
    }

    .lightbox{
        padding: 15px;
    }

    .lightbox img{
        max-width: 100%;
    }

    footer{
        font-size: 14px;
        padding: 18px;
    }
}