/*-----------------------------------*\
  #style.css
\*-----------------------------------*/

/**
 * copyright 2023 codewithsadee
 */

/*-----------------------------------*\
  #CUSTOM PROPERTY
\*-----------------------------------*/

:root {
  /* Colors */

  /* backgroundColor */

  --bg-dark-purple: #003168;
  --bg-russian-violet: hsla(259, 61%, 14%, 1);
  --bg-vivid-violet: hsla(273, 100%, 55%, 1);
  --bg-sunglow: hsla(43, 100%, 61%, 1);
  --bg-blue-jeans: hsla(202, 100%, 50%, 1);
  --bg-white-alpha-10: hsla(0, 0%, 100%, 0.1);

  /* Text color */
  --text-white: hsla(0, 0%, 100%, 1);
  --text-black: hsla(0, 0%, 0%, 1);
  --text-sunglow: hsla(43, 100%, 61%, 1);
  --text-white-alpha-60: hsla(0, 0%, 100%, 0.6);

  /* border-color */
  --border-blue-jeans: hsla(202, 100%, 50%, 1);
  --border-white-alpha-10: hsla(0, 0%, 100%, 0.1);

  /* Typography: 
    1. Font Size*/
  --fontFamily-open-sans: "Open Sans", sans-serif;
  --fontFamily-heading: "Poppins", sans-serif;


  --fontSize-1: 4rem;
  --fontSize-2: 3.2rem;
  --fontSize-3: 2.4rem;
  --fontSize-4: 2rem;
  --fontSize-5: 1.8rem;
  --fontSize-6: 1.6rem;
  --fontSize-7: 1.4rem;

  /* Font Weight */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semiBold: 600;
  --weight-bold: 700;

  /* Spacing */

  --section-spacing: 100px;

  /* box-shadow */

  --shadow-1: drop-shadow(0 20px 30px hsla(0, 0%, 0%, 0.1));
  --shadow-2: drop-shadow(0 20px 30px hsla(0, 0%, 0%, 0.2));

  /* border-radius */
  --radius-24: 24px;
  --radius-40: 40px;
  --radius-pill: 500px;

  /* transition */
  --transition-1: 250ms ease;
  --transition-2: 500ms ease;
  --cubic-out: cubic-bezier(0, 1, 0.5, 1);
}

/*-----------------------------------*\
  #RESET
\*-----------------------------------*/

*,
::before,
::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
li {
  list-style: none;
}

a,
img,
span,
button,
ion-icon {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}
img {
  height: auto;
}
input,
button {
  background: none;
  border: none;
  font: inherit;
}
input {
  width: 100%;
  outline: none;
}
button {
  cursor: pointer;
}
ion-icon {
  pointer-events: none;
}
address {
  font-style: normal;
}
html {
  font-family: var(--fontFamily-open-sans);
  font-size: 10px;
  scroll-behavior: smooth;
}

body {
  /* background-color: var(--bg-dark-purple); */
  color: black;
  font-size: var(--fontSize-6);
  line-height: 1.8;
  background-color: #f5f5f5;
}

body.nav-active {
  overflow: hidden;
}
/*-----------------------------------*\
  #REUSED STYLE
\*-----------------------------------*/

.container {
  padding-inline: 36px;
}

.section {
  padding-block-end: var(--section-spacing);
}

.title {
  color: black;
  line-height: 1.1;
}
.h1 {
  font-size: var(--fontSize-1);
}
.h2 {
  font-size: var(--fontSize-2);
  font-weight: var(--weight-semiBold);
}
.h3 {
  font-size: var(--fontSize-3);
  font-weight: var(--weight-regular);
}
.btn {
  
  height: 62px;
  padding-inline: 50px;
  font-weight: var(--weight-semiBold);
  border-radius: var(--radius-pill);
  color: var(--text-black);
  display: grid;
  place-content: center;
  max-width: max-content;
  transition: var(--transition-1);
}

.btn-primary {
  background-color: var(--bg-sunglow);
}
.btn-primary:is(:hover, :focus-visible) {
  background-color: var(--bg-vivid-violet);
  color: var(--text-white);
}
.w-100 {
  width: 100%;
}

