:root {
  --primary-color: #f75d34;
  --dark-bg: #191e24;
  --text-color: #ffffff;
  --shadow-color: rgba(0, 0, 0, 0.3);
}

@font-face {
  font-family: "Font";
  src: url("font.ttf");
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

.font {
  font-family: "Font";
}

body {
  background-color: var(--dark-bg);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

.countdown {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-number {
  font-size: clamp(.1rem,5vw,2.5rem);
  font-weight: 700;
  color: var(--primary-color);
  background: rgba(247, 93, 52, 0.1);
  width: clamp(40px,10vw,80px);
  aspect-ratio: 1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  position: relative;
}

.countdown-number::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 0 0 8px 8px;
}

.countdown-label {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  transition: background-color 0.3s ease;
}

.header.scrolled {
  background-color: rgba(25, 30, 36, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
}

.logo {
  display: flex;
  border-radius: 1em;
  border-top-left-radius: 0.3em;
  border-bottom-left-radius: 4em;
  overflow: hidden;
  align-items: center;
}

.logo-main {
  height: 40px;
}

.logo-small {
  display: none;
  height: 40px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 0 3rem;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at top right,
    rgba(247, 93, 52, 0.1),
    transparent 70%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* flex-wrap: wrap; */
  /* flex-direction: column; */
  gap: 2rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-title span {
  color: var(--primary-color);
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  max-width: 600px;
  /* margin-bottom: 2rem; */
  opacity: 0.9;
}


.hero-visual {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 40%;
  max-width: 600px;
  z-index: 1;
  opacity: 0.7;
}

.code-block {
  /* position: absolute; */
  right: 10%;
  bottom: 15%;
  background-color: rgba(25, 30, 36, 0.8);
  padding: 1.5rem;
  border-radius: 8px;
  transform: rotate(3deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-left: 4px solid var(--primary-color);
  font-size: 0.85rem;
  z-index: 3;
  backdrop-filter: blur(5px);
  transition-duration: 0.2s;
  &:hover {
    transform: rotate(0deg);
  }
}

.code-line {
  margin-bottom: 0.5rem;
  display: flex;

  & span {
    margin: 0 0.2em;
    font-family: "JetBrainsMono Nerd Font", monospace;
  }
}

.line-number {
  color: rgba(255, 255, 255, 0.3);
  margin-right: 1rem;
  min-width: 1.5rem;
  text-align: right;
}

.keyword {
  color: #ff79c6;
}

.method {
  color: #50fa7b;
}

.string {
  color: #f1fa8c;
}

.bracket {
  color: #f8f8f2;
}

.comment {
  color: #6272a4;
}

.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  z-index: 0;
}

.shape {
  position: absolute;
  background-color: var(--primary-color);
  border-radius: 50%;
  opacity: 0.03;
  filter: blur(30px);
}

.shape-1 {
  width: 400px;
  height: 400px;
  top: 10%;
  right: -100px;
}

.shape-2 {
  width: 300px;
  height: 300px;
  bottom: 10%;
  left: -50px;
}

.shape-3 {
  width: 200px;
  height: 200px;
  top: 60%;
  right: 20%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
}

.code-animation {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  z-index: 0;
  opacity: 0.15;
  pointer-events: none;
}

.code-animation .code-line {
  position: absolute;
  font-family: "Courier New", monospace;
  color: var(--primary-color);
  font-size: 1rem;
  white-space: nowrap;
  animation-name: code-rain;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes code-rain {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(100vh);
  }
}

@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.8rem;
  }

  .code-block {
    right: 5%;
    width: 350px;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 1.2rem 1.5rem;
  }

  .logo-main {
    display: none;
  }

  .logo-small {
    display: block;
  }

  .countdown {
    justify-content: center;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--dark-bg);
    flex-direction: column;
    padding: 5rem 2rem;
    transition: right 0.3s ease;
  }

  .nav-links.active {
    right: 0;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
  }

  .hero {
    padding: 0 1.5rem;
    text-align: center;
    padding-top: 5rem;
  }

  .hero-content {
    flex-direction: column;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    margin: 0 auto 2rem;
  }

  .cta-buttons {
    justify-content: center;
  }

  .code-block {
    position: relative;
    width: 100%;
    right: 0;
    bottom: 0;
    margin: 3rem auto 0;
    transform: none;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}
