*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: "Poppins", sans-serif;

}

:root {
    --bg-color: #080808;
    --second-bg-color: #131313;
    --text-color: white;
    --main-color: #00ffee;
}

html{
    font-size: 60%;
    overflow-x: hidden;
}

body{
    background: var(--bg-color);
    color: var(--text-color);
}

.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 4rem 12% 4rem;
    background: rgb(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
}

.logo{
    font-size: 3rem;
    color: var(--text-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease;
}

.logo:hover{
    transform: scale(1.1);
}
.logo span{
    text-shadow: 0 0 25px var(--main-color);
}

.navbar a{
    font-size: 1.8rem;
    color: var(--text-color);
    margin-left: 2rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;

}

.navbar a:hover, .navbar a.active{
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);

}

.navbar a:active{
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
}

#menu-icon{
    font-size: 3.6rem;
    color: var(--main-color);
    display: none;
}

section{
    width: 100%;
    min-height: 100vh;
    padding: 10rem 12% 10rem;
}

.home{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15rem;
}

.home-content{
    display: flex;
    flex-direction: column;
    align-items: baseline;
    text-align: left;
    justify-content: center;
    margin-top: 3rem;
}

span{
    color: var(--main-color);

}

.logo span{
    color: var(--main-color);
}

.home-content h3{
    margin-bottom: 2rem;
    margin-top: 1rem;
    font-size: 3.5rem;
}
.home-content h1{
    font-size: 7rem;
    font-weight: 700;
    margin-top: 1.5rem;
    line-height: 1;
}

.home-img{
    position: relative;
    top: 3rem;
    width: 32vw;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    cursor: pointer;
    transition: 0.4s ease-in-out;
}

.home-img img{
    position: relative;
    width: 32vw;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    cursor: pointer;
    transition: 0.4s ease-in-out;

}

.home-img img:hover{
    box-shadow: 0 0 25px var(--main-color),  
                0 0 50px var(--main-color),
                0 0 100px var(--main-color),

}

.home-content p{
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.8;
    max-width: 1000px;
}

.social-icons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--main-color);
    font-size: 2.5rem;
    color:  var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease-in-out;
}

.social-icons a:hover{
    color: var(--text-color);
    transform: scale(1.3) translateY(-5px);
    box-shadow: 0 0 25px var(--main-color);
    background-color: var(--main-color);
}
.btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
    border-radius: 4rem;
    font-size: 1.6rem;
    color: black;
    border: 2px solid transparent;
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s ease-in-out;
    cursor: pointer;
}

.btn:hover{
    transform: scale(1.05);
    box-shadow: 0 0 50px var(--main-color);
}
.btn-group{
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-group a:nth-of-type(2){
    background-color: black;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    box-shadow: 0 0 25px transparent;

}
.btn-group a:nth-of-type(2):hover{
    box-shadow: 0 0 25px var(--main-color);
    background-color: var(--main-color);
    color: black;
}

.text-animation{
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}

.text-animation span{
    position: relative;
}

.text-animation span::before{
    content: "Web Developer";
    color: var(--main-color);
    animation: words 20s infinite;
}

@keyframes words{
    0%,
    20%{
        content: "Fullstack Developer";
    }
    21%,
    40%{
        content: "System Administrator";
    }
    41%,
    60%{
        content: "Software Developer";
    }
    61%,
    80%{
        content: "IT Specialist";
    }
    81%,
    100%{
        content: "Network Technician";
    }
}

.about-me, .skill, .resume{
    display: block;
    align-items: center;
    justify-content: center;
    gap: 20rem;
}

hr{
    width: 100%;
    height: 5px;
    background: var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
    margin-bottom: 4rem;
}
.basic-container{
    width: 45%;
    border: 5px solid var(--main-color);
    border-radius: 5rem;
    padding: 2rem;
    margin: 2rem;
    display: inline-block;
    
    
}


.about-me h2, .skill h2, .resume h2, .contact h2, .project h2, .education h2, .work h2, .testimonial h2{
    font-size: 5rem;
   
   
}
.about-me h3, .skill h3, .resume h3, .education h3 , .work h3, .testimonial h3{
    font-size: 3rem;
    font-weight: 700;
    margin-top: 1.5rem;
    text-align: center;
    line-height: 1;
    margin-bottom: 2rem;
    color: var(--main-color);
   
}
.about-me p, .skill p, .resume p, .education p, .work p, .testimonial p{
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 4rem;
    line-height: 1.8;
    max-width: 1000px;
}
.basic-container ul{
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.8;
    max-width: 1000px;
    margin-left: 60px;
}
li::marker{
    color: var(--main-color);
}
ul img{
    filter: grayscale(50);
}

.skill-btn{
    width: 35rem;
     margin: auto; 
    justify-content: center;
    display:inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
    border-radius: 4rem;
    font-size: 1.6rem;
    color: black;
    border: 2px solid transparent;
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s ease-in-out;
    cursor: pointer;
    

}

.skill-btn:hover{
    transform: scale(1.05);
    box-shadow: 0 0 50px var(--main-color);
}
.skill-btn i{
  width: 4rem;

}

.contact{
    background-color: var(--bg-color);
}

.contact h2{
    margin-bottom: 3rem;
    color: white;
}

.education h4, .work h4{
    font-size: 2.5rem;
    text-align: center;
}

.contact form{
    width: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin: 5rem auto;
    text-align: center;
}

.contact form .input-box{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

}
.contact form .input-box input, .contact form textarea{
    width: 100%;
    padding: 2.5rem;
    font-size: 1.8rem;
    color: var(--text-color);
    background: var(--second-bg-color);
    border-radius: 2rem;
    border: 2px solid var(--main-color);
    margin: 1.5rem 0;
    resize: none;
}
.contact form .btn{
    margin-top: 2rem;

}

.footer{
    position: relative;
    align-items: center;
    justify-content: center;
    bottom: 0;
    width: 100%;
    padding: 40px 0;
    background-color: var(--second-bg-color);
}

.footer .social{
    text-align: center;
    padding-bottom: 25px;
    color: var(--main-color);
}
.footer .social a{
    font-size: 25px;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    width: 42px;
    height: 42px;
    line-height: 42px;
    display: inline-block;
    text-align: center;
    border-radius: 50%;
    margin: 0 10px;
    transition: 0.3s ease-in-out;

}

.footer .social a:hover{
    transform:  scale(1.2)translateY(-10px);
    background-color: var(--main-color);
    color: black;
    box-shadow: 0 0 25px var(--main-color);
}
.footer ul{
    list-style-type: none;
    margin-top: 0;
    padding: 0;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 0;
    text-align: center;
    
}
.footer ul li{
    display: inline-block;
    padding: 0 15px;

}

.footer ul li a{
    color: white;
    border-bottom: 3px solid transparent;
    transition:  0.3s ease-in-out;
}

.footer ul li a:hover{
    border-bottom: 3px solid var(--main-color);
}

.footer .copyright{
    margin-top: 50px;
    text-align: center;
    font-size: 16px;
    color: white;
}
.project-card{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4rem;
}

.card{
    width: 40rem;
    border: 2px solid var(--main-color);
    border-radius: 1.5rem;
   
}
.card-img{
    width: 100%;
    height: 200px;
    border-radius:1.5rem 1.5rem 0 0;
}
.card h3{
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--main-color);
    padding: 10px;
}
.card p{
    font-size: 1.5rem;
    padding: 10px;
}
.card a:nth-of-type(1){
    margin-left: 0;
}
.test{
    width: 30%;
    border: 4px solid var(--main-color);
    margin: 2rem;
    padding: 10px;
    display: inline-block;
    
    align-items: center; /* Horizontally center child elements */
    justify-content: center; /* Vertically center child elements */
    text-align: center; /* Ensure text content is centered */

}
.test-div1{
    margin: 1rem;
    align-items: center;
    width: 50%;
    height: 200px;
    border-radius: 50%;
    text-align: center;
    display: inline-block;
    background-color: aliceblue;
   
}
.test-div2{
    margin: 1rem;
    align-items: center;
    width: 50%;
    height: 200px;
    border-radius: 50%;
    text-align: center;
    display: inline-block;
    background-color: aliceblue;
    background-image: url("/images/tim.jpeg");
}

