@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700&family=Roboto:wght@400;500;700&display=swap');
/* font-family: 'Montserrat', sans-serif;
font-family: 'Roboto', sans-serif; */
:root {
  /* General */
  --dark-blue: #272341;
  /* --light-green:#00cdac; */
  --light-green: #03af92;
  /* --dirty-white:#f5f5f5; */
  --dirty-white: #e6e2e2;
  /* --calm-white: #f8f8f8; */
  --dark-grey: #504e4e;
  --darker-grey: #1d1d1d;
  --light-gradient1: #02aab0;
  --light-gradient2: #00cdac;
  --dark-gradient1: #025255;
  --dark-gradient2: #018f77;

  /*************** light theme variable *****************/
  /* backgrounds */
  --body-light-background: var(--dirty-white);
  --aboutme-light-gradient1: var(--light-gradient1);
  --aboutme-light-gradient2: var(--light-gradient2);
  --project-light-background: var(--dirty-white);
  --contact-light-gradient1: var(--light-gradient1);
  --contact-light-gradient2: var(--light-gradient2);

  /* text */
  --heroh1-light-color: var(--dark-blue);
  --aboumeh1-light-color: var(--dirty-white);
  --projecth1-light-color: var(--darker-grey);

  /*************** dark theme variable *********************/
  /* backgrounds */
  --dark-color1: #121212;
  --dark-color2: #1d1d1d;

  --body-dark-background: var(--darker-grey);
  --aboutme-dark-gradient1: var(--dark-gradient1);
  --aboutme-dark-gradient2: var(--dark-gradient2);
  --project-dark-background: var(--dark-color2);
  --contact-dark-gradient1: var(--dark-gradient1);
  --contact-dark-gradient2: var(--dark-gradient2);

  /* text */
  --heroh1-dark-color: var(--dirty-white);
  --abourmeh1-dark-color: var(--dirty-white);
  --projecth1-dark-color: var(--dirty-white);

  /*************** variable for site ******************/
  /* backgrounds */
  --color1: var(--dirty-white);
  --color2: var(--light-green);
  --body-background: var(--body-light-background);
  --footer-color: var(--dark-grey);
  --aboutme-background-gradient1: var(--aboutme-light-gradient1);
  --aboutme-background-gradient2: var(--aboutme-light-gradient2);
  --project-background: var(--project-light-background);
  --contact-background: var(--contact-light-background);
  --contact-background-gradient1: var(--contact-light-gradient1);
  --contact-background-gradient2: var(--contact-light-gradient2);

  /* text */
  --heroh1-color: var(--heroh1-light-color);
  --aboutmeh1-color: var(--heroh1-light-color);
  --projecth1-color: var(--projecth1-color);
}
* {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  box-sizing: border-box;
}
html {
  scroll-snap-type: y mandatory;
}
body,
html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: var(--body-background);
}

img {
  max-width: 500px;
}
section {
  min-height: 100vh;
  width: 100vw;
  scroll-snap-align: start;
}
/* text animation for hero section */
.text-job-role {
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in {
  opacity: 1;
  transform: translateY(0);
}

#landingHero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
#themeChangeSwitch {
  position: sticky;
  top: 2%;
  left: 80%;
  font-size: 30px;
  color: var(--light-green);
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
  width: 60px;
  background-color: #008080;
  z-index: 11;
  border-radius: 20px;
  display: flex;
  padding: 2px 3px;
  border: 1px solid #031a09;
}
i {
  color: #272341;
}
.translateBtn {
  /* translate the button towards right 20px */
  justify-content: flex-end;
}

#landingHero > h1 {

  color: var(--heroh1-color);
  font-size: 2rem;
  line-height: 1.5;
  text-align: center;
}
#landingHero > h1:first-child {
  margin-bottom: 40px;
  margin-top: -60px;
}
#landingHero > h1 > span {
  color: var(--light-green);
}
.hero-text-container,.hero-text-container2,.hero-text-container3 {
  display: inline-block;
  font-size: 2.5rem;
  position: relative;
  font-weight: 700;
  text-align: center;

}

