*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 35px 12%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}
.logo{
    font-size: 25px;
    color: white;
    font-weight: 600;
    transition: 0.3s ease;
    text-decoration: none;
}
.logo:hover{
    color: orangered;
    transform: scale(1.1);             
}
span{
    color: orangered;
}
 .navbar a{
    font-size: 18px;
    color: white;
    font-weight: 500;
    margin: 0 20px;
    border-bottom: 3px solid transparent;
    transition: 0.3s ease;
    text-decoration: none;
}
.navbar a:hover,
.navbar a.active{
     text-decoration: none; 
}

.hamburger {
    display: none;
    cursor: pointer;
}

/* Hide the checkbox */
.menu-toggle {
    display: none;
}
.project{
    
    padding: 10px 20px;
    background-color: white;
    color: black;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 16px;
    letter-spacing: 1px;
    font-weight: 600;
    transition: 0.3s ease;
}
.project:hover{
     background-color: orangered;
    color: white;
} 

.home{
    width: 100%;
    min-height: 100vh;
    background: rgb(241, 241, 241);
    display: flex;
    align-items: center;
    gap: 7em;
    padding: 30px 12% 0;
}
.home-content{
    max-width: 800px;
}
.home-content h3{
    font-size: 42px;
}
.home-content h1{
    font-size: 62px;
    line-height: 1.2;
}
.home-content p{
    font-size: 20px;
    margin:  25px 0 30px;
}
.btn-box{
    width: 345px;
    display: flex;
    gap: 2em;
}
.btn-1{
    padding: 15px 28px;
    background-color: black;
    color: white;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 18px;
    letter-spacing: 600;
    transition: 0.3s ease;
    cursor: pointer;
    text-decoration: none;
   
}

.btn-1 a {
    text-decoration: none;
    color: white;

}

.btn-1:hover{
    background-color: rgb(82, 80, 80);
    color: black;
    border: 2px solid black;
}
.btn-2 {
    padding: 15px 28px;
    background-color: orangered;
    color: white;
    border: 2px solid black;
    border-radius: 8px;
    font-size: 18px;
    letter-spacing: 1px;
    font-weight: 600;
    transition: 0.3s ease;
    cursor: pointer;
}
.btn-2 a {
    text-decoration: none;
    color: black;

}
.btn-2:hover{
    background-color: white;
    color: orangered;
}
.img-box img{
    border-radius: 50%;
    width: 200px;
    transition: transform 0.3s;
}
.img-box img:hover{
    transform: scale(1.1);  
}
 
::-webkit-scrollbar{
    width: 15px;
}
::-webkit-scrollbar-thumb{
    background-color: black;
}
::-webkit-scrollbar-track{
    background-color: rgb(0, 0, 0, 0.6);
    width: 50px;
}
.about{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12% 8%;
    gap: 10em;
    background: rgb(81, 79, 79);
}
.about-img img{
    position: relative;
    width: 200px;
    border-radius: 50%;  
    transition: transform 0.3s;          
}
.about-img:hover img{
    transform: scale(1.1);
}
.about-content h2{
    text-align: left;
    color: white;
    font-size: 42px;
}
.about-content h3{  
    font-size: 62px;
    color: white;
}
.about-content p{
    color: white;
    font-size: 20px;
    margin: 2em 0 2em;
}
.skills-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgb(241, 241, 241);
    margin: 30px;
    height: 300px;
}

.skills-section h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 40px;
}