.test-div3{
    margin: 1rem;
    align-items: center;
    width: 50%;
    height: 200px;
    border-radius: 50%;
    text-align: center;
    display: inline-block;
    background-color: aliceblue;
    background-image: url("");
}



/* Default Styles for Navbar (Visible on larger screens) */
.navbar {
    display: flex;
    gap: 2rem; /* Adjust spacing if needed */
}

@media (max-width: 1030px){
    .basic-container{
        width: 100%;
    }
    
}

/* Align .home-img and its image perfectly on smaller screens */
@media (max-width: 768px) {
    .home {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .home-img {
        order: -1;
        width: 50vw; /* Ensure a smaller, responsive size */
        display: flex; /* Flexbox for centering */
        align-items: center;
        justify-content: center;
        margin: 0 auto; /* Center the entire container */
    }

    .home-img img {
        width: 100%; /* Make image responsive to container */
        height: auto; /* Maintain aspect ratio */
        border-radius: 50%; /* Keep circular shape */
        box-shadow: 0 0 15px var(--main-color); /* Adjust shadow for smaller view */
    }

    .home-content, .skills, .about-me, .resume, hr {
        text-align: left; /* Center-align text content */
        align-items: center;
        justify-content: center;
    }

    .home-content h1, .about-me h1,.skill h1, .resume h1 {
        font-size: 4rem;
    }
    .home-content h2 {
        font-size: 3rem;
    }

    .home-content h3{
        font-size: 1.5rem;
    }
    .about-me h3,.skill h3, .resume h3{
        font-size: 2.5rem;
        
    }

    .home-content p, .skill p, .about-me p, .resume p ,ul {
        font-size: 1.4rem;
    }
    .navbar {
        display: flex;
    }
    
    .navbar {
        display: none; /* Hide navbar by default */
        flex-direction: column;
        background-color: var(--second-bg-color); /* Optional: match your theme */
        width: 40%;
        position: absolute;
        top: 110px; /* Adjust based on your header height */
        right: 0;
        padding: 1rem;
        text-align: center;
    }

    /* Display navbar when the active class is added */
    .navbar.active {
        display: flex;
        
    }

    /* Show the menu icon on smaller screens */
    #menu-icon {
        display: inline-block;
        cursor: pointer;
    }

    ul{
        margin-left: 10px;
    }
}

@media (max-width: 480px) {
    .home-img {
        width: 60vw;
    }

    .home-content h1, .about-me h1,.skill h1, .resume h1 {
        font-size: 3rem;
    }

    .home-content h2 {
        font-size: 2.5rem;
    }

    .home-content h3, .about-me h3,.skill h3, .resume h3 {
        font-size: 2rem;
    }

    .home-content p, .skill p, .about-me p, .resume p, ul {
        font-size: 1.2rem;
    }
    
}

