*
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: 'poppins','sans-serif';
}
body{
    color: #ededed;
    background: #081b29;
}
.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 10%;
    background: #051129;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}
.logo{
    position: relative;
    font-size: 25px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    cursor: default;
    opacity: 0;
    animation: slideRight 1s ease forwards;
}
.navbar a{
    display: inline-block;
    font-size: 25px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 35px;
    transition: .3s;
    opacity: 0;
    animation: slideTop .5s ease forwards;
    animation-delay: calc(.2s * var(--i));
}
.navbar a:hover{
    color: #0ef;
}

/* <!-- --------------------section 1 Start--------------------------- --> */
.home{
    position: relative;
    width: 100%;
    justify-content: space-between;
    height: 100vh;
    background: url(back.jpg)no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 70px 10% 0;
}

.home-content{
    max-width: 600px;

}
.home-content h3{
    font-size: 32px;
    font-weight: 700;
    opacity: 0;
    animation:  slideBottom 1s ease forwards;
    animation-delay: .7s;
}
.home-content h3:nth-of-type(2){
    margin-bottom: 30px;
    animation: slideTop 1s ease forwards;
    animation-delay: .7s;

}
.home-content h3 span{
    color: #0ef;
}
.home-content h1{
    font-size: 56px;
    font-weight: 700;
    margin: -3px 0;
    opacity: 0;
    animation: slideRight 1s ease forwards;
    animation-delay: .1s;
}
.home-content p{
    font-size: 20px;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: 1s;
}
.home-sci a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid #0ef;
    border-radius: 50%;
    font-size: 20px;
    color: #0ef;
    text-decoration: none;
    transition: .5s ease;
    opacity: 0;
    animation:  slideLeft 1s ease forwards;
    animation-delay: calc(.2s * var(--i));
    margin: 30px 15px 30px 0;
}
.home-sci a:hover{
    background: #0ef;
    color: #081b29;
    box-shadow: 0 0 20px #0ef;
}
.btn-box{
    display: inline-block;
    padding: 12px 28px;
    background: #0ef;
    border-radius: 40px;
    font-size: 16px;
    color: #081b29;
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: 600;
    opacity: 0;
    animation: slideTop 1s ease forwards;
    animation-delay: 2s;
    box-shadow: 0 0 5s #0ef,
    0 0 25px #0ef
}
.btn-box:hover{
    box-shadow: 0 0 5px cyan,
    0 0 25px cyan, 0 0 50px cyan,
    0 0 100px cyan, 0 0 200px cyan;
}

/* <!-- --------------------section 1 End--------------------------- --> */

/* <!-- --------------------section 2 Start--------------------------- --> */

.about{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 1.5rem;
    padding: 5%;

}

.about-img img{
    max-width: 630px;
    height: auto;
    width: 100%;
    border-radius:8px;
    /* border: 2px solid #0ef; */

}
.about-text h2{
    font-size: 60px;

}
.about-text h2 span{
    color: #0ef;
}
.about-text h4{
    font-size: 29px;
    font-weight: 600;
    color: #fff;
    line-height: 1.7;
    margin: 15px 0 30px;
}
.about-text p{
    color: aliceblue;
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 4rem;

}
/* For screens smaller than 768px (e.g., tablets and phones) */
@media (max-width: 768px) {
    .about {
        grid-template-columns: 1fr;
        text-align: center;
    }
   
    .about-text h2 {
        font-size: 40px;
    }
    .about-text h4 {
        font-size: 24px;
    }
    .about-text p {
        font-size: 18px;
        text-align: center !important;
        padding: 25px 25px;
        text-align: justify !important;
    }
    .about-img img{
        border: 2px solid #0ef;
    }
}

/* For screens smaller than 576px (e.g., phones) */
@media (max-width: 576px) {
    .about-text h2 {
        font-size: 32px;
    }
    .about-text h4 {
        font-size: 20px;
    }
    .about-text p {
        font-size: 16px;
        text-align: center !important;
        padding: 25px 25px;
        text-align: justify !important;
    }
    .about-img img{
        border: 2px solid #0ef;
    }
}

