:root {
    --i: 5; /* Set the CSS variable */
}

/* Base styles */
* {
    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 10px;
    background: #051129;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}
.header::after {
    content: "";
    position: absolute;
    left: 25px;
    right: 25px;
    bottom: 0;
    height: 2px; /* Thickness of the underline */
    background-color: blue; /* Color of the underline */
}
.logo { 
    position: relative;
    font-size: 38px;
    color: #fff;
    text-decoration: none;
    
    cursor: pointer;
    opacity: 0;
    animation: slideRight 1s ease forwards;
    margin-left: 5%;
    background: linear-gradient(to right, red, blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    
    
}
.navbar{
    margin-right: 5%;
}
.navbar a {
    display: inline-block;
    font-size: 18px;
    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::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px; /* Adjust distance of underline */
    width: 0%;
    height: 2px;
    background-color: cyan; /* Underline color */
    transition: width 0.4s ease-in-out;
}
.navbar a:hover {
    color: #0ef;
}
.navbar a.active {
    color: cyan; /* Change color when active */
    font-weight: bold;
    border-bottom: 2px solid cyan; /* Optional underline */
}

.navbar a:hover::after {
    width: 100%;
}
.home{
    position: relative;
    width: 100%;
    justify-content: space-between;
    height: 100vh;
    background:url(Home.png) no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 70px 10% 0;
}
.home-content {
    max-width: 50%;
}
.home-img2 {
    max-width: 45%;
}
.home-img2 img {
    width: 100%;
    border-radius: 10px;
}
@media (max-width: 768px) {
    .home {
        flex-direction: column;
        padding: 50px 5%;
    }
    .home-content {
        max-width: 100%;
        text-align: center;
    }
    .home-img2 {
        max-width: 80%;
        margin-top: 20px;
    }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .home {
        padding: 60px 8%;
    }
    .home-content {
        max-width: 55%;
    }
    .home-img2 {
        max-width: 40%;
    }
}
.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-last-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: 18px;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: 1s;
    color: rgb(244, 235, 222);
}
.home-scl a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 0 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-scl 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 2s ease forwards;
    animation-delay: 2s;
    box-shadow: 0 0 5px #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;
}

.about {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 1.5rem;
    padding: 90px;
}
.about-img img {
    padding-bottom: 20%;
    max-width: 630px;
    height: auto;
    width: 100%;
    border-radius: 8px;
}
.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.4;
    margin: 15px 0 30px;
}
.about-text p {
    color: aliceblue;
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 4rem;
}

#services {
    color: aliceblue;
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 4rem;
}
.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;
    box-shadow: 1px 1px 20px #012290f7,
                1px 1px 40px #0053b8f7;
}
.services-list div i {
    font-size: 50px;
    margin-bottom: 30px;
}
.services-list div 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: #001b29;
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: 600;
    opacity: 0;
    animation: slideTop 1s ease forwards;
    animation-delay: 2s;
    box-shadow: 0 0 5px #0ef,
                0 0 25px #0ef;
}
.read:hover {
    background: #0ef;
    color: #081b29;
    box-shadow: 0 0 20px #0ef;
}
.services-list div:hover {
    transform: translateY(-10px);
}
section {
    display: flex;
    flex-wrap: wrap;
}
.container1 {
    width: 600px;
    height: 850px;
    padding: 75px 90px;
    margin-left: 120px;
}
.heading1 {
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 10px;
    text-decoration-thickness: 5px;
    margin-bottom: 50px;
}
.bar {
    font-size: 23px;
}
.Technical-bars .bar {
    margin-top: 40px 0;
}
.Technical-bars .bar:first-child {
    margin-top: 0;
}
.Technical-bars .bar:last-child {
    margin-bottom: 0;
}
.Technical-bars .bar .info {
    margin-bottom: 5px;
}
.Technical-bars .bar .info span {
    font-size: 17px;
    font-weight: 500;
    animation: showText 0.5s 1s linear forwards;
    opacity: 0;
}
.Technical-bars .bar .progress-line {
    position: relative;
    border-radius: 10px;
    width: 100%;
    height: 7px;
    background-color: #000000;
    animation: animate 1s cubic-bezier(1, 0, 0.5, 1) forwards;
    transform: scaleX(0);
}
@keyframes animate {
    100% {
        transform: scaleX(1);
    }
}
.Technical-bars .bar .progress-line span {
    height: 100%;
    background-color: #0ef;
    position: absolute;
    border-radius: 10px;
    animation: animate 1s 1s cubic-bezier(1, 0, 0.5, 1) forwards;
    transform: scaleX(0);
    transform-origin: left;
}
.progress-line.python span {
    width: 90%;
}
.progress-line.html span {
    width: 75%;
}
.progress-line.css span {
    width: 80%;
}
.progress-line.excel span {
    width: 70%;
}
.progress-line.word span {
    width: 90%;
}
.progress-line.powerpoint span {
    width: 95%;
}
.progress-line span::after {
    position: absolute;
    padding: 1px 8px;
    background-color: #000;
    color: #fff;
    font-size: 12px;
    border-radius: 3px;
    top: -28px;
    right: -20px;
    animation: showText 0.5s 1.5s linear forwards;
    opacity: 0;
}
.progress-line.python span::after {
    content: "90%";
}
.progress-line.html span::after {
    content: "75%";
}
.progress-line.css span::after {
    content: "80%";
}
.progress-line.excel span::after {
    content: "70%";
}
.progress-line.word span::after {
    content: "90%";
}
.progress-line.powerpoint span::after {
    content: "95%";
}
.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;
    }
}
.radial-bars {
    width: 100%;
    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;
    stroke: 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-path2 1s 1s linear forwards; }
