@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
:root {
  --bg: #000;
  --surface: #121218;
  --text: #f3f4f6;
  --muted: #a7adba;
  --primary: #d84e7a;
  --accent: #ff6b6b;
  --ring: rgba(216, 78, 122, 0.28);
  --shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  --radius: 16px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.2;
  position: relative;
  background-image: url('/images/site/bg-red-black.avif');
  background-repeat: repeat-x;
  background-size: 100% auto;
  font-size: 0.75rem;
  letter-spacing: -0.02em;
}

@media (min-width: 1024px) {
  body {
    font-size: 0.85rem;
    line-height: 1.5;     /* Standard comfortable reading spacing */
    letter-spacing: normal; /* Resets to regular spacing */
  }
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url('/images/site/bg-red-black.avif') center/cover no-repeat fixed;
  filter: blur(2px);
  opacity: 0.92;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.1);
}

img {
  max-width: 100%;
  display: block;
}
.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}
.section {
  width: min(1100px, 92%);
  margin: 0 auto;
  padding: 64px 0;
}
.section h2 {
  font-size: 1.6rem;
  margin: 0 0 8px;
}
.section p.section-desc {
  color: var(--muted);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  line-height: 1.2;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  font-size: 1.1rem;
}
.brand-desc {
  color: var(--muted);
  font-size: 0.8rem;
}
.nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 10px;
}
.nav-menu {
  display: flex;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  font-size: 0.85rem;
}
.nav-menu a {
  text-decoration: none;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
  line-height: 1.6;
}
.nav-menu a:hover {
  background: rgba(255, 255, 255, 0.06);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.08s ease, box-shadow 0.25s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: grid;
  place-items: center;
  z-index: 100;
}

.card-container {
  display: grid;
  place-items: center;
}

#aside-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: start;
  gap: 20px;
  /* place-items: center; */
  margin: 0px auto;
}

.card {
  /* position: relative; */
  background: #3e3e3e;
  padding: 1.5rem;
  width: 100%;
  /* max-width: 420px; */
  border-radius: 8px;
}

.text-highlight {
  color: var(--primary);
}

/* Footer */
footer {
  padding: 28px 0;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 70%;
}
footer .container {
  width: min(1100px, 92%);
  margin: 0 auto;
}
footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
footer .links a {
  color: var(--text);
  opacity: 0.85;
  text-decoration: none;
  padding: 0.3em;
}
.tags-list {
  display: flex; /* Enables flexbox layout for the container */
  list-style: none; /* Removes default bullets */
  padding: 0; /* Removes default padding */
  margin: 0; /* Removes default margin */
  flex-wrap: wrap; /* Prevents items from wrapping to the next line */
}
.tags-list-items {
  background-color: rgba(50, 50, 50, 0.6);
  margin: 0.2em;
  border: azure;
  border-width: thin;
  padding: 0.1em 1em;
  border-radius: 15px;
}

/* Quick actions */
.quick-actions {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 50;
}
.quick-actions .qa-btn {
  background: var(--surface);
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 12px;
  border-radius: 30px;
  color: var(--text);
  cursor: pointer;
}

/* No horizontal scroll on phones + nav width safety */
html,
body {
  overflow-x: hidden;
}
* {
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
@media (max-width: 640px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav-menu {
    display: none;
    position: absolute;
    right: 12px;
    top: 56px;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 8px;
    box-shadow: var(--shadow);
    flex-direction: column;
    max-width: calc(100vw - 24px);
  }
  .nav-menu.show {
    display: flex;
  }
}
@media (max-width: 860px) {
  .section {
    padding: 48px 0;
  }
}
@media (max-width: 640px) {
  .section {
    padding: 36px 0;
  }
  #aside-container {
    grid-template-columns: 1fr;
  }
}

/* HERO LAYOUT */
.hero {
  position: relative;
  /* width: 100%; */
  overflow: hidden;
  color: #fff;
  background: #000;
}

/* Height tuning for all devices */
.hero {
  height: clamp(60vh, 55vw, 45vh);
}

/* MEDIA STRIP */
.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-track {
  display: flex;
  height: 100%;
  width: max-content;
  animation: hero-scroll 60s linear infinite;
}

.hero-track:hover {
  animation-play-state: paused;
}

.hero-slide {
  flex: 0 0 auto;
  height: 100%;
}

.hero-slide img {
  height: 100%;
  width: auto;
  object-fit: cover;
}


/* Gradient overlay for readability */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.75),
    rgba(0, 0, 0, 0.4),
    rgba(0, 0, 0, 0.75)
  );
  pointer-events: none;
}

/* CONTENT */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: clamp(1.5rem, 5vw, 4rem);
}

.hero h1 {
  font-size: clamp(1.3rem, 3vw, 2rem);
  line-height: 1.2;
}