.text-center {
  text-align: center;
}
.section-text {
  margin-block: 15px 50px;
}
.grid-list {
  display: grid;
  gap: 50px;
}

.img-holder {
  aspect-ratio: var(--width) / var(--height);
  background-color: var(--bg-white-alpha-10);
  overflow: hidden;
}

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-2);
}
/* #letsTalkButton {
  
  font-size: 16px;
  cursor: pointer;
} */

#successPopup {
  display: none;
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  background-color: #000000;
  color: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 999;
}
/*-----------------------------------*\
  #HEADER
\*-----------------------------------*/

.header .btn {
  display: none;
  font-family: var(--fontFamily-heading);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  

}

.header {
  background: var(--bg-dark-purple);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding-block: 15px 30px;
   z-index: 3000;
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  width: 170px;
  height: auto;
  padding: 10px;
  margin: 0 auto;
  display: block;
  transition: transform 0.3s; /* Adds a smooth transition effect */
}

.logo:hover {
  transform: scale(1.2); /* Scales the image on hover */
}

.nav-open-btn {
  color: var(--text-white);
  font-size: 3rem;
}

.nav-open-btn.active .menu-icon,
.nav-open-btn .close-icon {
  display: none;
}
.nav-open-btn{
  z-index: 3100;
}
.nav-open-btn .menu-icon,
.nav-open-btn.active .close-icon {
  display: block;
}


.navbar {
  position: absolute;
  top: 100%;
  right: 16px;
 background: linear-gradient(135deg, #002855, #003f88);
  color: #fff;
  padding: 18px 24px;
  border-radius: 18px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transition: 500ms var(--cubic-out);
  z-index: 1;
}

.navbar.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(-15px);
}

.navbar-list > li:not(:last-child) {
  margin-block-end: 5px;
}

.navbar-link {
  font-family: var(--fontFamily-heading); /* Poppins */
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: capitalize;
  position: relative;
  padding: 10px 0;
  color: var(--text-white);
  transition: color 0.25s ease;
}
.navbar-link:hover::before {
  width: 36px;   /* rasmga yaqin o‘lcham */
}
.navbar-link::before {
  content: "";
  position: absolute;
  top: -12px;              /* chiziq tepada chiqadi */
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background-color: #8a3ffc; /* binafsha */
  border-radius: 4px;
  transition: width 0.25s ease;
}
.navbar-link:hover::before {
  width: 26px;   /* rasmga yaqin o‘lcham */
}


.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
}

.overlay.active {
  pointer-events: all;
}
/*-----------------------------------*\
  #HERO
\*-----------------------------------*/

.hero {
  padding-block-start: 160px;
  background-image: url("../images/hero-bg.png");

  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.hero .container {
  display: grid;
  gap: 40px;
}
.hero-banner .social-list {
  position: absolute;
  top: 50%;
  left: -26px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 5;
}
.hero-banner .social-link {
  width: 52px;
  height: 52px;
  background: #fff;
  border-radius: 14px;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}



.hero-text {
  margin-block: 25px;
}
.input-field {
  height: 62px;
  padding-inline: 30px;
  background-color: var(--bg-dark-purple);
  border-radius: var(--radius-pill);
  color: var(--text-white);
    font-size: 1.5rem;
  font-family: var(--fontFamily-open-sans);
  letter-spacing: 0.3px;
}
.input-field::placeholder {
  color: var(--text-white-alpha-60);
  font-size: 1.4rem;
  opacity: 0.85;
}

.input-field:focus {
  box-shadow: inset 0 0 0 1px var(--border-white-alpha-10);
}
.hero .btn {
  margin-block-start: 15px;
}


.hero-banner .w-100 {
  max-width: 100%;
}


/* .hero .shape {
  display: none;
} */

/*-----------------------------------*\
  #PROCESS
\*-----------------------------------*/

.process-banner {
  display: none;
}
.process {
  position: relative;
  z-index: 1;
}

.process::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/process-bg.png");
  background-repeat: no-repeat;
  background-position: left;
  background-size: cover;
  pointer-events: none;
  z-index: -1;
}

