@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&family=Rubik:wght@300;400;500;600&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: 'Poppins' , sans-serif;
}
body{
    color: #ededed;
    background: #04041a;
}
.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 10%;
    background: #051129;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}
.logo{
    position: relative;
    font-size: 35px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    width: 50%;
    cursor: default;
    opacity: 0;
    animation: slideRight 1s ease forwards;
}
.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  background-color: #051129;
}
.navbar a{
    display: inline-block;
    font-size: 22px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 35px;
    transition: .3s;
    opacity: 0;
    animation: slideTop 1s ease forwards;
    animation-delay: calc(.2s * var(--i)); 
}
.navbar a:hover{
    color: #0ef;
}/* Hamburger menu icon (hidden by default) */
.menu-toggle {
  display: none;
  font-size: 26px;
  color: #fff;
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1001;
}

/* Responsive styles */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .navbar {
    display: none;
    flex-direction: column;
    background-color: #04041a;
    width: 100%;
    position: absolute;
    top: 60px;
    left: 0;
    text-align: center;
    z-index: 1000;
  }

  .navbar.active {
    display: flex;
  }

  .navbar a {
    margin: 15px 0;
    opacity: 1;
    animation: none;
  }
}
@media (max-width: 768px) {
  .header {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .logo {
    order: 1;
    margin-left: 1px;
    font-size: 28px;
  }

  .menu-toggle {
    order: 2;
    margin-right: 12px;
  }

  .navbar {
    order: 3;
    width: 100%;
    text-align: center;
  }
}


.home{
    position: relative;
    width: 100%;
    justify-content: space-between;
    height: 100vh;
    background: rgb(4, 4, 30);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 70px 10% 0;
}
.home-content{
    max-width: 600px;
    padding-top: 70px;
}
.home-content h3{
    font-size: 30px;
    font-weight: 700;
    opacity: 0;
    animation: slideBottom 1s ease forwards;
    animation-delay: .7s;
}
.home-content h1{
    font-size: 50px;
    font-weight: 700;
    margin: -3px 0;
    opacity: 0;
    animation: slideRight 1s ease forwards;
    animation-delay: 1s;
}
.home-content p{
    font-size: 17px;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: 1s;
}
.home-sic 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;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: calc(.2s * var(--i));
    margin: 30px 15px 30px 0;
}
.home-sic a:hover{
    background: #0ef;
    color: #081b29;
    box-shadow: 0 0 20px #0ef;
}
.btn{
    display: inline-block;
    padding: 12px 28px;
    background-color: #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 5px #0ef,0 0 25px #0ef;
}
.btn:hover{
    box-shadow: 0 0 5px cyan,
    0 0  25px cyan, 0 0 45px cyan;
}
.home-content h3:nth-of-type(2){
    margin-bottom: 25px;
    animation: slideTop 1s ease forwards;
    animation-delay: .7s;
}
.home-content h3 span{
    color: #0ef;
    font-size: 35px;
}
.about {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 1.5rem;
    padding: 0 20px;
}

/* Image styles */
.about-img img {
    padding-top: 160px;
    margin-bottom: 30px;
    margin-left: 5%;
    max-width: 630px;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Headings and text */
.about-text h2 {
    font-size: 60px;
    padding-top: 40px;
}

.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: 18px;
    line-height: 30px;
    margin-bottom: 4rem;
    margin-right: 3.8rem;
}

/* Responsive adjustments for phones */
@media (max-width: 576px) {
    .about {
        grid-template-columns: 1fr;
        padding: 20px 10px;
    }

    .about-img img {
        padding-top: 0;
        margin-left: 0;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .about-text h2 {
        font-size: 32px;
        padding-top: 10px;
        text-align: center;
    }

    .about-text h2 span {
        display: inline-block;
    }

    .about-text h4 {
        font-size: 18px;
        margin: 10px 0 20px;
        text-align: center;
    }

    .about-text p {
        font-size: 16px;
        margin-bottom: 2rem;
        margin-right: 0;
        text-align: justify;
    }
}



#services{
    color: aliceblue;
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 4rem;
}
.sub-title{
    text-align: center;
    font-size: 60px;
    padding-bottom: 5px;
}
.sub-title span{
    color: #0ef;
}
.container {
    padding: 60px 20px; /* Reduced padding for better mobile fit */
    max-width: 1200px;
    margin: 0 auto;
}
.services-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* exactly 4 in one row */
    gap: 30px;
    margin-top: 50px;
    padding: 0 10px;
}
@media (max-width: 1200px) {
    .services-list {
        grid-template-columns: repeat(2, 1fr); /* 2 per row on medium screens */
    }
}