.hero-letter,.hero-letter2,.hero-letter3 {
  color: var(--light-green);
  display: inline-block;
  transform: translate(0, 0);
  transition: all 0.3s ease;
}
.hero-letter2,.hero-letter3 {
    color: var(--heroh1-color);
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.spin-animation {
  animation: spin 0.5s linear;
}

/* button */
.btn {
  width: 150px;
  height: 30px;
  font-weight: 700;
  font-size: 18px;
  background-color: transparent;
}
#main-knowmore {
  border: 1.5px solid var(--light-green);
  color: var(--light-green);
  margin-top: 40px;
}
#main-knowmore:hover {
  cursor: pointer;
  background-color: var(--color2);
  color: var(--dirty-white);
}


/* scroll hint */
.scroll-indicator {
  position: absolute;  /* or 'fixed' if your hero section is viewport height */
  bottom: -15px;  /* adjust as needed */
  transform: translateX(-50%);
  text-align: center;
  animation: bounce 2s infinite;
}

.mouse {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid var(--heroh1-color);
  border-radius: 15px;
  position: relative;
}

.wheel {
  display: block;
  width: 4px;
  height: 4px;
  background-color: var(--heroh1-color);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
      transform: translateY(0);
  }
  40% {
      transform: translateY(-10px);
  }
  60% {
      transform: translateY(-5px);
  }
}



/************** about me section*************** */
#aboutMe {
  position: relative;
  display: flex;
  flex-direction: column;
  /* justify-content: center; */
  align-items: center;
  gap: 20px;
  padding: 20px;
  background-color: var(--aboutmeh1-color);
  background-image: linear-gradient(
    135deg,
    var(--aboutme-background-gradient1) 0%,
    var(--aboutme-background-gradient2) 100%
  );

}
#aboutMeCanva {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  
}
.aboutMeInnerContainer{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  height: 90vh;

  
}
.aboutMeInnerContainer > h1 {
  color: var(--dirty-white);
  font-size: 2rem;
  line-height: 1.5;
  text-align: center;
  text-transform: uppercase;
  z-index: 2;
  backdrop-filter: blur(10px);
  border-radius: 20px;
}
#aboutMeImg {
  width: 95%;
  z-index: 2;
}
.aboutMeInnerContainer > p {
  color: var(--dirty-white);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.2;
  text-align: justify;
  width: 90%;
  z-index: 2;
  backdrop-filter: blur(10px);
  border-radius: 20px;  
}

#aboutMeBtn {
  margin-top: 20px;
  position: relative;
  color: var(--dirty-white);
  background-image: linear-gradient(
    to right,
    var(--light-green) 50%,
    var(--dirty-white) 50%
  );
  background-size: 200% 100%;
  background-position: 0 0;

  border: 2px solid var(--dirty-white);
  border-radius: 10px;
  transition: background-position 0.3s ease-in-out, color 0.3s ease-in-out;
  z-index: 2;
}
#aboutMeBtn:hover {
  cursor: pointer;
  background-position: 100% 0;
  color: var(--light-green);
}

/************* project section***************************************************** */

#projects {
  width: 100vw;
  display: flex;
  flex-direction: column;

  align-items: center;
  background-color: var(--project-background);
  padding: 10px;
  margin-top: 20px;
  gap: 20px;
}
#projectsContainer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}

#projectSectionTitle {
  color: var(--projecth1-color);
  font-size: 2rem;
  line-height: 1.5;
  text-align: center;
  text-transform: uppercase;
}
.projectTemplate {
  width: 90%;
  max-width: 510px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 15px;
  border-radius: 20px;
  padding: 5px;
  border: 1px solid var(--light-green);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  /* Initial translation */
  transform: translate(0, 0);
  /* Apply transition for smooth animation */
  transition: transform 0.3s ease-in-out;
}
.projectTemplate:hover {
    /* Apply translation effect on hover */
    transform: translate(0, -10px);
  }
