@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

*{
    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: #000000;
    --second-bg-color: #161616;
    --text-color: #fff;
    --main-color: #00AEEF;
    --header-height: 30px;
}
html{
    font-size: 62.5%;
    overflow-x: hidden;
    scroll-padding-top: var(--header-height);
}
body{
    background: var(--bg-color);
    color: var(--text-color);
}
/* -----scroll bar styling----- */
html::-webkit-scrollbar{
    width: 0.8rem;
}
html::-webkit-scrollbar-track{
    background: var(--bg-color);
}
html::-webkit-scrollbar-thumb{
    background: var(--main-color);
    border-radius: 0.4rem;
}

/* -----Header---- */
.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    padding: 2rem 9%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}
.logo{
    font-size: 3rem;
    color: var(--main-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease;
}
.logo:hover{
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px var(--main-color));
}
.navbar a{
    font-size: 1.8rem;
    color: var(--text-color);
    margin-left: 4rem;
    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); */
    filter: drop-shadow(0 0 25px var(--main-color));
    
}
#menu-icon{
    font-size: 3.6rem;
    color: var(--main-color);
    cursor: pointer;
    display: none;
}
/* #menu-icon:hover {
    transform: rotate(90deg) scale(1.1);
    color: var(--main-color);
} */
@media(max-width:995px){
    #menu-icon{
        display: block;
    }
    .navbar{
        position: absolute;
        top: 100%;
        right: 0;
        width: 40%;
        border-left: 3px solid var(--main-color);
        border-bottom: 3px solid var(--main-color);
        border-bottom-left-radius: 2rem;
        padding: 1rem 3%;
        background-color: var(--second-bg-color);
        border-top: 0.1rem solid rgba(0, 0, 0, 0.1);
        display: none;
        transition: all 0.3s ease;


        /* opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
        transform: translateY(-10px); */
    }
    .navbar.active{
        display: block;
    }
    .navbar a{
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }
    .navbar a:hover,
    .navbar a.active{
        padding-inline: 1rem;
        border-radius: 0.5rem;
        border-bottom: 0.5rem solid var(--main-color);
    }
}

section{
    min-height: 100vh;
    padding: calc(var(--header-height) + 5rem) 9% 5rem;
}
.heading {
    text-align: center;
    font-size: 4rem;
    margin-bottom: 5rem;
}
/* ---Home section--- */
.home{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background-color: var(--bg-color);
}
.home .home-content h1{
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
}
span{
    color: var(--main-color);
}
.home-content h3{
    font-size: 3.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}
.home-img{
    border-radius: 50%;
}
.home-img img{
    position: relative;
    width: 25vw;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    transition: 0.3s ease;
}
.home-img img:hover{
    transform: scale(1.03);
    filter: drop-shadow(0 0 35px var(--main-color));
}
.home-content p{
    font-size: 1.8rem;
    margin: 2rem 0 3rem;
}
/* Social Icons */
.social-icon {
    display: flex;
    gap: 2rem;
    margin: 3rem 0;
}
.social-icon a{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 4.5rem;
    height: 4.5rem;
    background: transparent;
    border: 0.2rem solid var(--main-color);
    font-size: 2rem;
    border-radius: 50%;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
}
.social-icon a:hover{
    color: var(--bg-color) ;
    transform: scale(1.3)translateY(-5px);
    background: var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
}
.btn{
    display: inline-block;
    padding: 1.2rem 2.8rem;
    background: transparent;
    border-radius: 4rem;
    margin-right: 2rem;
    font-size: 1.6rem;
    color: var(--main-color);
    border: 0.2rem solid var(--main-color);
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s ease;
    cursor: pointer;
}
.btn i {
    margin-left: 0.5rem;
}

