* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', 'sans-serif';
    box-sizing: border-box;
}

:root {
    --Primary: #7756ff;
    --Secondary: #ffc448;
    --Black: #121212;
    --White: #ffffff;
    
    --background-color: var(--White);
    --text-color: var(--Black);
    --link-color: var(--Primary);
    --link-hover-color: #4530b3;
    --footer-bg-color: #333;
    --footer-text-color: var(--White);
    --footer-link-hover-color: var(--Primary);
    --card-bg-color: var(--White);
    --card-text-color: var(--Black);
    --card-hover-bg-color: #f2efff;
}


body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;

}


.home-bg {
    width: 100vw;
    height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(119, 85, 255, 0.2), transparent 70%),
        radial-gradient(circle at bottom right, rgba(255, 196, 72, 0.2), transparent 70%);
    scroll-behavior: smooth;
}

.home {
    width: 80vw;
    height: 100%;
}


/* Header Section */
.header {
    font-weight: 600;
    width: 100%;
    height: 10vh;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 30px;
}

.header .logo {
    font-size: 24px;
}

.nav{
    position: relative;
}
.nav a {
    text-decoration: none;
    color: var(--Black);
    margin: 20px;
}

.nav a:hover {
    color: var(--Primary);
}

.nav .active {
    color: var(--Primary);
}

/* Hero Section */

.content {
    text-align: center;
    width: 100%;
    height: 80%;
    display: flex;
    flex-direction: column;
    gap: 50px;
    justify-content: center;
    align-items: center;
    margin-top: 75px;
}

.hero h1 {
    font-size: 70px;
    font-weight: 600;
}

h1>div>.job-title {
    color: var(--White);
    background-color: var(--Primary);
    border-radius: 500px;
    padding: 5px 15px;
}

