@charset "utf-8";

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Html solve the issue of white color showed in right side */
html,
body {
  font-family: "Cairo", sans-serif;
  overflow-x: hidden;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  background: linear-gradient(135deg, #0c626a, #0c939e, #33ced3);
}

body.dark-mode .hero {
  background: linear-gradient(135deg, #0c626a, #08353a);
}

.hero-logo {
  height: auto;
  width: clamp(460px, 33vw, 620px);
  padding-top: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
  animation: slideInLeft 1s ease-out;
}

.switch-mode-wrapper {
  position: absolute;
  transform: scale(0.9);
  top: clamp(15px, 5vw, 30px);
  right: -1px;
  z-index: 1000;
  animation: slideInLeft 1s ease-out;
}

#networkCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: auto;
  width: 100%;
  text-align: center;
  transform: translateY(-10px);
}

.hero-text {
  margin-left: auto;
  margin-right: auto;
  animation: slideInLeft 1s ease-out;
}

.hero-text h3 {
  text-align: center;
  font-size: clamp(28px, 2vw, 40px);
  font-weight: 700;
  margin-bottom: 20px;
  color: white;
}

.hero-text p {
  font-size: clamp(22px, 1.3vw, 24px);
  line-height: 1.6;
  color: white;
  margin-bottom: 20px;
  max-width: 720px;
  text-align: center;
}

.download-links-btn {
  display: inline-block;
  margin: 0 auto;
  padding: 12px 0;
  background: linear-gradient(135deg, #0c626a, #1a8f98);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  width: clamp(290px, 19vw, 350px);
  font-size: clamp(19px, 1.2vw, 22px);
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.download-links-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(12, 98, 106, 0.25);
}

/* Mirror Secion */
.mirror-links-section {
  min-height: 100vh;
  width: 100%;
  padding: 30px 50px;
  background: #f9f9f9;
}

body.dark-mode .mirror-links-section {
  background: #094248;
}

.mirror-links-section h3 {
  animation: slideInLeft 1s ease-out;
  text-align: center;
  font-size: clamp(30px, 2vw, 39px);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 30px;
  color: #0c626a;
}

body.dark-mode .mirror-links-section h3 {
  color: white;
}

.mirror-search-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  margin-top: 20px;
  width: 85%;
  animation: slideInLeft 1s ease-out;
}

#mirrorSearch {
  padding: 8px 10px;
  width: clamp(385px, 25vw, 470px);
  border-radius: 20px;
  border: 2px solid rgba(200, 200, 200, 0.4);
  outline: none;
  background: #f9f9f9;
  transition: all 0.3s ease;
  font-size: clamp(13px, 1vw, 20px);
}

body.dark-mode #mirrorSearch {
  color: white;
  border: 1px solid #0b5d65;
  background: rgba(255, 255, 255, 0.03);
}

#mirrorSearch::placeholder {
  color: #bdbdbd;
  font-size: clamp(13px, 1vw, 20px);
}

body.dark-mode #mirrorSearch::placeholder {
  color: white;
  font-size: clamp(13px, 1vw, 20px);
}

#mirrorSearch:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
  border-color: #0c939e;
}

body.dark-mode #mirrorSearch:hover {
  border-color: #0c939e;
}

ol.mirrors-list {
  list-style: none;
  counter-reset: item;
  width: clamp(85%, 89vw, 100%);
  margin: 0 auto;
}

ol.mirrors-list li {
  position: relative;
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  counter-increment: item;
  direction: ltr;
  margin: 20px 0;
  border: 2px solid rgba(200, 200, 200, 0.4);
  border-radius: 20px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  direction: row;
  align-items: center;
  padding: 15px;
  animation: slideInLeft 1s ease-out;
  transition: all 0.3s ease;
}

ol.mirrors-list li::before {
  content: counter(item);
  position: absolute;
  left: -43px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #0c626a, #0c939e, #33ced3);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  color: white;
  font-weight: bold;
  width: clamp(28px, 1.8vw, 35px);
  height: clamp(28px, 1.8vw, 35px);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: clamp(13px, 1vw, 20px);
  line-height: 1;
  border-radius: 50%;
}

body.dark-mode ol.mirrors-list li {
  border: 1px solid #0b5d65;
}

ol.mirrors-list li:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
  border-color: #0c939e;
}

/* Same light theme border but MUST keep it due to the 
changed border above in body.dark-mode ol.mirrors-list li */
body.dark-mode ol.mirrors-list li:hover {
  border-color: #0c939e;
}

ol.mirrors-list li span {
  font-weight: bold;
  color: black;
  font-size: clamp(17px, 1.325vw, 27px);
  margin-bottom: 5px;
}