/* <!-- --------------------section 2 End--------------------------- --> */

/* <!-- --------------------section 3 Start--------------------------- --> */
#services{
    color: aliceblue;
    font-size: 20px ;
    line-height: 1.4;
    margin-top: -150px;

}
.sub-title{
    text-align: center;
    font-size: 60px;
    padding-bottom: 70px;

}
.sub-title span{
    color: #0ef;
}
.container{
    padding: 90px;

}
.services-list{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(259px,1fr));
    grid-gap: 40px;
    margin-top: 50px;
}
.services-list div{
    background-color: transparent;
    padding: 40px;
    font-size: 13px;
    font-weight: 13px;
    border-right: 10px;
    border-radius: 20px;
    transition: background 0.5s, transform 0.5s;
    border: 3px solid #0053b8f7;
    /* box-shadow: 1px 1px 20px #012290f7,
    1px 1px 40px #0053b8f7 */
}

.services-list div i{
    font-size: 50px;
    font-weight: 500;
    margin-bottom: 15px;
}
.services-list h2{
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 15px;
}
.services-list div a{
    text-decoration: none;
    color: #000000;
    font-size: 12px;
    margin-top: 20px;
    display: inline-block;
}



.read{
    display: inline-block;
    padding: 12px 28px;
    background: #0ef;
    border-radius: 40px;
    font-size: 16px;
    color: #081b29;
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: 600;
    opacity: 0;
    animation: slideTop 1s ease forwards;
    animation-delay: 2s;
    box-shadow: 0 0 5s #0ef,
    0 0 25px #0ef
}

.read:hover{
    box-shadow: 0 0 5px cyan,
    0 0 25px cyan, 0 0 50px cyan,
    0 0 100px cyan, 0 0 200px cyan;
}

.services-list div:hover{
    transform: translateY(-10px);
    box-shadow: 1px 1px 20px #012290f7,
    1px 1px 40px #0053b8f7;
    transform: scale(0.9)
}

/* For screens smaller than 768px (e.g., tablets and phones) */
@media (max-width: 768px) {
    .container {
        padding: 50px;
    }
    .sub-title {
        font-size: 40px;
        padding-bottom: 50px;
    }
    .services-list {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        grid-gap: 20px;
    }
    .services-list div {
        padding: 20px;
    }
    .services-list div i {
        font-size: 40px;
    }
    .services-list h2 {
        font-size: 24px;
    }
    .services-list div a {
        font-size: 14px;
    }
}

/* For screens smaller than 576px (e.g., phones) */
@media (max-width: 576px) {
    .container {
        padding: 30px;
    }
    .sub-title {
        font-size: 32px;
        padding-bottom: 40px;
    }
    .services-list div {
        padding: 15px;
    }
    .services-list div i {
        font-size: 30px;
    }
    .services-list h2 {
        font-size: 20px;
    }
    .services-list div a {
        font-size: 12px;
    }
    #services{
        margin-top: 100px;
    }
}

/* <!-- --------------------section 3 End--------------------------- --> */

/* <!-- --------------------section 4 Start--------------------------- --> */

.section{
    display: flex;
    flex-wrap: wrap;

}
.container1{
    width: 100%;
    height: 500px;
    padding: 75px 0px;
    margin: 0 auto;
}
.heading1{
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 10px;
    text-decoration-thickness: 5px;
    margin-bottom: 50px;
}

