/* --------------------------------------------------
   HERO SECTION
-------------------------------------------------- */

.hero-section {
  position: relative;
  overflow: hidden;

  min-height: 100vh;

  background:
    radial-gradient(circle at top left,
      rgba(173, 20, 20, .18),
      transparent 35%),
    radial-gradient(circle at bottom right,
      rgba(244, 187, 0, .15),
      transparent 40%),
    #0f1115;

  color: white;
}

.hero-section::after {

  content: '';

  position: absolute;

  top: -250px;
  right: -250px;

  width: 500px;
  height: 500px;

  background:
    radial-gradient(circle,
      rgba(244, 187, 0, .12),
      transparent);

  pointer-events: none;
}

.container {
  position: relative;
  z-index: 3;
}

/* --------------------------------------------------
   PARTICLES
-------------------------------------------------- */

#particles-js {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* --------------------------------------------------
   ANIMATED BACKGROUND
-------------------------------------------------- */

.hero-bg {

  position: absolute;
  inset: 0;

  z-index: 2;

  background:
    radial-gradient(circle at 20% 20%,
      rgba(173, 20, 20, .25),
      transparent 40%),
    radial-gradient(circle at 80% 70%,
      rgba(244, 187, 0, .15),
      transparent 40%);

  animation: floatBg 12s ease-in-out infinite;
}

@keyframes floatBg {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

/* --------------------------------------------------
   HERO TEXT
-------------------------------------------------- */

.hero-tag {

  display: inline-block;

  padding: 8px 18px;

  border-radius: 50px;

  border: 1px solid rgba(244, 187, 0, .3);

  background: rgba(244, 187, 0, .08);

  color: var(--color-gold);

  text-transform: uppercase;

  letter-spacing: 2px;

  font-size: .8rem;

  margin-bottom: 20px;
}

.hero-title {

  font-size: clamp(3rem, 8vw, 6rem);

  font-weight: 900;

  line-height: 1;

  margin-bottom: 10px;

  background:
    linear-gradient(135deg,
      var(--color-gold),
      var(--color-gold-soft));

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-divider {

  width: 120px;
  height: 4px;

  border-radius: 10px;

  background:
    linear-gradient(90deg,
      var(--color-accent),
      var(--color-gold));

  margin: 25px 0;

  animation: pulseLine 3s infinite;
}

@keyframes pulseLine {

  50% {

    box-shadow:
      0 0 25px rgba(244, 187, 0, .75);
  }
}

.hero-subtitle {

  color: var(--color-gold-soft);

  font-size: 1.5rem;

  font-weight: 600;

  min-height: 60px;

  margin-bottom: 20px;
}

.hero-text {

  font-size: 1.15rem;

  line-height: 1.8;

  color: rgba(255, 255, 255, .85);

  max-width: 600px;
}

/* --------------------------------------------------
   TYPING CURSOR
-------------------------------------------------- */

#typing::after {

  content: "|";

  color: var(--color-accent);

  margin-left: 3px;

  animation: blink .8s infinite;
}

@keyframes blink {

  50% {
    opacity: 0;
  }
}

/* --------------------------------------------------
   BUTTONS
-------------------------------------------------- */
/* --------------------------------------------------
   MINIMAL HERO LINKS (CTA REPLACEMENT)
-------------------------------------------------- */

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 30px;
}

.hero-link {
  position: relative;
  display: inline-block;

  color: var(--color-gold);
  font-size: 1.05rem;
  font-weight: 500;

  text-decoration: none;

  padding-bottom: 3px;

  transition: color .25s ease;
}

/* underline effect */
.hero-link::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: 0;

  width: 100%;
  height: 1px;

  background: var(--color-gold);

  transform: scaleX(0);
  transform-origin: left;

  transition: transform .25s ease;
}

/* hover state */
.hero-link:hover {
  color: var(--color-accent);
}

.hero-link:hover::after {
  transform: scaleX(1);
}

/* optional: subtle spacing tweak on mobile */
@media (max-width: 991px) {
  .hero-links {
    gap: 16px;
  }
}

.btn-primary-custom {

  background: var(--color-accent);

  color: white;

  border: none;

  transition: .3s;
}

.btn-primary-custom:hover {

  background: var(--color-accent-dark);

  color: white;

  transform: translateY(-2px);

  box-shadow:
    0 0 20px rgba(173, 20, 20, .5);
}

.btn-outline-custom {

  border: 2px solid var(--color-gold);

  color: var(--color-gold);

  transition: .3s;
}

.btn-outline-custom:hover {

  background: var(--color-gold);

  color: #111;

  transform: translateY(-2px);
}

/* --------------------------------------------------
   CODE WINDOW
-------------------------------------------------- */

.code-window {

  background: #171717;

  border-radius: 16px;

  overflow: hidden;

  border: 1px solid rgba(244, 187, 0, .25);

  box-shadow:
    0 0 40px rgba(173, 20, 20, .25),
    0 0 80px rgba(244, 187, 0, .08);

  animation: floatCard 6s ease-in-out infinite;
}

.window-bar {

  background: #21262d;

  padding: 14px;
}

.window-bar span {

  display: inline-block;

  width: 12px;
  height: 12px;

  border-radius: 50%;

  margin-right: 8px;
}

.window-bar span:nth-child(1) {
  background: #ff5f57;
}

.window-bar span:nth-child(2) {
  background: #ffbd2e;
}

.window-bar span:nth-child(3) {
  background: #28ca42;
}

.code-window pre {

  margin: 0;

  padding: 30px;

  color: #f8f8f2;

  font-size: .95rem;

  line-height: 1.8;
}

@keyframes floatCard {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

/* --------------------------------------------------
   MOBILE
-------------------------------------------------- */

@media (max-width: 991px) {

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

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

  .hero-buttons .btn {
    margin-bottom: 10px;
  }
}