div>.gradient {
    background: linear-gradient(45deg, var(--Primary), var(--Secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    font-size: 25px;
}

.hero-social-icons a {
    background-color: var(--White);
    border-radius: 8px;
    height: 35px;
    width: 50px;
    color: var(--Black);
}
.hero-social-icons a :hover{
    background-color: var(--White);
    color: var(--Primary);
}

.hero-btn {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.hire-me-btn {
    font-weight: 600;
    background-color: var(--Secondary);
    color: #121212;
    text-decoration: none;
    border-radius: 8px;
    padding: 10px 30px;
    transition: all 0.3s ease-in-out;
    box-shadow: 2px 2px #bf7e01;
}

.hire-me-btn:hover {
    box-shadow: 4px 4px #bf7e01;
}

.portfolio-btn {
    font-weight: 600;
    border: none;
    background-color: var(--White);
    color: var(--Black);
    text-decoration: none;
    border-radius: 8px;
    padding: 10px 30px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-btn::after {
    content: "";
    padding: 25px 66px;
    border-radius: 8px;
    position: absolute;
    background:
        radial-gradient(circle at top left, rgba(119, 85, 255, 1), transparent 100%),
        radial-gradient(circle at bottom right, rgba(255, 196, 72, 1), transparent 100%);
    z-index: -1;
    transition: all 0.5s ease-in-out;
}

.portfolio-btn:hover {
    z-index: 1;
    color: var(--White);
    transition: z-index 0.5s ease-in-out;
    /* Adjust transition timing */
}


.scroll-down {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-bottom: 55px;
}

.scroll-down>a>i {
    font-size: 30px;
}

.scroll-down>a {
    font-size: 20px;
    text-decoration: none;
    background-color: #7856ff1a;
    padding: 10px 30px;
    border-radius: 500px;

}

.scroll-down {
    animation: down 1.5s infinite;
    -webkit-animation: down 1.5s infinite;
}


/* About Section */

.about {
    text-align: center;
    background-color: var(--Black);
    padding: 80px 0;
    height: 130vh;

}

.about-bg {
    width: 100%;
    padding: 88px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 60px;
    z-index: -4;
}

.about-heading {
    color: #ffc8006d;
    font-family: "Poppins", Sans-serif;
    font-size: 170px;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1em;
    letter-spacing: 10px;
    z-index: -50;
}

.about-left {
    width: 50%;
}

.about-left>.image>img {
    border-radius: 45px;
    height: 600px;
    box-shadow: rgba(255, 196, 72, 0.5) 10px 10px 20px;
}

.services {
    width: 100%;
    height: 100vh;
    text-align: center;
    padding: 80px 0;
}

.services-heading {
    color: #7856ff52;
    font-family: "Poppins", Sans-serif;
    font-size: 170px;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1em;
    letter-spacing: 10px;
    z-index: 50;
}

.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 5%;
}

.card {
    width: 300px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transform: perspective(1000px) rotateY(15deg) rotateX(15deg);
}

.card-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
    background:
        radial-gradient(circle at top left, rgba(119, 85, 255, 1), transparent 100%),
        radial-gradient(circle at bottom right, rgba(255, 196, 72, 1), transparent 100%);
}

.card-icon i {
    font-size: 48px;
    color: #fff;
    /* Icon color */
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 24px;
    /* Adjust font size for title */
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.card-description {
    font-size: 16px;
    /* Adjust font size for description */
    color: #666;
    line-height: 1.6;
}




.about-right {
    display: flex;
    flex-direction: column;
    width: 50%;
    gap: 40px;
    align-items: left;
    color: #ffffff;
}

.about-right h2 {
    color: var(--White);
    font-weight: 500;
    font-size: 50px;
}

.about-right p {
    color: var(--White);
}

.about-right a {
    text-decoration: none;
    text-align: center;
    background-color: var(--Secondary);
    font-weight: 600;
    border-radius: 8px;
    padding: 10px 30px;
    color: var(--Black);
}

.underlined {
    position: relative;
    /* Adjust text color */
}

.underline-mask::after {
    content: '';
    position: absolute;
    bottom: 0px;
    /* Adjust to position just below text */
    left: 0;
    width: 100%;
    height: 6px;
    /* Adjust thickness of the underline */
    background-color: var(--Secondary);
    border-radius: 500px;
    /* Makes the underline curved */
    transform-origin: center left;
    animation: underlineAnimation 3s infinite alternate ease-out;
    /* Adjust duration and timing function as needed */
}

.home-bg>.element-1 {
    position: absolute;
    left: 17%;
    top: 30%;
    z-index: -10;
}

.home-bg>.element-2 {
    position: absolute;
    left: 80%;
    top: 50%;
    z-index: -10;
}

.home-bg>.element-3 {
    position: absolute;
    left: 60%;
    top: 51%;
    z-index: -10;
}

.experiences {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(119, 85, 255, 0.2), transparent 70%),
        radial-gradient(circle at bottom right, rgba(119, 85, 255, 0.2), transparent 70%);
    text-align: center;
}

.row {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: transform 0.5s ease;
}

.scale-on-scroll.animate {
    transform: scale(1.5);
}

.row>div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--White);
    width: 200px;
    height: 200px;
    margin: 10px;
}

.row>div>.row-numbers {
    font-size: 34px;
    font-weight: 600;
    color: var(--Primary);
}

.row>div>.row-text {
    font-size: 18px;
    font-weight: 400;
    color: var(--Black);
}

.row>.top-left-round {
    border-top-left-radius: 20px;
}

.row>.top-right-round {
    border-top-right-radius: 20px;
}
.row>.bottom-left-round {
    border-bottom-left-radius: 20px;
}

.row>.bottom-right-round {
    border-bottom-right-radius: 20px;
}


#scroll-up-btn {
    display: none;
    /* Hide by default */
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-size: 18px;
    width: 40px;
    height: 40px;
    background-color: #7856ff;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 6px #7856ff;
}

#scroll-up-btn:hover {
    background-color: #624ce3;
}


.progress {
    display: flex;
    
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100vw;
    height: 50vh;
    background-color: var(--Black);
    color: var(--White);
}

.progress-items {
    flex-wrap: wrap;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--White);
}

.progress-container {
    display: inline-block;
    position: relative;
    width: 100px;
    height: 100px;
    margin: 25px;
    text-align: center;
}

.progress-circle {
    transform: rotate(-90deg);
}

circle {
    fill: none;
    stroke-width: 10;
}

.background {
    stroke: #e0e0e0;
}

.progress {
    stroke: var(--Secondary);
    stroke-dasharray: 283;
    /* 2 * Math.PI * 45 */
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1s ease-out;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--White);
}

.progress-container span {
    color: var(--White);
}

.projects {
    text-align: center;
    width: 100vw;
    text-align: center;
    padding: 80px 0;
}