.progress-line span::before{
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border: 7px solid transparent;
    border-bottom-width: 0px;
    border-right-width: 0px;
    border-top-color: #000;
    top: -10px;
    right: 0;
    animation: showText 0.5s 1.5s linear forwards;
    opacity: 0;
}
@keyframes showText{
    100%{
        opacity: 1;
    }
}

  /* Stylingthe last h2 tag by giving margin bottom */
        .progress-bar-container:not(:last-child) {
            margin-bottom: 50px;
        }
    
        /* Styling the h2 tag by giving color, 
        letter spacing, font-size etc.*/
        .progress-bar-container h2 {
            font-family: Arial, Helvetica, sans-serif;
            color: #000;
            letter-spacing: 1px;
            font-size: 20px;
        }
    
        /* Styling the border and box
        effect of the progress bar*/
        .progress-bar {
            width: 400px;
            height: 8px;
            margin-top: 10px;
            border: 1px solid #565656;
            border-radius: 5px;
            box-shadow: 0 0 10px rgb(10, 96, 128);
        }
    
        /* Stylingthe background color of each 
        animation and border radius */
        .percentagee {
            display: block;
            height: 100%;
           border-radius: 5px;
            animation: progress 1500ms ease-in 1;
        }
    
        .progress-bar-container h2{
            color: #fff;
        }
        /* Assigning width of each languages*/
        .html {
            width: 90%;
            background-color: #0ef !important ;
        }
    
        .css {
            width: 85%;
            background-color: #0ef !important;
        }
    
        .javascript {
            width: 45%;
            background-color: #0ef !important;
        }
    
        .python {
            width: 85%;
            background-color: #0ef !important;
        }
    
        .php {
            width: 85%;
            background-color: #0ef !important;
        }
        .ml {
            width: 85%;
            background-color: #0ef !important;
        }
        
        .dl {
            width: 85%;
            background-color: #0ef !important;
        }
        
        .mysql {
            width: 80%;
            background-color: #0ef !important;
        }
       
    
        /* Animating the progress bar by 
        initially starting from 0*/
        @keyframes progress {
            from {
                width: 0;
            }
        }

.radial-bars{
    width: 500px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: flex-start;
}
.radial-bars .radial-bar{
    width: 50%;
    height: 170px;
    margin-bottom: 10px;
    position: relative;
}

.radial-bars .radial-bar svg{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%) rotate(-90deg);
    width: 120px;
    height: 160px;
}
.radial-bars .radial-bar .progress-bar{
    stroke-width: 10;
    stop-color: black;
    fill: transparent;
    stroke-dasharray: 502;
    stroke-dashoffset: 502;
    stroke-linecap: round;
    animation: animate-bar 1s linear forwards;

}
@keyframes animate-bar{
    100%{
        stroke-dashoffset: -1;
    }

}
.path{
    stroke-width: 10;
    stroke: #0ef;
    fill: transparent;
    stroke-dasharray: 502;
    stroke-dashoffset: 502;
    stroke-linecap: round;
}
.path-1{animation: animate-path1 1s 1s linear forwards;}
.path-2{animation: animate-path1 1s 1s linear forwards;}
.path-3{animation: animate-path1 1s 1s linear forwards;}
.path-4{animation: animate-path1 1s 1s linear forwards;}

@keyframes animate-path1{
    100%{
        stroke-dashoffset: 50;;
    }
}
@keyframes animate-path2{
    100%{
        stroke-dashoffset: 175;;
    }
}
@keyframes animate-path3{
    100%{
        stroke-dashoffset: 125;;
    }
}
@keyframes animate-path4{
    100%{
        stroke-dashoffset: 75;;
    }
}

.radial-bar .percentage{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    font-size: 17px;
    font-weight: 500;
    animation: showText 0.5s 1s linear forwards;
    opacity: 0;
}

.radial-bar .text{
    width: 100%;
    position: absolute;
    text-align: center;
    left: 25%;
    bottom: -5px;
    transform: translateX(-50px);
    font-size: 17px;
    font-weight: 500;
    animation: showText 0.5s 1s linear forwards;
    opacity: 0;
}

/* <!-- --------------------section 4 End--------------------------- --> */

/* -------------------- Section 5 (Portfolio) Start -------------------- */
.portfolio {
    padding: 80px 0;
    background: #081b29;
    color: #fff;
    font-family: 'Poppins', sans-serif;
}

.portfolio h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 30px;  /* Reduced space between title and content */
}

