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

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family: "Be Vietnam Pro", sans-serif;
  scroll-behavior: smooth;
}

:root {
    --bgOrange: #e84949;
}

.wrapper{
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.container{
    max-width:1200px;
    width:100%;
    margin:0 auto;
    padding: 0 1rem;
}

.navbar{
    display: flex;
    justify-content:space-between;
    align-items:center;

    padding-top:1rem;
}

.logo{
    width:80px;
}

.logo-container{
    display:flex;
    justify-content: flex-start;
    align-items: center;
}

.logo-text{
    margin-left:-1.2rem;
    font-size:28px;
}

.nav-items{
    display:flex;
    gap:2rem;
    padding: 0 4em;
}

.nav-items div{
    font-size:20px;
    font-weight:500;
    cursor:pointer;
   
}
.nav-items div a{
    color:black;
    /* transition: all 5s ease; */
}

a{
    text-decoration: none;
}


.nav-items div:hover{
    transition:0.8s;
    font-weight: bold;
}

.hero-section{
    position:relative;
    display:flex;
    justify-content: space-between;
    align-items: center;

    max-width: 1200px;
    gap: 5rem;
    margin: 4rem auto;
    padding: 0 1rem;
    padding-bottom: 8rem;
}

.faded-text{
    position:absolute;
    user-select:none;
    font-size: 7em;
    color:rgb(231,231,231);
    
    bottom: -16%;
    left: -5%;
    font-weight: bold;
}

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

.hero-section-heading{
    font-size: 35px;
    color: #343d68;
    font-weight: 500;
}

.role{
    color: #4e45d5;
    font-weight: 800;
}

.hero-section-sub-heading{
    font-size: 45px;
    line-height: 45px;
}

.hero-section-description{
    margin-top: 1rem;
    width: 70%;
    font-weight: 500;
}

.btn-pink {
    background-color: var(--bgOrange);
    width: fit-content;
    color: white;
    padding: 0.8rem 2.3rem;
    box-shadow: 5px 5px 7px 0px #0000003f;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.5s;
    font-weight: 500;
    border: solid 3px transparent;
    position: relative;
    z-index: 1;
}

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

.btn-pink:hover::before {
    transform: scaleX(1);
}

.btn-pink:hover {
    border: solid 3px var(--bgOrange);
    color: black;
}

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

.absolute{
    position:absolute;
}

.user-image{
    padding:2.5rem;
    animation: scaleImage 5s linear infinite;
}

.user-image img{
    width: 300px;
    z-index:-9;
    display:block;
}

@keyframes scaleImage {

    0%{
        filter:grayscale(0);
        transform:scale(1);
    }

    50%{
        transform:scale(1.1);
        filter:grayscale(1);
    }

    100%{
        transform:scale(1);
        filter:grayscale(0);
    }
    
}


.icon-dots{
    z-index:9;
    bottom:-1rem;
    right:0;
    animation-name:dotsAnimation;
    animation-duration: 5s;
    animation-iteration-count: infinite;
}

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

.icon-cube{
    z-index: 9;
    top: -0.8em;
    right: 1em;
    animation-name: cubeRotate;
    animation-duration: 3s;
    animation-iteration-count: infinite;
}

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

.icon-circle{
    z-index: 9;
    left: 0;
    bottom: 0;
    animation-name: shapeEffect;
    animation-duration: 6s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes shapeEffect {
    0%{
        transform: translate(0, 0);
    }
    50%{
        transform: translate(20px, -40px);
    }
    100%{
        transform: translate(0, 0);
    }
}

.icon-zigzag{
    z-index: 9;
    top: 1.5em;
    left: -0.3em;
    animation: zigzagAnimation 5s ease-in infinite;
}

@keyframes zigzagAnimation{
    50%{
        transform: translate(10px, -8px);
    }
}

.icon-plus{
    z-index: 9;
    top: -0.8rem;
    left: 50%;
    animation:shakeEffectPlus 5s ease-in infinite;
}

@keyframes shakeEffectPlus {
    50%{
        transform: translate(-3px, 8px);
    }
}


  .project-section{
    background-color: rgb(231,231,231);
    margin-top:4rem;
  }

  .page-header{
    color:var(--bgOrange);
    font-size:90px;
    text-align:center;
    padding-top:30px;
  }
  .project-container{
    max-width: 1200px;
    margin:0 auto;
    padding:3rem 0;

    display:flex;
    flex-direction:column;
    gap:120px;
  }

  .project-card{
    width:90%;
    height:550px;
    background-image: url(./Images/projects/Project1.png);
    background-size: cover;
    /* background-repeat: no-repeat; */
    position:relative;
    box-shadow:0px 0px 40px #1f1f1f;
  }

  .project-card::after{
    content:"";
    position:absolute;
    top:0;
    left:0;
    right:0;
    bottom:0;
    background-color: #1f1f1f9a;
    z-index:0;
    /* transform: scaleX(1); */
  }

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

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

  .project-number{
    position:absolute;
    font-size:200px;
    font-weight:600;
    color:white;
    z-index:10;
    /* display:none; */
    opacity: 0;
  }

  .project-card:hover .project-number{
    /* display:block; */
    opacity: 1;
  }

  .project-number-right{
    right:-40px;
    top:-45px;
  }

  .project-number-left{
    left:-40px;
    top:-45px;
  }

  .project-content{
    position:absolute;
    display:flex;
    flex-direction:column;
    color:white;
    padding:2em;
    bottom:20%;
    z-index:5;
    gap:1em;
    transition:all 0.4s;
  }


  .project-content-left{ 
    left:10%;
  }

  .project-content-right{ 
    right:10%;
  }

  .project-skills-container{
    width:60%;
    display:flex;
    gap:10px;
    flex-wrap:wrap;
  
  }

  .project-skill{
    width:40px;
  }

  .project-heading{
    font-size:50px;
    font-weight: bold;
    line-height:3rem;
  }
  
  .project-subHeading{
    width:70%;
    font-size:16px;
    font-style: italic;
  }


  .btn-group{
    display:flex;
    gap:0.9rem;
    align-items:center;
  }

  .btn-project:hover{
    border:none;
  }

  .icon{
    cursor:pointer;
    color:white;
    font-size:35px;
    transition:all 0.4s;
  }

  .icon:hover{
    color:var(--bgOrange);
  }

  .project-card:hover .project-content{
    transform:scale(1.1);
  }

  #project1{
    background-image: url(./Images/projects/Project1.png);
  }

  #project2{
    margin-left:120px;
    background-image: url(./Images/projects/Project2.png);
  }
  #project3{
    background-image: url(./Images/projects/Project3.png);
  }
  #project4{
    margin-left:120px;
    background-image: url(./Images/projects/Project4.png);
  }

  @media (max-width:1300px) {
    .page-header {
      padding-top: 30px;
      color: var(--bgOrange);
      text-align: center;
      font-size: 40px;
    }
    .project-container {
      padding: 5px;
      margin: 10px;
      gap: 60px;
    }
    .project-card {
      width: 100%;
      height: 300px;
    }
    .project-card {
      background-size: cover;
      background-position: center;
    }
    .project-content {
      scale: 0.5;
      bottom: 0;
      left: 0;
      right: 0;
      top: 0;
    }
    .project-content-left {
      left: 0;
    }
    .project-heading {
      font-size: 40px;
      width: 100%;
    }
    .project-sub-heading {
      width: 100%;
    }
    #project2 {
      margin-left: 0;
    }
    #project4 {
      margin-left: 0;
    }
    .project-skill-container {
      width: 100%;
    }
    .project-skill {
      width: 35px;
    }
    .project-card:hover .project-number {
      display: none;
    }
    .project-card:hover .project-content {
      scale: 0.55;
    }
  }

  .skills-container{
    position:relative;
    display:flex;
    padding:5rem;
    margin:10rem auto;
    gap:30px;
  }

