@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;
}

:root {
  --bgOrange: #e84949;
}

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

#wrapper::-webkit-scrollbar {
  display: none;
}

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

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
}

.logo {
  width: 70px;
}

.logo-container {
  display: flex;
  justify-content: baseline;
  align-items: center;
  gap: 0.3rem;
}

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

.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;
}

a {
  text-decoration: none;
}

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

.hamburger-menu {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.hero-section {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  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;
  transition: all 3s;
}

.hero-section-left {
  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 {
  scale: 1.1;
  padding: 2.5rem;
  filter: grayscale(1);
  transition: all 1s;
  animation: scaleImage 5s linear infinite;
}

.user-image img {
  max-width: 100%;
  height: auto;
  z-index: -9;
}

@keyframes scaleImage {
  0% {
    filter: grayscale(0);
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
    filter: grayscale(1);
    box-shadow: 3px 3px 10px black;
  }
  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: shakeEffect;
  animation-duration: 6s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

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

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

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

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

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

.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(./projects/CryptopricePrediction.png);
  background-size: cover;
  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;
}

.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;
  opacity: 0;
}

.project-card:hover .project-number {
  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.6s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
}

.project-content-left {
  left: 5%;
  width: 50%;
}

.project-content-right {
  right: 5%;
  align-items: flex-end;
  width: 50%;
  text-align: right;
}

.project-content-right .project-skills-container {
    justify-content: flex-end;
}

img.project-skill{
  width: 45px;
  height: 45px;
}

.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: 100%;
  font-size: 16px;
  font-style: italic;
}

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

.project-content-right .btn-grp {
    justify-content: flex-end;
}

.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.05) translateY(-10px);
}

#project1 {
  background-image: url(./projects/CryptopricePrediction.png);
}
#project2 {
  margin-left: 120px;
  background-image: url(./projects/RazorPay.png);
}

#project3 {
  background-image: url(./projects/Project3.png);
}

#project4 {
  margin-left: 120px;
  background-image: url(./images/projects/Project4.png);
}

@media (max-width: 1200px) {
  #project2, #project4 {
    margin-left: 0;
  }
  .project-container {
    align-items: center;
  }
  .project-content {
    width: 100%;
    left: 0;
    right: 0;
    align-items: center;
    text-align: center;
  }
  .project-content-left {
    left: 0;
  }
  .project-content-right {
    right: 0;
    align-items: center;
    text-align: center;
  }
  .project-skills-container,
  .project-content-right .project-skills-container {
    justify-content: center;
    width: 100%;
  }
  .btn-grp,
  .project-content-right .btn-grp {
    justify-content: center;
  }
  .skill-fade-text {
    font-size: 10em;
    bottom: -15%;
    right: 0;
  }
}

@media (max-width: 768px) {
  .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;
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .project-content {
    scale: 0.8;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
  }

  .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;
  }
  
  /* Skills Section Tablet Fix */
  .skills-container {
    padding: 2rem;
    margin: 5rem auto;
    gap: 20px;
    flex-direction: column;
  }
  
  .skill-container-left {
    width: 100%;
    align-items: center;
    text-align: center;
  }
  
  .skill-container-right {
    width: 100%;
    justify-content: center;
  }
  
  .skill-fade-text {
    font-size: 10em;
    bottom: -15%;
    right: 0;
  }
  
  .skill-subHeading {
    width: 100%;
    text-align: center;
  }
}

.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-style: bold;
  color: rgb(231, 231, 231);
  bottom: -34.5%;
  right: -25%;
  user-select: none;
  overflow-y: hidden;
}

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

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

.skills-logo {
  width: 80px;
  height: 80px;
  transition: all 0.3s ease-in-out;
}

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

.skill-heading {
  font-size: 50px;
  font-style: 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;
}

.contactus-form-container {
  background-color: rgb(231, 231, 231);
  padding: 4rem 0;
  margin-top: 4rem;
}

.contactus-heading {
  font-size: 5rem;
  color: var(--bgOrange);
  text-align: center;
  padding-top: 2rem;
}

.contactus-subHeading {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #343d68;
}

.contactMeSection {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.formfield-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.formfield {
  padding: 1rem;
  border: 2px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.formfield:focus {
  outline: none;
  border-color: var(--bgOrange);
  box-shadow: 0 0 5px rgba(232, 73, 73, 0.5);
}

textarea.formfield {
  min-height: 150px;
  resize: vertical;
}

#submit-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 auto;
}

.submit-icon {
  font-size: 1rem;
}

.footer-container {
  background-color: #343d68;
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-content: center;
}

.footer-logo .logo {
  width: 50px;
}

.footer-logo .logo-text {
  font-size: 24px;
  color: white;
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--bgOrange);
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: white;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--bgOrange);
}

.footer-contact i {
  margin-right: 0.5rem;
  width: 20px;
  text-align: center;
}

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

.social-icons a {
  color: white;
  font-size: 1.5rem;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: var(--bgOrange);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    position: relative;
    z-index: 10000;
  }

  .nav-items {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgb(180, 180, 180);
    gap: 1.5rem;
    padding: 1.5rem 0;
    z-index: 9999; /* FORCE visible */
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-items.active {
    display: flex !important;
    align-items: center;
  }

  .hamburger-menu {
    display: block;
    cursor: pointer;
  }


  .hero-section {
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    gap: 3rem;
  }

  .hero-section-left,
  .hero-section-right {
    width: 100%;
    text-align: center;
    align-items: center;
  }

  .hero-section-heading {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .hero-section-sub-heading {
    font-size: 1.5rem;
  }

  .hero-section-description {
    width: 90%;
    margin: 1rem auto;
  }

  .faded-text {
    display: none;
  }

  .user-image img {
    width: 250px;
    height: auto;
  }

  .project-container {
    padding: 2rem 1rem;
    gap: 4rem;
  }
  .project-card {
    width: 100%;
    height: auto;
    padding-bottom: 2rem;
    -webkit-tap-highlight-color: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-size: 100% 100%;
  }
  .project-content {
    position: relative;
    scale: 1;
    padding: 1.5rem;
    text-align: center;
    color: white !important;
    z-index: 5;
  }
  .project-content-left,
  .project-content-right {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
    width: 100%;
    text-align: center;
    align-items: center;
  }
  .project-heading {
    font-size: 2rem;
  }
  .project-subHeading {
    width: 100%;
    font-size: 0.8rem;
    color: white !important;
  }
  .project-skills-container {
    justify-content: center;
  }
  .skills-container {
    flex-direction: column;
    gap: 3rem;
    padding: 2rem 1rem;
  }
  .skill-container-left,
  .skill-container-right {
    width: 100%;
    text-align: center;
  }
  .skill-heading {
    font-size: 2.5rem;
  }
  .caps {
    font-size: 4rem;
  }
  .skill-subHeading {
    width: 100%;
  }
  .skill-subHeading p {
    font-size: 1rem;
    margin: 1rem 0;
  }
  .skill-container-right {
    gap: 1.5rem;
  }
  .skills-logo {
    width: 50px;
    height: 50px;
  }
  .contactus-heading {
    font-size: 3rem;
  }
  .contactus-form-container {
    padding: 2rem 1rem;
  }
  .formfield-container {
    gap: 1rem;
  }
  #submit-btn {
    width: 100%;
  }
  .footer-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  .footer-links ul,
  .footer-contact ul {
    padding: 0;
  }
  .social-icons {
    justify-content: center;
  }
}