.portfolio h2 span {
    color: #00bcd4;
}

.portfolio-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(359px, 1fr));
    gap: 15px; /* Reduced gap between columns and rows */
}

.row {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin-bottom: 20px;  /* Reduced space between rows */
}

/* Image */
.row img {
    width: 100%;
    height: 350px;
    border-radius: 8px;
    display: block;
    transition: transform 0.5s ease;
}

/* Overlay */
.layer {
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.1), #0ef);
    position: absolute;
    border-radius: 8px;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 40px;
    transition: height 0.5s ease;
}

/* Hover Effects */
.row:hover img {
    transform: scale(1.1);
}

.row:hover .layer {
    height: 100%;
}

/* Text in overlay */
.layer h5 {
    color: #000;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.layer p {
    color: #000;
    font-size: 1rem;
    line-height: 1.8;
}

/* External link icon */
.layer i {
    color: #ff004f;
    margin-top: 20px;
    font-size: 20px;
    background: #16191a;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .main-text h2 {
        font-size: 40px;
        padding-bottom: 60px;
    }

    .row img {
        height: 280px;
    }

    .layer {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .main-text h2 {
        font-size: 32px;
    }

    .row img {
        height: 220px;
    }

    .layer h5 {
        font-size: 18px;
    }

    .layer p {
        font-size: 0.9rem;
    }

    .layer i {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
}
/* -------------------- Section 5 End -------------------- */

/* -------------------- Section 6 (Contact) Start -------------------- */
.contact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 0px;  /* Reduced gap between columns */
    padding-left: 30px;
    margin-top: 0%;
}

.contact-text h2 {
    font-size: 70px;  /* Adjusted font size for better spacing */
    line-height: 1;
    text-align: center;
}

.contact-text h2 span {
    color: #0ef;
}

.contact-text h4 {
    margin: 15px 0;
    color: rgb(228, 228, 228);
    font-size: 20px;
    font-weight: 600;
}

.contact-text p {
    color: rgb(177, 177, 177);
    font-size: 20px;
    line-height: 30px;
    margin-bottom: 1.5rem;  /* Reduced margin to close the spacing */
}

.contact-list {
    margin-bottom: 3rem;
}

.contact-list li {
    margin-bottom: 10px;
    display: block;
}

.contact-list i {
    display: inline-block;
    color: #0ef;
    font-size: 20px;
    font-weight: 600;
    transition: all .40s ease;
}

.contact-list li a:hover {
    transform: scale(1.01) translateY(-5px);
    color: #0ef;
}

.contact-icons i {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid #0ef;
    border-radius: 50%;
    font-size: 20px;
    color: #0ef;
    text-decoration: none;
    margin: 20px 15px 20px 0;  /* Reduced margin for closer spacing */
    transition: .5s ease;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: calc(.2s * var(--i));
}

.contact-icons i:hover {
    background: #0ef;
    color: #000;
    box-shadow: 0 0 20px #0ef;
}

.contact-form form {
    position: relative;
}

.contact-form form input,
form textarea {
    border: none;
    outline: none;
    width: 90%;
    padding: 18px;
    background: #555557;
    color: #000;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
}

.contact-form textarea {
    resize: none;
    height: 220px;
}

.contact-form form .send {
    display: inline-block;
    padding: 14px 60px;
    background: #0ef;
    border-radius: 40px;
    font-size: 18px;
    color: #081b29;
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: 600;
    opacity: 0;
    animation: slideTop 1s ease forwards;
    animation-delay: 2s;
    box-shadow: 0 0 5s #0ef,
        0 0 25px #0ef;
}

.contact-form form .send:hover {
    box-shadow: 0 0 5px cyan,
        0 0 25px cyan, 0 0 50px cyan,
        0 0 100px cyan, 0 0 200px cyan;
}

.last-text {
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background: rgb(7, 85, 91);
    font-weight: 300;
    margin-top: 70px;
}

.top {
    position: fixed;
    bottom: 1rem;
    right: 2.1rem;
}