.skill-container-left{
  width:50%;
  display:flex;
  flex-direction:column;
}

.skill-container-right{
  display:flex;
  flex-wrap:wrap;
  width:50%;
  position:relative;
  gap:2rem;
  justify-content: center;
}

.skill-fade-text{
  position:absolute;
  font-size:15em;
  font-weight:bold;
  color:rgb(231,231,231);
  bottom:-34.5%;
  right:0;
  user-select:none;
}

.blob-style{
  position:absolute;
  top:50%;
  left:50%;
  z-index:-5;
  transform:translate(-50%, -50%);
  animation: blobAnimate 3s linear infinite;
}

@keyframes blobAnimate {
  50%{
    transform: translate(-54%, -46%);
  }
}

.skills-logo{
  width:90px;
  transition:all 0.5s;
}

.skills-logo:hover{
  transform:scale(1.2);
}

.skill-heading{
  font-size:50px;
  font-weight: bold;
  color: var(--bgOrange);
  line-height: 50px;
}

.caps{
  font-size:90px;
}

.skill-subHeading{
  margin-top: 1rem;
  width:85%;
  text-align: justify;
}

.skill-subHeading p{
  margin:15px 0;
}

/* ============ TABLET (max-width: 900px) ============ */
@media (max-width: 900px) {

  /* Navbar */
  .navbar {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .nav-items {
    gap: 1.2rem;
    padding: 0;
  }

  .nav-items div {
    font-size: 16px;
  }

  .logo {
    width: 60px;
  }

  .logo-text {
    font-size: 22px;
  }

  /* Hero Section */
  .hero-section {
    flex-direction: column;
    gap: 2rem;
    margin: 2rem auto;
    padding: 0 1.5rem;
    padding-bottom: 4rem;
    text-align: center;
  }

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

  .hero-section-heading {
    font-size: 28px;
  }

  .hero-section-sub-heading {
    font-size: 32px;
    line-height: 36px;
  }

  .hero-section-description {
    width: 90%;
  }

  .faded-text {
    font-size: 3.5em;
    bottom: -8%;
    left: 0;
  }

  .hero-section-right {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .user-image img {
    width: 220px;
  }

  .icons img {
    width: 25px;
  }

  /* Skills Section */
  .skills-container {
    flex-direction: column;
    padding: 2rem 1.5rem;
    margin: 4rem auto;
    width: 100%;
  }

  .skill-container-left {
    width: 100%;
  }

  .skill-container-right {
    width: 100%;
    gap: 1.2rem;
  }

  .skills-logo {
    width: 65px;
  }

  .skill-heading {
    font-size: 36px;
    line-height: 40px;
  }

  .caps {
    font-size: 60px;
  }

  .skill-subHeading {
    width: 100%;
  }

  .skill-fade-text {
    font-size: 8em;
    bottom: -20%;
  }

  .blob-style {
    width: 80%;
  }
}

/* ============ MOBILE (max-width: 600px) ============ */
@media (max-width: 600px) {

  /* Navbar */
  .navbar {
    flex-direction: column;
    gap: 0.8rem;
    padding: 0.8rem;
  }

  .nav-items {
    gap: 0.8rem;
    padding: 0;
  }

  .nav-items div {
    font-size: 14px;
  }

  .logo {
    width: 50px;
  }

  .logo-text {
    font-size: 18px;
    margin-left: -0.8rem;
  }

  /* Hero Section */
  .hero-section {
    flex-direction: column;
    gap: 1.5rem;
    margin: 1.5rem auto;
    padding: 0 1rem;
    padding-bottom: 3rem;
    text-align: center;
  }

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

  .hero-section-heading {
    font-size: 22px;
  }

  .hero-section-sub-heading {
    font-size: 24px;
    line-height: 28px;
  }

  .hero-section-description {
    width: 100%;
    font-size: 14px;
  }

  .btn-pink {
    font-size: 15px;
    padding: 0.6rem 1.8rem;
  }

  .faded-text {
    font-size: 2.2em;
    bottom: -5%;
    left: 0;
  }

  /* Hero Image - fix overflow */
  .hero-section-right {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .user-image {
    padding: 1rem;
  }

  .user-image img {
    width: 180px;
  }

  .icons img {
    width: 18px;
  }

  .icon-dots { bottom: 0; right: 0.5rem; }
  .icon-cube { top: -0.3em; right: 0.5em; }
  .icon-circle { left: 0.5rem; bottom: 0.5rem; }
  .icon-zigzag { top: 0.5em; left: 0; }
  .icon-plus { top: -0.5rem; left: 40%; }

  /* Project Section */
  .page-header {
    font-size: 36px;
    padding-top: 20px;
  }

  .project-container {
    padding: 1rem;
    gap: 40px;
  }

  .project-card {
    width: 100%;
    height: 250px;
  }

  .project-content {
    transform: scale(0.5);
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    padding: 1em;
  }

  .project-content-left,
  .project-content-right {
    left: 0;
    right: 0;
  }

  .project-heading {
    font-size: 28px;
    line-height: 2rem;
  }

  .project-subHeading,
  .project-sub-heading {
    width: 100%;
    font-size: 13px;
  }

  .project-skill {
    width: 25px;
  }

  .project-skills-container {
    width: 100%;
  }

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

  .project-card:hover .project-content {
    transform: scale(0.55);
  }

  .icon {
    font-size: 24px;
  }

  .btn-project {
    font-size: 13px;
    padding: 0.5rem 1.2rem;
  }

  #project2,
  #project4 {
    margin-left: 0;
  }

  /* Skills Section */
  .skills-container {
    flex-direction: column;
    padding: 1.5rem 1rem;
    margin: 3rem auto;
    width: 100%;
  }

  .skill-container-left {
    width: 100%;
  }

  .skill-container-right {
    width: 100%;
    gap: 1rem;
  }

  .skills-logo {
    width: 50px;
  }

  .skill-heading {
    font-size: 28px;
    line-height: 32px;
  }

  .caps {
    font-size: 45px;
  }

  .skill-subHeading {
    width: 100%;
    font-size: 14px;
  }

  .skill-fade-text {
    font-size: 4em;
    bottom: -10%;
  }

  .blob-style {
    width: 60%;
  }
}