@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rammetto+One&display=swap');

:root {
  --xs: 1.5%;
  --sm: 2.5%;
  --md: 5%;
  --lg: 7.5%;
  --xl: 10%;

  --px-xs: 1.5%;
  --px-sm: 2.5%;
  --px-md: 5%;
  --px-lg: 7.5%;
  --px-xl: 10%;

  /* --fontsize1: clamp(34px, 5vw + 1rem, 84px);
  --fontsize2: clamp(28px, 4vw + 1rem, 64px);

  --fontsize-sh1: clamp(50px, 8vw + 1rem, 100px);
  --fontsize-sh2: clamp(24px, 3vw + 0.5rem, 38px);
  --fontsize-sh3: clamp(34px, 3.5vw + 0.5rem, 44px);

  --fontsize-p1: clamp(16px, 2vw + 0.5rem, 24px);
  --fontsize-p2: clamp(18px, 2.8vw + 0.5rem, 34px);
  --fontsize-p3: clamp(34px, 6vw + 1rem, 78px);
  --fontsize-p4: clamp(16px, 1.2vw + 0.25rem, 18px); */

  --fontsize1: calc(30px + (30 * (100vw - 320px) / 1600)); /* 30 → 60 */
  --fontsize2: calc(28px + (36 * (100vw - 320px) / 1600)); /* 28 → 64 */

  --fontsize-sh1: calc(50px + (50 * (100vw - 320px) / 1600));/* 50 → 100 */
  --fontsize-sh2: calc(24px + (14 * (100vw - 320px) / 1600));/* 24 → 38 */
  --fontsize-sh3: calc(34px + (10 * (100vw - 320px) / 1600)); /* 34 → 44 */

  --fontsize-p1: calc(16px + (8 * (100vw - 320px) / 1600));/* 16 → 24 */
  --fontsize-p2: calc(18px + (16 * (100vw - 320px) / 1600));/* 18 → 34 */
  --fontsize-p3: calc(34px + (44 * (100vw - 320px) / 1600));/* 34 → 78 */
  --fontsize-p4: calc(16px + (2 * (100vw - 320px) / 1600));/* 16 → 18 */

  --primary:#FFD302;
  --secondary:#262626;

  --color1:#C8C8CA;
  --color2:#FFE66F;
  --color3:#A0A0A0;
}

@font-face {
  font-family: 'Garet';
  src: url('/fonts/garet/Garet-Heavy.woff2') format('woff2'),
    url('/fonts/garet/Garet-Heavy.woff') format('woff'),
    url('/fonts/garet/Garet-Heavy.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

h1 {
  font-size: var(--fontsize1);
  /* font-family: 'Garet'; */
  font-family: 'Rammetto One';
  line-height: 78px;
  font-weight: 100;
}

h2 {
  font-size: var(--fontsize2);
  line-height: 72px;
}

h3 {
  font-size: var(--fontsize-sh1);
  line-height: 100px;
}

h4 {
  font-size: var(--fontsize-sh2);
  line-height: 46px;
}

h5 {
  font-size: var(--fontsize-sh3);
  line-height: 52px;
}

h2,
h3,
h4,
h5 {
  font-family: "DM Sans";
  font-weight: bold;
  margin: 0;
}

.para1 {
  font-size: var(--fontsize-p1);
  line-height: 32px;
}

.para2 {
  font-size: var(--fontsize-p2);
  line-height: 34px;
}

.para3 {
  font-size: var(--fontsize-p3);
  font-family: "DM Sans";
  font-weight: bold;
  line-height: 86px;
}

.para4 {
  font-size: var(--fontsize-p4);
  line-height: 26px;
}

.para1,
.para2,
.para4 {
  font-family: "Nunito";
}

.btn-1 {
  font-size: 18px;
  font-family: "Nunito";
  line-height: 26px;
  font-weight: bold;
}

.btn-2 {
  font-family: "DM Sans";
  font-size: 28px;
  font-weight: bold;
}

img {
  width: 100%;
  box-sizing: border-box;
}

a {
  color: black;
  text-decoration: none;
}

section {
  padding: 3.5% 7%;
}
/* <------------common styling END----------------> */

/* <-----------header START--------------> */
.bg {
  background-image: url(../img/white-bg.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
#h1{
  padding: 2.5% 7%;
}

#h1 .n0-i1 {
  width: 20%;
}

.nav-button {
  padding: 15px 30px;
  border-radius: 12px;
  color: var(--primary);
  background-color: Black;
  box-sizing: border-box;
  transition: all 0.3s ease;
  outline: none;
  border: none;
}

button:hover {
  cursor: pointer;
}
/* <-----------header END--------------> */

/* <-----------Hero section START--------------> */

#m1 {
  padding: 0;
  margin-bottom: 10%;
}

#m1 .n0-i1 {
  padding: 0% 18% 18% 18%;
  /* width: 54%; */
}


