/* importing google fonts  */

@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

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

:root {
  /* colors */
  --color-primary: #1555a9;
  --color-primary-vairant: #20ccd2;

  --color-gray-0: #f3f6f7;
  --color-gray-50: #dedee6;
  --color-gray-100: #bdcdd4;
  --color-gray-200: #a0abb9;
  --color-gray-300: #8ea3ac;
  --color-gray-400: #7a8b93;
  --color-gray-500: #5a6d75;
  --color-gray-600: #3f4d53;
  --color-gray-700: #2a3439;
  --color-gray-800: #182023;
  --color-gray-900: #08080c;

  --color-danger: #c72156;
  --color-success: #06c4c4;
  --color-info: #ffcd56;
  --color-purple: rgb(166, 27, 191);

  --transition: all 300ms ease;

  --radius-1: 0.4rem;
  --radius-2: 0.8rem;
  --radius-3: 1.2rem;
  --radius-4: 1.6rem;
  --radius-5: 2rem;
  --radius-6: 4rem;

  --container-w-lg: 84%;
  --container-w-md: 92%;
}

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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}

li {
  list-style: none;
}

/* a, */
img,
/* span, */
input,
select
/* ,button */ {
  display: block;
}

a {
  display: inline-block;
  text-decoration: none;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

input,
button,
select {
  border: none;
  background: none;
  font: inherit;
}

button {
  cursor: pointer;
}

input,
select {
  /* width: 100%; */
  outline: none;
}

address {
  font-style: normal;
}

select {
  appearance: none;
}

html {
  font-size: 1ppx;
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  background: var(--color-gray-50);
  color: var(--color-gray-600);
  font-weight: 500;
  line-height: 1.6;
}

/*-----------------------------------*\
  #REUSED STYLE
\*-----------------------------------*/

.dark {
  --color-gray-0: #080b0c;
  --color-gray-50: #182023;
  --color-gray-100: #2a3439;
  --color-gray-200: #334144;
  --color-gray-300: #576471;
  --color-gray-400: #707d8b;
  --color-gray-500: #8e9cac;
  --color-gray-600: #a6acb1;
  --color-gray-700: #c8ccd2;
  --color-gray-800: #e7e6ed;
  --color-gray-900: #f9fbfc;
}

.container {
  width: var(--container-w-lg);
  margin-inline: auto;
  /* border: 1px solid red; */
}

a {
  color: var(--color-gray-900);
  transition: var(--transition);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-gray-900);
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

h1 {
  font-size: 2.8rem;
}

h2 {
  font-size: 1.8rem;
}

h3 {
  font-size: 1.1rem;
}

h4 {
  font-size: 0.92rem;
}

h5 {
  font-size: 0.86rem;
}

h6 {
  font-size: 0.7rem;
}

button {
  cursor: pointer;
  transition: var(--transition);
}

.btn {
  display: inline-block;
  width: fit-content;
  padding: 1.3rem 2.5rem;
  background: var(--color-gray-0);
  font-weight: 600;
  text-transform: uppercase;
  border-radius: var(--radius-3);
  box-shadow: 0 0.7rem 0 var(--color-gray-100);
}

.btn.primary {
  background: var(--color-primary);
  color: var(--color-gray-0);
}

.btn:hover {
  background-color: var(--color-gray-900);
  color: var(--color-gray-0);
  box-shadow: none;
}

/*-----------------------------------*\
  #HEADER 
\*-----------------------------------*/

header {
  background-color: var(--color-primary);
  box-shadow: 0 0.5rem 0 rgba(0, 0, 0, 0.1);
  min-width: 100vw;
  height: 4rem;
  display: grid;
  place-items: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
}

body.dark header {
  box-shadow: 0 0.5rem 0 rgba(255, 255, 255, 0.1);
}

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

.nav-content {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.nav-menu {
  display: flex;
  gap: 3.5rem;
  align-items: center;
}

.nav-menu-open {
  font-size: 1.72rem;
  color: #f3f6f7;
  display: none;
}

.nav-menu-close {
  font-size: 2rem;
  color: #f3f6f7;
  display: none;
}

.theme-btn {
  color: #f3f6f7;
  font-size: 1.5rem;
}

.theme-btn:hover {
  color: var(--color-primary-vairant);
  font-size: 1.5rem;
}

header a {
  color: #f3f6f7;
}

header a:hover {
  color: var(--color-primary-vairant);
}

header a.active {
  color: var(--color-primary-vairant);
}

header .header-logo {
  font-weight: 800;
  font-size: 1.3rem;
}

/*-----------------------------------*\
  #PAGE HEADER
\*-----------------------------------*/

.page-header {
  height: 15rem;
  background: url(./assets/header.jpg) center center/cover;
  display: grid;
  place-items: center;
  margin: 4rem 0;
  position: relative;
}

.page-header::before {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  content: "";
  background: #030f1b;
  opacity: 0.75;
}

.page-header-content {
  width: 50%;
  text-align: center;
  z-index: 1;
}

.page-header-content * {
  color: #fff;
}

.page-header-content h2 {
  margin-bottom: 0.7rem;
}

/*-----------------------------------*\
  #FOOTER
\*-----------------------------------*/

footer {
  border-top: 0.5rem solid var(--color-gray-0);
}

footer * {
  color: var(--color-gray-900);
}

.footer-container {
  padding: 5rem 0 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-menu,
.footer-social {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.footer-social a {
  background-color: var(--color-gray-0);
  height: 3rem;
  aspect-ratio: 1/1;
  border-radius: var(--radius-3);
  display: grid;
  place-items: center;
}

.footer-social a i {
  font-size: 1.2rem;
  color: var(--color-gray-900);
}

.footer-copyright {
  font-size: 15px;
  text-align: center;
  display: block;
  padding: 1.5rem;
  border-top: 1px solid var(--color-gray-200);
}

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

/* ----------------- MEDIA QUERIES (large screens) ----------------- */

@media (max-width: 991px) {
  /* header  */

  .nav-content {
    gap: 3rem;
  }

  .nav-menu {
    position: fixed;
    top: 4rem;
    right: 4%;
    flex-direction: column;
    gap: 0;
    width: 16rem;
    display: none;
    perspective: 200px;
  }

  .nav-menu a {
    background: linear-gradient(var(--color-gray-800), var(--color-gray-700));
    color: var(--color-gray-0);
    height: 4rem;
    width: 100%;
    display: grid;
    place-items: center;
    box-shadow: -2rem 4rem 3rem rgba(0, 0, 0, 0.2);
    animation: animation1 300ms ease forwards;
    transform: rotateX(90deg);
    opacity: 0;
    transform-origin: top;
  }

  .nav-menu a:nth-child(2) {
    animation-delay: 200ms;
  }

  .nav-menu a:nth-child(3) {
    animation-delay: 450ms;
  }

  .nav-menu a:nth-child(4) {
    animation-delay: 650ms;
  }

  .nav-menu a:nth-child(5) {
    animation-delay: 800ms;
  }

  .nav-menu a:nth-child(6) {
    animation-delay: 950ms;
  }

  @keyframes animation1 {
    to {
      transform: rotateX(0);
      opacity: 1;
    }
  }

  .nav-menu a.active {
    background: var(--color-primary);
    color: var(--color-gray-0);
  }

  .theme-btn {
    display: inline-block;
  }

  .nav-menu-open {
    display: inline-block;
  }
}

/* ----------------- MEDIA QUERIES (medium screens) ----------------- */

@media (max-width: 767px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  h3 {
    font-size: 1rem;
  }

  .btn {
    padding: 1.5rem;
    font-size: 0.8rem;
  }

  .container {
    width: var(--container-w-md);
  }

  /* footer  */

  .footer-container {
    gap: 5rem;
  }

  .footer-menu {
    flex-direction: column;
    gap: 1.5rem;
  }

  .footer-social {
    gap: 2rem;
  }

  /* page header  */

    .page-header{
    height: 20rem;
  }

  .page-header-content{
    width: var(--container-w-md);
  }
}

/* ----------------- MEDIA QUERIES (small screens) ----------------- */

@media screen and (max-width: 479px) {
  /* footer  */

  .footer-container {
    flex-direction: column;
    gap: 5rem;
  }
}