.skills-section > div {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.skill {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 20px;
    transition: transform 0.3s; 
}

.skill img {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
}

.skill-icon1 {
    width: 100px;  
    height: 100px;
    object-fit: contain;
    transition: transform 0.3s;   
}
.skill-icon1:hover {
    transform: scale(1.1);
}
.skill-icon2 {
    width: 100px;  
    height: 100px;
    object-fit: contain;  
    transition: transform 0.3s;  
}
.skill-icon2:hover{
    transform: scale(1.1);
}

.skill-icon3 {
    width: 100px;  
    height: 100px;
    object-fit: contain;
    transition: transform 0.3s;  
}
.skill-icon3:hover{
    transform: scale(1.1);
} 

.skill-icon4 {
    width: 100px;  
    height: 100px;
    object-fit: contain;
    transition: transform 0.3s;  
}
.skill-icon4:hover{
    transform: scale(1.1);
} 

.skill-icon5 {
    width: 100px;  
    height: 100px;
    object-fit: contain;
    transition: transform 0.3s;  
}
.skill-icon5:hover{
    transform: scale(1.1);
} 


.certificates {
    text-align: center;
    margin: 40px;
    background: rgb(241, 241, 241);
    font-size: 24px;
    height: 300px;
   
  }
 .certificate {
    display: inline-block;
    margin: 30px;
  }
  
  .certificate img {
    width: 200px;
    height: auto;
    border: 2px solid #ddd;
    border-radius: 10px;
    transition: transform 0.3s;  
  }
  .certificate:hover img{
    transform: scale(1.1);

  }
  
  .certificate p {
    font-size: 1.2em;
    margin-top: 10px;
  }
  
.contact-form h2{
    text-align: center;
    margin-top: 3em;
    margin-bottom: 1em;
    font-size: 36px;
}
.contact-form form{
    max-width: 50em;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3em;
}
.contact-form form .input-box{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.contact-form form .input-box input,
.contact-form form textarea{
    width: 100%;
    padding: 1.5em;
    font-size: 14px;
    color: black;
    background-color: rgb(241, 241, 241);
    border-radius: .8rem;
    margin: 1rem 0;
    resize: none;
}
.footer{
    position: relative;
    bottom: 0;
    width: 100%;
    padding: 40px 0;
    background-color: black;
}
.footer-icons {
    text-align: center;
    padding: 20px 0;
    transition: transform 0.3s;  
}

.footer-icons a {
    margin: 0 15px;
    color: white;
    font-size: 24px; 
}

.footer-icons a:hover {
    color: #686666;
}

.footer ul{
    margin-top: 0;
    padding: 0;
    font-size: 18px;
    margin-bottom: 0;
    text-align: center;
}
.footer ul li a{
    color: white;
    border-bottom: 3px solid transparent;
    transition: 0.3s ease;
    text-decoration: none;

}

.footer ul li{
    display: inline-block;
    padding: 0 15px;
}
.footer .copyright{
    margin-top: 15px;
    text-align: center;
    font-size: 12px;
    color: white;
}


/* Media Queries */
@media (max-width: 768px) {
    .header {
        padding: 20px 5%;
    }

    .navbar a {
        font-size: 16px;
        margin: 0 10px;
    }

    .home {
        padding: 20px 5%;
        gap: 3em;
        text-align: center;
        flex-direction: column;
        min-height: 50vh;
    }

    .home-content h1 {
        font-size: 36px;
        margin: 30px;
    }

    .home-content p {
        font-size: 16px;
    }

    .about {
        padding: 20px 5%;
        gap: 3em;
        text-align: center;
        flex-direction: column;
    }
    .about-content h2 {
        text-align: center;
    }

    .about-content h3 {
        font-size: 36px;
    }
    .about-content p {
        font-size: 16px;
    }

    .skills-section {
        flex-direction: column;
        margin: 20px;
        height: auto;
    }
    .skills {
        text-align: center;
    }

    .certificates {
        margin: 20px;
        font-size: 20px;
        height: 100%;
    }

    .contact-form form {
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 20px;
    }

    .navbar a {
        font-size: 14px;
        margin: 0 5px;
    }

    .home-content h1 {
        font-size: 28px;
        margin: 20px;
    }

    .home-content p {
        font-size: 14px;
    }
    .about-content h3 {
        font-size: 28px;
    }
    .about-content {
        font-size: 14px;
    }

    .skills-section {
        margin: 10px;
        height: auto;
    }
    .skills {
        text-align: center;
    }

    .certificates {
        margin: 10px;
        font-size: 18px;
        height: 50%;
    }

    .contact-form h2 {
        font-size: 28px;
    }
}


/* Hamburger icon visibility on smaller screens */
@media (max-width: 768px) {
    .hamburger {
        display: block;
        color: #fff;
        font-size: 24px;
    }

    .navbar {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #444;
        position: absolute;
        top: 60px;
        left: 0;
    }

    .navbar a {
        text-align: center;
        padding: 15px;
        border-bottom: 1px solid #555;
    }

    .navbar a:last-child {
        border-bottom: none;
    }

    /* Show the navbar when the checkbox is checked */
    .menu-toggle:checked ~ .navbar {
        display: flex;
    }
}
