/* ============================================================
   DEL! — animations.css
   Visual effects, transitions, hover states & CSS animations.
   Complements style.css (layout) and JS animations (GSAP).
   ============================================================ */

/* -------------------------------------------------------
   0. GLOBAL TRANSITION DEFAULTS
   ------------------------------------------------------- */
*,
*::before,
*::after {
  /* Smooth base for everything that might animate */
  transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
}

/* -------------------------------------------------------
   1. PRELOADER
   ------------------------------------------------------- */
.preloader__logo {
  font-family: var(--font-display, 'Anton', sans-serif);
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
  letter-spacing: 0.05em;
  user-select: none;
}

.preloader__letter {
  display: inline-block;
  animation: glitch 0.4s cubic-bezier(0.23, 1, 0.32, 1) both;
  position: relative;
}

.preloader__letter:nth-child(1) { animation-delay: 0.0s; }
.preloader__letter:nth-child(2) { animation-delay: 0.08s; }
.preloader__letter:nth-child(3) { animation-delay: 0.16s; }
.preloader__letter:nth-child(4) { animation-delay: 0.24s; }

/* Glitch per-letter */
@keyframes glitch {
  0% {
    opacity: 0;
    transform: translateX(-8px) skewX(20deg);
    color: var(--red);
    text-shadow: 2px 0 var(--red), -2px 0 cyan;
  }
  30% {
    opacity: 1;
    transform: translateX(4px) skewX(-10deg);
    text-shadow: -3px 0 var(--red), 3px 0 cyan;
  }
  50% {
    transform: translateX(-2px) skewX(5deg);
    text-shadow: 1px 0 var(--red), -1px 0 cyan;
  }
  100% {
    opacity: 1;
    transform: translateX(0) skewX(0deg);
    text-shadow: none;
  }
}

/* -------------------------------------------------------
   2. SHOCKWAVE / RIPPLE ON PAGE LOAD
   ------------------------------------------------------- */
.shockwave {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  margin-top: -50px;
  margin-left: -50px;
  border-radius: 50%;
  border: 2px solid var(--red);
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transform: scale(0);
  animation: shockwave-expand 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.shockwave:nth-child(2) {
  animation-delay: 0.15s;
  border-width: 1px;
}

.shockwave:nth-child(3) {
  animation-delay: 0.3s;
  border-color: rgba(214, 40, 40, 0.5);
}

@keyframes shockwave-expand {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  70% {
    opacity: 0.4;
  }
  100% {
    transform: scale(3);
    opacity: 0;
  }
}

/* -------------------------------------------------------
   3. HERO ANIMATIONS
   ------------------------------------------------------- */
.hero__title-accent {
  text-shadow: 0 0 40px var(--red-glow, rgba(214, 40, 40, 0.3)),
               0 0 80px rgba(214, 40, 40, 0.1);
  animation: subtle-pulse 4s ease-in-out infinite;
}

@keyframes subtle-pulse {
  0%, 100% {
    text-shadow: 0 0 40px var(--red-glow, rgba(214, 40, 40, 0.3)),
                 0 0 80px rgba(214, 40, 40, 0.1);
  }
  50% {
    text-shadow: 0 0 60px var(--red-glow, rgba(214, 40, 40, 0.4)),
                 0 0 100px rgba(214, 40, 40, 0.2),
                 0 0 140px rgba(214, 40, 40, 0.08);
  }
}

.hero__tagline {
  opacity: 0;
  animation: fade-up 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.6s forwards;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll indicator */
.hero__scroll-indicator {
  animation: bounce 2s ease-in-out infinite;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.hero__scroll-indicator:hover {
  opacity: 1;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-15px);
  }
  60% {
    transform: translateY(-7px);
  }
}

/* -------------------------------------------------------
   5. SERVICE CARDS — GLASS MORPHISM + GLOW
   ------------------------------------------------------- */
.service-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1),
              border-color 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
  position: relative;
}

/* Red glow border on hover (pseudo-element) */
.service-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    rgba(214, 40, 40, 0.4),
    transparent 40%,
    transparent 60%,
    rgba(214, 40, 40, 0.15)
  );
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: -1;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(214, 40, 40, 0.1),
              0 0 30px rgba(214, 40, 40, 0.06);
  border-color: rgba(214, 40, 40, 0.2);
}

/* Inner content shine on hover */
.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 0, 0, 0.02),
    transparent
  );
  transition: none;
  pointer-events: none;
}

