@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300&display=swap');

:root{
    --clr-black: #000;
    --clr-white: #fff;
    --clr-orange: #e84949;
    --clr-light-gray: #E7E7E7;
    --clr-blue: #4e45d5;
    --clr-dark-blue: #343d68;
}

*, ::before, ::after{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body{
    font-size: 1.6rem;
    font-family: 'Be Vietnam Pro', sans-serif;
}

a{
    text-decoration: none;
    color: inherit;
}

p{
    line-height: 1.5;
}

.container{
    max-width: 1250px;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
    margin: 0 auto;
}

section > h2{
    font-size: 9rem;
    color: var(--clr-orange);
    text-transform: capitalize;
}

.btn{
    width: fit-content;
    font-family: inherit;
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--clr-white);
    background-color: var(--clr-orange);
    border: solid 3px transparent;
    padding: 1.3rem 3.7rem;
    box-shadow: 5px 5px 7px 0px #0000003f;
    overflow: hidden;
    cursor: pointer;
    z-index: 1;
    transition: all 0.5s;
    position: relative;
}

.btn::before{
    content: "";
    position: absolute;
    background-color: var(--clr-white);
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    transition: all 0.8s;
}

.btn:hover {
    color: var(--clr-black);
}

.btn:hover::before{
    transform: scaleX(100%);
}


/* ////////////// header ////////////*/
header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.6rem;
}
    .logo-div img {
        width: 250px; /* Adjust the width as needed */
        height: auto; /* Maintains the aspect ratio of the image */
    }


    header .logo-div{
        display: flex;
        align-items: center;
    }

    header .logo-div img{
        width: 9rem;
        margin-top: -1rem;
        margin-left: -2.4rem;
    }

    header .logo-div .name{
        font-size: 2.8rem;
        font-weight: 700;
        margin-left: -2rem;
    }

    .nav-div ul{
        list-style-type: none;
        display: flex;
        gap: 3.2rem;
    }

    .nav-div ul li a{
        font-size: 2rem;
        font-weight: 500;
        text-transform: capitalize;
        transition: all 0.2s linear;
    }

    .nav-div ul li a:hover{
        font-weight: 700;
    }

    .mobile-nav{
        width: 70%;
        position: fixed;
        top: 0;
        bottom: 0;
        right: 0;
        color: var(--clr-white);
        background: #4e45d595;
        padding: 10rem 0;
        z-index: 990;
        display: block;
        transition: all 0.5s ease;
        transform-origin: right;
        -moz-transform-origin: right;
        -webkit-transform-origin: right;
        transform: translateX(100%);
        backdrop-filter: blur(20px);
    }

    .mobile-nav ul{
        flex-direction: column;
        /* align-items: center; */
    }

    .mobile-nav ul li a{
        display: block;
        width: 100%;
        padding: 1rem;
        text-align: center;
        transition: all 0.2s ease;
    }

    .mobile-nav ul li a:hover{
        background: var(--clr-orange);
    }

    .mobile-nav.active{
        transform: translateX(0);
    }

    .overlay{
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 950;
        pointer-events: none;
        visibility: hidden;
    }

    .overlay.active{
        pointer-events: initial;
        visibility: visible;
    }

    .hamburger{
        width: 3rem;
        height: 3rem;
        border-radius: 0.5rem;
        position: fixed;
        top: 2.2rem;
        right: 3rem;
        z-index: 999;
        display: flex;
        justify-content: center;
        align-items: center;
        display: none;
    }

      .hamburger span, 
      .hamburger span::before, 
      .hamburger span::after{
        display: block;
        width: 100%;
        height: 3px;
        background: red;
        position: relative;
        border-radius: 4px;
        transition: all 0.4s ease;
      }
      
      .hamburger span::before{
        content: "";
        position: absolute;
        top: -10px;
      }
      
      .hamburger span::after{
        content: "";
        position: absolute;
        top: 10px;
      }
      
      .hamburger.active span::before{
         transform: rotate(45deg) translate(7px, 7px);
      }
      
      .hamburger.active span::after{
          transform: rotate(-45deg) translate(7px, -7px);
      }
      
      .hamburger.active span{
        background: transparent;
      }


