:root {
  --dark: #101010;
  --nav-card-bg-color: linear-gradient(to right, #232526 0%, #414345 100%);
  --nav-card-btn-color: linear-gradient(100deg, #e94e4e 0%, #faa997 100%);
  --font-size: 1em;
  --font-color: #0f111ace;
  --light-bg-color: azure;
}

@font-face {
  font-family: Poppins;
  src: url(../fonts/Poppins-Regular.ttf);
  font-style: normal;
  font-weight: normal;
}

* {
  box-sizing: border-box;
  font-size: var(--font-size);
  margin: 0;
  padding: 0;
}

::selection {
    background: #d67063;
    color: white;
}


body {
  width: 100%;
  min-width: 250px;
  font-size: var(--font-size);
  background-color: var(--dark);
  color: var(--light-bg-color);
  font-family: "Poppins", sans-serif;
}

header {
  width: 100%;
  height: 90px;
  position: fixed;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-weight: 500;
}

nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1700px;
  padding-inline: 20px;
}

a {
  text-decoration: none;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
}

.logo a {
  display: block;
  height: 100%;
  width: auto;
}

.logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}

.links {
  background-color: var(--light-bg-color);
  padding: 15px 60px;
  display: flex;
  gap: 30px;
  border-radius: 50px;
}

.links a {
  font-size: 1.1rem;
  color: var(--font-color);
  transition-duration: 0.3s;
}

.links a:hover,
.admission:hover {
  color: rgb(31, 90, 255);
}

.admission {
  padding: 18px 20px;
  display: flex;
  gap: 5px;
  border-radius: 50px;
  align-items: center;
  color: var(--light-bg-color);
  transition-duration: 0.3s;
}

.admission .arrow-icon {
  width: 28px;
  margin-top: 4px;
  cursor: pointer;
}

.arrow-icon img {
  transition: all 0.8s ease-in-out;
}

.admission:hover .arrow-icon img {
  transform: rotate(45deg);
}

.admission img {
  width: 100%;
}

.hamburger {
  width: 40px;
  height: 35px;
  display: none;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  overflow: hidden;
  z-index: 20;
}

.hamburger img,
.hamburger svg {
  width: 35px;
  height: 35px;
  transition: transform 0.3s ease-in-out;
}

.links a.active {
  color: rgb(31, 90, 255) !important;
  font-weight: bold;
}

.admission.active {
  color: rgb(31, 90, 255) !important;
  font-weight: bold;
}


@media (max-width: 1100px) {
  .links {
    padding: 18px 30px;
    gap: 20px;
  }

  .links a {
    font-size: 1rem;
  }

  .admission {
    padding: 18px 15px;
  }
}

@media (max-width: 820px) {
    .links a.active {
    background: #f14f4f !important;
    color: white !important;
  }

  .admission.active {
    background: #f14f4f !important;
    color: white !important;
  }
  
  .hamburger {
    display: flex;
  }

  .links {
    padding: 0;
    display: none;
    visibility: hidden;
    align-items: center;
    flex-direction: column;
    gap: 15px;
    position: absolute;
    padding: 20px;
    width: 260px;
    height: 360px;
    border-radius: 10px 10px 0 0;
    background: var(--nav-card-bg-color);
    right: 10px;
    top: 20px;
    z-index: 10;
    transform: translateX(100%);
    transition: transform 0.5s ease-in-out;
  }

  .links.active {
    transform: translateX(0);
    visibility: visible;
  }

  .links a {
    width: 100%;
    font-size: 14px;
    padding: 7px 0;
    text-align: center;
    border-radius: 10px;
    box-sizing: border-box;
    background: var(--nav-card-btn-color);
    color: var(--light-bg-color);
    background-size: 200% auto;
  }

  .links a:hover,
  .admission:hover {
    background: #f14f4f;
    color: white;
  }

  .first-link {
    margin-top: 40px;
  }

  .admission {
    display: none;
    visibility: hidden;
    position: absolute;
    right: 10px;
    top: 380px;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transform: translateX(100%);
    transition: transform 0.5s ease-in-out;
    border-radius: 0 0 10px 10px;
    text-align: center;
    padding: 0;
    width: 260px;
    background: var(--nav-card-btn-color);
  }

  .admission.active {
    transform: translateX(0);
    visibility: visible;
  }
}

@media (max-width: 700px) {
  header {
    height: 70px;
  }

  .logo {
    height: 60px;
  }

  .links {
    margin-top: -10px;
  }

  .admission {
    top: 370px;
  }
}

@media (max-width: 400px) {

  .hamburger img,
  .hamburger svg {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease-in-out;
  }
}