.top i {
    color: #000;
    background: #0ef;
    font-size: 20px;
    padding: 10px;
    border-radius: 0.5rem;
}
/* -------------------- Section 6 End -------------------- */

@keyframes slideRight{
    0%{
        transform: translateX(-100px);
        opacity: 0;
    }
    100%{
        transform: translateX(0px);
        opacity: 1;
    }
}
@keyframes slideLeft{
    0%{
        transform: translateX(100px);
        opacity: 0;
    }
    100%{
        transform: translateX(0px);
        opacity: 1;
    }
}

@keyframes slideTop{
    0%{
        transform: translateY(100px);
        opacity: 0;
    }
    100%{
        transform: translateY(0px);
        opacity: 1;
    }
}
@keyframes slideBottom{
    0%{
        transform: translateY(-100px);
        opacity: 0;
    }
    100%{
        transform: translateY(0px);
        opacity: 1;
    }
}


@media (max-width: 900px) and (min-width: 700px) {
    .header{
        display:block;
    }
    .logo {
        position: relative;
        font-size: 30px;
        font-weight: 500;
        text-align: center;
    }
    .logo::after{
        content: "\a";
        white-space: pre;
    }
    .navbar a {
        font-size: 25px;
        font-weight: 200;
        margin-left: 0px;
        padding: 10px 10px 0 0;
    }
    .navbar a::after{
        content: "\a";
        white-space: pre;
    }
    
}


@media (max-width: 700px) and (min-width: 400px) {
    *{
        overflow-x: hidden;
        overflow-y: inherit;
    }
    /*navbar*/
    .header{
        display:block;
        
    }
    .logo {
        position: relative;
        font-size: 20px;
        font-weight: 500;
        text-align: center;
    }
    .logo::after{
        content: "\a";
        white-space: pre;
    }
    .navbar a {
        font-size: 15px;
        font-weight: 200;
        margin-left: 0px;
        padding: 10px 10px 0 0;
    }
    .navbar a::after{
        content: "\a";
        white-space: pre;
    }

    /*home*/
    .home{
        align-items: normal;
        padding-top: 40%;
        padding-bottom: 0;
        height: 100% !important;
        color: #ededed;
        background: #081b29;
    }
    .home-content h1 {
        font-size: 40px;
        font-weight: 600;
    }
    
    .home-content h3 {
        font-size: 30px;
        font-weight: 300;
    }
    
    .home-content h4 {
        font-size: 18px;
        font-weight: 200;
    }
    
    .home-content h4 span {
        font-size: 18px;
        font-weight: 200;
    }
    .img{
        max-width: 400px;
        position: relative;
        left: -10%;
        top: 2%;
        padding-bottom: 30px;
        padding-left: 0;
        margin-left: 0;
    }
    .btn-box:hover {
        box-shadow: 0 0 5px cyan, 0 0 10px cyan, 0 0 15pc cyan, 0 0 20px cyan, 0 0 25px cyan;
    }
    /*about*/
    .about{
        padding-bottom: 20px;
        min-height: auto;
    }
    .about-text h2 {
        font-size: 30px;
        letter-spacing: 5px;
    }
    

    
    .about-text p {
        font-size: 15px;
        line-height: normal;
        letter-spacing: 1px;
        margin-bottom: 4rem;
        text-align: left;
    }
    .abtbtn-box:hover {
        box-shadow: 0 0 5px cyan, 0 0 10px cyan, 0 0 15pc cyan, 0 0 20px cyan, 0 0 25px cyan;
    }

    /*skills*/
    
    .subtitle{
        font-size: 50px;
        text-align: center;
    }
    .container1 {
        width: 600px;
        max-height: 500px;
        padding: 20px;
        margin-left: 0px;
    }
    .container2 {
        width: 600px;
        max-height: 500px;
        padding: 10px;
        margin-left: 0px;
    }
    .bar .info .addhtml::before{
        content: "90%";
    }
    .bar .info .addcss::before{
        content: "80%";
    }
    .bar .info .addpy::before{
        content: "75%";
    }
    .bar .info .addjava::before{
        content: "50%";
    }
    .bar .info .addc::before{
        content: "50%";
    }

    /* Common styles for both technical and professional skills */
.container1 {
    width: 100%;
    padding: 20px;
    margin-bottom: 30px;
}

.heading1 {
    text-align: center;
    font-size: 24px;
}

/* Technical skills */
.skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    justify-content: center;
}

