/* Reset transitions & animations */
*, *::before, *::after {
  animation: none !important;
  transition: none !important;
  will-change: auto !important;
}

/* ================================================================
   🧠 INTRO SECTION
   ================================================================ */
.hero-intro span {
  display: inline-block;
  font-size: 20px;
  font-weight: 500;
  color: aliceblue;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
  vertical-align: baseline;
  /* position: relative; top: 3px;  -- diganti agar hemat reflow */
  transform: translateY(3px); /* compositor-friendly */
}

/* Isolasi section agar repaint tidak menyebar */
.hero-intro,
.typewriter,
footer {
  contain: content;
}

/* ================================================================
   ⚡ TYPEWRITER (STATIC LOOK)
   ================================================================ */
.typewriter {
  display: block;
  overflow: visible;
  white-space: nowrap;
}

.typewriter h1 {
  display: content;
  font-family: "Fira Code", monospace;
  font-weight: 700;
  font-size: clamp(32px, 4vw, 56px);
  color: #ffffff;
}

.typewriter .typewriter-text::after {
  content: "_";
  color: #ffffff;
  margin-left: 3px;
  opacity: 1;
}

/* ================================================================
   📜 PARAGRAPH & TEXT
   ================================================================ */
p {
  color: #d2d2d2;
  font-size: 16px;
  margin-top: 10px;
  max-width: 700px;
}
p span, p a {
  color: #eb1313;
  text-decoration: none;
}
p a:hover {
  color: #ffd1d1;
}

/* Secondary text (accented) */
.text-secondary-2 {
  color: #ae1c27 !important;
}

/* ================================================================
   🔘 BUTTONS & LINKS
   ================================================================ */
a, button {
  color: aliceblue;
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-weight: 500;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover, button:hover {
  color: #ffffff;
  opacity: 0.85;
}

button {
  padding: 10px 20px;
  border-radius: 8px;
  background: #ff7a7a;
  color: #1c1b1f;
  font-weight: 600;
}
button:hover {
  background: #ff5050;
  color: #fff;
}

/* ================================================================
   🧩 CAROUSEL (MANUAL SCROLL)
   ================================================================ */
.carouselTicker__list {
  display: flex;
  gap: 12px; /* pas, gak kepadatan */
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 0;
  cursor: grab;
  /* scroll-behavior: smooth;  -- dimatikan demi efisiensi */
  -webkit-overflow-scrolling: touch;

  /* optimasi render offscreen + kontrol scroll */
  content-visibility: auto;
  contain-intrinsic-size: 64px 64px;
  overscroll-behavior: contain;
  scroll-snap-type: x proximity;
}
.carouselTicker__list:active { cursor: grabbing; }

.carouselTicker__item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  user-select: none;
  opacity: 0.9;
  transition: opacity 0.2s ease-in-out;
  scroll-snap-align: center;
}
.carouselTicker__item:hover {
  opacity: 1;
  /* Promosikan layer hanya saat diperlukan */
  will-change: transform, opacity;
}

.carouselTicker__item img {
  width: 52px;
  height: auto;
  display: block;
  /* filter: brightness(1);  -- dihapus agar tak memicu filter pipeline */
}

/* Hide scrollbar cleanly */
.carouselTicker__list::-webkit-scrollbar { display: none; }
.carouselTicker__list { scrollbar-width: none; }

/* ================================================================
   📱 RESPONSIVE FIXES
   ================================================================ */
@media (max-width: 992px) {
  .navbar-social { padding-right: 0 !important; }
  .burger-icon { right: 35px !important; }
}

@media (max-width: 768px) {
  .typewriter h1 {
    font-size: 30px;
  }
  .carouselTicker__item img {
    width: 42px;
  }
}

/* ================================================================
   🔧 SMOOTH INTERACTIONS
   ================================================================ */
img, svg {
  -webkit-user-drag: none;
  user-select: none;
}

/* ================================================================
   ✨ FOOTER & SMALL TEXT
   ================================================================ */
footer {
  text-align: center;
  font-size: 14px;
  color: #999;
  padding: 20px 0;
}
footer a {
  color: aliceblue;
}
footer a:hover {
  color: #fff;
}

.section-hero-2 .box-linear-animation .section-hero-description span:not(.text-dark), .section-skills-2 .box-linear-animation .section-hero-description span:not(.text-dark) {
    color: #ae1c27 !important;
}