*, 
*: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;
    color: white;
}

.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:#fff;
    background-color:rgb(51, 51, 51);
}

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

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

section{
    padding-top:9%;
}

.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;
}

.banner-section{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding-top:0;
}
.banner-section {
    flex: 1 1 30%;
}
.banner-section img{
    border-radius: 25px;
}
.banner-content{
    flex: 1 1 50%;
}


.about-skills{
    display: flex;
    gap: 20px;
    align-items: center;
    text-align: start;
}
.about-skills .content, .about-skills .skills{
    flex: 1 1 50%;
}
.about-skills p{
    font-size: 1.3rem;
    line-height: 1.3;
}


.projects{
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}
.card{
    flex: 1 1 30%;
    transition:0.3s ease;
    cursor: pointer;
}
.card:hover{
    opacity:0.6;
}
.projects img{
    margin-bottom: 2%;
}


.form-section p{
    justify-self: center;
    width: 60%;
    font-size:1.2rem;
    line-height: 1.3;
}
.contact-form {
  display: flex;
  flex-direction: column;
  align-items: center; 
  width: 70%;
  margin: 40px auto;
  gap: 15px;
  margin-top: 2.5%;
}

.form-row {
  display: flex;
  width: 100%;
  gap: 20px;
}

.form-row input {
  flex: 1;
  padding: 15px;
  border: none;
  background: #d9d9d9;
  border-radius: 12px;
  font-size: 16px;
}

textarea {
  width: 100%;
  height: 180px;
  padding: 15px;
  border: none;
  background: #d9d9d9;
  border-radius: 12px;
  font-size: 16px;
  resize: none;
}

.center {
  justify-content: center;
}

button {
  background: #999;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 14px 35px;
  font-size: 18px;
  cursor: pointer;
}

button:hover {
  background: #666;
}

/*****project page*****/
h2{
    margin-bottom: 2%;
}
.project-box{
    display: flex;
    height: 300px;
    gap: 20px;
    margin-bottom: 4%;
}
.project-box .image{
    flex:1 1 50%;
    position: relative;
}
.project-box img{
    display:block;
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%); 
    max-width: 100%;
    height: auto;
}
.project-box .project-content{
     flex: 1 1 50%;
     text-align: start;
}
.project-box p{
    margin-bottom: 2%;
}
.project-box p span{
    font-size: 1.2rem;
    font-weight: bold;
}
.project-screenshots{
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.project-screenshots div{
    flex:30%;
}


/* Container for the form */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Heading styling */
h1 {
    text-align: center;
    color: #4CAF50;
    margin-bottom: 20px;
}

/* Form elements */
form p {
    margin-bottom: 15px;
}

/* Label styling */
label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

/* Input and Textarea styles */
input[type="text"],
textarea {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

/* Textarea specific styles */
textarea {
    resize: vertical;
    min-height: 120px;
}

/* Submit button styling */
input[type="button"] {
    width: 100%;
    padding: 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Hover effect for the button */
input[type="button"]:hover {
    background-color: #45a049;
}

/* Focus state for inputs */
input[type="text"]:focus,
textarea:focus {
    border-color: #4CAF50;
    outline: none;
}

/* Responsiveness */
@media screen and (max-width: 600px) {
    .form-container {
        padding: 15px;
    }

    input[type="button"] {
        font-size: 16px;
    }
}