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

#particles {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Cursor glow */
.cursor-glow {
    position: fixed;

    width: 350px;
    height: 350px;

    border-radius: 50%;

    pointer-events: none;

    transform: translate(-50%, -50%);

    background: radial-gradient(
        circle,
        rgba(255, 0, 0, 0.13) 0%,
        rgba(255, 0, 0, 0.06) 25%,
        transparent 70%
    );

    filter: blur(20px);

    z-index: 1;

    opacity: 0;

    transition: opacity .3s ease;
}



.mouse {
    width: 27px;
    height: 42px;

    border: 2px solid #ff3030;

    border-radius: 20px;

    margin: auto auto 10px;

    box-shadow:
        0 0 12px rgba(255, 0, 0, .2);
}

.mouse::before {
    content: "";

    position: absolute;

    width: 3px;
    height: 8px;

    background: #ff3030;

    border-radius: 5px;

    margin-left: 9px;
    margin-top: 7px;

    animation: scroll 1.5s infinite;
}

@keyframes scroll {

    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(13px);
        opacity: 0;
    }
}

/* =================================
   MOBILE
================================= */

@media (max-width: 700px) {

    nav {
        padding: 25px;
    }

    .links {
        display: none;
    }

    h1 {
        font-size: 48px;
    }

    .description {
        font-size: 16px;
        padding: 0 20px;
    }

    .description br {
        display: none;
    }

    .small-title {
        font-size: 10px;
        letter-spacing: 4px;
    }
}

.url-icon {
  border-radius: 50%;
}

@font-face {
  font-family: "myfont";
  src: url("Poppins/Poppins-Light.ttf"),
    url("Poppins/") format("tff");
  /* font-weight: lighter; */
  font-style: normal;
}

body {
  background-color: var(--background);
  color: var(--text);
  font-family: myfont;
  overflow-x: hidden;
  position: relative;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

img,
video,
svg {
  max-width: 100%;
  height: auto;
}

:root {
  --text: #ffe7e7ee;
  --background: #060000;
  --primary: #ff2020;
  --secondary: #900000;
  /* --accent: #ff2121;          */
  --glass-bg: rgba(59, 30, 30, 0.4);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: 12px;

  --tran-bg: var(--glass-bg);

  --ff-heading: "Outfit", sans-serif;
  --ff-body: "Inter", sans-serif;
  --ff: var(--ff-body);
}

.darkmode {
  background-color: white;
  color: black;
  transition: 1000ms;
}

.loader-block {
  height: 100vh;
  width: 100%;
  /* text-align: center; */
  align-content: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  background: var(--secondary);
  background-color: #0b0101;
  transition: 2s;
}

    .ai-matrix-loader {
  width: 120px;
  height: 160px;
  margin: 30px auto;
  position: relative;
  perspective: 800px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.digit {
  color: var(--primary);
  font-family: monospace;
  font-size:45px;
  text-align: center;
  text-shadow: 0 0 5px #ff0000;
  animation:
    matrix-fall 3s infinite,
    matrix-flicker 0.5s infinite;
  opacity: 0;
}

.digit:nth-child(1) {
  animation-delay: 0.1s;
}
.digit:nth-child(2) {
  animation-delay: 0.3s;
}
.digit:nth-child(3) {
  animation-delay: 0.5s;
    color: var(--text);
        text-shadow: 0 0 5px #f7f6f6e5;
}
.digit:nth-child(4) {
  animation-delay: 0.7s;
  color: var(--text);
    text-shadow: 0 0 5px #f7f6f6e5;
}
.digit:nth-child(5) {
  animation-delay: 0.9s;
}
.digit:nth-child(6) {
  animation-delay: 1.1s;
}
.digit:nth-child(7) {
  animation-delay: 1.3s;
}
.digit:nth-child(8) {
  animation-delay: 1.5s;
}

.glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle,
    #ff00001a 0%,
    transparent 70%
  );
  animation: matrix-pulse 2s infinite;
}

@keyframes matrix-fall {
  0% {
    transform: translateY(-50px) rotateX(90deg);
    opacity: 0;
  }
  20%,
  80% {
    transform: translateY(0) rotateX(0deg);
    opacity: 0.8;
  }
  100% {
    transform: translateY(50px) rotateX(-90deg);
    opacity: 0;
  }
}

@keyframes matrix-flicker {
  0%,
  19%,
  21%,
  100% {
    opacity: 0.8;
  }
  20% {
    opacity: 0.2;
  }
}

@keyframes matrix-pulse {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.7;
  }
}


.loader-ctn {
  width: fit-content;
  margin: auto;
}

.loader-block.hidden {
  left: -300vw;
  visibility: hidden;
}