.process-item .item-icon {
  margin-inline: auto;
  filter: var(--shadow-1);
}

.process-item .item-title {
  margin-block: 20px 10px;
  text-align: center;
}
.process-item .item-text {
  text-align: center;
}

/*-----------------------------------*\
  #UNIVERSITY
\*-----------------------------------*/

.university-card .card-banner {
  border-radius: var(--radius-40);
  margin-block-end: 20px;
}

.university-card:is(:hover, :focus-within) .img-cover {
  transform: scale(1.1);
}

.university-card .card-title {
  margin-block-end: 12px;
  transition: var(--transition-1);
}

.university-card .card-title:is(:hover, :focus-visible) {
  color: var(--text-sunglow);
}

.university .btn {
  margin-block-start: 60px;
  margin-inline: auto;
}
/*-----------------------------------*\
  #FOOTER
\*-----------------------------------*/

.footer {
  background-color: #002855;
  color: var(--text-white);
}
.footer-top {
  padding-block-start: var(--section-spacing);
}
.footer-top .container {
  display: grid;
  gap: 50px;
}
.footer-text {
  margin-block: 15px;
}
.social-list {
  list-style-type: none;
  padding: 0;
  display: flex;
}

.social-list li {
  margin-right: 15px; /* Adjust this value to increase or decrease the space */
}

.social-link {
  text-decoration: none;
  color: inherit;
  font-size: 24px; /* Adjust the font size as needed */
}
.footer .btn {
  font-size: var(--fontSize-5);
  padding-inline: 60px;
  margin-top: 10px;
}

.footer-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.footer-bottom {
  padding-block: 40px;
  border-block-start: 1px solid var(--border-white-alpha-10);
}

.footer-bottom .link {
  display: inline-block;
  color: var(--text-sunglow);
}

.footer-bottom-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-block-start: 20px;
}
/* ================= HERO TYPOGRAPHY FIX ================= */