/* Adjust spacing between buttons */
.home-content .btn {
    margin-right: 1.5rem;
}
.btn:hover{
    transform: scale(1.03);
    background-color: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 25px var(--main-color);
}
.typing-text{
    font-size: 34px;
    font-weight: 600;
    min-width: 240px;
    color: var(--main-color);
}
.typing-text span{
    position: relative;
}
.typing-text span::before{
    content: 'Java Developer';
    color: var(--main-color);
    animation: words 20s infinite;
}
.typing-text span::after{
    content: '';
    background: var(--bg-color);
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid var(--bg-color); /* cursor color */
    right: -8px;
    animation: cursor 0.6s infinite, typing 20s steps(15) infinite;
 } 

@keyframes cursor{
    50%{
        border-left: 3px solid var(--main-color);
    }
}
@keyframes words{
    0%,20%{
        content: 'Software Developer';
    }
    21%,40%{
        content: 'Java Developer';
    }
    41%,60%{
        content: 'Backend Developer';
    }
   61%,80%{
    content: 'Web Developer';
   } 
   81%,100%{
    content: 'Graphic Designer';
   }
}
@keyframes typing{
    10%, 15%,
    30%, 35%,
    50%, 55%,
    70%, 75%,
    90%, 95%{
        width: 0;
    }
    5%, 20%,
    25%, 40%,
    45%, 60%,
    65%, 80%, 85%{
        width: calc(100% + 8px);
    }
}
@media (max-width: 1000px){
    .home{
        gap: 4rem;
    }
    
}
@media (max-width: 995px){
    .home{
        flex-direction: column;
        margin: 5rem 4rem;
    }
    .home .home-content h3{
        font-size: 2.5rem;
    }
    .home-content h1{
        font-size: 5rem;
    }
    .home-img img{
        width: 70vw;
        margin-top: 4rem;
    }

}



/* Services section */

/* .services{
    background: var(--second-bg-color);
}

.services-container{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    align-items: center;
    gap: 2.5rem;
}
.service-box{
    background-color: var(--main-color);
    height: 300px;
    border-radius: 3rem;
    cursor: pointer;
    transition: 0.3s ease;
}
.service-box:hover{
    background: transparent;
    color: var(--main-color);
    transform: scale(1.03);
    border: 1px solid var(--main-color);
}
.service-box .service-info{
    display: flex;
    flex-direction: column;
    text-align: left;
    max-height: 200px;
    justify-content: center;
    align-items: center;
    padding: 5rem;
}
.service-info h4{
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
}
.service-info p{
    font-size: 1.6rem;
    font-weight: 400;
    max-height: 100px;
    margin: auto;
}
@media (max-width:991px) {
    section{
        padding: 10rem 3% 2rem;
    }
    .services{
        padding-bottom: 7rem;
    }
}
@media(max-width:895px){
    .services h2{
        margin-bottom: 3rem;
    }
    .services-container{
        grid-template-columns: repeat(1,1fr);
    }
} */


/* skills container */

.skills{
    background: var(--bg-color);
}
.skills .container{
    background: #000000;
    color: var(--text-color);
    border-radius: 2rem;
    padding: 4rem;
    width: 90%;
    margin: auto;
    /* margin-top: 2rem; */
}
.skills .container .row{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    flex-wrap: wrap;
    gap: 3rem;
}
.skills .container .bar{
    /* margin-bottom: 15px; */
    padding: 2rem;
    border-radius: 1.5rem;
    background: var(--bg-color);
    /* box-shadow: 0 4px 10px var(--main-color); */
    transition: 0.3s ease;
    /* cursor: pointer; */
}
.skills .container .bar:hover{
    transform: translateY(-5px);
    box-shadow: 0 0 25px var(--main-color);
}
.skills .container .bar .info{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;

}
/* .responsive-img { */
    /* max-width: 100%; Ensures the image scales within its container */
    /* height: auto;    Maintains aspect ratio */
    /* object-fit: contain; */