@media (max-width: 768px) {
    .services-list {
        grid-template-columns: 1fr; /* 1 per row on small screens */
        gap: 20px;
    }
}
.services-list div {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 25px 20px;
    font-size: 14px;
    font-weight: 400;
    border-radius: 16px;
    transition: background 0.3s, transform 0.3s ease;
    box-shadow: 0 4px 12px #012290f7, 0 0 40px #0053b8f7;
    text-align: center;
}
/* .services-list div:hover {
    background-color: rgba(0, 238, 255, 0.1);
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 238, 255, 0.8);
} */
.services-list div i {
    font-size: 50px;
    margin-bottom: 20px;
    color: #0ef;
}

.services-list div h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
}

.services-list div p {
    color: #ddd;
    font-size: 14px;
    line-height: 1.5;
}

.services-list div a {
    text-decoration: none;
    color: #000;
    font-size: 14px;
    margin-top: 20px;
    display: inline-block;
}

.read {
    display: inline-block;
    padding: 10px 25px;
    background: #0ef;
    border-radius: 30px;
    font-size: 14px;
    color: #081b29;
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: 600;
    opacity: 1;
    transition: 0.3s ease;
    box-shadow: 0 0 8px #0ef, 0 0 20px #0ef;
}

.read:hover {
    box-shadow: 0 0 8px cyan, 0 0 20px cyan, 0 0 40px cyan;
    transform: scale(1.05);
}

.services-list div:hover {
    transform: translateY(-10px);
    background-color: rgba(0, 238, 255, 0.05);
}


section {
    display: flex;
    justify-content: center;
    gap: 50px; /* space between skill boxes */
    flex-wrap: wrap; /* wrap on smaller screens */
    padding: 50px 20px;
    box-sizing: border-box;
}

.container1 {
    width: 500px;
    padding: 40px;
    background-color: #000000;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.heading1 {
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 10px;
    text-decoration-thickness: 5px;
    margin-bottom: 40px;
    font-size: 24px;
}

.bar {
    font-size: 20px;
    margin: 20px 0;
}

.Technical-bars .bar .info {
    margin-bottom: 5px;
}

.Technical-bars .bar .info span {
    font-size: 16px;
    font-weight: 600;
    animation: showText 0.5s 1s linear forwards;
    opacity: 0;
}

.Technical-bars .bar .progress-line {
    position: relative;
    width: 100%;
    height: 8px;
    background-color: #000;
    border-radius: 10px;
    transform: scaleX(0);
    transform-origin: left;
    animation: animate 1s cubic-bezier(1,0,0.5,1) forwards;
}

.Technical-bars .bar .progress-line span {
    position: absolute;
    height: 100%;
    background-color: #0ef;
    border-radius: 10px;
    transform: scaleX(0);
    transform-origin: left;
    animation: animate 1s 1s cubic-bezier(1,0,0.5,1) forwards;
}

@keyframes animate {
    to {
        transform: scaleX(1);
    }
}

@keyframes showText {
    to {
        opacity: 1;
    }
}