body.dark-mode ol.mirrors-list li span {
  color: #ffffff;
}

li small {
  font-size: clamp(13px, 1vw, 20px);
  margin-left: 15px;
  margin-bottom: 4px;
}

body.dark-mode li small {
  color: #ffffff !important;
}

ol.mirrors-list li .d-flex {
  flex-wrap: wrap;
}

.btn-sm {
  font-size: clamp(14px, 1vw, 20px) !important;
}

/* Footer */
footer {
  width: 100%;
  background: linear-gradient(135deg, #0c626a, #0c939e, #33ced3);
}

/* Prevent white background showed at the end of footer */
footer > *:last-child {
  margin-bottom: 0;
}

body.dark-mode footer {
  background: linear-gradient(135deg, #0c626a, #08353a);
}

.footer-logo {
  height: auto;
  width: 320px;
}

.footer-text {
  margin: 15px 0;
}

.copyright-text,
.contact-btn,
.policy-btn {
  font-size: 16px !important;
}

.social-icons a {
  color: #ffffff;
  margin: 0 10px;
  font-size: 1.3rem;
  text-decoration: none;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/*
Be very careful when editing the following media queries.
You need to understand how media queries work and how overriding behaves.

If you add any new CSS property in one media query,
you must also ADD & CUSTOMIZE it for all other media queries
to avoid applying the SAME style across different screen sizes, which may not be appropriate.

If needed, Don't Forgit to edit the styles of Dark Mode.
*/

@media (max-width: 1300px) {
  .hero-logo {
    width: clamp(400px, 46vw, 460px);
    height: auto;
  }

  .switch-mode-wrapper {
    transform: scale(0.9);
    top: clamp(15px, 5vw, 30px);
    right: -1px;
  }

  .hero-text h3 {
    font-size: clamp(25px, 2.8vw, 28px);
    margin-bottom: 20px;
  }

  .hero-text p {
    font-size: clamp(19px, 2.2vw, 22px);
    margin-bottom: 20px;
  }

  .download-links-btn {
    width: clamp(260px, 30vw, 290px);
    font-size: clamp(17px, 2vw, 19px);
    padding: 12px 0;
  }

  .mirror-links-section {
    padding: 30px 10px;
  }

  .mirror-search-wrapper {
    width: 100%;
  }

  body.dark-mode .mirror-search-wrapper {
    width: 100%;
  }

  #mirrorSearch {
    width: clamp(370px, 40.5vw, 385px);
    padding: clamp(5px, 0.6vw, 8px) 10px;
    font-size: clamp(13px, 1.3vw, 16px);
  }

  body.dark-mode #mirrorSearch {
    width: clamp(370px, 40.5vw, 385px);
    padding: clamp(5px, 0.6vw, 8px) 10px;
    font-size: clamp(13px, 1.3vw, 16px);
  }

  #mirrorSearch::placeholder {
    font-size: clamp(13px, 1.3vw, 16px);
  }

  body.dark-mode #mirrorSearch::placeholder {
    font-size: clamp(13px, 1.3vw, 16px);
  }

  .mirror-links-section h3 {
    font-size: clamp(27px, 3vw, 30px);
    font-weight: 600;
  }

  body.dark-mode .mirror-links-section h3 {
    font-size: clamp(27px, 3vw, 30px);
    font-weight: 600;
  }

  ol.mirrors-list {
    width: 100%;
    padding: 0;
  }

  ol.mirrors-list li {
    margin: 20px auto;
    width: 91%;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    align-items: center;
    justify-content: center;
  }

  body.dark-mode ol.mirrors-list li {
    margin: 20px auto;
    width: 91%;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    align-items: center;
    justify-content: center;
  }

  ol.mirrors-list li::before {
    top: 18px;
    left: 4px;
    width: clamp(28px, 3vw, 30px);
    height: clamp(28px, 3vw, 30px);
    font-size: clamp(13px, 1.5vw, 15px);
  }

  ol.mirrors-list li span {
    font-size: clamp(21px, 2.2vw, 22px);
  }

  body.dark-mode ol.mirrors-list li span {
    font-size: clamp(21px, 2.2vw, 22px);
  }

  li small {
    font-size: clamp(19px, 2vw, 20px);
    margin-left: 0;
    margin-bottom: 10px;
  }

  .text-muted {
    padding-left: 0px;
  }

  ol.mirrors-list li .d-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0 auto !important;
    padding-left: 2% !important;
  }

  .btn-sm {
    font-size: clamp(17px, 2vw, 18px) !important;
  }

  .footer-logo {
    width: 320px;
    height: auto;
  }

  .contact-btn {
    font-size: 14px;
  }

  .policy-btn {
    font-size: 14px;
  }

  .copyright-text {
    font-size: 14px;
  }
}