/* /////////// hero section ////// */
.hero-section{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5rem;
    padding-bottom: 12.8rem;
    margin: 6.4rem auto;
    position: relative;
}

    .hero-section .faded-text{
        font-size: 11.2rem;
        font-weight: 700;
        color: var(--clr-light-gray);
        user-select: none;  
        transition: all 3s;    
        z-index: -1;
        position: absolute;
        bottom: -16%;
        left: -5%;
    }

    /* hero section left */
    .hero-section .hero-section-left{
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 3.2rem;
    }

    .hero-section-left .name{
        font-size: 3.5rem;
        font-weight: 500;
        color: var(--clr-dark-blue);
    }

    .hero-section-left .profession{
        font-size: 4.5rem;
        font-weight: 500;
        color: var(--clr-dark-blue);
    }

    .hero-section-left .profession .role{
        color: var(--clr-blue);
        font-weight: 800;
    }

    .hero-section-left .desc{
        width: 70%;
        font-size: 1.6rem;
    }

    /* hero-section-right */
    .hero-section .hero-section-right{
        position: relative;
    }

    .hero-section-right > *:not(.my-image){
        position: absolute;
    }

    .hero-section-right .my-image{
        padding: 4rem;
        filter: grayscale(1);
        animation: scaleImage 5s linear infinite;
    }

    .hero-section-right .my-image img{
        object-fit: cover;
    }

    @keyframes scaleImage {
        0% {
            filter: grayscale(1);
            scale: 1;
        }
        50% {
            filter: grayscale(0);
            scale: 0.9;
            box-shadow: 3px 3px 10px #000;
        }
        100% {
            filter: grayscale(1);
            scale: 1;
        }
    }

    /* ///zigzag icon */
    .hero-section-right .icon-zigzag{
        top: 2.4rem;
        left: -0.48rem;
        animation: zigzagAnimation 5s ease-in infinite;
    }

    @keyframes zigzagAnimation {
        50% {
            top: 2%;
            left: 5%;
        }
    }

    /* ////////// plus icon  */
    .hero-section-right .icon-plus{
        top: -1.3rem;
        left: 50%;
        animation: shakeEffectPlus 5s ease-in infinite;
    }

    @keyframes shakeEffectPlus {
    50%{ 
        top: 3%;
        left: 48%;
    }
    }

    /* ////// cube icon */
    .hero-section-right .icon-cube{
        top: -1.3rem;
        right: 1.6rem;
        animation: cubeRotate 3s ease infinite;
    }

    @keyframes cubeRotate {
        0% {
            transform: rotateY(0deg) translateY(0px);
        }
        50% {
            transform: rotateY(180deg) translateY(-1.2rem);
        }
        100% {
            transform: rotateY(360deg) translateY(0px);
        }
    }

    /* ////circle icon */
    .hero-section-right .icon-circle{
        bottom: 0;
        left: 0;
        animation: shakeEffectCircle 6s linear infinite;
    }

    @keyframes shakeEffectCircle {
        50%{
            bottom: 10%;
            left: 5%;
        }
    }

    /* ///////// dots icon  */
    .hero-section-right .icon-dots{
        bottom: -1.6rem;
        right: 0;
        animation: dotsAnimation 5s ease infinite;
    }

    @keyframes dotsAnimation {
        0%{
            transform: translateY(0);
        }
        50%{
            transform: translateY(-1.6rem);
        }
        100%{
            transform: translateY(0);
        }
    }

    .hero-section .extra-btn{
        display: none;
    }


/* ///////////////////// project section //////////////// */
.project-section {
    background-color: var(--clr-light-gray);
    padding-top: 3rem;
}

.project-section .project-header {
    text-align: center;
}

.project-section .project-container {
    display: flex;
    flex-direction: column;
    gap: 12rem;
    padding-top: 4.8rem;
    padding-bottom: 4.8rem;
}

.project-container .project-card {
    width: 90%;
    height: 55rem;
    background-color: #afafaf;
    background-image: url('../images/projects/StudyNotion_Image_BG.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    box-shadow: 0 0 4rem #1f1f1f;
    position: relative;
    margin: 0 auto; /* Center the cards */
}

.project-container #project-2 {
    background-image: url('../images/projects/DevDetective_BG.png');
}

.project-container #project-3 {
    background-image: url('../images/projects/RazorPay_HomePage.png');
}

.project-card::before {
    content: "";
    background: #1f1f1f9a;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 1;
}

.project-card::after {
    content: "";
    background: linear-gradient(45deg, #343d68, #343d68be, #343d687c);
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: all 0.4s;
    z-index: 2;
}

.project-card:hover::after {
    transform: scaleX(1);
}

.project-card .project-content {
    color: var(--clr-white);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 3.2rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    transition: all 0.4s;
    max-width: 55%;
}

.project-card:hover > .project-content {
    scale: 1.1;
}

.project-card:nth-child(odd) .project-content {
    left: 10%;
}

.project-card:nth-child(even) .project-content {
    right: 10%;
}

.project-content .project-skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center; /* Center alignment */
    max-width: 100%; /* Ensure skills stay within bounds */
}

.project-content .project-skills-container img {
    width: 4rem;
}

