/* === GLOBAL RESET & BASE TYPOGRAPHY === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4rem;
}

body {
  background-color: #0f0f0f;
  color: #e0e0e0;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  cursor: url('../media/cursor.png') 0 0, auto;
}

/* === HERO SECTION FONTS === */
.hero-title {
  font-family: 'Pixelify Sans', sans-serif;
  letter-spacing: 0.03em;
}

.hero-subtext {
  font-family: 'Pixelify Sans', sans-serif;
}

/* === SECTION UTILITIES === */
.section {
  padding: 4rem 1.5rem;
}

.section-dark {
  background-color: #111;
}

.section-light {
  background-color: #222;
}

/* === SCREENSHOT IMAGE STYLING === */
.screenshot {
  border-radius: 0.5rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}
.screenshot:hover {
  transform: scale(1.05);
}

/* === BUTTON STYLES === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 1.25rem;
  border-radius: 0.375rem;
  text-decoration: none;
  width: fit-content;
  font-family: 'Pixelify Sans', sans-serif;
  cursor: url('../media/cursor2.png') 0 0, auto;
  background-color: transparent;
  border: none;
  transition: transform 0.25s ease;
}
.btn:hover {
  transform: scale(1.06);
}
.btn-primary {
  background-color: #3b82f6;
  color: white;
}
.btn-primary:hover {
  background-color: #2563eb;
}
.btn-secondary {
  background-color: #10b981;
  color: white;
}
.btn-secondary:hover {
  background-color: #059669;
}

/* === NAVBAR LINK STYLES === */
.navbar a {
  position: relative;
  font-size: 1.25rem;
  color: #e0def4;
  text-decoration: none;
  transition: all 0.3s ease;
}
.navbar a.active {
  color: #f44747 !important;
}
.navbar a::after,
.navbar a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 3px;
  background-color: #f44747;
  opacity: 0.5;
  box-shadow: 0 0 4px #f44747;
  transform: scaleX(0);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: left;
}
.navbar a:hover::after,
.navbar a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

/* === NAVBAR HOVER SCALE === */
.navlink {
  transition: transform 0.3s ease, color 0.3s ease;
  transform-origin: center;
  display: inline-block;
}
.navlink:hover {
  transform: scale(1.06);
  color: #ffffff;
}

/* === JOIN THE CULT GLOW + COLOR LOCK === */
.navlink.glow-red-slow {
  color: #f44747 !important;
}
.navlink.glow-red-slow:hover {
  color: #f44747 !important;
}
.glow-red-slow {
  animation: glowRed 2s infinite alternate;
}
@keyframes glowRed {
  from {
    text-shadow: 0 0 0px #f44747;
  }
  to {
    text-shadow: 0 0 10px #f44747, 0 0 20px #f44747;
  }
}

/* === FADE-IN === */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fade-in {
  animation: fade-in 1s ease-out forwards;
}
.animate-fade-in-delay {
  animation: fade-in 1s ease-out forwards;
  animation-delay: 0.4s;
}

/* === FLICKER === */
@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    opacity: 1;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.1),
                 0 0 20px rgba(146, 65, 172, 0.2),
                 0 0 40px rgba(146, 65, 172, 0.3);
  }
  20%, 22%, 24%, 55% {
    opacity: 0.4;
    text-shadow: none;
  }
}
.flicker {
  animation: flicker 3s infinite;
}

/* === CURSOR INTERACTION === */
a:hover,
button:hover,
input:hover,
select:hover,
textarea:hover {
  cursor: url('../media/cursor2.png') 0 0, auto;
}