.service-card:hover::after {
  animation: card-shine 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes card-shine {
  from {
    left: -100%;
  }
  to {
    left: 150%;
  }
}

/* Service icon */
.service-card__icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card:hover .service-card__icon {
  transform: scale(1.15) rotate(-3deg);
}

/* Price styling */
.service-card__price-value {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--red), #E85D5D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  transition: filter 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-card:hover .service-card__price-value {
  filter: brightness(1.2);
}

.service-card__price-unit {
  font-size: 1.2rem;
  color: var(--gray);
  font-weight: 400;
}

/* -------------------------------------------------------
   6. PROJECT CARDS
   ------------------------------------------------------- */
.project-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--dark-card, #ffffff);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              border-color 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1),
              0 0 20px rgba(214, 40, 40, 0.06);
  border-color: rgba(0, 0, 0, 0.1);
}

/* Cover image area */
.project-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
}

.project-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
              filter 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-card:hover .project-cover img {
  transform: scale(1.08);
  filter: brightness(0.7);
}

/* Overlay with platform links */
.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

/* Platform link icons */
.platform-link {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: translateY(20px);
  opacity: 0;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-card:hover .platform-link {
  transform: translateY(0);
  opacity: 1;
}

/* Stagger platform link entrances */
.project-card:hover .platform-link:nth-child(1) { transition-delay: 0.05s; }
.project-card:hover .platform-link:nth-child(2) { transition-delay: 0.1s; }
.project-card:hover .platform-link:nth-child(3) { transition-delay: 0.15s; }
.project-card:hover .platform-link:nth-child(4) { transition-delay: 0.2s; }
.project-card:hover .platform-link:nth-child(5) { transition-delay: 0.25s; }

/* Reset delays when not hovering for clean exit */
.platform-link:nth-child(1) { transition-delay: 0s; }
.platform-link:nth-child(2) { transition-delay: 0s; }
.platform-link:nth-child(3) { transition-delay: 0s; }
.platform-link:nth-child(4) { transition-delay: 0s; }
.platform-link:nth-child(5) { transition-delay: 0s; }

.platform-link:hover {
  transform: scale(1.2) translateY(0) !important;
  border-color: transparent;
}

.platform-link.spotify:hover {
  background: #1DB954;
  box-shadow: 0 4px 20px rgba(29, 185, 84, 0.4);
}

.platform-link.apple:hover {
  background: #FC3C44;
  box-shadow: 0 4px 20px rgba(252, 60, 68, 0.4);
}

.platform-link.youtube:hover {
  background: #FF0000;
  box-shadow: 0 4px 20px rgba(255, 0, 0, 0.4);
}

.platform-link.soundcloud:hover {
  background: #FF7700;
  box-shadow: 0 4px 20px rgba(255, 119, 0, 0.4);
}

.platform-link.deezer:hover {
  background: #A238FF;
  box-shadow: 0 4px 20px rgba(162, 56, 255, 0.4);
}

.platform-link svg {
  width: 22px;
  height: 22px;
  fill: white;
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.platform-link:hover svg {
  transform: scale(1.1);
}

/* Project info */
.project-info {
  padding: 1rem 1.2rem;
}

.project-artist {
  font-weight: 700;
  color: var(--white);
  font-size: 0.95rem;
}

.project-title {
  color: var(--gray);
  font-size: 0.85rem;
  margin-top: 2px;
}

/* -------------------------------------------------------
   7. BADGES / LABELS
   ------------------------------------------------------- */
.project-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: box-shadow 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.badge-mix {
  background: rgba(214, 40, 40, 0.1);
  color: var(--red);
  border: 1px solid rgba(214, 40, 40, 0.25);
}

.badge-mix:hover {
  box-shadow: 0 0 12px rgba(214, 40, 40, 0.2);
}

.badge-mastering {
  background: rgba(0, 151, 178, 0.1);
  color: #0097b2;
  border: 1px solid rgba(0, 151, 178, 0.25);
}

.badge-mastering:hover {
  box-shadow: 0 0 12px rgba(0, 151, 178, 0.2);
}

.badge-mix-master {
  background: linear-gradient(
    135deg,
    rgba(214, 40, 40, 0.1),
    rgba(0, 151, 178, 0.1)
  );
  color: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.badge-mix-master:hover {
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);
}

/* -------------------------------------------------------
   8. FILTER BUTTONS
   ------------------------------------------------------- */
.filter-bar {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: 30px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: transparent;
  color: var(--gray);
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--red);
  border-radius: 30px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: -1;
}

.filter-btn:hover {
  border-color: var(--red);
  color: var(--red);
}

.filter-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: white;
  box-shadow: 0 4px 20px rgba(214, 40, 40, 0.25);
}

