@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    scroll-behavior: smooth;
    background-color: #0E0B16;
    font-family: "Poppins", sans-serif;
    margin: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    overflow-x: hidden;
}

body.scroll-lock {
    overflow: hidden;
}

nav {
    height: 10%;
    background-color: #08041b;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    position: fixed;
    z-index: 1;
    width: 100%;
}

#hamburger i {
    font-size: 3rem;
    margin: 20px;
    color: white;
    display: none;
    position: absolute;
    z-index: 1000;
}

#close {
    display: none;
}

.logo {
    display: flex;
    align-items: center;
    width: 40%;
    height: 10%;
}

.logo img {
    width: 100px;
    margin: 10px 100px;
}

.nav-elements {
    width: 60%;
}

.elements {
    list-style-type: none;
    display: flex;
    padding: 20px;
    height: 10%;
    align-items: center;
    justify-content: space-evenly;
}

.elements li a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    position: relative;
    transition: all 0.5s;
}

.elements li a::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: aqua;
    transition: width 0.3s;
}

.elements li a:hover::before {
    width: 100%;
}

.elements li a:hover {
    color: aqua;
}

#home {
    height: 100vh;
    display: flex;
}

.intro {
    height: 100vh;
    width: 65vw;
    color: white;
    font-size: 3rem;
    display: flex;
    justify-content: center;
    margin: 0 35px;
    flex-direction: column;
}

#name-intro {
    color: aqua;
    font-weight: bolder;
}

.intro-img {
    height: 100vh;
    width: 35vw;
    display: flex;
    margin-right: 30px;
    justify-content: end;
    align-items: center;
}

#element {
    color: rgb(247, 92, 169);
}

.intro-img img {
    width: 30rem;
    height: auto;
}

#about {
    margin: 30px 0;
    color: white;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #140f20;
}

.about-heading {
    margin: 30px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 4rem;
    height: 10vh;
}

.about-img {
    height: 50vh;
    width: 25vw;
    margin: 30px;
    border-radius: 10px;
}

.about-introduction {
    margin: 20px;
}

.about-content {
    display: flex;
    height: 75vh;
    margin: 10px 30px;
}

.about-intro {
    margin-top: 10px;
    font-size: 2.1rem;
    margin-bottom: 20px;
}

.about-para {
    font-size: 1.2rem;
    text-align: justify;
    padding-bottom: 10px;
    border-bottom: 0.5px solid rgb(104, 100, 100);
    width: 90%;
}

#about span {
    color: aqua;
    font-weight: bold;
}

.about-box {
    width: 60vw;
    height: 15vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#portfolio {
    height: 100%;
    padding: 30px 0;
    margin-bottom: 50px;
}

.portfolio-heading {
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 60px;
    font-size: 4rem;
    height: 10vh;
}

.project {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    margin: 20px;
}

