@import url(https://db.onlinewebfonts.com/c/ae238c3ee498c52a23aab0d9f5e94d6b?family=dana-fanum+regular);

/* Start Global Variables */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "dana-fanum regular";
  text-decoration: none;
  scroll-behavior: smooth;
  outline: none;
}

:root {
  --bg-color: #1e3a8a;
  --second-bg-color: #e1b373;
  --text-color: #fff;
  --main-color: #ffd700;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
  scrollbar-width: none;
}

body {
  background: rgb(26, 26, 26);
  background: linear-gradient(
    98deg,
    rgba(26, 26, 26, 1) 0%,
    rgb(22, 1, 93) 100%
  );
  color: var(--text-color);
  min-height: 100vh;
  margin: 0;
}

section {
  min-height: 100vh;
  padding: 10rem 9% 2rem;
}

/* End Global Variables */

/* Start Header */
.header {
  position: fixed;
  top: 5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 75%;
  height: 11%;
  padding: 3rem;
  display: flex;
  background: rgba(255, 255, 255, 0.052);
  border: 3px solid rgba(255, 255, 255, 0.171);
  box-shadow: 0 0 10px rgba(215, 214, 214, 0.022);
  backdrop-filter: blur(20px);
  border-radius: 50px;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.logo {
  font-size: 3.8rem;
  color: #1e3a8a;
  font-weight: 600;
}

.logo span {
  color: var(--second-bg-color);
}

.navbar {
  margin-left: 8rem;
}

.navbar a {
  font-size: 3rem;
  color: var(--text-color);
  margin-right: 7rem;
  transition: 0.3s;
  text-decoration: none;
}

#login {
  cursor: pointer;
  position: relative;
  padding: 8px 18px;
  font-size: 16px;
  color: var(--text-color);
  border: 2px solid var(--bg-color);
  border-radius: 34px;
  background-color: var(--bg-color);
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
}

#login a {
  text-decoration: none;
  color: var(--text-color);
}

#login::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 50px;
  height: 50px;
  border-radius: inherit;
  scale: 0;
  z-index: -1;
  background-color: var(--second-bg-color);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

#login:hover::before {
  scale: 3;
}

#login:hover {
  color: #212121;
  scale: 1.1;
  border: 2px solid var(--second-bg-color);
  box-shadow: 0 0px 20px var(--second-bg-color);
}

#login:active {
  scale: 1;
}

#menu-icon {
  font-size: 3.6rem;
  color: var(--text-color);
  display: none;
  position: relative;
  z-index: 102;
  cursor: pointer;
  transition: all 0.3s ease;
}

#login-icon {
  font-size: 3.6rem;
  color: var(--text-color);
  display: none;
}

/* Server Section Styles */
.server-section {
  text-align: center;
  padding: 19rem 2rem 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Switch Button Styles */
.switch-container {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.switch {
  position: relative;
  display: inline-block;
  width: 200px;
  height: 40px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch label {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--second-bg-color);
  border-radius: 20px;
  transition: 0.4s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
}

.switch label:before {
  content: "";
  position: absolute;
  width: 92px;
  height: 32px;
  background: var(--second-bg-color);
  border-radius: 16px;
  top: 2px;
  left: 2px;
  transition: 0.4s;
  z-index: 1;
}

.switch label span {
  color: var(--bg-color);
  font-size: 1.6rem;
  font-weight: 600;
  z-index: 2;
  transition: color 0.4s;
}

.switch input:checked + label:before {
  transform: translateX(100px);
}

.switch input:checked + label .iran {
  color: #1e3a8a;
}

.switch input:not(:checked) + label .europe {
  color: #1e3a8a;
}

.switch input:checked + label .europe {
  color: var(--text-color);
}

.switch input:not(:checked) + label .iran {
  color: var(--text-color);
}

.server-title {
  font-size: 4rem;
  margin-bottom: 2rem;
  color: var(--text-color);
}

.server-description {
  font-size: 1.8rem;
  line-height: 1.8;
  margin-bottom: 5rem;
  color: var(--text-color);
  padding: 0 15%;
  max-width: 1200px;
}

.server-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  width: 100%;
  max-width: 1400px;
  padding: 0 2rem;
}

.iran-servers,
.europe-servers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  width: 100%;
}