.filter-btn.active::before {
  transform: scaleX(1);
}

/* -------------------------------------------------------
   9. CTA / MAGNETIC BUTTONS
   ------------------------------------------------------- */
.cta-btn,
.magnetic-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 40px;
  background: var(--red);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.3s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.3s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  text-decoration: none;
  font-family: var(--font-body, 'Inter', sans-serif);
  letter-spacing: 0.02em;
  z-index: 1;
}

.cta-btn:hover,
.magnetic-btn:hover {
  background: var(--red-dark, #B71C1C);
  box-shadow: 0 10px 40px rgba(214, 40, 40, 0.3);
  transform: translateY(-2px);
}

.cta-btn:active,
.magnetic-btn:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 4px 20px rgba(214, 40, 40, 0.25);
}

/* Pulsing CTA */
.cta-btn.pulse {
  animation: cta-pulse 2s ease-in-out infinite;
}

@keyframes cta-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(214, 40, 40, 0.4);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(214, 40, 40, 0);
  }
}

/* Shimmer sweep on CTA */
.cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  z-index: -1;
}

.cta-btn:hover::before {
  animation: btn-shimmer 0.7s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes btn-shimmer {
  from { left: -100%; }
  to { left: 100%; }
}

/* Ripple effect (positioned by JS) */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple-effect 0.6s ease-out forwards;
  pointer-events: none;
}

@keyframes ripple-effect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Secondary / outline button variant */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  text-decoration: none;
}

.btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
  box-shadow: 0 0 20px rgba(214, 40, 40, 0.12);
}

/* -------------------------------------------------------
   10. SCROLL REVEAL BASE STATES
   ------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  will-change: opacity, transform;
}

[data-reveal="left"] {
  opacity: 0;
  transform: translateX(-40px);
}

[data-reveal="right"] {
  opacity: 0;
  transform: translateX(40px);
}

[data-reveal="scale"] {
  opacity: 0;
  transform: scale(0.9);
}

[data-reveal="fade"] {
  opacity: 0;
  transform: none;
}

/* Revealed state (toggled by JS) */
[data-reveal].revealed {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Stagger support — JS adds data-reveal-delay with ms values */
[data-reveal].revealed[data-reveal-delay="100"] { transition-delay: 0.1s; }
[data-reveal].revealed[data-reveal-delay="200"] { transition-delay: 0.2s; }
[data-reveal].revealed[data-reveal-delay="300"] { transition-delay: 0.3s; }
[data-reveal].revealed[data-reveal-delay="400"] { transition-delay: 0.4s; }
[data-reveal].revealed[data-reveal-delay="500"] { transition-delay: 0.5s; }
[data-reveal].revealed[data-reveal-delay="600"] { transition-delay: 0.6s; }
[data-reveal].revealed[data-reveal-delay="700"] { transition-delay: 0.7s; }
[data-reveal].revealed[data-reveal-delay="800"] { transition-delay: 0.8s; }

/* -------------------------------------------------------
   11. CUSTOM CURSOR
   ------------------------------------------------------- */
.cursor {
  width: 20px;
  height: 20px;
  border: 2px solid var(--red);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  transition: width 0.3s cubic-bezier(0.23, 1, 0.32, 1),
              height 0.3s cubic-bezier(0.23, 1, 0.32, 1),
              border-color 0.3s cubic-bezier(0.23, 1, 0.32, 1),
              background 0.3s cubic-bezier(0.23, 1, 0.32, 1),
              opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  will-change: transform;
  /* JS positions via top/left or transform */
}

.cursor.hover {
  width: 50px;
  height: 50px;
  background: rgba(214, 40, 40, 0.1);
  border-color: var(--red);
}

.cursor.click {
  transform: translate(-50%, -50%) scale(0.8);
}

.cursor.hidden {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Glow curseur supprime (21/07/2026, demande de Phi) */

/* -------------------------------------------------------
   12. CUSTOM SCROLLBAR
   ------------------------------------------------------- */

/* Webkit browsers */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--black, #ffffff);
}

::-webkit-scrollbar-thumb {
  background: var(--red);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--red-dark, #c1121f);
}

/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--red) var(--black, #ffffff);
}

/* -------------------------------------------------------
   13. TEXT SELECTION
   ------------------------------------------------------- */
::selection {
  background: var(--red);
  color: white;
}

::-moz-selection {
  background: var(--red);
  color: white;
}

/* -------------------------------------------------------
   14. SECTION TITLES & DIVIDERS
   ------------------------------------------------------- */