.progress-bar-container {
    text-align: center;
}

.progress-bar {
    width: 100px;
    height: 10px;
    background-color: #ddd;
    border-radius: 5px;
    margin: 10px auto;
}

.percentagee {
    display: block;
    height: 100%;
    border-radius: 5px;
    background-color: #0ef;
    animation: progress 1s ease-in-out;
}

/* Professional Skills */
.radial-bars {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.radial-bar {
    width: calc(50% - 20px);
    margin-bottom: 20px;
    text-align: center;
}

.percentage, .text {
    font-size: 16px;
    font-weight: bold;
}

/* Media Queries */
@media (max-width: 768px) {
    .radial-bar {
        width: calc(50% - 10px);
    }
}

@media (max-width: 576px) {
    .container1 {
        padding: 10px;
    }
    .heading1 {
        font-size: 20px;
    }
    .radial-bar {
        width: 100%;
    }
}

    /*project*/
    .main-text {
        padding-top: 20px;
        margin-top: 10px;
        padding-bottom: 50px;
    }
    .main-text h2 {
        font-size: 50px;
        padding-bottom: 15px;
    }
    .layer p {
        line-height: normal;
    }
    /*service*/
    .sub-title {
        font-size: 50px;
        padding-bottom: 50px;
    }
    .prj-list div{
        padding: 20px;
    }
    /*contact*/
    .contacts h2{
        font-size: 50px;
    }
    .contact-list i{
        font-size: 15px;
        padding: 5px 5px 0 0;
    }
    
    .top{
        position: fixed;
        bottom: 2rem;
        left: 1rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        opacity: 0;
        transition: all .4s;
    }
    
}

@media (max-width: 400px) {
    *{
        overflow-x: hidden;
    }
    .header{
        display:block;
    }
    .logo {
        position: relative;
        font-size: 20px;
        font-weight: 500;
        text-align: center;
    }
    .logo::after{
        content: "\a";
        white-space: pre;
    }
    .navbar a {
        font-size: 13px;
        font-weight: 200;
        margin-left: 0px;
        padding: 10px 4px 0 0;
    }
    .navbar a::after{
        content: "\a";
        white-space: pre;
    }

    /*home*/
    .home{
        width: 100%;
        align-items: normal;
        padding-top: 40%;
        padding-bottom: 0;
        color: #ededed;
        background: #081b29;
    }
    .home-content h1 {
        font-size: 30px;
        font-weight: 600;
    }
    
    .home-content h3 {
        font-size: 20px;
        font-weight: 300;
    }
    
    .home-content h4 {
        font-size: 15px;
        font-weight: 200;
    }
    
    .home-content h4 span {
        font-size: 15px;
        font-weight: 200;
    }
    .btn-box:hover {
        box-shadow: 0 0 5px cyan, 0 0 10px cyan, 0 0 15pc cyan, 0 0 20px cyan, 0 0 25px cyan;
    }
    .img{
        max-width: 300px;
        position: relative;
        left: -10%;
        top: 2%;
        padding-bottom: 30px;
        padding-left: 0;
        margin-left: 0;
        margin-right: 0;
    }
    
    /*about*/
    .about{
        padding-bottom: 20px;
        min-height: auto;
    }
    .about-text h2 {
        font-size: 30px;
        letter-spacing: 5px;
    }
    
    .about-text p {
        font-size: 15px;
        line-height: normal;
        letter-spacing: 0px;
        margin-bottom: 4rem;
        text-align: left;
    }
    .abtbtn-box:hover {
        box-shadow: 0 0 5px cyan, 0 0 10px cyan, 0 0 15pc cyan, 0 0 20px cyan, 0 0 25px cyan;
    }

    /*skills*/
    .section{
        margin-right: 50px;
    }
    .subtitle{
        font-size: 50px;
        text-align: center;
    }
    .container1 {
        width: 600px;
        max-height: 500px;
        padding: 20px;
        margin-left: 50px;
    }
    .container2 {
        width: 600px;
        max-height: 500px;
        padding: 10px;
        margin-left: 0px;
    }
    .radial-bar .text{
        left: 25%;
    }
    .bar .info .addhtml::before{
        content: "90%";
    }
    .bar .info .addcss::before{
        content: "80%";
    }
    .bar .info .addpy::before{
        content: "75%";
    }
    .bar .info .addjava::before{
        content: "50%";
    }
    .bar .info .addc::before{
        content: "50%";
    }

    /*project*/
    .main-text {
        padding-top: 20px;
        margin-top: 10px;
        padding-bottom: 50px;
    }
    .main-text h2 {
        font-size: 50px;
        padding-bottom: 15px;
    }
    .layer p {
        line-height: normal;
    }

    /*service*/
    .sub-title {
        font-size: 50px;
        padding-bottom: 50px;
    }

    /*contact*/
    .contact h2{
        font-size: 40px;
        margin-left: -20px;
    }
    .contact-list i{
        font-size: 13px;
        padding: 5px 5px 0 0;
    }
    
    .top{
        position: fixed;
        bottom: 2rem;
        left: 1rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        opacity: 0;
        transition: all .4s;
    }
    .top i{
        color: #000;
    }
}