/* Optional: Radial bar layout */
.radial-bars {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.radial-bar {
    width: 120px;
    text-align: center;
}

.radial-bar svg {
    width: 100%;
    height: auto;
}

.hero-portrait .pic {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40vw;
    background-size: contain;
    background-position: bottom;
    background-repeat: no-repeat;
    background-image: url(images/image.png);
    margin-right: 5%;
}

@media (max-width: 576px) {
    #hero {
        padding: 35px 0px 0px 0px;
    }

    .hero-portrait {
        position: relative;
        overflow: hidden;
        width: 100%;
        max-width: 170px;
        height: 170px;
        max-height: 170px;
        margin: 0 auto;
        border: solid 3px transparent;
        border-radius: 50%;
        background-image: var(--primary-gradient-color), radial-gradient(circle at top left, var(--primary-color),var(--secondary-color));
        background-origin: border-box;
        background-clip: content-box, border-box;
    }

    .hero-portrait .pic {
        display: none; /* <-- hide the image on small screens */
    }



    .hero-content{
        margin-top: 35px;
    }

    #hero .btn-showcase {
        font-size: 12px;
    }

    #hero .tagline {
        font-size: 14px;
        letter-spacing: 1.2px;
    }

    #hero .social-icons a{
        font-size: 14px;
        padding: 0px 5px 0px 5px;
    }

    #hero .call-to-action{
        margin-top: 0px;
    }
}
.progress-line.html span{
    width: 90%;
}
.progress-line.css span{
    width: 65%;
}
.progress-line.javascript span{
    width: 75%;
}
.progress-line.python span{
    width: 50%;
}
.progress-line.react span{
    width: 80%;
}
.progress-line span::after{
    position: absolute;
    padding: 1px 8px;
    background-color: #000;
    color: #fff;
    font-size: 12px;
    border-radius: 3px;
    top: -28px;
    right: -28px;
    animation: showText 0.5s 1s linear forwards;
    opacity: 0;
}
.progress-line.html span::after{
    content: "90%";
}
.progress-line.css span::after{
    content: "85%";
}
.progress-line.javascript span::after{
    content: "95%";
}
.progress-line.python span::after{
    content: "80%";
}
.progress-line.react span::after{
    content: "90%";
}
.progress-line span::after{
    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 1s 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;
    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-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: 90%;
    }
}
@keyframes animate-path2{
    100%{
        stroke-dashoffset: 50%;
    }
}
@keyframes animate-path3{
    100%{
        stroke-dashoffset: 70%;
    }
}
@keyframes animate-path4{
    100%{
        stroke-dashoffset: 100%;
    }
}
.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: shoeText 0.5s 1s linear forwards;
    opacity: 0;
}


/* Default styling */
.main-text {
    margin-top: 200px;
}
#portfolio {
    width: 100%;
    margin: 0 40px;
}
.main-text h2 {
    font-size: 60px;
    line-height: 1;
    text-align: center;
}
.main-text h2 span {
    color: #0ef;
}

.portfolio-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.row {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.row img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    transition: transform 0.5s;
}

.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 20px;
    transition: height 0.5s;
}

.layer h5 {
    color: #000;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
}

.layer i {
    color: #ff004f;
    margin-top: 20px;
    font-size: 20px;
    background-color: #fff;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Hover effects */
.row:hover img {
    transform: scale(1.1);
}
.row:hover .layer {
    height: 100%;
}

/* ✅ Responsive for phones */
@media (max-width: 576px) {
    #portfolio {
        margin: 0 15px;
    }

    .main-text {
        margin-top: 100px;
    }

    .main-text h2 {
        font-size: 30px;
    }

    .row img {
        height: 220px;
    }

    .layer h5 {
        font-size: 18px !important;
    }

    .layer i {
        font-size: 18px;
        width: 40px;
        height: 40px;
    }
}


.contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    padding: 30px;
    margin-top: 130px;
}

.contact-text {
    text-align: center;
    max-width: 800px;
}

.contact-text h2 {
    font-size: 60px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.contact-text h2 span {
    color: #0ef;
}

.contact-text h4 {
    margin: 10px 0;
    color: rgb(228, 228, 228);
    font-size: 20px;
    font-weight: 600;
}

.contact-text p {
    color: rgb(255, 255, 255);
    font-size: 18px;
    line-height: 28px;
    margin-bottom: 1.5rem;
}

.contact-list {
    display: flex;
    gap: 2rem; /* space between items */
    justify-content: flex-start;
    align-items: center;
    list-style: none;
    padding: 0;
}

.contact-list li {
    display: flex;
    align-items: center;
    font-size: 18px;
    color: #fff; /* adjust as needed */
}

.contact-list i {
    margin-right: 10px;
    color: #0ef;
}

.contact-icons {
    margin-top: 20px;
}

.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;
    margin: 0 10px;
    transition: 0.5s ease;
}