.section-header__title {
  position: relative;
  display: inline-block;
}

.section-header__title::after {
  display: none;
}

/* Section label / eyebrow text */
.section-header__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* -------------------------------------------------------
   15. REDUCED MOTION
   ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .cursor {
    display: none !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero__mascot {
    animation: none !important;
  }
}

/* -------------------------------------------------------
   16. HAMBURGER MENU ANIMATION
   ------------------------------------------------------- */
.nav__hamburger {
  display: none; /* Shown on mobile via responsive.css */
  width: 30px;
  height: 20px;
  position: relative;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 0;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  position: absolute;
  transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  border-radius: 1px;
}

.nav__hamburger span:nth-child(1) { top: 0; }
.nav__hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav__hamburger span:nth-child(3) { bottom: 0; }

/* Active / open state — X shape */
.nav__hamburger.is-active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  background: var(--red);
}

.nav__hamburger.is-active span:nth-child(2) {
  opacity: 0;
  transform: translateY(-50%) scaleX(0);
}

.nav__hamburger.is-active span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
  background: var(--red);
}

/* -------------------------------------------------------
   17. MOBILE NAVIGATION OVERLAY
   ------------------------------------------------------- */
.mobile-menu.is-open {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  z-index: 1000;
}

.mobile-menu.is-open .mobile-menu__link {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 700;
  opacity: 0;
  transform: translateY(20px);
  animation: nav-link-in 0.4s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.mobile-menu.is-open .mobile-menu__link:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(2) { animation-delay: 0.15s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(3) { animation-delay: 0.2s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(4) { animation-delay: 0.25s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(5) { animation-delay: 0.3s; }

@keyframes nav-link-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -------------------------------------------------------
   18. ABOUT / CONTACT SECTION
   ------------------------------------------------------- */
.contact__email-link {
  color: var(--gray);
  text-decoration: none;
  position: relative;
  transition: color 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  display: inline-block;
}

.contact__email-link:hover {
  color: var(--red);
}

.contact__email-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--red);
  transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.contact__email-link:hover::after {
  width: 100%;
}

/* Social icons row */
.contact__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--gray);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
}

.contact__social-link:hover {
  border-color: var(--red);
  color: #ffffff;
  background: var(--red);
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 24px rgba(214, 40, 40, 0.2);
}

.contact__social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: fill 0.3s ease;
}

/* -------------------------------------------------------
   19. FOOTER
   ------------------------------------------------------- */
.footer {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer a {
  color: var(--gray);
  text-decoration: none;
  transition: color 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.footer a:hover {
  color: var(--red);
}

/* Easter egg: devil wink on copyright hover */
.footer__copyright {
  cursor: default;
  transition: color 0.3s ease;
}

.footer__copyright:hover {
  color: var(--red);
}

.footer__copyright:hover::after {
  content: ' ;)';
  display: inline;
  color: var(--red);
  animation: wink 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes wink {
  0% { opacity: 0; transform: translateX(-5px); }
  50% { transform: translateX(2px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* -------------------------------------------------------
   20. COUNTER ANIMATION HELPER
   ------------------------------------------------------- */
.count-up {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* -------------------------------------------------------
   21. LOADING / SKELETON STATES
   ------------------------------------------------------- */
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.04) 25%,
    rgba(0, 0, 0, 0.08) 50%,
    rgba(0, 0, 0, 0.04) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease infinite;
  border-radius: 8px;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* -------------------------------------------------------
   22. TOOLTIP
   ------------------------------------------------------- */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 6px 12px;
  background: rgba(26, 26, 26, 0.9);
  color: #ffffff;
  font-size: 0.75rem;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  border: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 100;
}

[data-tooltip]:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* -------------------------------------------------------
   23. FOCUS STYLES (ACCESSIBILITY)
   ------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Remove default outline for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}

/* -------------------------------------------------------
   24. SMOOTH SCROLL (CSS baseline — JS may override)
   ------------------------------------------------------- */
html {
  scroll-behavior: smooth;
}

/* -------------------------------------------------------
   25. IMAGE TREATMENTS
   ------------------------------------------------------- */
.img-reveal {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.img-reveal.revealed {
  clip-path: inset(0 0 0 0);
}

/* Grayscale to color on hover */
.img-color-reveal {
  filter: grayscale(100%);
  transition: filter 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.img-color-reveal:hover {
  filter: grayscale(0%);
}

/* -------------------------------------------------------
   26. NOISE / GRAIN OVERLAY (subtle texture)
   ------------------------------------------------------- */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9997;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}