.project-content h2 {
    font-size: 5rem;
    font-weight: 700;
    text-transform: capitalize;
}

.project-content p {
    font-size: 1.6rem;
    font-style: italic;
    max-width: 70%;
}

.project-content .project-buttons {
    display: flex;
    gap: 1.6rem;
    align-items: center;
    margin-top: 1rem;
}

.project-buttons .icons {
    font-size: 4rem;
    color: var(--clr-white);
    transition: all 0.4s;
}

.project-buttons .icons:hover {
    color: var(--clr-orange);
}

.project-card .project-number {
    font-size: 20rem;
    font-weight: 600;
    color: var(--clr-white);
    position: absolute;
    right: -4rem;
    top: -4.5rem;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s;
}

.project-card:hover .project-number {
    opacity: 1;
}

.project-card:nth-child(even) .project-number {
    left: -4rem;
    top: -4.5rem;
}

@media (max-width: 768px) {
    .project-container .project-card {
        width: 100%; /* Full width on mobile */
        margin: 0; /* Remove auto margins */
    }

    .project-content {
        max-width: 90%; /* Ensure content stays within bounds */
    }

    .project-number {
        font-size: 15rem; /* Adjust size for mobile */
        right: 1rem;
    }

    .project-card:nth-child(even) .project-number {
        left: 1rem;
    }

    .project-content .project-skills-container {
        justify-content: flex-start; /* Align skills to the start */
    }
}


/* //////////////// skills ///////////////// */
.skill-section{
    position: relative;
    overflow: hidden;
    padding: 8rem 0 24rem;
    margin-top: -2rem;
}

.skill-section-content{
    display: flex;
    justify-content: space-between;
    gap: 3rem;
}

    /* //// fadded text */

    .skill-fadded-text{
        font-size: 24rem;
        font-weight: 700;
        color: var(--clr-light-gray);
        position: absolute;
        bottom: -8%;
        right: 10%;
        overflow-y: hidden;
        user-select: none;
        text-transform: capitalize;
    }

    /* //// left */
    .skill-section-left{
        width: 50%;
    }

    .skill-section-heading{
        font-size: 5rem;
        color: var(--clr-orange);
        line-height: 5rem;
        margin-bottom: 3rem;
    }

    .skill-section-heading span{
        font-size: 8rem;
        font-weight: 700;
    }

    .skill-section-left p{
        width: 85%;
        font-size: 1.6rem;
        margin-top: 1.5rem;
        text-align: justify;
    }

    /* ///// right */

    .skill-section-right{
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 3.2rem;
        width: 50%;
        position: relative;
    }

    .skill-section-right img{
        width: 9rem;
        aspect-ratio: 1/1;
        transition: all 0.5s;
    }

    .skill-section-right img:hover{
        transform: scale(1.2);
    }

    .skill-section-right .blob-style{
        width: 36rem;
        position: absolute;
        z-index: -1;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        animation: blobAnimate 3s linear infinite;
    }

    @keyframes blobAnimate{
        50% {
            top: 54%;
            left: 46%;
        }
    }
 

/* ////////////////////// Contact section  */

.contact-section {
    background: var(--clr-light-gray);
}

    .contact-section-heading{
        font-size: 8rem;
        font-weight: 700;
        color: var(--clr-orange);
        padding-top: 3.2rem;
    }

    .contact-section-sub-heading{
        font-size: 4.8rem;
        font-weight: 700; 
        color: #343d68aa;
        text-transform: capitalize;
    }

    .contact-form{
        width: 75%;
        display: flex;
        flex-direction: column;
        gap: 3.2rem;
        padding-bottom: 3.2rem;
        margin: 5.5rem auto 0;
    }

    .form-field input,
    .form-field textarea{
        display: block;
        width: 100%;
        height: 4.2rem;
        font-family: inherit;
        font-size: 2rem;
        font-weight: 500;
        padding: 0 3.2rem;
        color: var(--clr-orange);
        background: #ffffff97;
        border: none;
        border-radius: 0.5rem;
        box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 8px;
        outline: none;
    }

    .form-field input::placeholder,
    .form-field textarea::placeholder{
        font-size: 1.6rem;
        color: rgba(232, 73, 73, 1);
    }

    .form-field textarea{
        height: auto;
        padding-top: 1.6rem;
        resize: none;
    }

    .contact-form .form-btn{
        font-size: 2.4rem;
        border: none;
        margin: 1.6rem 0;
        border: solid 3px transparent;
    }

    .contact-form .form-btn:hover{
        scale: 0.9;
    }

    .form-btn .icon{
        padding: 0 1.6rem;
    }