/* } */
.skills .container .bar .info span{
    
    font-size: 1.8rem;
    font-weight: 500;
    /* margin-left: 0.5rem; */
}
@media screen and (max-width:600px) {
    .skills .container{
        margin: 0;
        padding: 0;
    }
    .skills .container .row{
        grid-template-columns: repeat(2,1fr);
        margin: 1rem;
        padding: 2rem 0.2rem 2rem 0.2rem;
        gap: 1rem;
    }
    .skills .container{
        margin-top: 5px;
        width: 100%;
    }
}
/* Education section */

.education{
    background: var(--bg-color);
    margin-top: 60px;
}
.education .timeline{
    position: relative;
    max-width: 1200px;
    margin: 6rem auto 0;
    
}
.education .timeline::after{
    content: '';
    position: absolute;
    width: 0.6rem;
    background: var(--main-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -0.3rem;
    z-index: -2px;
}
.education .container{
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}
.education .container::after{
    content: '\f501';
    position: absolute;
    width: 25px;
    height: 25px;
    line-height: 25px;
    right: -17px;
    background-color: rgb(252, 252, 252);
    border: 4px solid var(--main-color);
    top: 15px;
    border-radius: 50%;
    z-index: 100;
    font-size: 1.89rem;
    text-align: center;
    font-weight: 600;
    font-family: "Font Awesome\ 5 Free";
    color: rgb(90, 64, 64);
}
.education .left{
    left: 0;
}
.education .right{
    left: 50%;
}
.education .left::before{
    content: '';
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid var(--main-color);
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--main-color);
}
.education .right::before{
    content: '';
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid var(--main-color);
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--main-color) transparent transparent;
}
.education .right::after{
    left: -16px;
}
.education .content{
    background: var(--main-color);
    position: relative;
    border-radius: 1rem;
}
.education .content .tag{
    font-size: 1.5rem;
    padding-top: 1.5rem;
    padding-left: 1.5rrem;
}
.education .content .decs{
    margin-left: 1.5rem;
    padding-bottom: 1rem;
}
.education .content .tag h2{
    font-size: 2rem;
    font-weight: 600;
    /* padding-left: 10px; */
    margin-bottom: 1rem;
    text-align: center;
    color: black;
}
.education .content .decs p{
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 0.6rem;
    color: black;
    text-align: center;
}

@media  screen and (max-width: 600px) {
    .education .timeline{
        margin-top: 2rem;
    }
    .education .timeline::after{
        left: 31px;
    }
    .education .container{
        width: 100%;
        padding-left: 8rem;
        padding-right: 2rem;
    }
    .education .container::after{
        font-size: 2.2rem;
    }
    .education .container::before{
        left: 61px;
        border: medium solid var(--main-color);
        border-width: 10px 10px 10px 0;
        border-color: transparent var(--main-color) transparent transparent;
    }
    .education .left::after{
        left: 15px;
    }
    .education .right::after{
        left: 15px;
    }
    .education .right{
        left: 0%;
    }
}

/* Projects section */

.projects{
    background: var(--bg-color);
}
.projects h2{
    margin-bottom: 8rem;
}
.project-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: center;
    gap: 3rem;
}
.project-container .project-box{
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}
.project-box img{
    height: 250px;
    width: 100%;
    border-radius: 10px;
    display: block;
    object-fit: cover;
    transition: 0.5s ease;
}
.project-box:hover img{
    transform: scale(1.1);
}
.project-box:hover .project-info{
    height: 100%;
}
.project-box .project-info{
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.6), var(--main-color));
    border-radius: 10px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display:flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 4rem;
    text-align: center;
    font-size: 14px;
    transition: height 0.5s;
    
}

/* .project-box .project-info:hover{ */
    /* background: radial-gradient(rgba(255, 0, 255, 0.3), black); */
    /* transform: scale(1.1); */
