@import url("https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap");

@font-face {
  font-family: "IranSans";
  src: url("../font/IranSans.ttf") format("truetype");
}

:root {
  --bg-color: #ffffff;
  --text-color: #4b515a;
  --paragraph-color: #8e939b;
  --accent-color: #3152d3;
}
* {
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "IranSans", sans-serif;
}
a {
  text-decoration: none;
}
body {
  position: relative;
  background-color: var(--bg-color);
}
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: #fafafa;
}

::-webkit-scrollbar-thumb {
  background-color: var(--accent-color);
  border-radius: 10px;
}

.header_container {
  background-color: white;
  top: 0;
  position: fixed;
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: center;
  padding: 20px 5px;
  z-index: 60;
  box-shadow: rgba(0, 0, 0, 0.158) 0px 0px 40px;
}

.header_container header {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 80%;
  justify-content: space-between;
}

header a .logo {
  width: 140px;
  height: auto;
}

.right_section {
  flex: 1;
  align-items: center;
  display: flex;
}

.right_section span {
  display: flex;
  gap: 20px;
  margin-right: 60px;
}

.right_section span a {
  color: var(--text-color);
}

.right_section span a {
  font-size: 15px;
  position: relative;
  padding: 5px 10px;
}

.right_section span a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: all 0.3s ease-in-out;
}

.right_section span a:hover {
  color: #000;
}

.right_section span a:hover::after {
  width: 100%;
  left: 0;
}

.header_container > header > a {
  display: flex;
  align-items: center;
}

.left_section > a {
  font-size: 14px;
  margin-right: 70px;
  color: var(--text-color);
  padding: 10px 30px;
  background-color: transparent;
  border-radius: 8px;
  border: 1px solid var(--paragraph-color);
  position: relative;
  overflow: hidden;
  transition: color 0.2s ease-in-out, border 0s ease-in-out;
}

.left_section > a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  border-radius: 6px;
  width: 100%;
  height: 0;
  background-color: var(--accent-color);
  transition: height 0.2s ease-in-out;
  z-index: -1;
}

.left_section > a:hover::before {
  height: 100%;
}
.left_section > a:hover {
  color: #fff;
}

.burger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.burger span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--text-color);
  border-radius: 2px;
  transition: background 0.3s;
}

.sidebar {
  position: fixed;
  top: 0;
  right: -250px;
  width: 250px;
  height: 100%;
  background: white;
  box-shadow: rgba(0, 0, 0, 0.15) 0px 0px 20px;
  transition: right 0.3s ease-in-out;
  z-index: 100;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.sidebar.open {
  right: 0;
}

.sidebar .close-btn {
  cursor: pointer;
  font-size: 30px;
  display: block;
  text-align: left;
}
.mini_logo {
  margin: 0 auto;
  width: 180px;
  margin-bottom: 60px;
}

.sidebar nav a {
  display: block;
  margin-bottom: 35px;
  text-decoration: none;
  color: var(--text-color);
  font-size: 16px;
  padding-right: 20px;
}

.hero_section {
  margin-top: 95px;
  width: 100%;
  height: 450px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-image: url(../img/banner.png);
  background-position: top;
  background-repeat: no-repeat;
  background-size: cover;
}

h1 {
  font-optical-sizing: auto;
  color: white;
  text-align: center;
  font-size: 47px;
  font-weight: 600;
  margin-bottom: 50px;
  font-style: normal;
}

.backlinks {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(0, 0, 0, 0.178);
  backdrop-filter: blur(5px);
  padding: 10px;
  border-radius: 10px;
  box-shadow: rgba(250, 250, 250, 0.062) 0px 0px 29px 0px;
}
.backlinks a {
  font-size: 14px;
  color: white;
  transition: all 0.2s;
}
.backlinks a:hover {
  color: #bbbbbb;
}
.backlinks a:nth-child(2):hover {
  background-color: #e0e0e0;
}
.backlinks a:nth-child(2) {
  color: rgb(0, 0, 0);
  background-color: white;
  padding: 2px 25px;
  border-radius: 4px;
  font-size: 14px;
}

.contact_section {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  flex-direction: row;
  gap: 30px;
  margin: 0 auto;
  width: 95%;
}
.contact_item {
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid rgb(219, 219, 219);
}
h2 {
  text-align: center;
  font-size: 24px;
  color: var(--text-color);
  width: fit-content;
  margin: 60px auto 50px auto;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--accent-color);
}
.top_layer {
  display: flex;
  gap: 10px;
  align-items: center;
}
.top_layer h3,
.contact_item > h3 {
  font-weight: 500;
  color: var(--text-color);
  font-size: 15px;
}
.top_layer svg {
  background-color: #6c88f836;
  padding: 10px;
  width: 55px;
  height: 55px;
  border-radius: 14px;
  color: var(--accent-color);
}
footer {
  margin-top: 30px;
  box-shadow: rgba(0, 0, 0, 0.158) 0px 0px 40px;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 40px 0;
  background-color: #fafafa;
}