.hero p {
  /* font-size: clamp(1rem, 2vw, 1.25rem); */
  margin-top: 1rem;
}

/* CTA */
.hero-cta {
  margin-top: 1.75rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
}

.btn.primary {
  background: #ff3366;
  color: #fff;
}

.btn.secondary {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
  
}

#cta3 {
  background: transparent;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  /* Link the animation here */
  animation: growShrink 1.5s ease-in-out infinite;
}

/* The Smooth Grow/Shrink Effect */
@keyframes growShrink {
  0% {
    transform: scale(1); /* Original size */
  }
  50% {
    transform: scale(1.25); /* Grows 20% larger */
  }
  100% {
    transform: scale(0.9); /* Shrinks back smoothly */
  }
}

/* ANIMATION */
@keyframes hero-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
[class*='fa-'] {
  color: var(--primary);
  font-size: 1.3em;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  /* transform: translate(0%, -50%); */
  color: white;
  background-color: rgba(60, 0 , 29, 0.8);
  border-top: 0.1rem solid grey;
  border-left: 0.1rem solid grey;
  padding: 6%;
  text-align: center;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.bottom-align {
  position: absolute;
  bottom: 15px;
}

/*  */
.continuous-track {
  display: flex;
  height: 9em;
  width: max-content;
  animation: track-scroll 20s linear infinite;
}

.continuous-track:hover {
  animation-play-state: paused;
}

.cont-track-slide {
  flex: 0 0 auto;
  height: 100%;
}

.cont-track-slide img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  padding-right: 0.2em;
}

@keyframes track-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
[class*='fa-'] {
  color: var(--primary);
  font-size: 1.3em;
}

/* CUBE ROTATION */

        /* 1. The Perspective Scene Container */
        .cube-wrapper {
          width: 200px;
          height: 200px;
          perspective: 600px; /* Gives depth to the 3D space */
          margin: 0 auto;
      }

      /* 2. The Cube Wrapper */
      .cube {
          width: 100%;
          height: 100%;
          position: relative;
          margin: 4em 0 4em 0;
          transform-style: preserve-3d; /* Inherits 3D context for children */
          animation: spinCube 12s infinite linear;
      }

      /* 3. Base Styling for All Faces */
      .cube__face {
          position: absolute;
          width: 200px;
          height: 200px;
          border: 2px solid #fff;
          line-height: 200px;
          font-size: 24px;
          font-weight: bold;
          color: white;
          text-align: center;
          background: rgba(255, 255, 255, 0.1);
          backdrop-filter: blur(4px);
          box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
          user-select: none;
          box-sizing: border-box;
          
          /* Clean presentation of multi-line arrays if text is long */
          display: flex;
          align-items: center;
          justify-content: center;
          padding: 10px;
          line-height: 1.4;
      }

      .cube__face p {
        font-size: clamp(8px, 10cqw, 36px); 
        margin: 0;
        color: var(--primary);
      }

      /* 4. Position and Rotate Each Face in 3D Space */
      /* Note: Each face translates out exactly half the cube's width (100px) */
      .cube__face--front  { transform: rotateY(  0deg) translateZ(100px); border-color: #ff3366; }
      .cube__face--back   { transform: rotateY(180deg) translateZ(100px); border-color: #33ff66; }
      .cube__face--right  { transform: rotateY( 90deg) translateZ(100px); border-color: #3366ff; }
      .cube__face--left   { transform: rotateY(-90deg) translateZ(100px); border-color: #ffcc00; }
      .cube__face--top    { transform: rotateX( 90deg) translateZ(100px); border-color: #ff00ff; }
      .cube__fasce--bottom { transform: rotateX(-90deg) translateZ(100px); border-color: #00ffff; }

      /* Pause animation on hover for easier readability */
      .cube:hover {
          animation-play-state: paused;
          cursor: pointer;
      }

      /* 5. Infinite Rotation Keyframes */
      @keyframes spinCube {
          0%   { transform: rotateX(0deg) rotateY(0deg); }
          100% { transform: rotateX(360deg) rotateY(360deg); }
      }

      /* Scroll Box */
      .scroll-box {
        height: 60px; /* Fixed height box */
        overflow: hidden;
        /* border: 1px solid #ccc; */
        display: flex;
        align-items: center;
        padding: 0 10px;
      }

      .scroll-box {
  overflow: hidden;
  position: relative;
  height: 60px;
  display: flex;
  align-items: center;
}

.scroll-text {
  position: absolute;
  padding: 0 10px;
  width: 100%;
  left: 0;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.scroll-enter {
  transform: translateY(100%);
  opacity: 0;
}

.scroll-active {
  transform: translateY(0);
  opacity: 1;
}

.scroll-exit {
  transform: translateY(-100%);
  opacity: 0;
}

.scroll-white {
  color: #ffffff;
}

.scroll-pink {
  color: var(--primary);
}