.path-3 { animation: animate-path3 1s 1s linear forwards; }
.path-4 { animation: animate-path4 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: 50%;
    bottom: -5px;
    transform: translateX(-50px);
    font-size: 17px;
    font-weight: 500;
    animation: showText 0.5s 1s linear forwards;
    opacity: 0;
}
.main-text {
    padding-top: 130px;
    margin-top: 200px;
}
.main-text h2 {
    font-size: 60px;
    line-height: 1;
    text-align: center;
}
.main-text h2 span {
    color: #0ef;
}
/* Projects Section*/
.projects {
    text-align: center;
    padding: 50px 14%;
    background-color: #081b29;
}
.projects h1 {
    font-size: 60px;
    color: #fff;
    text-align: center;
    margin-bottom: 40px;
    
    letter-spacing: 2px;
    width: 100%;
}
.projects h1 span{
    color: cyan;
}

/* Project Card */
.projects-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 80%;
    margin: 0 auto;
}

.project-card {
    display: flex;
    align-items: center;
    background: #1F2937;
    border-radius: 12px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease-in-out;
}

.project-card:hover {
    transform: translateY(-5px);
}

/* Project Image */
.project-image img {
    width: 400px;
    height: 250px;
    border-radius: 10px;
}

/* Project Details */
.project-details {
    text-align: left;
    padding-left: 20px;
}

.project-details h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 10px;
}

.project-details p {
    font-size: 1rem;
    color: #bbb;
    margin-bottom: 8px;
}

/* Tech Stack */
.tech-stack span {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 6px 12px;
    border-radius: 5px;
    margin-top: 10px;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
    .project-card {
        flex-direction: column;
        text-align: center;
    }

    .project-image img {
        width: 100%;
    }

    .project-details {
        padding-left: 0;
        padding-top: 15px;
    }
}


.contact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 3rem;
    padding-left: 30px;
    margin-top: 130px;
}
.contact-text h2 {
    font-size: 90px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 3rem;
    padding-left: 30px;
    margin-top: 130px;
}
.contact-text h2 {
    font-size: 90px;
    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: 2rem;
}
.contact-list {
    margin-bottom: 3rem;
}
.contact-list li {
    margin-bottom: 10px;
    display: block;
}
.contact-list a{
    text-decoration: none;
    color: whitesmoke;
}
.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 .icons i{
	border:2px solid cyan;
	border-radius:50px;
	padding:5px;
	margin:15px;
	
	transition: all ease-in 0.2s;
	
}


.contact-icons .icons{
	text-decoration: none; 
	color:white; 
	font-size: 20px;
	
	
}
.contact-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    
    border-radius: 50%;
    font-size: 20px;
    color: #0ef;
    text-decoration: none;
    margin: 30px 15px 30px 0;
    transition: .5s ease;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: calc(.2s * var(--i));
}
.contact-icons a: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: #001b29;
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: 600;
    opacity: 0;
    animation: slideTop 1s ease forwards;
    animation-delay: 2s;
    box-shadow: 0 0 5px #0ef,
                0 0 25px #0ef;
}
.contact-form form .send:hover {
    background: #0ef;
    color: #081b29;
    box-shadow: 0 0 20px #0ef;
}
.last-text{
    color: white;
	height:85px;
	width: 100%;
	background-color: rgb(19, 13, 35);
	display:flex;
	align-items: center;
	justify-content: center;
	
}
.last-text p{
    text-align: center;
    font-size: 17px;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    
    background-color: rgb(86, 254, 254);
    color: blue;
    border: none;
    padding: 10px 13px;
    border-radius: 15px;
    display: none; /* Hidden by default */
    cursor: pointer;
    z-index: 1000; /* Ensure it's on top */
    font-weight: 800;
    font-size: 15px;
    transition: all .3s ease;
    
}

.back-to-top:hover {
    box-shadow: 0 0 20px cyan;
}
@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;
    }
}
.title {
    font-size: 2.5rem; /* Equivalent to text-4xl */
    font-weight: 600;  /* Equivalent to font-semibold */
    margin-top: 10px;
}

.highlight {
    color: #86198f; /* Equivalent to text-[#86198f] */
}

