/* --t-per-bright-light: #ffffff;
  --t-per-medium-light: #f2f2f2;
  project-slide__title
  project-tag
  project-slide__description */
/* .project-slide__info h2 {
    color: var(--t-per-bright-light) !important;
  } */

/* Global smooth scrolling when html has class scroll-smooth */
html.scroll-smooth {
  scroll-behavior: smooth;
}

/* ------------------------------------------------
   Smooth scroll-reveal animations for animate-* classes
   (Used across headline, cards, sections, tools, etc.)
   If classes already exist in HTML, these styles make
   them animate in smoothly when JS toggles styles.
-------------------------------------------------- */
.animate-in-up,
.animate-headline,
.animate-card-2,
.animate-card-3,
.animate-card-5 {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--_animspeed-slow, 0.6s) var(--_animbezier, cubic-bezier(0.23, 0.65, 0.74, 1.09)),
    transform var(--_animspeed-slow, 0.6s) var(--_animbezier, cubic-bezier(0.23, 0.65, 0.74, 1.09));
  will-change: opacity, transform;
}

/* Visible state toggled by IntersectionObserver to allow replays */
.is-visible.animate-in-up,
.is-visible.animate-headline,
.is-visible.animate-card-2,
.is-visible.animate-card-3,
.is-visible.animate-card-5 {
  opacity: 1;
  transform: translateY(0);
}

/* Slightly varied durations to create a natural stagger */
.animate-card-2 {
  transition-duration: 0.5s;
}

.animate-card-3 {
  transition-duration: 0.65s;
}

.animate-card-5 {
  transition-duration: 0.8s;
}

/* Rotation helper (used by rotating scroll button text) */
.animate-rotation {
  transform-origin: 50% 50%;
  display: inline-block;
}

#resume>.content_block {
  margin-bottom: 0 !important;
}

@keyframes rotation {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* CV Dropdown */
.cv-dropdown {
  position: relative;
  display: inline-block;
}

.cv-dropdown__menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background: var(--background, #161616);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  margin-top: 0;
  transition: all .18s ease;
  z-index: 50;
}

.cv-dropdown:hover .cv-dropdown__menu,
.cv-dropdown:focus-within .cv-dropdown__menu {
  opacity: 1;
  pointer-events: auto;
}

.cv-dropdown__menu:hover {
  opacity: 1;
  pointer-events: auto;
}

.cv-dropdown .cv-option {
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
}

.cv-dropdown .cv-option:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Language switcher label spacing */
#lang-switcher .lang-label {
  margin-right: 6px;
}

/* Headline-specific dropdown stacking and spacing fix */
.headline__btnholder .cv-dropdown {
  position: relative;
  z-index: 40;
}

.headline__btnholder .cv-dropdown__menu {
  top: 100%;
  margin-top: 0;
  z-index: 50;
}

.headline__btnholder .cv-dropdown__menu::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

.headline__btnholder {
  overflow: visible;
}

/* Keep dropdown open via JS-added class for extra stability */
.headline__btnholder .cv-dropdown.is-open .cv-dropdown__menu {
  opacity: 1;
  pointer-events: auto;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {

  .animate-in-up,
  .animate-headline,
  .animate-card-2,
  .animate-card-3,
  .animate-card-5 {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}