@font-face {
  font-family: "Gilroy";
  font-weight: 400;
  src: local(""), url("fonts/Gilroy-Regular.ttf");
}
@font-face {
  font-family: "Gilroy";
  font-weight: 500;
  src: local(""), url("fonts/Gilroy-Medium.ttf");
}
@font-face {
  font-family: "Gilroy";
  font-weight: 700;
  src: local(""), url("fonts/Gilroy-Bold.ttf");
}
@font-face {
  font-family: "Gilroy";
  font-weight: 300;
  src: local(""), url("fonts/Gilroy-Light.ttf");
}

html {
  scroll-behavior: smooth;
}

:root {
  --orange: #fbff01;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Gilroy", sans-serif;
}

a {
  text-decoration: none;
}

body {
  background-color: black;
  color: white;
}
input {
  padding: 20px 16px;
  border-radius: 10px;
  background-color: white;
  font-size: 20px;
  outline: none;
  border: none;
  width: 100%;
}
button {
  text-transform: uppercase;
  padding: 12px 30px;
  font-weight: bold;
  color: white;
  background: var(--orange);
  font-size: 32px;
  border-radius: 7px;
}

.container {
  width: 1200px;
  margin: 0 auto;
}

.hero-bg {
  background-repeat: repeat-x;
}
.hero {
  min-height: 700px;
  background-size: 1600px;
  background-position: center;
  background-repeat: no-repeat;
  padding-bottom: 300px;
  overflow: hidden;
}
.hero__flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
.hero__content {
  width: 40%;
}
.hero__content h1 {
  padding-top: 90px;
  font-size: 80px;
  color: var(--orange);
  line-height: 1;
  margin: 15px 0;
}

.logo{
  width: 150px;
  height: 40px;
}

@media (max-width: 700px) {
  .logo {
    width: 100px;
    height: 35px;
  }
}

.hero__content p {
  font-size: 28px;
  color: white;
}
.hero__content p:first-child {
  font-weight: bold;
}
.teacher {
  position: absolute;
  width: 660px;
  height: 400px;
  right: -10px;
  top: -180px;
}
.teacher img {
  margin-top: 200px;
  width: 100%;
}

@media (max-width: 700px) {
  .hero__flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: visible; /* qirqilmasligi uchun */
    height: auto;      /* balandlik cheklanmasin */
  }

  .teacher {
    width: 100%;
    max-width: 400px;
    margin-top: 350px; /* 400px emas, oddiy margin ishlatish */
  }

  .teacher img {
    width: 100%;
    height: auto;   /* proporsiya buzilmasin */
    display: block;
  }
}