.contact-icons i:hover {
    background: #0ef;
    color: #000;
    box-shadow: 0 0 20px #0ef;
}

.contact-form {
    width: 100%;
    max-width: 800px;
}

.contact-form form {
    width: 100%;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 18px;
    background: #000000;
    color: #000;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    border-radius: 0.5rem;
    border: none;
    outline: none;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: white;
    opacity: 1; /* Ensures full visibility */
}
.contact-form textarea {
    resize: none;
    height: 200px;
}

.contact-form .send {
    display: inline-block;
    padding: 14px 60px;
    background: #0ef;
    border-radius: 40px;
    font-size: 18px;
    color: #081b29;
    letter-spacing: 1px;
    font-weight: 600;
    box-shadow: 0 0 5px #0ef, 0 0 25px #0ef;
    margin-top: 10px;
    border: none;
    cursor: pointer;
    transition: 0.3s ease;
}

.contact-form .send:hover {
    box-shadow: 0 0 5px cyan, 0 0 25px cyan, 0 0 45px cyan;
}

@media (max-width: 768px) {
    .contact {
        padding: 20px;
        margin-top: 80px;
        gap: 2rem;
    }

    .contact-text h2 {
        font-size: 40px;
    }

    .contact-text h4 {
        font-size: 16px;
    }

    .contact-text p {
        font-size: 16px;
        line-height: 24px;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 1rem;
        padding: 12px;
    }

    .contact-form .send {
        width: 100%;
        padding: 12px 0;
        font-size: 16px;
    }

    .contact-icons {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .contact-icons i {
        margin: 10px 8px;
        font-size: 18px;
        width: 36px;
        height: 36px;
    }

    .contact-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-top: 20px;
    }

    .contact-list li {
        font-size: 16px;
    }
}

.last-text p{
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background: rgb(19, 1, 19);
    font-size: 2rem;
    margin-top: 70px;
}
@media (max-width: 768px) {
    .last-text p {
        font-size: 12px; /* smaller size for phones */
    }
}
.top {
    position: fixed;
    bottom: 2.1rem;
    right: 2.1rem;
    z-index: 1000;
}

.top i {
    color: #000;
    background: #0ef;
    font-size: 20px;
    padding: 10px 13px;
    border-radius: 0.5rem;
    transition: 0.3s ease;
}

/* Smaller size for phones */
@media (max-width: 768px) {
    .top {
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .top i {
        font-size: 16px;
        padding: 8px 10px;
    }
}


@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;
    }
}

.tech-stack-wrapper {
    width: 100%;
    display: flex;
    align-items: center
}

.language-speak {
    height: 50px;
    justify-content: center
}

.language-speak article {
    font-size: 2rem;
    font-weight: 600
}

.frontend-dev-section {
    width: 100%;
    margin-top: 50px
}

.frontend-dev-heading {
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    font-weight: 900;
    height: 100px;
    letter-spacing: 5px;
    background-image: -webkit-gradient(linear, left top, right top, var(--static-heading-gradient-blue), var(--static-heading-gradient-pink));
    background-image: -webkit-linear-gradient(left, var(--static-heading-gradient-blue), var(--static-heading-gradient-pink));
    background-image: linear-gradient(90deg, var(--static-heading-gradient-blue), var(--static-heading-gradient-pink));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent
}

.project-box,
.tech-stack-box {
    background-image: linear-gradient(to bottom right, var(--tech-stack-box-first-color), var(--tech-stack-box-second-color))
}

.tech-stack-wrapper {
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
    margin-top: 50px
}

.tech-stack-box,
.tooltip {
    align-items: center;
    display: flex
}

.tech-stack-box {
    width: 160px;
    height: 160px;
    justify-content: center;
    border-radius: 30px;
    border: 1px solid var(--tech-stack-box-border-color);
    position: relative
}

.tech-stack-box img {
    width: 80%
}

.tech-stack-box:hover .tooltip {
    opacity: 1;
    transition-duration: .3s
}