#m1 .n0-i2 {
  top: 90%;
  width: 60%;
  z-index: 1000;
  height: fit-content;
}

#m1 .n1-i1 img {
  border-radius: 30px;
}

#m1 .n1-i2 {
  position: relative;
  width: 40%;
  height: 40%;

}

/* .slide {
  position: absolute;
  width: 100%;
  bottom: 130%;
  left: 90%;
  transform: translateX(5%) rotate(30deg);
  transform-origin: bottom center;
  opacity: 0;
  animation: slideTilt 8s infinite ease-in-out;
} */
 .slide {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  width: 100%;
  bottom: 10%;
  left: 80%;
  transform: translateX(5%) rotate(30deg);
  transform-origin: bottom center;
  opacity: 0;
  margin-bottom: 10%;
  animation: slideTilt 12s infinite ease-in-out;
}
/* .rot-img{
  position: absolute;
  left: 90%;
} */

/* .rot-text {
  color: white;
  opacity: 0;
  animation: textFade 8s infinite;
  text-align: center;   
} */
 .rot-text {
  position: absolute;           
  top: 90%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  opacity: 0;
  animation: textFade 12s infinite;
}

.slide.img2,
.slide.img2 .rot-text {
  animation-delay: 3s;
}

.slide.img3,
.slide.img3 .rot-text {
  animation-delay: 6s;
}

.slide.img4,
.slide.img4 .rot-text {
  animation-delay: 9s;
}


/* image animation */
@keyframes slideTilt {

  0%,
  5% {
    transform: translateX(3%) rotate(30deg);
    opacity: 0;
  }

  10% {
    transform: translateX(0%) rotate(0deg);
    opacity: 1;
  }

  25% {
    transform: translateX(0%) rotate(0deg);
    opacity: 1;
  }

  30%,
  35% {
    transform: translateX(-3%) rotate(-30deg);
    opacity: 0;
  }

  100% {
    transform: translateX(-3%) rotate(-30deg);
    opacity: 0;
  }
}

/* text animation */
@keyframes textFade {
  0% {  opacity: 1; }

  5% {  opacity: 1; }

  25% {  opacity: 1;  }

  30%, 35% {  opacity: 0;  }

  100% {  opacity: 0;  }
}
/* <-----------Hero section START--------------> */

/* <-------------Welcome to codejamz section START---------------> */
#m2 {
  background-color: var(--primary);
}

#m2 {
  padding: 0%;
}

#m2 .n0-i1 {
  top: 15%;
}

#m2 .n1-i1 {
  padding: 3.5% 10%;
}

#m2 .n1-i2 {
  width: 100%;
}

#m2 .n2-i1 {
  width: 70%;
}

#m2 .n2-i2 {
  color: #171616;
}
/* <-------------Welcome to codejamz section END---------------> */

/* <-------------Technology section START---------------> */
#m3 {
  margin-top: 5%;
}

#m3 .n0-i1 {
  background-color: var(--secondary);
  border-radius: 60px;
}