.header {
  padding: 45px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.text-down{
  margin-top: 50px;
  width:200px;
  height: 50px;
  border-radius: 120px;
  color: #fbff01;
  text-align: center;
  padding-top: 5px;
  font-size: 20px;
  font-weight: bold;
  border: solid 5px var(--orange);
}
.phone-link {
  display: flex;
  border-radius: 7px;
  overflow: hidden;
}
.phone-link__icon {
  height: 42px;
  background-color: var(--orange);
  width: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-link__text {
  height: 50px;
  padding: 0 20px;
  font-size: 25px;
  display: flex;
  align-items: center;
  color: black;
  background-color: var(--orange);
  font-weight: bold;
  border-radius: 120px;
}


.lessons_btn {
  margin-top: 50px;
  display: flex;
  justify-content: center;
}

.lessons {
  margin-top: 70px;
  padding-top: 120px;
  position: relative;
  overflow: hidden;
}
.lessons h2 {
  color: var(--orange);
  margin-bottom: 50px;
  text-align: center;
  font-size: 48px;
}
.lessons__description {
  font-size: 35px;
  margin-bottom: 30px;
  padding-right: 10%;
}
.lessons ul li::marker {
  color: var(--orange);
}
.lessons ul {
  margin-bottom: 20px;
  padding-left: 20px;
  font-size: 24px;
  line-height: 1.4;
}
.lessons p {
  font-size: 24px;
}
.lessons-features {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 60px;
  margin-top: 50px;
}
.lessons__feature {
  border: 1px solid var(--orange);
  background: rgba(224, 221, 217, 0.15);
  padding: 32px 20px;
  padding-bottom: 0;
  border-radius: 35px;
  position: relative;
  overflow: hidden;
}
.feature__img {
  text-align: center;
}
.lessons__feature img {
  margin: 0 auto;
  object-fit: cover;
  object-position: top;
}
.lessons__feature::after {
  content: "";
  position: absolute;
  width: 60%;
  height: 60%;
  left: 20%;
  bottom: 3%;
  background: radial-gradient(circle, #ff6c00, #ff6c00);
  border-radius: 50%;
  filter: blur(36px);
  z-index: -1;
}
.lessons__feature h4 {
  text-transform: uppercase;
  font-size: 28px;
}
.lessons__feature p {
  font-size: 18px;
  margin: 15px 0;
}
.lessons .container {
  position: relative;
}
.lessons .container::before {
  content: "";
  position: absolute;
  width: 920px;
  height: 620px;
  right: -30%;
  top: 5%;
  background: radial-gradient(circle, rgb(255, 106, 0, 0.5), transparent);
  border-radius: 50%;
  filter: blur(166px);
  z-index: -1;
}

.mentor {
  margin-top: 120px;
}
.mentor h2 {
  font-size: 70px;
  text-align: center;
  text-transform: uppercase;
}
.mentor h2 span {
  color: var(--orange);
}
.mentor ul {
  margin-top: 60px;
  padding-left: 15px;
  font-size: 32px;
  line-height: 160%;
  list-style-type: disc;
}
.mentor ul li::marker {
  color: var(--orange);
}
.mentor__grid {
  display: grid;
  grid-template-columns: 250px auto;
  gap: 100px;
  font-size: 40px;
  align-items: center;
}
.mentor__grid p {
  width: 60%;
}
.mentor__grid img {
  width: 350px;
}

.topics {
  margin-top: 200px;
}
.topics h2 {
  font-size: 58px;
  text-align: center;
  text-transform: uppercase;
}
.topics__grid {
  display: grid;
  margin-top: 70px;
  grid-template-columns: 1fr 1fr;
  gap: 110px 120px;
}
.topics__child h3 {
  font-size: 22px;
  text-transform: uppercase;
  padding-left: 20px;
  margin-bottom: 15px;
  font-weight: 500;
}
.topics__child-content {
  border: 2px solid white;
  border-radius: 15px;
  background: linear-gradient(to top, #78421b, #ff6c00);
  padding: 35px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
}
.topics__child-content ul {
  padding-left: 10px;
}
.topics__child-content li {
  margin-bottom: 10px;
  font-size: 22px;
}
.topics__child-content__indicator {
  background: white;
  height: 25px;
  width: 70%;
  border-radius: 12px;
  margin-top: auto;
}

.reasons {
  margin-top: 150px;
}

.reasons h2 {
  font-size: 58px;
  text-align: center;
  text-transform: uppercase;
}

.reasons__content {
  background: linear-gradient(rgba(120, 66, 27, 0.25), rgba(255, 108, 0, 0.25));
  padding: 32px;
  border: 2px solid rgba(255, 255, 255, 1);
  border-radius: 25px;
  margin-top: 50px;
}

.reasons__content p {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 36px;
  margin-bottom: 50px;
}

.overlay {
  position: relative;
  overflow: hidden;
}
.overlay::before {
  content: "";
  position: absolute;
  width: 920px;
  height: 920px;
  right: -10%;
  bottom: 0%;
  background: radial-gradient(circle, rgb(255, 106, 0, 0.4), transparent);
  border-radius: 50%;
  filter: blur(66px);
  z-index: -1;
}
.overlay::after {
  content: "";
  position: absolute;
  width: 920px;
  height: 920px;
  left: -10%;
  top: 20%;
  background: radial-gradient(circle, rgb(255, 106, 0, 0.4), transparent);
  border-radius: 50%;
  filter: blur(66px);
  z-index: -1;
}

.contact {
  padding: 50px 0;
  margin: 150px 0;
}
.contact__form {
  border-radius: 25px;
  border: 2px solid var(--orange);
  padding: 67px 117px;
  background: url("images/mentor.png"), #141312;
  background-position: 90% 0100%;
  background-size: 350px;
  background-repeat: no-repeat;
  padding-bottom: 70px;
}
.contact__form h2 {
  font-size: 56px;
  text-align: center;
  margin-bottom: 50px;
}
.contact__form__content {
  width: 40%;
  display: grid;
  gap: 30px;
}

@media (max-width: 1200px) {
  .container {
    width: 85%;
  }
}

@media (max-width: 992px) {
  .hero__flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero__content {
    order: 1;
    width: 100%;
    padding-right: 0;
  }

  .hero__content h1 {
    font-size: 80px;
  }

  .hero__content p {
    font-size: 24px;
  }

  .contact__form__content {
    width: 100%;
  }

  .lessons__feature {
    padding: 30px;
  }

  .lessons__feature h4 {
    font-size: 26px;
  }

  .lessons-features {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .mentor__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .topics__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .topics__child h3 {
    font-size: 18px;
  }

  .topics__child-content__indicator {
    height: 16px;
    margin-top: 10px;
  }
}

@media (max-width: 768px) {
  .header img {
    width: 142px;
  }
  .phone-link * {
    padding: 1px 4px;
    font-size: 15px;
    height: 40px;
  }
  .phone-link img {
    width: 26px;
  }
  .hero__content {
    text-align: left;
    padding-right: 30%;
    width: 100%;
  }
  .lessons {
    padding-top: 50px;
  }
  .hero {
    background-position: -300px 100px;
    background-size: 1000px;
  }
  .hero__content h1 {
    font-size: 40px;
  }

  .hero__content p {
    font-size: 15px;
    font-weight: normal;
    letter-spacing: 2px;
  }

  .contact__form {
    padding: 40px 20px;
    background-position: 50% 100%;
    background-size: 200px;
  }

  .contact__form h2 {
    font-size: 40px;
  }

  .lessons h2 {
    font-size: 36px;
  }

  .lessons__description {
    font-size: 24px;
  }

  .lessons ul {
    font-size: 18px;
  }

  .lessons p {
    font-size: 18px;
  }

  .mentor h2 {
    font-size: 48px;
  }

  .mentor ul {
    font-size: 24px;
  }

  .mentor__grid p {
    width: 100%;
    font-size: 24px;
  }

  .topics h2 {
    font-size: 24px;
  }

  .reasons h2 {
    font-size: 24px;
  }

  .reasons {
    margin-top: 80px;
  }

  .reasons__content {
    padding: 20px;
  }

  .reasons__content p {
    font-size: 20px;
    gap: 20px;
    margin-bottom: 24px;
  }

  .topics__child-content {
    padding: 20px;
    min-height: 300px;
  }

  .topics__child-content li {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .hero__content h1 {
    padding: 0;
    font-size: 25px;
    font-weight: normal;
    letter-spacing: 2px;
  }

  .hero__content {
    order: 1;  /* matn birinchi chiqadi */
    width: 100%;
    padding-right: 0; /* oldingi 30% ni olib tashlaymiz */
  }

  .contact__form {
    padding: 30px 25px;
    background-size: 220px;
    padding-bottom: 300px;
  }

  .contact__form h2 {
    font-size: 20px;
  }

  .lessons h2 {
    font-size: 28px;
  }

  .lessons__description {
    font-size: 18px;
  }

  .lessons ul {
    font-size: 14px;
  }

  .lessons p {
    font-size: 16px;
  }

  .mentor h2 {
    font-size: 20px;
  }

  .mentor ul {
    font-size: 16px;
  }

  .mentor__grid {
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 0px;
    margin-top: 0px;
    margin-bottom: -20px;
  }

  .mentor__grid img {
    width: 150px;
  }

  .mentor p {
    font-size: 18px;
  }

  .topics h2 {
    font-size: 20px;
  }

  .topics__child-content {
    padding: 10px;
    min-height: 200px;
  }

  .topics__child-content li {
    font-size: 14px;
  }

  input {
    padding: 10px 12px;
    font-size: 16px;
  }

  button {
    font-size: 16px;
    padding: 10px 12px;
  }

  .contact {
    margin: 100px 0;
  }

  .topics {
    margin-top: 100px;
  }
}

/* width */
::-webkit-scrollbar {
  width: 6px;
}
/* Track */
::-webkit-scrollbar-track {
  background: #000;
}
/* Handle */
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.6);
}

.phone_wrapper {
  position: fixed;
  bottom: 50px;
  right: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ff6c00;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  animation: pulse 2s infinite;
  cursor: pointer;
}
.phone {
  display: block;
  width: 36px;
  height: 36px;
  font-size: 40px;
  color: #9e9e9e;
  animation: ring 4s 0.7s ease-in-out infinite;
  transform-origin: 50% 4px;
  margin-top: 3px;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes ring {
  0% {
    transform: rotate(0);
  }
  5% {
    transform: rotate(30deg);
  }
  10% {
    transform: rotate(-28deg);
  }
  15% {
    transform: rotate(34deg);
  }
  20% {
    transform: rotate(-32deg);
  }
  25% {
    transform: rotate(30deg);
  }
  30% {
    transform: rotate(-28deg);
  }
  35% {
    transform: rotate(26deg);
  }
  40% {
    transform: rotate(-24deg);
  }
  45% {
    transform: rotate(22deg);
  }
  50% {
    transform: rotate(-20deg);
  }
  55% {
    transform: rotate(18deg);
  }
  60% {
    transform: rotate(-16deg);
  }
  65% {
    transform: rotate(14deg);
  }
  70% {
    transform: rotate(-12deg);
  }
  75% {
    transform: rotate(10deg);
  }
  80% {
    transform: rotate(-8deg);
  }
  85% {
    transform: rotate(6deg);
  }
  90% {
    transform: rotate(-4deg);
  }
  95% {
    transform: rotate(2deg);
  }
  100% {
    transform: rotate(-1deg);
  }
}
@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgb(255, 108, 0, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 30px rgba(0, 0, 0, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
}