.loader {
  font-size: 70px;
  line-height: 1;
  display: inline-block;
  font-weight: bold;
  color: var(--sec-lit);
  box-sizing: border-box;
  /* text-shadow: 0 0 2px #ffffff, 0 0 1px #c9eddf, 0 0 1px #FFF; */
  letter-spacing: 5px;
  position: relative;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.loader::after {
  content: 'Ratedcodes';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  width: 100%;
  height: 100%;
  overflow: hidden;
  box-sizing: border-box;
  animation: animloader 3s linear infinite;
}

@keyframes animloader {
  0% {
    width: 0%;
  }

  100% {
    width: 100%;
  }
}

.loader-masthead {
  display: block;
  text-align: end;
  font-size: 20px;
  margin-left: 1%;
  color: var(--text);
  opacity: 8;
  margin-bottom: 0;
  font-family: cursive;
}

.loader-masthead em {
  color: var(--accent);
  font-weight: bold;
}


body {
  /* background-color: var(--background); */
  color: var(--text);
  font-family: var(--ff);
  background-image:
    radial-gradient(at 0% 0%, #f63b3b21 0px, transparent 60%),
    radial-gradient(at 100% 100%, #e12a5822 0px, transparent 50%);
  background-attachment: fixed;
}

.special {
  color: var(--primary);
  color: var(--primary);
  font-style: normal;
  font-weight: bold;
}


li,
a {
  list-style: none;
  text-decoration: none;
}

button {
  cursor: pointer;
}

/* nav bar */
.cover-bg {
  background-color: transparent;
  position: fixed;
  display: none;
}

header {
  margin: auto;
  justify-content: center;
  /* align-items: center; */
  /* width: 90%; */
}

header nav.match {
  /* box-shadow: 0 0 10px 0 var(--primary); */
  /* background-color: var(--secondary); */
  align-items: center;
}

header .harm {
  display: none;
}

.cancel {
  display: none;
}

nav {
  background-color: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  position: fixed;
  top: 2vh;
  left: 3vh;
  width: 24%;
  height: 95vh;
  z-index: 100;
  border-radius: 15px;
  margin: auto;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

nav .logo a {
  font-size: 25px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.5px;
  font-family: var(--ff);
  text-transform: uppercase;
}

nav .logo span {
  font-size: 14px;
  font-style: normal;
  color: var(--text);
  text-transform: lowercase;
}

nav .menu {
  justify-content: space-between;
  /* align-items: center; */
  width: 95%;
  margin: auto;
  padding-top: 10%;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 39px;
  padding-top: 8%;
  margin-left: 5%;
}


.nav-list a {
  color: #ffffff9b;
  font-size: 15px;
  transition: 300ms;
  position: relative;
  font-style: italic;
  font-weight: 500;
}

.nav-list a:hover {
  color: var(--primary);
}

.nav-list a::before {
  content: "";
  position: absolute;
  background-color: var(--primary);
  transition: 500ms;
  border-radius: 2px;
}

.nav-list a:hover::before {
    bottom: 5px;
  left: -15px;
  width: 3px;
  height: 10px;
}

.nav-list a.locate {
  color: var(--text);
}

.locate {
  color: var(--primary);
  font-weight: 600;
  width: 0;
  transition: 1000ms;
}

.locate::after {
  content: "";
  display: block;
  width: 50%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  margin-top: 4px;
  transition: 1000ms;

}

header nav.match {
  /* background-color: rgba(23, 2, 2, 0.85);  */
  /* border-color: rgba(246, 59, 59, 0.3); */
}

/* nav ends */

.main-block {
  margin-left: 25%;
  z-index: 1000;
}

@media (max-width: 768px) {
.loader-ctn .loader {
  font-size: 50px;
}

.loader-ctn .loader-masthead{
  font-size: 15px;
}

.digit{
  font-size: 35px;
}

  /* nav bar */
  header {
    padding-bottom: 0;
  }

  header .harm {
    display: block;
    position: fixed;
    right: 15px;
    cursor: pointer;
    font-weight: bolder;
    font-size: 30px;
    z-index: 50;
    color: var(--accent);
  }

  .harm.active {
    display: none;
  }

  .cover-bg {
    backdrop-filter: blur(5px);
    background-color: rgba(0, 0, 0, 0.333);
    position: fixed;
    width: 100%;
    height: 100dvh;
    display: block;
    left: 180vw;
    transition: 50ms;
    top: 0;
    z-index: 4;
  }

  .cover-bg.active {
    left: 0vw;
  }

  nav {
    height: 100%;
    width: 0;
    top: 0;
    left: 0;
    overflow-x: hidden;
    border: 0;
    transition: 0.5s;
    border-radius: 0;
    position: fixed;
    transition: 10ms;
    align-content: start;
    padding: 0;
  }

  header nav.active {
    transition: 50ms;
    top: 0;
    font-size: 36px;
    width: 250px;
  }

  .main-block {
    transition: margin-left 100ms;
    padding: 20px;
    margin-left: 0px;
  }

  .main-block.active {
    margin-left: 250px;
    opacity: .5;
    background-color: rgba(0, 0, 0, 0.4);
  }

  nav .logo a {
    font-size: 20px;
  }

  nav .logo span {
    font-size: 15px;
  }

  header .menu {
    display: block;
    margin: 1% 5%;
  }

  .nav-list {
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    justify-content: center;
    width: 100%;
    padding-left: 5%;
  }

  .nav-list li {
    margin-bottom: 10%;
    width: 100%;
    text-align: center;
  }

  .nav-list a {
    font-size: 15px;
    display: block;
    width: 90%;
    transition: 0.3s;

  }


  .locate::after {
    content: "";
    display: block;
    width: 80%;
  }
}

/* nav ends */

@media (max-width: 600px) {
/* loader */
.loader-ctn .loader {
  font-size: 40px;
}

.loader-ctn .loader-masthead{
  font-size: 15px;
}

.digit{
  font-size: 30px;
}

  /* nav bar */
  nav .logo a {
    font-size: 20px;
  }

  .nav-list li {
    margin-top: 10%;
  }

  .nav-list a {
    font-size: 15px;
  }
}