.footer_container {
  margin: 0 auto;
  width: 75%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.info_container,
.link_container {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.info_container {
  gap: 10px;
}

.footer_content {
  gap: 20px;
  display: flex;
  flex-direction: column;
  text-align: right;
}

.footer_content a {
  font-size: 14px;
  color: var(--text-color);
  transition: all 0.2s ease-in-out;
}

.footer_content img {
  width: 250px;
  height: auto;
}
.link_container:nth-child(2) {
  gap: 10px;
}
.footer_content h4 {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-color);
}
.location {
  border-radius: 14px;
  width: 350px;
  height: 250px;
  margin-left: 20px;
}
.footer_content a:hover {
  color: var(--accent-color);
}

.footer_content:nth-child(1) {
  gap: 120px;
}

.footer_content h4 svg {
  vertical-align: middle;
  width: 25px;
}
.footer_content p {
  font-size: 14px;
}
.footer_content h4:nth-child(2) svg,
.footer_content h4:nth-child(3) svg {
  width: 23px;
}

.footer_content:nth-child(1) p {
  color: var(--text-color);
}
@media (max-width: 1400px) {
  .contact_section {
    flex-direction: column;
  }
}

@media (max-width: 1120px) {
  header {
    min-width: 90%;
  }
  .left_section {
    display: none;
  }
  .right_section {
    display: none;
  }
  .burger {
    display: flex;
  }
}
@media (max-width: 992px) {
  /* footer */
  .footer_container {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 90%;
    text-align: center;
  }
  .footer_content img {
    width: 200px;
  }
  .info_container,
  .link_container {
    text-align: center;
    align-items: center;
  }
  .footer_content {
    text-align: center;
  }
  .footer_content:nth-child(1) {
    flex-direction: column;
    align-items: center;
  }
  .footer_content:nth-child(1) {
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .finance_table th,
  .finance_table td {
    padding: 8px;
    font-size: 12px;
  }
  .hero_section {
    height: 300px;
    margin-top: 65px;
  }
  .hero_section h1 {
    margin-top: 40px;
    padding: 0px 40px;
    font-size: 30px;
    text-align: center;
    margin-bottom: 30px;
  }
  .feature_container {
    padding: 0px 20px;
    gap: 10px;
    font-size: 13px;
  }
  .finance_section h2 {
    font-size: 17px;
  }
  .hero_section p {
    width: 80%;
    padding: 20px;
    font-size: 13px;
  }
  .filter-bar {
    justify-content: space-between;
  }
  .filter-group label {
    font-weight: bold;
    font-size: 12px;
    color: #333;
  }
  .filter-select {
    font-size: 12px;
  }
  .contact_section {
    width: 90%;
  }
  .contact_item {
    width: 100%;
    padding: 10px 10px;
  }
  .top_layer h3,
  .contact_item > h3 {
    font-size: 12px;
  }
  .top_layer svg {
    width: 50px;
    height: 50px;
  }
  .location {
    margin-left: 0;
  }
}
@media (max-width: 480px) {
  header a .logo {
    width: 100px;
  }
}