#m3 .n1-i1 {
  color: white;
  line-height: 86px;
}

#m3 .n0-i1 .btn {
  /* font-size: 1.6rem; */
  font-weight: bold;
  padding: 15px 30px;
  border-radius: 18px;
  color: black;
  outline: none;
  border: none;
  font-family: sans-serif;
  background-color: white;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

#m3 .n2-i1 {
  background-color: var(--color1);
  border-radius: 40px;
}

#m3 .n3-i1 {
  color: var(--secondary);
}

#m3 .n5-i1 {
  background-color: var(--primary);
  border-radius: 40px;
}

#m3 .n5-i2 img {
  border-radius: 40px;
}

#m3 .text-bold {
  font-weight: bold;
  display: block;
}
/* <-------------Technology section END---------------> */

/* <-------------who we teach section START---------------> */
#m4 .n0-i1 {
  line-height: 70px;
}
#m4 .row{
  width: 100%;
  gap: 20%;
}

#m4 .row1 {
  flex-direction: row;
}

#m4 .row2 {
  flex-direction: row-reverse;
}

#m4 .para1 {
  line-height: 26px;
}

#m4 .n1-i2 {
  width: 60%;
}
/* <-------------who we teach section END---------------> */

/* <-------------Why codejamz? section START---------------> */
#m5 .n1-i1 img {
  border-radius: 40px;
}

#m5 .n1-i2 {
  background-color: var(--primary);
  border-radius: 40px;
  padding: 10% 5%;
}

#m5 .box {
  background-color: #EEEDED;
  border-radius: 30px;
  padding: 10% 8%;
}
/* <-------------Why codejamz? section START---------------> */

/* <-------------Learning metholodogy section START---------------> */
#m6 {
  background-image: url(../img/white-bg.png);
  background-size: cover;
}

#m6 .n0-i2 {
  width: 100%;
}

#m6 .n0-i2 img {
  border-radius: 10%;
}
/* <-------------Learning metholodogy section END---------------> */

/* <-------------Skills Developed section START---------------> */
#m7 .n0-i1 {
  padding: 3.5% 10%;
}

#m7 {
  padding: 0;
  padding-bottom: 3.5%;
}

#m7 .scroll-img {
  overflow: hidden;
  position: relative;
  width: 100%;
  -webkit-transform: translate3d(0, 0, 0);
  /* Safari GPU acceleration */
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

#m7 .scroll-img-track {
  display: flex;
  gap: 20px;
  width: max-content;
  will-change: transform;
  animation: scroll-left 60s linear infinite;
  -webkit-animation: scroll-left 60s linear infinite;
  transform: translateZ(0);
  /* Important for Safari */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

#m7 .scroll-img .card {
  flex: 0 0 auto;
  width: 390px;
  background-color: var(--color2);
  border-radius: 60px;
  text-align: center;
  padding: 20px;
  transform: translateZ(0);
  backface-visibility: hidden;
}

#m7 .scroll-img img {
  width: 50%;
  margin-bottom: 30%;
  padding: 5%;
  object-fit: cover;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: optimizeQuality;
}

#m7 h5 {
  padding: 40px 38px;
}

@keyframes scroll-left {
  from {
    transform: translateX(0%);
  }
  to {
    transform: translateX(-50%);
  }
}
#m7 .scroll-img-track::after {
  content: "";
  display: flex;
  width: max-content;
  animation: scroll-left 60s linear infinite;
}
/* <-------------Skills Developed section END---------------> */

/* <-------------Ready to Begin section START---------------> */
#m10 .n0-i1 {
  width: 45%;
}

#m10 .img-up {
  margin-bottom: 5%;
}

#m10 .img-down {
  margin-top: 5%;
}

#m10 .ready-btn {
  border: none;
  outline: none;
  padding: 20px 30px;
  background-color: var(--primary);
  border-radius: 24px;
}
/* <-------------Ready to Begin section END---------------> */