.subtitle {
    font-family: serif; /* Equivalent to font-serif */
    font-size: 1.25rem; /* Equivalent to sm:text-xl */
    letter-spacing: 0.05em; /* Equivalent to sm:tracking-wider */
    margin-top: 10px;
}
.timeline {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 0 9%;
}
.timeline.timeline-row {
    display: flex;
}
.timeline-column {
    font-size: 28px;
    margin: 32px 0 16px 30px;
}
.timeline-column .timeline-box {
    border-right-width: 2px solid #0ef;
}
.timeline-box .timeline-content {
    padding-left: 27px;
}
.timeline-box .timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10.5px;
    width: 20px;
    height: 20px;
    background: #0ef;
    border-radius: 50%;
}
.timeline-content .content {
    padding: 24px;
    border: 2px solid #0ef;
    border-radius: 8px;
    margin-bottom: 32px;
}
.timeline-content .content .year {
    font-size: 16px;
    color: #0ef;
}
.timeline-content .content .year i {
    margin-right: 8px;
}
.timeline-content .content h3 {
    font-size: 19px;
    margin: 8px 0;
}
.timeline-content .content p {
    font-size: 16px;
}
.para {
    text-align: center;
    margin-top: 10px;
}

/* Media queries for different devices */
/* Mobile devices (portrait and landscape) */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        padding: 10px 5px;
    }
    .logo {
        font-size: 25px;
        margin-bottom: 10px;
    }
    .navbar a {
        font-size: 17px;
        margin-left: 20px;
    }
    .home {
        flex-direction: column;
        height: auto;
        padding: 50px 5%;
    }
    .home-content h1 {
        font-size: 36px;
    }
    .home-content h3 {
        font-size: 24px;
    }
    .home-content p {
        font-size: 16px;
    }
    .about {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    .container {
        padding: 50px 20px;
    }
    .services-list {
        grid-template-columns: 1fr;
        grid-gap: 20px;
    }
    .container1 {
        width: 100%;
        margin-left: 0;
        padding: 20px;
    }
    .contact {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    .contact-text h2 {
        font-size: 40px;
    }
    .contact-text p, .contact-text h4 {
        font-size: 16px;
    }
    .timeline {
        padding: 20px;
    }
}

/* Tablets (portrait and landscape) */
@media (min-width: 769px) and (max-width: 1024px) {
    .header {
        padding: 15px 10px;
    }
    .logo {
        font-size: 35px;
    }
    .navbar a {
        font-size: 22px;
        margin-left: 25px;
    }
    .home {
        padding: 60px 8%;
    }
    .home-content h1 {
        font-size: 48px;
    }
    .home-content h3 {
        font-size: 28px;
    }
    .home-content p {
        font-size: 18px;
    }
    .about {
        grid-template-columns: 1fr;
        padding: 40px;
    }
    .container {
        padding: 70px 40px;
    }
    .services-list {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        grid-gap: 30px;
    }
    .container1 {
        width: 100%;
        margin-left: 0;
        padding: 30px;
    }
    .contact {
        grid-template-columns: 1fr;
        padding: 40px;
    }
    .contact-text h2 {
        font-size: 60px;
    }
    .contact-text p, .contact-text h4 {
        font-size: 18px;
    }
    .timeline {
        padding: 30px;
    }
}

/* Laptops */
@media (min-width: 1025px) and (max-width: 1440px) {
    .header {
        padding: 20px 10px;
    }
    .logo {
        font-size: 35px;
    }
    .navbar a {
        font-size: 25px;
        margin-left: 35px;
    }
    .home {
        padding: 70px 10%;
    }
    .home-content h1 {
        font-size: 56px;
    }
    .home-content h3 {
        font-size: 32px;
    }
    .home-content p {
        font-size: 20px;
    }
    .about {
        grid-template-columns: repeat(2, 1fr);
        padding: 60px;
    }
    .container {
        padding: 90px 60px;
    }
    .services-list {
        grid-template-columns: repeat(auto-fit, minmax(259px, 1fr));
        grid-gap: 40px;
    }
    .container1 {
        width: 100%;
        margin-left: 0;
        padding: 60px;
    }
    .contact {
        grid-template-columns: repeat(2, 1fr);
        padding: 60px;
    }
    .contact-text h2 {
        font-size: 80px;
    }
    .contact-text p, .contact-text h4 {
        font-size: 20px;
    }
    .timeline {
        padding: 50px;
    }
}

/* Desktops and large screens */
@media (min-width: 1441px) {
    .header {
        padding: 20px 10px;
    }
    .logo {
        font-size: 35px;
    }
    .navbar a {
        font-size: 25px;
        margin-left: 35px;
    }
    .home {
        padding: 70px 10%;
    }
    .home-content h1 {
        font-size: 56px;
    }
    .home-content h3 {
        font-size: 32px;
    }
    .home-content p {
        font-size: 20px;
    }
    .about {
        grid-template-columns: repeat(2, 1fr);
        padding: 90px;
    }
    .container {
        padding: 90px 90px;
    }
    .services-list {
        grid-template-columns: repeat(auto-fit, minmax(259px, 1fr));
        grid-gap: 40px;
    }
    .container1 {
        width: 100%;
        margin-left: 0;
        padding: 90px;
    }
    .contact {
        grid-template-columns: repeat(2, 1fr);
        padding: 90px;
    }
    .contact-text h2 {
        font-size: 90px;
    }
    .contact-text p, .contact-text h4 {
        font-size: 20px;
    }
    .timeline {
        padding: 70px;
    }
}