/* } */
.project-info h4{
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 20px;
}
.project-info p{
    
    margin: 0 2rem;
    font-weight: 600;
    color: var(--text-color);
}
.project-info a {
    margin-top: 20px;
    color: var(--text-color);
    font-size: 18px;
    line-height: 60px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background-color: white;
    border: 2px solid var(--main-color);
    border-radius: 50%;
}
.project-info a i{
    font-size: 3rem;
    color: var(--main-color);
}
@media (max-width: 768px) {
    .projects h2 {
        margin-bottom: 4rem; /* Reduce space on smaller screens */
    }

    .project-info h4 {
        font-size: 2rem; /* Smaller font size for mobile */
    }

    .project-info p {
        font-size: 1.2rem;
    }
}
@media (max-width: 480px) {
    .project-container {
        grid-template-columns: 1fr; /* One column layout for small screens */
    }

    .project-box {
        height: auto; /* Adjust card height to fit content */
    }

    .project-info {
        padding: 2rem; /* Reduce padding */
    }
}


/* Contact section */
.contact h2{
    margin-bottom: 3rem;
    color: white;
}
.contact form{
    max-width: 70rem;
    margin: 1rem auto;
    margin-bottom: 3rem;
    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: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background-color: var(--bg-color);
    border-radius: 0.8rem;
    border: 2px solid var(--main-color);
    margin: 1rem 0;
    resize: none;
}
.contact form .btn{
    margin-top: 2rem;
}

/* Footer  section*/

.footer{
    position: relative;
    bottom: 0;
    width: 100%;
    padding: 40px 0;
    background-color: var(--main-color);
}
.footer .social{
    text-align: center;
    padding-bottom: 25px;
    color: black;
}
.footer .social a{
    font-size: 25px;
    color: black;
    border: 2px solid black;
    width: 42px;
    height: 42px;
    line-height: 42px;
    display: inline-block;
    text-align: center;
    border-radius: 50%;
    margin: 0 10px;
    transition: 0.3s ease;
}
.footer .social a:hover{
    transform: scale(1.2) translateY(-5px);
    background: black;
    color: var(--main-color);
}
.footer ul{
    margin-top: 0;
    padding: 0;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 0;
    text-align: center;
}
.footer ul li a{
    color: black;
    border-bottom: 3px solid transparent;
    transition: 0.3s ease;
}
.footer ul li:hover{
    border-bottom: 3px solid black;
}
.footer ul li{
    display: inline-block;
    padding: 0 15px;
}
.footer .copyright{
    margin-top: 50px;
    text-align: center;
    font-size: 16px;
    color: black;
}
/* Responsive Design */
@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }
}

@media (max-width: 991px) {
    .header {
        padding: 2rem 4%;
    }

    section {
        padding: calc(var(--header-height) + 4rem) 4% 4rem;
    }

    .home {
        gap: 5rem;
    }

    .home-img img {
        width: 35vw;
    }
}

@media (max-width: 768px) {
    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        right: -100%;
        width: 25rem;
        background: var(--second-bg-color);
        border-radius: 0 0 1rem 1rem;
        overflow: hidden;
        transition: 0.3s ease;
    }

    .navbar.active {
        right: 4%;
    }

    .navbar a {
        display: block;
        margin: 2rem;
        padding: 1rem;
        font-size: 2rem;
        border-radius: 0.5rem;
    }

    .home {
        flex-direction: column;
        text-align: center;
    }

    .home-img img {
        width: 70vw;
    }

    .education .container {
        width: 100%;
        padding-left: 7rem;
        padding-right: 2rem;
    }

    .education .timeline::after {
        left: 0;
    }

    .education .right {
        left: 0;
    }

    .education .left::after,
    .education .right::after {
        left: -1.25rem;
    }

    .contact form .input-box input {
        width: 100%;
    }
}

@media (max-width: 450px) {
    html {
        font-size: 50%;
    }

    .home-content h1 {
        font-size: 2rem;
    }

    .home-img img {
        width: 60vw;
    }

    .footer .list {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Make sure buttons stack nicely on mobile */
@media (max-width: 480px) {
    .home-content .btn {
        margin: 1rem 0;
        display: inline-block;
        width: 100%;
    }
}