*, 
*:before, 
*:after{
    box-sizing: border-box;
}
html{
    font-size: 16px;
    scroll-behavior: smooth;
}
body{
    margin: 0;
    padding:0;
    font-family: 'Roboto', sans-serif;
    text-align: center;
}
section{
    padding-top: 3%;
    padding-bottom: 4%;
}
img{
    height: auto;
    display: block;
    width: 100%;
}
h1{
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 2.5%;
}
h2{
    font-size: 1.8rem;
    font-weight: 600;
}
h3{
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2.5%;
}
p{
    font-size: 1.2rem;
    line-height: 1.2;
}
body > header {
    width: 100%;
    height: 4.0rem;    
    z-index: 1;
    position: fixed;
    background-color:#fff;
}

.header-container span{
    margin-left:30px;
    cursor:pointer;
    transition:0.2s ease;
}

.header-container span:hover{
    opacity:0.6;
}

header .click-home{
    transition:0.2s ease;
    cursor:pointer;
}

header .click-home:hover{
    opacity:0.6
}

.header-container {
    width: 60.0rem;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    padding:0 2.0rem;
    color:#000;
}

.header-container > div {
    height: 4.0rem;
    line-height: 4.0rem;
}

main {
    padding-top: 6.0rem;
    padding-bottom: 6.0rem;
}

section{
    padding-top:8%;
}

.home-page {
    width: 60.0rem;
    margin: 0 auto;
}

.project-page {
    background-color: white;
    width: 60.0rem;
    margin: 0 auto;
    padding-top: 30px;
    font-size:1.4rem;
}

.project-container {
    display: flex;
    justify-content: space-between;  
}

.project-card {
    background-color: aquamarine;
    padding: 1.0rem;
    height: 16.0rem;
    margin-top: 2.0rem;
    width: 31.5%;
}

.hideAll {
    display: none;
}

#welcome{
    padding-top: 2%;
}

.project-list {
    display: flex;
    flex-wrap: wrap;
    gap:15px;
    margin-top: 20px;
}

.project-list .projectbox{
    flex-basis: calc((100% - 30px) / 3); 
    flex-grow: 0;
    flex-shrink: 0;
    height:150px;
    background-color:#e3e3e3;
    position:relative;
    border-radius: 10px;
    cursor:pointer;
    transition:0.3s ease;
}
.project-list .projectbox:hover{
    background-color:#c1c1c1;
}

.project-list .projectbox p {
    position: absolute;
    width: 100%;
    font-size: 1rem;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
}

#contact .box{
    display: flex;
    text-align: left;
    background-color:#e3e3e3;
    padding:5% 4%;
}

#contact .box > div{
    flex:1;
}

#contact form div{
    margin-bottom:20px;
}

#contact label{
    display: block;
}

#contact input{
    width:100%;
}

#contact textarea{
    width:100%;
}

#contact a{
    color:#000;
}

/***project-page***/
.top-section{
  margin-bottom: 5%;
  justify-items: center;
}
.top-section p{
  width: 70%;
  margin-bottom: 1.5%;
  text-align: center;
}
.top-section .image{
  height: 300px;
  width: 50%;
  background-color: #e3e3e3;
  border-radius: 25px;
}

/***about project***/
.about-project {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 5%;
  gap: 20px;
}
.about-project .project-content .image{
  height: 250px;
  background-color: #e3e3e3;
  border-radius: 20px;
  margin-bottom: 2%;
}
.about-project .project-content{
  flex: 1 1 30%;
  text-align: center;
}
/* =========================================
   MOBILE RESPONSIVE DESIGN
   ========================================= */

/* Phones & small tablets (0–768px) */
@media (max-width: 768px) {

    html {
        font-size: 14px;
    }

    /* HEADER */
    .header-container {
        max-width: 100%;
        width: 100%;
        padding: 0 1rem;
    }

    body > header {
        height: 4rem;
    }

    /* MAIN WRAPPER */
    main {
        padding-top: 5rem;
    }

    /* HOME PAGE BASE */
    .home-page,
    .project-page {
        width: 100%;
        max-width: 100%;
        padding: 1rem;
    }

    /* PROJECT CARDS */
    .project-container {
        flex-direction: column;
        gap: 1rem;
    }

    .project-card {
        width: 100%;
        height: auto;
        min-height: 8rem;
        flex: none;
    }

    /* PROJECT DETAILS (3 box layout → stacked layout) */
    .project-details {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .project-box {
        width: 100%;
        flex: none;
        min-width: auto;
    }

    /* SKILLS & CONTACT */
    .skills,
    .contact-me {
        width: 100%;
        padding: 1.5rem 1rem;
    }

    /* FOOTER */
    .footer {
        font-size: 0.9rem;
    }
}

/* Very small screens (0–480px) */
@media (max-width: 480px) {

    html {
        font-size: 13px;
    }

    .header-container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .project-card {
        padding: 1rem;
    }

    .project-box h2 {
        font-size: 1.1rem;
    }
}