.hero .h1 {
  font-family: var(--fontFamily-heading);
  font-size: clamp(3.2rem, 6vw, 4.8rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.6px;
  color: #000;
}

.hero-text {
  font-family: var(--fontFamily-open-sans);
  font-size: 1.6rem;
  line-height: 1.75;
  color: #222;
  max-width: 420px;
}


/*-----------------------------------*\
  #MEDIA QUERIES
\*-----------------------------------*/

/* Resposive for large than 575px screen */

@media (min-width: 575px) {
  /* REUSED  STYLE */

  .container {
    max-width: 500px;
    width: 100%;
    margin-inline: auto;
  }

  /* HEADER */
}
@media (max-width: 768px) {
  
  .hero-banner .social-list {
    left: 12px;
  }
}
@media (max-width: 768px) {

  .hero-banner {
    position: relative;
    overflow: visible;
  }

  .hero-banner img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* ICONLAR */
  .hero .shape {
    position: absolute;
    left: -14px;     /* MUHIM: rasm chetidan tashqariga chiqadi */
    

    /* BULARNI OLIB TASHLADIK */
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    background: none;
        width: 76px;
    height: 76px;
    object-fit: contain;
  }



  /* YouTube */
  .hero .shape-1 {
    top: 30%;
    left: 10%;
  }

  /* Telegram */
  .hero .shape-2 {
    top: 56%;
    left: -5%;
  }

  /* Instagram */
  .hero .shape-3 {
    top: 75%;
    left:15%;
  }
}
@media (max-width: 768px) {

  /* Universities rasm balandligini kichraytiramiz */
  .university .img-holder {
    aspect-ratio: 4 / 3;   /* YAXSHI PROPORTSIYA */
    max-height: 260px;
  }

  .university .img-cover {
    object-fit: cover;
  }

  /* Kartani ixchamroq qilish */
  .university-card {
    max-width: 360px;
    margin-inline: auto;
  }
}






/* Resposive for large than 768px screen */

@media (min-width: 768px) {
  /* Custom Property */

  :root {
    /* Typography */

    /* font-size */
    --fontSize-1: 5.5rem;
    --fontSize-2: 4rem;

    /* Spacing */

    --section-spacing: 150px;
  }

  /* REUSED STYLE */
  .container {
    max-width: 720px;
  }
  .section-text {
    max-width: 500px;
    margin-inline: auto;
  }
  .grid-list {
    margin: 0px 25px 0px 25px;
    grid-template-columns: 1fr 1fr;
  }

  .btn-secondary {
    color: var(--text-white);
    height: 52px;
    border: 2px solid var(--border-blue-jeans);
    padding-inline: 40px;
  }

  .btn-secondary:is(:hover, :focus-visible) {
    background-color: var(--bg-blue-jeans);
  }
  /* HEADER */
  .header .btn {
    display: grid;
    margin-inline: auto 30px;
  }

  /* HERO */
  .hero {
    padding-block: 180px;
  }
  .hero-content {
    max-width: 560px;
  }

  .hero .input-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  .hero .btn {
    margin-block-start: 0;
    min-width: max-content;
  }

  .hero-banner {
    position: relative;
    max-width: 540px;
    margin-inline: auto;
  }
  .hero .shape {
    display: block;
    position: absolute;
    filter: var(--shadow-2);
  }
  .hero .shape-1 {
    width: 13%;
    top: 170px;
    left: 50px;
  }
  .hero .shape-2 {
    width: 16%;
    top: 350px;
    left: -30px;
  }
  .hero .shape-3 {
    width: 20%;
    bottom: -15px;
    left: 80px;
  }

  /* Footer */
  .footer-list {
    grid-template-columns: repeat(3, 1fr);
  }
  
}

/* Resposive for large than 992px screen */
@media (min-width: 992px) {
  /* Reused style */

  .container {
    max-width: 960px;
    padding-inline: 40px;
  }
  body.nav-active {
    overflow: auto;
  }

  /* Header */
  .nav-open-btn,
  .overlay {
    display: none;
  }

  .header .logo img {
    width: max-content;
  }

  .navbar,
  .navbar.active {
    all: unset;
    margin-inline-start: 80px;
  }
  .navbar-list {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-left: 160px;
    margin-top: 10px;
  }

  .navbar-list > li:not(:last-child) {
    margin-block-end: 0;
  }
  .navbar-link {
    color: var(--text-white);
    transition: var(--transition-1);
    font-weight: bold;
  }

  .navbar-link:is(:hover, :focus-visible) {
    color: var(--text-white-alpha-60);
  }
  .header .btn {
    margin-inline-end: 0;
  }

  /* HERO */

  .hero .container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  /* PROCESS */

  .process-banner {
    display: block;
    max-width: 540px;
    margin-inline: auto;
  }

  .process .wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
  }

  .process-item {
    text-align: left;
  }

  .process-item .item-icon {
    /* margin-inline: 0; */
    align-items: center;
  }
  .process .grid-list {
    gap: 30px 40px;
  }

  /* University */

  .university .grid-list {
    grid-template-columns: repeat(3, 1fr);
  }

  /* footer */

  .footer-top .container {
    grid-template-columns: 0.5fr 1fr;
  }

  .footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .footer-bottom-list {
    margin-block-start: 0;
    gap: 50px;
  }
}


/* Resposive for large than 1200px screen */
@media (min-width: 1200px) {
  /* Custom Property */
  :root {
    /* Typography */

    --fontSize-1: 7rem;
    --fontSize-3: 2.8rem;
  }

  /* REUSED STYLE */

  .container {
    max-width: 1140px;
  }
  .section-text {
    max-width: 750px;
  }
}
/* Resposive for large than 1400px screen */
@media (min-width: 1400px) {
  /* Custom Proper */

  :root {
    --fontSize-1: 8rem;
  }

  /* Reused style */

  .container {
    max-width: 1350px;
  }
  .section-text {
    margin-block-end: 60px;
  }

  /* Hero */

  .hero-text {
    font-size: 1.8rem;
    margin-block: 40px;
  }

  /* Process */

  .process .wrapper {
    grid-template-columns: 0.7fr 1fr;
    gap: 130px;
  }

  .process-item .item-icon {
    width: 80px;
  }
  .process-item .item-title {
    margin-block: 25px 15px;
  }

  .process .grid-list {
    row-gap: 50px;
  }
}