.projects-heading {
    color: #7856ff52;
    font-family: "Poppins", Sans-serif;
    font-size: 170px;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1em;
    letter-spacing: 10px;
    z-index: 50;

}


.projects-section {
    padding: 20px;
    text-align: center;
    margin-top: 5%;
}

.categories {
    margin-bottom: 20px;
}

.category-btn {
    background-color: #f2efff;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-size: larger;
}

.category-btn:hover,
.category-btn.active {
    background-color: #7856ff;
    color: white;
}

.projects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 80%;
    margin: 0 auto;
}

.project-item {
    flex: 1 1 calc(33.33% - 20px);
    /* Adjust width for three items per row */
    max-width: calc(33.33% - 20px);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    background-color: white;
    text-align: center;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    color: #e0e0e0;
    display: none;
    /* Hide items by default */
}

.project-item.show {
    display: block;
    /* Show items with this class */
}

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

.project-item img {
    width: 100%;
    border-radius: 5px;
    cursor: pointer;
}

.project-details {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    color: var(--White);
}

.project-item:hover .project-details {
    display: block;
}

/* Lightbox styles (keep your existing styles for lightbox functionality) */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.653);
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.next {
    right: 0;
    border-radius: 0 3px 3px 0;
}

.prev:hover,
.next:hover {
    background-color: rgba(255, 255, 255, 0.16);
}



.project-item {
    flex: 1 1 calc(33.33% - 20px);
    /* Adjust width for three items per row */
    max-width: calc(33.33% - 20px);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    background-color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: #e0e0e0;
    display: none;
    /* Hide items by default */
    opacity: 0;
    /* Start hidden */
}

.project-item.show {
    display: block;
    /* Show items */
    animation: fadeIn 0.5s forwards;
    /* Apply fade in animation */
}

.project-item.hide {
    animation: fadeOut 0.5s forwards;
    /* Apply fade out animation */
    pointer-events: none;
    /* Disable interaction during animation */
}



.contact {
    width: 100vw;
    padding: 80px 0;
    /* Adjust padding as needed */
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: #7856ff52;

}

.contact-heading {
    color: #7856ff52;
    font-family: "Poppins", Sans-serif;
    font-size: 170px;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1em;
    letter-spacing: 10px;
    z-index: 50;
}

.contact-content {
    width: 80%;
    text-align: center;
    margin-top: 5%;
}

.contact-form {
    background-color: var(--White);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.form-group textarea {
    resize: vertical;
}

.submit-btn {
    background-color: #7856ff;
    /* Button background color */
    color: #fff;
    /* Button text color */
    border: none;
    padding: 12px 24px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #634dbf;
    /* Darker shade on hover */
}


.footer {
    background-color: #333;
    /* Footer background color */
    color: #fff;
    /* Text color */
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    gap: 20px;
}


.footer-links ul,
.footer-social ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    gap: 40px;
}

.footer-links ul li,
.footer-social ul li {
    margin-bottom: 10px;
}

.footer-links ul li a,
.footer-social ul li a {
    color: #fff;
    /* Link color */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover,
.footer-social ul li a:hover {
    color: var(--Secondary);
    /* Link color on hover */
}

.footer-social ul li {
    display: inline-block;
}

.footer-social ul li a {
    font-size: 20px;
}

.footer-bottom {
    margin-top: 20px;
}

.footer-bottom p {
    font-size: 14px;
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 4px;
    background-color: var(--Primary);
    transition: all 0.3s ease;
}

@media (max-width: 769px) {
    .nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        right: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.3);
        z-index: 1000;
        height: 48%;
        backdrop-filter: blur(16px);
    }

    .nav a {
        margin: 15px 0;
        font-size: 18px;
        padding-left: 10px;
        color: var(--White);
    }

    .nav.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(9px, -9px);
    }
}

@media screen and (max-width: 1441px) {
    .progress {
        height: 80vh;
    }

    .services {
        height: 110vh;
    }
}

@media screen and (max-width: 1025px) {

    .home-bg>.element-3 {
        top: 45%;
        left: 65%;
    }

    .cards-container {
        padding: 0 50px;
    }

    .services {
        height: 100%;
    }

    .about-heading {
        font-size: 120px;
    }

    .services-heading {
        font-size: 120px;
    }

    .projects-heading {
        font-size: 120px;
    }

    .contact-heading {
        font-size: 120px;
    }

    .scale-on-scroll.animate {
        transform: scale(1);
    }

    .hero h1 {
        font-size: 50px;
    }

    .content {
        margin-top: 125px;
    }

    .scroll-down {
        padding-bottom: 100px;
    }
    .project-item{
    max-width: calc(100%);
    flex: 1 1 calc(50%);
    }

}