@media (max-width: 850px) {
  .hero-logo {
    width: clamp(360px, 50vw, 400px);
    height: auto;
  }

  .switch-mode-wrapper {
    transform: scale(0.9);
    top: clamp(15px, 5vw, 30px);
    right: -1px;
  }

  .hero-text h3 {
    font-size: clamp(23px, 3.2vw, 25px);
    margin-bottom: 20px;
  }

  .hero-text p {
    font-size: clamp(17px, 2.5vw, 19px);
    margin-bottom: 20px;
  }

  .download-links-btn {
    width: clamp(225px, 40vw, 260px);
    font-size: clamp(15px, 2vw, 17px);
    padding: 12px 0;
  }

  .mirror-links-section {
    padding: 30px 10px;
  }

  .mirror-links-section h3 {
    font-size: clamp(23px, 3.5vw, 27px);
    font-weight: 600;
  }

  body.dark-mode .mirror-links-section h3 {
    font-size: clamp(23px, 3.5vw, 27px);
    font-weight: 600;
  }

  .mirror-search-wrapper {
    width: 100%;
  }

  body.dark-mode .mirror-search-wrapper {
    width: 100%;
  }

  #mirrorSearch {
    width: clamp(300px, 50vw, 370px);
    padding: 5px 10px;
    font-size: 13px;
  }

  body.dark-mode #mirrorSearch {
    width: clamp(300px, 50vw, 370px);
    padding: 5px 10px;
    font-size: 13px;
  }

  #mirrorSearch::placeholder {
    font-size: 13px;
  }

  body.dark-mode #mirrorSearch::placeholder {
    font-size: 13px;
  }

  ol.mirrors-list {
    width: 100%;
    padding: 0;
  }

  ol.mirrors-list li {
    margin: 20px auto;
    width: 91%;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    align-items: center;
    justify-content: center;
  }

  body.dark-mode ol.mirrors-list li {
    margin: 20px auto;
    width: 91%;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    align-items: center;
    justify-content: center;
  }

  ol.mirrors-list li::before {
    top: 18px;
    left: 4px;
    width: clamp(26px, 4vw, 28px);
    height: clamp(26px, 4vw, 28px);
    font-size: clamp(11px, 1.8vw, 13px);
  }

  ol.mirrors-list li span {
    font-size: clamp(20px, 2.7vw, 21px);
  }

  body.dark-mode ol.mirrors-list li span {
    font-size: clamp(20px, 2.7vw, 21px);
  }

  li small {
    font-size: clamp(17px, 2.3vw, 19px);
    margin-left: 0;
    margin-bottom: 10px;
  }

  .text-muted {
    padding-left: 0px;
  }

  ol.mirrors-list li .d-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0 auto !important;
    padding-left: 2% !important;
  }

  .btn-sm {
    font-size: clamp(16px, 2.3vw, 17px) !important;
  }

  .footer-logo {
    width: 320px;
    height: auto;
  }

  .contact-btn {
    font-size: 14px;
  }

  .policy-btn {
    font-size: 14px;
  }

  .copyright-text {
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  .hero-logo {
    width: clamp(290px, 60vw, 360px);
    height: auto;
  }

  .switch-mode-wrapper {
    transform: scale(0.9);
    top: clamp(25px, 5vw, 30px);
    right: -1px;
  }

  .hero-text h3 {
    font-size: clamp(19px, 4vw, 23px);
    margin-bottom: 20px;
  }

  .hero-text p {
    font-size: clamp(14px, 3vw, 17px);
    margin-bottom: 20px;
  }

  .download-links-btn {
    width: clamp(195px, 50vw, 225px);
    font-size: clamp(13px, 3vw, 15px);
    padding: 10px 0;
  }

  .mirror-links-section {
    padding: 30px 10px;
  }

  .mirror-links-section h3 {
    font-size: clamp(19px, 4vw, 23px);
    font-weight: 600;
  }

  body.dark-mode .mirror-links-section h3 {
    font-size: clamp(19px, 4vw, 23px);
    font-weight: 600;
  }

  .mirror-search-wrapper {
    width: 100%;
  }

  body.dark-mode .mirror-search-wrapper {
    width: 100%;
  }

  #mirrorSearch {
    width: clamp(250px, 55vw, 300px);
    padding: 5px 10px;
    font-size: 13px;
  }

  body.dark-mode #mirrorSearch {
    width: clamp(250px, 55vw, 300px);
    padding: 5px 10px;
    font-size: 13px;
  }

  #mirrorSearch::placeholder {
    font-size: 13px;
  }

  body.dark-mode #mirrorSearch::placeholder {
    font-size: 13px;
  }

  ol.mirrors-list {
    width: 100%;
    padding: 0;
  }

  ol.mirrors-list li {
    margin: 20px auto;
    width: 91%;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    align-items: center;
    justify-content: center;
  }

  body.dark-mode ol.mirrors-list li {
    margin: 20px auto;
    width: 91%;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    align-items: center;
    justify-content: center;
  }

  ol.mirrors-list li::before {
    top: 18px;
    left: 4px;
    width: clamp(22px, 5vw, 26px);
    height: clamp(22px, 5vw, 26px);
    font-size: 12px;
  }

  ol.mirrors-list li span {
    font-size: clamp(17px, 4vw, 20px);
  }

  body.dark-mode ol.mirrors-list li span {
    font-size: clamp(17px, 4vw, 20px);
  }

  li small {
    font-size: clamp(15px, 4vw, 17px);
    margin-left: 0;
    margin-bottom: 10px;
  }

  .text-muted {
    padding-left: 0px;
  }

  ol.mirrors-list li .d-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0 auto !important;
    padding-left: 2% !important;
  }

  .btn-sm {
    font-size: clamp(14px, 3vw, 16px) !important;
  }

  .footer-logo {
    width: 320px;
    height: auto;
  }

  .contact-btn {
    font-size: 14px;
  }

  .policy-btn {
    font-size: 14px;
  }

  .copyright-text {
    font-size: 14px;
  }
}