.europe-servers {
  display: none;
}

.server-card {
  background: rgba(22, 22, 36, 0.8);
  border-radius: 2rem;
  padding: 4rem 3rem;
  margin: 0 auto;
  width: 100%;
  max-width: 320px;
  height: auto;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.server-card:hover {
  transform: translateY(-5px);
}

.server-card .icon {
  font-size: 4rem;
  color: var(--second-bg-color);
  margin-bottom: 2rem;
}

.server-card h3 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.server-card p {
  font-size: 1.6rem;
  margin-bottom: 2rem;
  color: var(--text-color);
}

.server-card .price {
  font-size: 2rem;
  color: var(--second-bg-color);
  margin-bottom: 2rem;
  font-weight: bold;
}

.server-card .more-info {
  display: inline-block;
  padding: 1rem 2.8rem;
  background: #0066ff;
  color: var(--text-color);
  border-radius: 4rem;
  font-size: 1.6rem;
  font-weight: 600;
  transition: 0.3s;
  border: none;
  cursor: pointer;
}

.server-card .more-info:hover {
  background: #0052cc;
  transform: scale(1.05);
}

.server-card .details {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(22, 22, 36, 0.95);
  backdrop-filter: blur(5px);
  padding: 2rem;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: center;
}

.server-card.active .details {
  transform: translateY(0);
}

.details h4 {
  color: var(--second-bg-color);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.details ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.details li {
  color: var(--text-color);
  font-size: 1.4rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.details li i {
  color: var(--second-bg-color);
  margin-left: 1rem;
}

.details .close-details {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--text-color);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.details .close-details:hover {
  color: var(--second-bg-color);
}

.server-card .order-btn {
  background: #0066ff;
  color: var(--text-color);
  border: none;
  padding: 1.5rem;
  border-radius: 50px;
  font-size: 1.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 2rem;
}

.server-card .order-btn:hover {
  background: #0052cc;
  transform: scale(1.05);
}

.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 275px;
  z-index: 1000;
}

.wrapper {
  width: 100%;
  margin-bottom: 10px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.main {
  margin: 12px 16px 12px 56px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.main::before {
  font-size: 24px;
  position: absolute;
  top: 50%;
  left: -40px;
  transform: translateY(-50%);
}

.success-icon::before {
  content: "\f058";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #47cf73;
}

.info-icon::before {
  content: "\f05a";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #2f83ff;
}

.warning-icon::before {
  content: "\f071";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #ffc107;
}

.error-icon::before {
  content: "\f06a";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #dc3545;
}

.success {
  background-color: rgba(20, 20, 20, 0.85);
  color: #fff;
  padding: 10px;
  border-left: 4px solid #47cf73;
}

.info {
  background-color: rgba(20, 20, 20, 0.85);
  color: #fff;
  padding: 10px;
  border-left: 4px solid #2f83ff;
}

.warning {
  background-color: rgba(20, 20, 20, 0.85);
  color: #fff;
  padding: 10px;
  border-left: 4px solid #ffc107;
}

.error {
  background-color: rgba(20, 20, 20, 0.85);
  color: #fff;
  padding: 10px;
  border-left: 4px solid #dc3545;
}

/* Responsive adjustments */
@media (max-width: 1948px) {
  html {
    font-size: 55%;
  }
}

@media (max-width: 1800px) {
  html {
    font-size: 53%;
  }

  .header {
    width: 76%;
  }

  .navbar a {
    font-size: 2.6rem;
    margin-right: 5rem;
  }
}

@media (max-width: 1600px) {
  .header {
    position: absolute;
    top: 4rem;
    width: 98%;
  }
}

@media (max-width: 1200px) {
  .server-description {
    padding: 0 5%;
  }

  .server-cards {
    gap: 2rem;
  }
}

@media (max-width: 991px) {
  section {
    padding: 10rem 3% 2rem;
  }

  #menu-icon {
    display: block;
  }

  .header {
    position: fixed;
    top: 3rem;
    padding: 2rem 3%;
    background: rgba(26, 26, 26, 0.345);
    backdrop-filter: blur(20px);
  }

  #menu-icon {
    display: block;
    font-size: 3.6rem;
    color: var(--text-color);
    cursor: pointer;
  }

  #login {
    display: none;
  }
  .navbar {
    position: fixed;
    top: -28px;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(26, 26, 26, 0.808);
    transition: 0.5s ease;
    z-index: 999;
  }

  .navbar.active {
    z-index: 1000;
  }

  .navbar.active {
    right: -4%;
  }

  .navbar a {
    display: block;
    font-size: 1.8rem;
    margin: 1.5rem 0;
    padding: 1rem 3rem;
    text-align: right;
    color: var(--text-color);
  }

  .navbar a:hover {
    color: var(--second-bg-color);
  }

  .menu-links {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }

  #menu-icon {
    font-size: 3rem;
    z-index: 1000;
    position: fixed;
  }

  .home {
    flex-direction: column;
  }

  .navbar .logo {
    margin-bottom: 3rem;
    order: -1;
  }

  #login-icon {
    position: relative;
    top: 0.5rem;
    display: block;
  }

  .logo {
    font-size: 3.8rem;
    color: #1e3a8a;
    font-weight: 600;
    /* margin-bottom: 3rem; */
    text-align: center;
    width: 100%;
  }

  #menu-icon {
    display: block;
  }

  #menu-icon.bx-x {
    position: fixed;
    top: 5px;

    z-index: 1001;
  }

  .navbar.active {
    right: -4%;
    z-index: 1000;
  }

  .services-container {
    padding: 0 2rem;
  }

  .service-box {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .server-section {
    padding-top: 12rem;
  }

  .server-title {
    font-size: 3rem;
  }

  .server-description {
    font-size: 1.6rem;
    padding: 0 2rem;
  }

  .server-card {
    padding: 3rem 2rem;
  }

  .server-section {
    padding: 15rem 1rem 2rem;
  }

  .server-title {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
  }

  .server-description {
    font-size: 1.4rem;
    padding: 0 1rem;
    margin-bottom: 3rem;
  }

  .server-cards {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
  }

  .server-card {
    max-width: 100%;
    padding: 2.5rem 2rem;
    margin: 0;
  }

  .server-card .icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
  }

  .server-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .server-card p {
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }

  .server-card .price {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  .server-card .more-info {
    padding: 0.8rem 2rem;
    font-size: 1.4rem;
  }

  .details h4 {
    margin-top: 1rem;
    margin-right: 2rem;
    font-size: 1.8rem;
  }

  .details li {
    font-size: 1.4rem;
  }
  .details li i {
    margin-right: 1rem;
  }

  .details ul {
    display: flex;
    flex-wrap: wrap;
  }

  .server-card .order-btn {
    width: 80%;
    margin-bottom: 2rem;
    margin-right: 3rem;
    padding: 1.1rem;
  }
}

@media (max-width: 380px) {
  .server-section {
    padding: 12rem 0.5rem 2rem;
  }

  .server-title {
    font-size: 2.4rem;
  }

  .server-description {
    font-size: 1.3rem;
  }

  .server-card {
    padding: 2rem 1.5rem;
  }
}

#cart-icon {
  font-size: 3.5rem;
  color: var(--text-color);
  cursor: pointer;
  position: relative;
  margin-left: 2rem;
  display: inline-block;
  transition: 0.3s ease;
}

#cart-icon:hover {
  color: var(--second-bg-color);
  transform: scale(1.1);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--second-bg-color);
  color: var(--text-color);
  font-size: 1.2rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
}

.unavailable-notice {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.unavailable-notice i {
  font-size: 3rem;
  color: #666;
  margin-bottom: 1rem;
}

.unavailable-notice h3 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.unavailable-notice p {
  color: #666;
  font-size: 1rem;
}

.europe-servers {
  position: relative;
}

.server-cards-wrapper {
  transition: opacity 0.3s ease;
}