.project-details {
    width: 50vw;
    height: 40vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.project h2 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.project p {
    color: #ccc;
    text-align: justify;
}

.card {
    height: 40vh;
    width: 30vw;
    transform-style: preserve-3d;
    transition: transform 0.5s ease-in-out;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(143, 135, 135, 0.7);
    transform: translateZ(0);
    cursor: pointer;
    position: relative;
}

.card.is-rotated {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 30vw;
    height: 40vh;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.card-back {
    color: #ffd700;
    transform: rotateY(180deg);
}

.card-front {
    background-color: #100785;
    color: white;
    transition: color 1s ease;
    font-weight: 600;
}

.card-button {
    background-color: #3c1cb1;
    padding: 10px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    width: 50%;
    display: inline-block;
    margin-right: 10px;
    position: absolute;
    bottom: 0;
    left: 0;
}

.card-button:nth-child(2) {
    left: 50%;
}

.card-button a {
    text-decoration: none;
    color: white;
    font-size: 1rem;
    font-weight: bold;
}

.card-button a {
    text-decoration: none;
    color: white;
    font-size: 1rem;
    font-weight: bold;
}

iframe {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

#canva-arts {
    height: 100%;
    padding: 30px 0;
    margin-bottom: 50px;
}

.canva-heading {
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 60px;
    font-size: 4rem;
    height: 10vh;
}

.view_full {
    color: white;
    font-size: 1.5rem;
    margin-top: 100px;
}

.carousel {
    width: 100%;
    overflow-x: scroll;
    padding: 20px;
    position: relative;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.carousel__container {
    white-space: nowrap;
    margin: 70px 0px;
    padding-bottom: 10px;
    display: inline-block;
}

.carousel-item {
    width: 200px;
    height: 250px;
    border-radius: 20px;
    background-color: #95bcd6;
    overflow: hidden;
    margin-right: 10px;
    margin-top: 70px;
    display: inline-block;
    cursor: pointer;
    -webkit-transition: 1000ms all;
    transition: 1000ms all;
    -webkit-transform-origin: center left;
    transform-origin: center left;
    position: relative;
}

.carousel-item:hover~.carousel-item {
    -webkit-transform: translate3d(100px, 0, 0);
    transform: translate3d(100px, 0, 0);
}

.carousel__container:hover .carousel-item {
    opacity: 0.3;
}

.carousel__container:hover .carousel-item:hover {
    -webkit-transform: scale(1.5);
    transform: scale(1.5);
    opacity: 1;
}

.carousel-item__img {
    width: 200px;
    height: 250px;
    -o-object-fit: cover;
    object-fit: cover;
}

.carousel-item__details {
    background: -webkit-gradient(linear,
            left bottom,
            left top,
            from(rgba(0, 0, 0, 0.9)),
            to(rgba(0, 0, 0, 0)));
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0) 100%);
    font-size: 10px;
    opacity: 0;
    -webkit-transition: 450ms opacity;
    transition: 450ms opacity;
    padding: 10px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.carousel-item__details:hover {
    opacity: 1;
}

.carousel-item__details span {
    font-size: 0.9rem;
    color: #2ecc71;
}

.carousel-item__details .controls {
    padding-top: 180px;
}

.carousel-item__details .carousel-item__details--title,
.carousel-item__details--subtitle {
    color: black;
    margin: 5px 0;
}

#skills {
    height: 100%;
    padding: 20px;
    background-color: #140f20;
}

.skills-heading {
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 60px;
    font-size: 4rem;
    height: 10vh;
}

.skills-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

.skill-card {
    overflow: visible;
    width: 25vw;
    height: 55vh;
    margin: 10px;
}

.skill-card:hover {
    cursor: pointer;
}

.skill-content {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 800ms;
    box-shadow: 0px 0px 10px 1px #000000ee;
    border-radius: 5px;
}

.skill-front,
.skill-back {
    background-color: #151515;
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 5px;
    overflow: hidden;
}

.skill-back {
    width: 100%;
    height: 100%;
    justify-content: center;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.skill-back::before {
    position: absolute;
    content: ' ';
    display: block;
    width: 160px;
    height: 160%;
    background: linear-gradient(90deg, transparent, #ff9966, #ff9966, #ff9966, #ff9966, transparent);
    animation: rotation_481 6000ms infinite linear;
}

.skill-back-content {
    position: absolute;
    width: 99%;
    height: 99%;
    background-color: #151515;
    border-radius: 5px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.skill-card:hover .skill-content {
    transform: rotateY(180deg);
}

@keyframes rotation_481 {
    0% {
        transform: rotateZ(0deg);
    }

    0% {
        transform: rotateZ(360deg);
    }
}

.skill-front {
    transform: rotateY(180deg);
    color: white;
}

.skill-front .front-content {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.front-content .skill-badge {
    background-color: #00000055;
    padding: 2px 10px;
    border-radius: 10px;
    backdrop-filter: blur(2px);
    width: fit-content;
}

.front-content img {
    height: 120px;
    width: 120px;
}

.skill-description {
    box-shadow: 0px 0px 10px 5px #00000088;
    width: 100%;
    padding: 10px;
    background-color: #00000099;
    backdrop-filter: blur(5px);
    border-radius: 5px;
}

.skill-title p {
    font-size: 0.8rem;
}

.skill-title {
    font-size: 11px;
    max-width: 100%;
    display: flex;
    justify-content: space-between;
}

.skill-front .img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.skill-back-content img {
    height: 80px;
    width: 80px;
}

.circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: #ffbb66;
    position: relative;
    filter: blur(15px);
    animation: floating 2600ms infinite linear;
}

#bottom {
    background-color: #ff8866;
    left: 50px;
    top: 0px;
    width: 150px;
    height: 150px;
    animation-delay: -800ms;
}

#right {
    background-color: #ff2233;
    left: 160px;
    top: -80px;
    width: 30px;
    height: 30px;
    animation-delay: -1800ms;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.languages {
    margin: 20px;
    margin-top: 60px;
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    justify-content: center;
    align-items: center;
}

.languages h1 {
    width: 40%;
    font-size: 3rem;
    text-align: left;
    margin: 0;
    color: #ecf0f1;
}

.languages ul {
    width: 60%;
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.languages li {
    color: white;
    font-weight: bold;
    width: 33.33%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.languages i {
    font-size: 4em;
    margin-bottom: 10px;
    color: aqua;
    transition: color 0.3s ease, transform 0.3s ease;
}

.languages ul li:hover {
    color: #2980b9;
    cursor: pointer;
    transform: translateY(-10px);
}

.languages ul li:hover i {
    color: #8e44ad;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .languages h1, .languages ul {
        width: 100%;
    }
    
    .languages li {
        width: 50%;
    }
}


#contact {
    height: 100%;
    padding: 20px;
    margin-bottom: 50px;
}

.contact-heading {
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 60px;
    font-size: 4rem;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
    color: white;
}

.contact-info p {
    margin-bottom: 20px;
}

ul {
    list-style-type: none;
    padding: 0;
}

.contact-email {
    margin-bottom: 10px;
}

a {
    color: whitesmoke;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    color: white;
}

.contact-form p {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: white;
    font-weight: bold;
}

input,
textarea {
    width: 100%;
    color: black;
    font-weight: 600;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

button {
    background-color: #4717F6;
    color: white;
    font-weight: bold;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #000000;
    color: white;
}

footer {
    background-color: #27125a;
    color: white;
    padding: 20px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo img {
    width: 120px;
    font-weight: bold;
}

.footer-links {
    width: 60%;
    margin: 0 auto;
    padding: 20px 0;
}

.footer-links ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
}

.footer-links li {
    margin-right: 20px;
}

.footer-links a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    position: relative;
}

.footer-links a::before {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: aqua;
    transition: width 0.3s, left 0.3s;
}

.footer-links a:hover::before {
    width: 100%;
    left: 0;
}

.footer-links a:hover {
    color: aqua;
}


.footer-social {
    text-align: center;
}

.footer-social ul {
    list-style-type: none;
    display: flex;
    justify-content: space-evenly;
}

.footer-social i {
    font-size: 2rem;
    font-weight: 600;
    transition: margin-top 0.2s ease-in-out;
}

.footer-social a {
    text-decoration: none;
    color: white;
}

.footer-bottom {
    text-align: center;
    margin-top: 10px;
}

.footer-social i:hover {
    margin-top: -4px;
}

@media only screen and (max-width: 1300px) {
    .about-img {
        height: 30vh;
    }

    .skill {
        width: 80%;
        height: 40vh;
    }

    .skill-card {
        width: 45vw;
        height: 50vh;
    }

}

@media only screen and (max-width: 1050px) {

    #home {
        flex-direction: column;
    }

    .intro {
        width: 100vw;
        height: 60vh;
        margin: 0;
        padding: 20px;
    }

    .intro-img {
        width: 100vw;
        height: 0vh;
        justify-content: center;
    }

    .intro-img img {
        width: 50rem;
    }

    .about-heading {
        font-size: 3rem;
        margin: 0;
    }

    .about-para {
        font-size: 0.8rem;
        text-align: left;
        overflow-y: scroll;
        height: 17vh;
        margin-bottom: 10px;
    }

    .about-img {
        height: 30vh;
    }

    .portfolio-heading {
        margin-bottom: 50px;
        font-size: 3rem;
    }

    .project {
        height: 30%;
        width: 100%;
        flex-direction: column;
        margin-bottom: 20px;
    }

    .project-details {
        height: 20%;
        width: 70%;
        margin-bottom: 40px;
    }

    .project p {
        width: 100%;
        text-align: left;
    }

    .card,
    .card-face {
        height: 30vh;
        width: 70vw;
        margin-bottom: 40px;
    }

    .skills-container {
        height: 100%;
    }

    .skill {
        width: 80%;
        height: auto;
    }

    .skill-card {
        width: 45vw;
        height: 40vh;
    }

    .skills-heading {
        font-size: 3rem;
    }

    .languages h1 {
        font-size: 2rem;
        margin-bottom: 20px;
        color: white;
        text-align: center;
    }

    .contact-heading {
        font-size: 3rem;
    }

}

@media only screen and (max-width: 768px) {
    #hamburger i {
        display: block;
        position: fixed;
    }

    nav i {
        position: absolute;
        font-size: 3.5rem;
        right: 20px;
        top: 10px;
    }

    nav {
        width: 100vw;
        height: 100vh;
        left: -130%;
        z-index: 100;
        transition: all 0.5s ease-in-out;
    }

    .logo {
        display: none;
    }

    .nav-elements {
        height: 100vh;
        width: 100vw;
    }

    .elements {
        flex-direction: column;
        font-size: 3rem;
        height: 100%;
        justify-content: center;
    }

    .intro {
        font-size: 2rem;
    }

    .intro-img {
        width: 100%;
    }

    .intro-img img {
        width: 20rem;
    }

    .about-heading,
    .portfolio-heading,
    .skills-heading,
    .contact-heading {
        font-size: 2rem;
        margin: 0;
    }

    .contact-heading {
        margin-bottom: 60px;
    }

    .about-content {
        flex-direction: column;
        align-items: center;
        margin: 10px 15px;
    }

    .about-img {
        width: 150px;
        margin-top: 0px;
        margin-bottom: 10px;
        height: auto;
    }

    .about-intro {
        font-size: 1.3rem;
    }

    .about-para {
        font-size: 0.8rem;
        text-align: left;
        overflow-y: scroll;
        height: 17vh;
        margin-bottom: 10px;
    }

    .about-box {
        flex-direction: column;
        align-items: normal;
        justify-content: unset;
    }

    .project {
        width: 90%;
    }

    .skill {
        width: 80%;
        height: auto;
    }

    .skill-card {
        width: 85vw;
        height: 40vh;
    }

    .languages h1 {
        font-size: 1.8rem;
        margin-bottom: 20px;
        color: white;
        text-align: center;
    }
    
    .footer-content {
        display: block;
    }

    .footer-logo {
        text-align: center;
    }

    .footer-links {
        width: 100%;
    }

    .footer-links ul {
        justify-content: space-evenly;
        font-size: 0.8rem;
    }

    .footer-links li {
        margin-right: 0;
    }

    .footer-social {
        text-align: center;
    }

    .footer-social ul {
        justify-content: center;
    }
}

@media only screen and (max-width: 380px) {
    .about-heading {
        margin-top: -100px;
    }
}