@media screen and (max-width: 768px) {
    .home-bg>.element-1 {
        left: 7%;
        top: 35%;
    }

    .home-bg>.element-3 {
        left: 68%;
        top: 43%;
    }

    .hero h1 {
        font-size: 50px;
    }

    .about-heading {
        font-size: 50px;
    }

    .services-heading {
        font-size: 50px;
    }

    .projects-heading {
        font-size: 30px;
        padding: 40px;
    }

    .contact-heading {
        font-size: 50px;
    }

    .row {
        flex-wrap: wrap;
        padding: 0 80px;
    }
    .row>.t-r-r{
        border-top-right-radius: 20px;
    }
    .row>.b-l-r{
        border-bottom-left-radius: 20px;
    }
    .row>.t-l-r{
        border-top-left-radius: 20px;
    }
    .row>.top-right-round{
        border-top-right-radius: 0px;
    }
    .row>.bottom-left-round{
        border-bottom-left-radius: 0px;
    }
    .project-item{
        /* Adjust width for three items per row */
    max-width: calc(100%);
    flex: 1 1 calc(100%);
    }
}

@media screen and (max-width: 1025px) {
    .scroll-down {
        margin-bottom: 65px;
    }
}

@media screen and (max-width: 904px) {
    .about-bg {
        flex-wrap: wrap;
        justify-content: center;
    }

    .about-left {
        width: 100%;
    }

    .about-right {
        width: 100%;
    }

    .about {
        height: 210vh;
    }

    .services-heading {
        font-size: 120px;
    }

    .projects-heading {
        font-size: 120px;
    }

    .contact-heading {
        font-size: 120px;
    }
}

@media  screen and (max-width: 426px) {
    .hero h1 {
        font-size: 30px;
    }
    .scroll-down {
        padding-bottom: 40px;
    }

    .home-bg>.element-1 {
        left: 5%;
        top: 35%;
    }

    .home-bg>.element-2 {
        top: 43%;
    }
    .about-left>.image>img {
        height: 300px;
    }
    .about-right h2{
        font-size: 24px;
    }
    .about{
        height: 150vh;
    }

    .about-heading{
        font-size: 50px;
    }
    .services-heading {
        font-size: 50px;
    }

    .projects-heading {
        font-size: 50px;
    }

    .contact-heading {
        font-size: 50px;
    }
    .row {
        flex-wrap: wrap;
    }
    .row>div{
        width: 120px;
        height: 120px;
        margin: 5px;
    }
    .row>.row-numbers{
        font-size: 24px;
    }
    .row>.row-text{
        font-size: 9px;
    }
    .experiences{
        height: 70vh;
    }
    .category-btn{
        padding: 5px 10px;
        font-size: medium;
    }
    .project-item{
        /* Adjust width for three items per row */
    max-width: calc(100%);
    flex: 1 1 calc(100%);
    }
    .about{
        height: 100%;
    }
    .footer-links{
        font-size: 14px;
    }
    .projects-heading{
        font-size: 40px;
    }
}

@media screen and (max-width: 376px){
    .hero h1 {
        font-size: 28px;
    }
    .home-bg>.element-1 {
        left: 2%;
        top: 45%;
    }

    .home-bg>.element-2 {
        top: 45%;
    }
    .home-bg>.element-3 {
        top: 47%;
    }
    .hero-social-icons a {
        height: 35px;
        padding: 5px;
    }
    .portfolio-btn::after {
        content: "";
        padding: 21px 62px;
    }

    .underline-mask::after {
        bottom: -3px;
    }
    .about-left>.image>img {
        height: 250px;
    }
    .row {
        flex-wrap: wrap;
        padding: 10px;
    }
    .row>div{
        width: 110px;
        height: 110px;
        margin: 5px;
    }
    .experiences{
        height: 50vh;
    }
    .row-text{
        font-size: xx-small;
    }
    .portfolio-btn::after {
        content: "";
        padding: 24px 66px;
    }
}

@media screen and (max-width: 321px){
    .hero h1{
        font-size: 22px;
    }
    .portfolio-btn::after {
        content: "";
        padding: 24px 65px;
    }
}