/* For screens smaller than 768px */
@media (max-width: 768px) {
    .home{
        width: 100%;
        align-items: normal;
        padding-top: 40%;
        padding-bottom: 0;
        color: #ededed;
        background: #081b29;
    }
    .contact {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 15px;
        text-align: center;
    }

    .contact-text h2 {
        font-size: 60px;
    }

    .contact-text h4 {
        font-size: 18px;
    }

    .contact-text p {
        font-size: 16px;
    }

    .contact-icons i {
        width: 30px;
        height: 30px;
        font-size: 16px;
        margin: 20px 10px 20px 0;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 16px;
        padding: 14px;
    }

    .contact-form form .send {
        padding: 12px 50px;
        font-size: 16px;
    }
}

/* For screens smaller than 576px */
@media (max-width: 576px) {
    .contact-text h2 {
        font-size: 40px;
    }

    .contact-text h4 {
        font-size: 16px;
    }

    .contact-text p {
        font-size: 14px;
    }

    .contact-list i {
        font-size: 18px;
    }

    .contact-icons i {
        width: 25px;
        height: 25px;
        font-size: 14px;
        margin: 15px 10px 15px 0;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 14px;
        padding: 12px;
    }

    .contact-form form .send {
        padding: 10px 40px;
        font-size: 14px;
    }
    .contact{
        text-align: center;
    }
}

/* Additional styles */
.last-text {
    font-size: 14px;
    padding: 15px 0;
}

.top {
    bottom: 1rem;
    right: 1rem;
}

.top i {
    font-size: 18px;
    padding: 8px;
}

/* For screens smaller than 375px (e.g., iPhone SE) */
@media (max-width: 375px) {
    .contact{
        text-align: center;
    }
    .contact-text h2 {
        font-size: 32px;
    }

    .contact-text h4 {
        font-size: 14px;
    }

    .contact-text p {
        font-size: 12px;
        margin-bottom: 1rem;
    }

    .contact-list i {
        font-size: 16px;
    }

    .contact-icons i {
        width: 20px;
        height: 20px;
        font-size: 12px;
        margin: 10px 8px 10px 0;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 12px;
        padding: 10px;
    }

    .contact-form form .send {
        padding: 8px 36px;
        font-size: 12px;
    }

    .last-text {
        font-size: 12px;
    }
}

