@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap");

:root {
  --header-height: 3.5rem;
  --body-font: "Montserrat", sans-serif;
  --black-color: hsl(220, 24%, 12%);
  --black-color-light: hsl(220, 24%, 15%);
  --black-color-lighten: hsl(220, 24%, 18%);
  --white-color: #fff;
  --body-color: hsl(220, 100%, 97%);
  --normal-font-size: 0.938rem;
  --font-regular: 400;
  --font-semi-bold: 600;
  --z-tooltop: 10;
  --z-fixed: 100;
  --primary-color: #3e2093;
}

@media screen and (min-width: 1024px) {
  :root {
    --normal-font-size: 1rem;
  }
}

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

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--black-color);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}


.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--black-color);
  box-shadow: 0 2px 16px hsla(220, 32%, 8%, 0.3);
  z-index: var(--z-fixed);
}

.nav {
  height: var(--header-height);
}

.nav__logo img {
  display: inline-flex;
  align-items: center;
  width: 120px;
  height: auto;
}

.nav__data {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__toggle {
  position: relative;
  width: 32px;
  height: 32px;
  color: var(--white-color);
}

.nav__burger,
.nav__close {
  position: absolute;
  inset: 0;
  margin: auto;
  font-size: 1.25rem;
  cursor: pointer;
  transition: opacity 0.1s, transform 0.4s;
}

.nav__close {
  opacity: 0;
}

@media screen and (max-width: 1118px) {
  .nav__menu {
    position: absolute;
    left: 0;
    top: 2.5rem;
    width: 100%;
    background-color: var(--black-color);
    height: calc(100vh - 3.5rem);
    overflow: auto;
    pointer-events: none;
    opacity: 0;
    transition: top 0.4s, opacity 0.3s;
  }

  .show-menu {
    opacity: 1;
    top: 3.5rem;
    pointer-events: initial;
  }
}

.nav__link {
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s;
}

.nav__link:hover {
  background-color: var(--black-color-light);
}


.dropdown__item {
  cursor: pointer;
}

.dropdown__arrow {
  font-size: 1.25rem;
  transition: transform 0.4s;
}

.dropdown__menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out;
}

.dropdown__item:hover .dropdown__menu {
  max-height: 1000px;
}

.dropdown__item:hover .dropdown__arrow {
  transform: rotate(180deg);
}

.dropdown__link {
  padding: 1rem 1.25rem 1rem 2.5rem;
  color: var(--white-color);
  background-color: var(--black-color-light);
  display: flex;
  align-items: center;
  column-gap: 0.5rem;
  transition: background-color 0.3s;
}


.contact-wrapper {
  margin-top: 120px;
  margin-bottom: 60px;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
}

.contact-box {
  width: 100%;
  max-width: 1100px;
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-box .content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.left-side {
  width: 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.left-side::after {
  content: "";
  position: absolute;
  height: 70%;
  width: 1px;
  background: #dfdfdf;
  right: -20px;
  top: 15%;
}

.left-side .details {
  margin: 1.5rem 0;
  text-align: center;
}

.left-side .details i {
  font-size: 25px;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.left-side .details .topic {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 4px;
}

.left-side .details .text-one {
  font-size: 14px;
  color: #707070;
  word-break: break-word;
}


.right-side {
  width: 65%;
}

.right-side .topic-text {
  font-size: 28px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.right-side p {
  margin-bottom: 20px;
  line-height: 1.6;
}

.input-box {
  height: 50px;
  width: 100%;
  margin-bottom: 15px;
}

.input-box input,
.input-box textarea {
  height: 100%;
  width: 100%;
  outline: none;
  border: none;
  border-radius: 6px;
  background: #f0f1f8;
  padding: 0 15px;
  font-family: var(--body-font);
  font-size: 15px;
}

.message-box {
  min-height: 110px;
}

.message-box textarea {
  padding-top: 15px;
  resize: none;
}

.button {
  display: inline-block;
}

.button input[type="submit"] {
  color: #fff;
  font-size: 18px;
  padding: 10px 30px;
  border-radius: 6px;
  background: var(--primary-color);
  cursor: pointer;
  border: none;
  transition: 0.3s;
}

.button input[type="submit"]:hover {
  background: #5029bc;
}

/*=============== FOOTER ===============*/
.footer {
  background: #0f0b2b;
  color: #dcd9ff;
  padding: 4rem 0 2rem;
}

.footer__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
}

.footer__logo {
  width: 140px;
  margin-bottom: 15px;
}

.footer__contact i {
  color: #ffcc00;
  margin-right: 8px;
}

.footer__social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer__social a {
  font-size: 1.5rem;
  color: #dcd9ff;
}

.footer__bottom {
  text-align: center;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
}


@media screen and (max-width: 800px) {
  .contact-box .content {
    flex-direction: column;
  }

  .left-side {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 30px;
  }

  .left-side::after {
    display: none;
  }

  .left-side .details {
    margin: 10px 20px;
  }

  .right-side {
    width: 100%;
  }

  .right-side .topic-text {
    text-align: center;
  }
}

@media screen and (max-width: 480px) {
  .left-side {
    flex-direction: column;
  }

  .contact-box {
    padding: 25px;
  }
}


@media screen and (min-width: 1118px) {
  .nav {
    height: calc(var(--header-height) + 2rem);
    display: flex;
    justify-content: space-between;
  }

  .nav__toggle {
    display: none;
  }

  .nav__list {
    display: flex;
    column-gap: 3rem;
    height: 100%;
  }

  .nav__link {
    height: 100%;
    padding: 0;
  }

  .nav__link:hover {
    background: none;
    color: #ffcc00;
  }

  .dropdown__menu {
    position: absolute;
    top: 6rem;
    opacity: 0;
    pointer-events: none;
    background-color: var(--black-color);
  }

  .dropdown__item:hover .dropdown__menu {
    top: 5rem;
    opacity: 1;
    pointer-events: initial;
  }
}
@media screen and (max-width: 1117px) {
  .dropdown__menu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
 
  }

  .dropdown__item.is-open .dropdown__menu {
    max-height: 1000px; 
    opacity: 1;
    pointer-events: auto; 
  }


  .dropdown__item.is-open .dropdown__arrow {
    transform: rotate(180deg);
  
}}