.projectTemplate > h3,
.projectTemplate > p {
  color: var(--projecth1-color);

}

.projectTemplate > p {
  color: var(--projecth1-color);
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Limit to 3 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.projectSeeLive,
.projectSourceCode {
  width: 90px;
  height: 30px;
  font-size: 16px;
  font-weight: 600;
  background-color: transparent;
  border: 1.5px solid var(--light-green);
  color: var(--light-green);
}
.projectSourceCode {
  width: 120px;
  border: 0;
}
.projectSeeLive:hover {
  cursor: pointer;
  background-color: var(--color2);
  color: var(--dirty-white);
}
.projectSourceCode:hover {
  cursor: pointer;
  transform: translate(5px, 0px);
}

.image-container {
  perspective: 1000px;
  width: 100%; /* Adjust this to your preferred container width */

  position: relative;
}

.image-inner {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.5s;
}

.image-container:hover .image-inner {
  transform: rotateY(-20deg);
}

.projectTemplateImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  backface-visibility: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  border-radius: 15px;
  /* border: 2px solid var(--light-green); */
}
.projectBtnsGroup {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

/************* contact section************** */
section#contactMe {
  width: 100vw;
  min-height: 20vh;
  height: 20vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-image: linear-gradient(
    135deg,
    var(--contact-background-gradient1) 0%,
    var(--contact-background-gradient2) 100%
  );
  padding: 40px;
  margin-top: 20px;
  gap: 20px;
  color: var(--dirty-white);
}
.contactEmail {
  text-decoration: none;
  color: var(--dark-blue);
  font: 26px;
}
.contactEmail:hover {
  transform: translate(5px, 0px);
}

/************* footer section************** */
footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--footer-color);
  height: 200px;
  width: 100%;
  color: var(--dirty-white);
}
.arrowUp {
  font-size: 30px;

  margin-bottom: 20px;
}

.footerIcons {
  display: flex;
  gap: 20px;
}
.whiteIcon {
  color: var(--dirty-white);
}
.footerIcons > i {
  font-size: 30px;
}
.footerIcons > i:hover,
.arrowUp:hover {
  cursor: pointer;
  transform: translate(0px, -5px);
}
footer > small {
  margin: 30px;
}
.footerIcons > a {
  text-decoration: none;
  color: var(--dirty-white);
}

@media screen and (min-width: 768px) {
  #themeChangeSwitch {
    top: 4%;
    left: 90%;
  }

  #landingHero > h1 {
    font-size: 56px;
    line-height: 1.5;
  }
  .hero-text-container,.hero-text-container2,.hero-text-container3{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    font-size: 3.5rem;
  }
  .btn {
    width: 300px;
    height: 60px;
    font-size: 36px;
  }
  .scroll-indicator{
    bottom: 2%;
  }
 .aboutMeInnerContainer > h1 {
    font-size: 56px;
  }
  .aboutMeInnerContainer > p {
    font-size: 20px;
    width: 80%;
    max-width: 900px;
  }
  #aboutMeBtn {
    margin-bottom: 40px;
    font-size: 24px;
    width: 230px;
    height: 55px;
  }
  #projectSectionTitle {
    font-size: 56px;
  }
  #projectsContainer {
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
  }
  .projectTemplate {
    width: 450px;
    /* height: 400px; */
    align-items: center;

  }


  .projectTemplate > h3 {
    font-size: 24px;
  }
  .projectTemplate > p {
    font-size: 18px;
  }
  .projectSeeLive,
  .projectSourceCode {
    font-size: 20px;
    width: 180px;
    height: 50px;
  }

  section#contactMe {
    height: 30vh;
    
  }
  #contactMe > h1 {
    font-size: 56px;
  }
  #contactMe > h5 {
    font-size: 25px;
  }
  #contactMe > a {
    font-size: 30px;
  }

  footer {
    height: 200px;
  }

  #arrowUpIcon {
    font-size: 56px;
  }
  .footerIcons > a {
    font-size: 45px;
  }
  footer > small {
    font-size: 25px;
  }
}