@media (max-width: 355px) {
  .hero-logo {
    width: clamp(148px, 99vw, 290px);
    height: auto;
  }

  .switch-mode-wrapper {
    transform: scale(0.8);
    top: clamp(50px, 21vw, 60px);
    right: -1px;
  }

  .hero-text h3 {
    font-size: clamp(13px, 6vw, 19px);
    margin-bottom: 20px;
  }

  .hero-text p {
    font-size: clamp(11px, 4vw, 14px);
    margin-bottom: 20px;
  }

  .download-links-btn {
    width: clamp(130px, 65vw, 195px);
    font-size: clamp(9px, 4vw, 13px);
    padding: 8px 0;
  }

  .mirror-links-section {
    padding: 30px 10px;
  }

  .mirror-links-section h3 {
    font-size: clamp(12px, 6vw, 19px);
    font-weight: 600;
  }

  body.dark-mode .mirror-links-section h3 {
    font-size: clamp(12px, 6vw, 19px);
    font-weight: 600;
  }

  .mirror-search-wrapper {
    width: 100%;
  }

  body.dark-mode .mirror-search-wrapper {
    width: 100%;
  }

  #mirrorSearch {
    width: clamp(90px, 75%, 250px);
    padding: 5px 10px;
    font-size: 13px;
  }

  body.dark-mode #mirrorSearch {
    width: clamp(90px, 75%, 250px);
    padding: 5px 10px;
    font-size: 13px;
  }

  #mirrorSearch::placeholder {
    font-size: 13px;
  }

  body.dark-mode #mirrorSearch::placeholder {
    font-size: 13px;
  }

  ol.mirrors-list {
    width: 100%;
    padding: 0;
  }

  ol.mirrors-list li {
    margin: 20px auto;
    width: 94%;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    align-items: center;
    justify-content: center;
  }

  body.dark-mode ol.mirrors-list li {
    margin: 20px auto;
    width: 94%;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    align-items: center;
    justify-content: center;
  }

  ol.mirrors-list li::before {
    top: 18px;
    left: 4px;
    width: clamp(19px, 7vw, 22px);
    height: clamp(19px, 7vw, 22px);
    font-size: 12px;
  }

  ol.mirrors-list li span {
    font-size: clamp(14px, 6vw, 17px);
  }

  body.dark-mode ol.mirrors-list li span {
    font-size: clamp(14px, 6vw, 17px);
  }

  li small {
    font-size: clamp(12px, 5vw, 15px);
    margin-left: 0;
    margin-bottom: 10px;
  }

  .text-muted {
    padding-left: 0px;
  }

  ol.mirrors-list li .d-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0 auto !important;
    padding-left: 4% !important;
  }

  .btn-sm {
    font-size: clamp(11px, 5vw, 14px) !important;
  }

  .footer-logo {
    width: clamp(148px, 99vw, 281px);
    height: auto;
  }

  .contact-btn {
    font-size: clamp(9px, 4vw, 14px) !important;
  }

  .policy-btn {
    font-size: clamp(9px, 4vw, 14px) !important;
  }

  .copyright-text {
    font-size: clamp(9px, 4vw, 14px) !important;
  }
}