/* ///////////// footer ////// */
footer{
    color: #fff;
    background-color: var(--clr-dark-blue);
    padding: 8rem 0;
    position: relative;
}

    .footer-content{
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 2rem 2.5rem;
    }

    .footer-fadded-text{
        font-size: 8rem;
        position: absolute;
        left: 0;
        bottom: -0px;
        color: #535c87;
        user-select: none;
    }

    .footer-content .nav-div ul{
        gap: 2rem;
    }

    .footer-content .nav-div ul li a{
        font-size: 1.8rem;
    }

    .footer-content .nav-div ul li a:hover{
        font-weight: 500;
        color: var(--clr-orange);
    }

    .social-icons{
        display: flex;
        gap: 1.6rem;
    }

    .social-icons .icon{
        font-size: 3.5rem;
        transition: all 0.4s;
    }

    .social-icons .icon:hover{
        color: var(--clr-orange);
    }

/* media queries */
@media (max-width: 1360px){
    .hero-section .faded-text{
        left: 0;
    }
}

@media (max-width: 1250px){
    .hero-section .faded-text, .skill-fadded-text, .footer-fadded-text{
        display: none;
    }

    .hero-section{
        margin-bottom: 0;
    }

    .skill-section{
        padding: 8rem 0 8rem;
        margin: 1rem 0;
    }

    .contact-section-sub-heading{
        font-size: 3.5rem;
    }

    .contact-form{
        width: 85%;
    }
}

@media (max-width: 1150px){
    header{
        box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
    }

    .hero-section{
        flex-direction: column;
        gap: 0;
        padding-bottom: 5rem;
    }

    .hero-section .hero-section-left{
        align-items: center;
    }

    .hero-section .hero-section-left .desc{
        text-align: center;
    }

    .hero-section-right{
        scale: 0.7;
    }

    .hero-section .btn{
        display: none;
    }

    .hero-section .extra-btn{
        display: block;
        margin-top: -2rem;
    }

    section > h2, 
    .skill-section-heading span,
    .contact-section-heading{
        font-size: 5rem;
    }
    
    .project-section .project-container{
        gap: 6rem;
    }

    .project-container .project-card{
        width: 90%;
        height: 45rem;
        margin: 0 auto;
    }

    .project-content h2{
        font-size: 4rem;
    }

    .project-card .project-content{
        max-width: 90%;
    }

    .project-card:nth-child(even) .project-content{
        left: 10%;
        right: 0;
    }

    .project-card .project-number{
        display: none;
    }
}

@media (max-width: 900px){
    .project-container .project-card{
        width: 95%;
        height: 35rem;
    }

    .project-card .btn{
        padding: 1rem 2rem;
    }

    .skill-section-content{
        flex-direction: column;
    }

    .skill-section-left, .skill-section-right{
        width: 100%;
    }

    .skill-section-right img{
        width: 6rem;
    }

    .contact-section-content{
        text-align: center;
    }

    .contact-section-sub-heading{
        font-size: 2rem;
    }

    .contact-form{
        width: 90%;
    }

    footer{
        padding: 1rem 0;
    }

    .footer-content{
        flex-direction: column;
        gap: 3rem;
    }
}


@media (max-width: 650px){
    header{ 
        background: var(--clr-white);
        position: sticky;
        top: 0;
        z-index: 998;
        padding-top: 1rem;
    }

    header .nav-div{
        display: none;
    }

    .hamburger{
        display: flex;
    }

    header .logo-div img {
        width: 7rem;
    }

    header .logo-div .name {
        font-size: 2rem;
        margin-left: -1.8rem;
    }

    .hero-section{
        padding-bottom: 0;
        margin: 2.5rem 0;
    }

    .hero-section .hero-section-left{
        gap: 2rem;
    }

    .hero-section-left .profession, .hero-section-left .name{
        font-size: 2rem;
    }

  

    section > h2, 
    .skill-section-heading span,
    .skill-section-heading, 
    .contact-section-heading {
        font-size: 3rem;
    }
        
    .project-container .project-card{
        height: 30rem;
    }

    .project-content .project-skills-container img {
        width: 3rem;
    }

    .project-card .project-content{
        padding: 0;
    }

    .project-content h2{
        font-size: 2rem;
    }

    .project-content p {
        font-size: 1.3rem;
        max-width: 90%;
    }

    .project-card .btn{
        padding: 1rem 1.5rem;
        font-size: 1.3rem;
    }

    .project-buttons .icons{
        font-size: 3rem;
    }
   
    .project-card:nth-child(n) .project-content{
        left: 7%;
    }

    .skill-section{
        padding: 4rem 0;
    }

    .contact-form .form-btn{
        font-size: 1.5rem;
        padding: 1rem 1.5rem;
    }


    /* ///form */
    .form-field input,
    .form-field textarea{
        padding-left: 2rem;
    }
}