/* <-------------Footer section START---------------> */
#f1 {
  padding: 3.5% 7%;
  background-image: url(../img/black-bg.png);
  background-size: cover;
  background-repeat: no-repeat;
  color: white;
}
#f1 a{
  color: white;

}

#f1 span {
  color: var(--color3);
}

#f1 i {
  font-size: 2.5rem;
  line-height: 2.2rem;
}

#f1 .n0-i3 {
  width: 25%;
}
/* <-------------Footer section END---------------> */


@media(max-width:1024px) {
  section {
    padding: 3.5% 8%;
  }

  h1 {
    line-height: 66px;
  }

  h2 {
    line-height: 54px;
  }

  h3 {
    line-height: 90px;
  }

  h4 {
    line-height: 40px;
  }

  .para1 {
    line-height: 26px;
  }

  .para2 {
    line-height: 38px;
  }

  .para3 {
    line-height: 62px;
  }

  #m1 .n0-i1 {
    padding: 0% 10% 20% 10%;
    /* width: 64%; */
  }

  #m3 .simpleGrid {
    grid-template-columns: repeat(1, 1fr);
  }

  #m4 .n1-i2{
    width: 70%;
  }
    #m5 .inner-col {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
    .scroll-img .card {
    width: 350px;
    border-radius: 50px;
    padding: 18px;
  }
    #m10 .n0-i1 {
    width: 75%;
  }
}

@media(max-width:768px) {

  section {
    padding: 8% 6%;
  }

  h1 {
    line-height: 56px;
  }

  h2 {
    line-height: 48px;
  }

  h3 {
    line-height: 70px;
  }

  h4 {
    line-height: 36px;
  }

  .para1 {
    line-height: 24px;
  }

  .para2 {
    line-height: 36px;
  }

  .para3 {
    line-height: 62px;
  }

  .btn-2 {
    font-size: 24px;
  }

    section#h1 {
    padding: 3% 6%;
  }

    .desktop-nav {
    gap: 10%;
  }

  .nav-button {
    padding: 14px 28px;
    border-radius: 12px;
  }

  .bg {
    background-image: url(../img/white-bg-tablet.png);
    background-size: cover;
  }

  #m1 {
    padding: 0;
    margin-bottom: 15%;
  }

  #m1 .n0-i1 {
    padding: 0% 8% 10% 8%;
  }

  #m1 .n0-i2 {
    top: 115%;
  }

  #m1 .n1-i2 {
    position: relative;
    width: 38%;
    height: 35%;
  }
  #m2 .n0-i1 {
    margin-top: 3%;
  }

  #m2 .n2-i1 {
    width: 100%;
  }

  section#m3 {
    margin-top: 6%;
  }

  #m3 .para3 {
    line-height: 62px;
  }

  #m3 .n0-i1 {
    border-radius: 40px;
  }
  #m4 .row {
    flex-direction: column;
    align-items: center;
  }

  #m4 .n1-i2{
    width: 50%;
  }
   /* #m4 .n1-i2{
    width: 90%;
   }
   #m4 .n1-i2 img{
    display: flex;
    width: 50%;
    align-self: center;
   } */
  #m5 .customGrid {
    grid-template-columns: 1fr;
  }

  #m5 .n0-i1 {
    gap: 2.5%;
  }

  #m5 .n1-i2 {
    order: 1;
    text-align: center;
  }

  #m5 .n1-i1 {
    order: 2;
  }

  #m5 .n0-i2 {
    margin-top: 5%;
    gap: 4%;
  }

  #m6 {
    background-image: url(../img/white-bg-tablet.png);
    background-size: contain;
  }

  #m6 .simpleGrid {
    gap: 0;
  }
  #m7 .scroll-img img {
    padding: 8%;
    margin-bottom: 20%;
  }

  #m7 .scroll-img .card {
    width: 320px;
    border-radius: 30px;
    padding: 15px;
  }

  #m7 h5 {
    padding: 30px 20px;
  }
    #m10 .n0-i1 {
    width: 65%;
  }

  #m10 .ready-btn {
    padding: 10px 15px;
    border-radius: 12px;
  }

}

