@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);
}

.logo {
  font-size: 3.8rem;
  color: #1e3a8a;
  font-weight: 600;
  text-decoration: none;
}

.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;
}

.navbar a:hover {
  color: var(--second-bg-color);
}

#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;
}

@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: -24px;
    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%;
  }
}

/* Blog Section Styles */
.blog-section {
  padding-top: 15rem;
  min-height: auto;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3rem;
  padding: 0 2rem;
  position: relative;
}

.section-header h1 {
  font-size: 4.5rem;
  color: var(--text-color);
  margin: 0;
  margin-bottom: 3rem;
}

.view-all {
  display: flex;
  align-items: center;
  color: var(--second-bg-color);
  font-size: 1.8rem;
  transition: all 0.3s ease;
  margin-right: auto;
}

.view-all i {
  font-size: 2.4rem;
  margin-right: 0.5rem;
  transition: transform 0.3s ease;
}

.view-all:hover {
  color: var(--text-color);
}

.view-all:hover i {
  transform: translateX(-5px);
}

.blog-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  padding: 0 2rem;
}

.blog-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 20px rgba(225, 179, 115, 0.2);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 2rem;
}

.blog-card h3 {
  font-size: 2.4rem;
  color: var(--second-bg-color);
  margin-bottom: 1.5rem;
}

.blog-card p {
  font-size: 1.6rem;
  color: var(--text-color);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.blog-card .read-more {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--bg-color);
  color: var(--text-color);
  border-radius: 30px;
  font-size: 1.6rem;
  transition: all 0.3s ease;
}

.blog-card .read-more:hover {
  background: var(--second-bg-color);
  color: #212121;
}

.category-tag {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(30, 58, 138, 0.3);
  color: var(--second-bg-color);
  border-radius: 15px;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

/* Section Specific Styles */
.news-section {
  margin-bottom: 4rem;
  padding-top: 18rem;
}

.tutorial-section {
  padding-top: 8rem;
}

@media (max-width: 768px) {
  .blog-container {
    grid-template-columns: 1fr;
  }

  .section-header {
    text-align: center;
    margin-bottom: 6rem;
  }

  .section-header h1 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
  }
}

/* Back to Home Button */
.back-to-home {
  position: fixed;
  bottom: 3rem;
  right: 3rem;
  background: var(--bg-color);
  color: var(--text-color);
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.4rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  z-index: 99;
}

.back-to-home:hover {
  background: var(--second-bg-color);
  color: #212121;
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(225, 179, 115, 0.3);
}

@media (max-width: 768px) {
  .back-to-home {
    width: 4.5rem;
    height: 4.5rem;
    font-size: 2rem;
    bottom: 2rem;
    right: 2rem;
  }
}
