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

body{
    display: flex;
    flex-direction: column;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #d9d9d9;
    color: #444;
}

header{
    background-color: #4296a3;
    height: 190px;
    width: 100%;
    text-align: center;
    padding-top: 35px;
}

footer{
    background-color: #c4c4c4;
    height: 100px;
    text-align: center;
    padding-top: 35px;
}

.page-title{
    font-size: 24px;
    font-weight: 700;
    color: #3f3f3f;
    margin-bottom: 35px;
}

nav ul{
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 100px;
}

nav ul li a{
    text-decoration: none;
    font-size: 30px;
    font-weight: 300;
    color: #d9d9d9;
    transition: color 0.3s ease;
}

nav ul li a:hover{
    color: #444444;
}

main{
    flex: 1;
    padding: 50px 20px;
    text-align: center;
    background-color: #d9d9d9;
}

/* work-page */

.works-title{
    font-size: 60px;
    color: #3f3f3f;
    margin-bottom: 35px;
}

.work-list{
    width: 70%;
    max-width: 1000px;
    margin: 0 auto;
}

.btn{
    display: block;
    width: 100%;
    text-decoration: none;
    font-size: 30px;
    background-color: #444;
    font-weight: 700;
    color: #d9d9d9;
    padding: 20px 20px;
    border-radius: 999px;
    margin: 20px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.btn:hover{
    transform: translateY(-3px);
    opacity: 0.8;
}

.back-top{
    margin-top: 60px;
    font-size: 20px;
    text-align: center;
}

.back-top a{
    color: gray;
    text-decoration: none;
}


/* About-page */

.about-title{
    font-size: 60px;
    color: #3f3f3f;
    margin-bottom: 35px;
}

.about-text{
    width: 600px;
    max-width: 90%;
    margin: 0 auto;
    text-align: justify;    
}

/* contact */
.contact-title{
    font-size: 60px;
    text-align: center;
    color: #3f3f3f;
    margin-bottom: 20px;
}

.contact-text{
    font-size: 20px;
    width: 900px;
    max-width: 90%;
    margin: 0 auto;
    text-align: center;    
    color: rgb(121, 119, 119);
}

.contact-form{
    width: 500px;
    max-width: 90%;
    text-align: left;
    margin: 80px auto 0 auto;    
    border: none;
    padding: 0;

}

.contact-form input, .contact-form textarea{
    width: 100%;
    box-sizing: border-box;
    background-color: #f5f5f5;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.contact-form textarea{
    height: 130px;
}

.contact-form label{
  display: block;
  font-size: 14px;
  color: rgb(121,119,119);
  margin-bottom: 8px;
}

fieldset.contact-form{
    border: none;
}

.contact-form legend{
    display: none;
}

.contact-form input[type="submit"]{
    width: auto;
    display: inline-block;
    border: none;
    padding: 12px 30px;
    cursor: pointer;
    color: #c4c4c4;
    background-color: #444;
    transition: transform 0.3s ease;
    margin-top: 20px;
    border-radius: 5px;
}

.contact-form input[type="submit"]:hover{
    background-color: #b2b2b2;
    color: rgb(31, 31, 31);
    transform: translateY(-1px);
}


/* worklist overall */
.list-title{
    font-size: 40px;
    color: #3f3f3f;
    margin-bottom: 35px;
    font-weight: bolder;
}

.IMG-box{
    width: 80%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    justify-content: flex-start;
}

.work-image{
    width: 300px;
    height: 300px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
    object-fit: contain;
}

.work-video{
    width: 300px;
    height: 300px;
    border-radius: 10px;
}

.photo-image{
    width: 320px;
    height: 220px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
    object-fit: cover;
}

.photo-image:hover{
    transform: scale(1.05);
}
.work-image:hover{
    transform: scale(1.05);
}

.card{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.name{
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-top: 10px;
    font-size: 20px;
    color: #333;
}