@media(max-width:577px) {

  section {
    padding: 8% 7%;
  }

  h1 {
    line-height: 38px;
  }

  h2 {
    line-height: 34px;
  }

  h3 {
    line-height: 50px;
  }

  h4 {
    line-height: 32px;
  }

  h5 {
    line-height: 46px;
  }

  .para1 {
    line-height: 22px;
  }

  .para2 {
    line-height: 26px;
  }

  .para3 {
    line-height: 42px;
  }

  .para4 {
    line-height: 24px;
  }

  .btn-2 {
    font-size: 20px;
  }

  .btn-1 {
    font-size: 16px;
    line-height: 16px;
  }

  section#h1 {
    padding: 7% 6% 0% 6%;
  }

  #h1 .n0-i1 {
    width: 50%;
  }

  .nav-button {
    padding: 6px 15px;
  }

  .nav-button {
    padding: 12px 20px;
    border-radius: 12px;
  }

    .bg {
    background-image: url(../img/white-bg-mobile.png);
  }

  #m1 {
    padding: 0;
    margin-bottom: 20%;
  }

  #m1 .n0-i1 {
    padding: 15% 12% 15% 12%;
  }

  #m1 .n0-i2 {
    top: 105%;
  }

  #m1 .n0-i2 {
    width: 60%;
  }

  #m1 .n1-i1 img {
    border-radius: 12px;
  }

  #m1 .n1-i2 {
    width: 54%;
    height: 45%;
  }

  .slide {
    bottom: 110%;
    left: 45%;
  }
  #m2 .n1-i1 {
    margin-top: 10%;
    margin-right: 10%;
  }

  #m2 .n2-i1 {
    width: 65%;
  }

  section#m3 {
    margin-top: 10%;
  }

  #m3 .para3 {
    line-height: 42px;
  }

  #m3 .n0-i1 {
    border-radius: 35px;
  }

  #m3 .n4-i1 {
    gap: 3%
  }

  #m3 .n2-i1 {
    border-radius: 30px;
  }

  #m3 .inner-col {
    grid-template-columns: repeat(1, 1fr);
  }

  #m3 .n5-i1 {
    margin-top: 3%;
  }

  #m3 .n5-i2 img {
    border-radius: 40px;
  }
  #m4 .para1 {
    line-height: 24px;
  }
  section#m4{
    padding-top: 15%;
  }

  #m5 .n0-i1 {
    gap: 3.5%;
  }

  #m5 .n0-i2 {
    margin-top: 10%;
        gap: 3%;
  }
  
  #m5 .n1-i1 {
    gap: 2.5%;
  }

  #m5 .inner-col {
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
  }

  #m6 {
    background-image: url(../img/white-bg-mobile.png);
    background-size: contain;
  }
  #m7 .scroll-img img {
    width: 40%;
    padding: 5%;
    margin-bottom: 10%;
  }

  #m7 .scroll-img .card {
    width: 290px;
    border-radius: 30px;
    padding: 15px;
  }

  #m7 h5 {
    padding: 30px 20px;
  }
    #m10 .n0-i1 {
    width: 90%;
  }

  #m10 .ready-btn {
    font-size: 18px;
    padding: 10px 15px;
    border-radius: 12px;
  }
    #f1 .n0-i3 {
    width: 50%;
  }

  #f1 .line-1 {
    margin-top: 5%;
  }

  #f1 .line-2 {
    margin-top: 15%;
  }

  #f1 .copyright {
    font-size: 12px;
  }

  #f1 i {
    font-size: 1.5rem;
    line-height: 2.2rem;
  }

  #f1 {
    background-image: url(../img/black-bg-mobile.png);
    background-size: cover;
  }

}
