/* ===== PROWIE MEDIA – DARK MODE V3 (SCHWARZ) ===== */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

:root {
  /* Variante 3: Reiner Schwarz-Hintergrund */
  --bg:          #000000;   /* Purer Schwarz */
  --bg2:         #0a0a0a;
  --surface:     #121212;
  --surface2:    #1a1a1a;
  --text:        #f0f0f0;
  --muted:       #a0a0a0;
  --muted2:      #00ff88;   /* Neon-Grün für DJ-Energie */
  --accent:      #f0f0f0;
  --white:       #ffffff;
  --border:      rgba(240, 240, 240, 0.06);
  --border2:     rgba(240, 240, 240, 0.20);

  /* Alle anderen unverändert */
  --radius:      10px;
  --radius-lg:   14px;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'DM Sans', sans-serif;
}



*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  cursor: none;
}

/* ===== CUSTOM GLOW CURSOR ===== */
.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--muted2);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform 0.01s ease, background 0.2s;
}

.cursor-glow {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, #00ff8830 0%, #00ff8800 60%, transparent 100%);
  transition: transform 0.s cubic-bezier(0.25,0.46,0.45,0.94), width 0.2s, height 0.2s, background 0.2s;
}

.cursor-glow.cursor--hover {
  width: 172px;
  height: 172px;
  background: radial-gradient(circle, #00ff8830 0%, #00ff8800 60%, transparent 100%);
}

/* grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 9999;
}

/* ===== PAGE ===== */
.page {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== NAV ===== */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.8rem 0 1.6rem;
  position: relative;
  z-index: 100;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.06em;
  color: var(--white);
  text-decoration: none;
}
.nav__logo span { color: var(--muted2); }

.nav__links {
  list-style: none;
  display: flex;
  gap: 2.2rem;
  margin: 0; padding: 0;
}

.nav__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.15s;
}
.nav__links a:hover { color: var(--white); }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  border: 1px solid var(--border2);
  border-radius: 6px;
  background: transparent;
  cursor: none;
  padding: 0;
}
.nav__toggle span {
  width: 16px; height: 1.5px;
  align-self: center;
  border-radius: 2px;
  background: var(--white);
}

/* ===== HEADER / HERO ===== */
.header {
  position: relative;
  overflow: hidden;
}

.hero {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  padding: 4rem 0 7rem;
  border-bottom: 1px solid var(--border);
}

.hero__content { max-width: 700px; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.4rem;
}
.hero__eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--muted2);
}

.hero h1 {
  margin: 0 0 1.4rem;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 10vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: var(--white);
}
.hero h1 em { font-style: normal; color: var(--muted2); }

.hero__text {
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 300;
  max-width: 520px;
  margin: 0 0 2.4rem;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--white);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.85rem 1.8rem;
  border-radius: 4px;
  border: 1px solid var(--border2);
  transition: border-color 0.15s, background 0.15s;
}
.hero__cta:hover { border-color: var(--muted2); background: rgba(184,98,26,0.06); }
.hero__cta svg { transition: transform 0.15s; }
.hero__cta:hover svg { transform: translateX(3px); }

.hero__scroll {
  position: absolute;
  bottom: 2.4rem; left: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted2);
}
.hero__scroll::after {
  content: '';
  width: 40px; height: 1px;
  background: var(--muted2);
}

/* ===== SECTIONS ===== */
.section { padding: 5rem 0; border-bottom: 1px solid var(--border); }
.section:last-of-type { border-bottom: none; }

.section__label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted2);
  margin-bottom: 1.2rem;
}
.section__label::before {
  content: '';
  width: 22px; height: 1px;
  background: var(--muted2);
}

.section__title {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--white);
}

/* ===== ABOUT ===== */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
  padding-top: 0.5rem;
}

.about__body {
  font-size: 0.96rem;
  color: var(--muted);
  font-weight: 300;
}
.about__body p + p { margin-top: 0.8rem; }
.about__body p:first-child { margin-top: 0; }

.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 2rem;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
}
.stat__num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--white);
  letter-spacing: 0.03em;
}
.stat__num span { color: var(--muted2); }
.stat__label {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.3rem;
}

/* ===== MARQUEE BAR ===== */
.marquee-bar {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  background: var(--bg2);
}

.marquee-track {
  display: inline-flex;
  gap: 1.6rem;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  will-change: transform;
}

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

.marquee-track span {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted2);
  flex-shrink: 0;
}

.marquee-dot {
  color: var(--border2) !important;
  letter-spacing: 0 !important;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2.8rem;
}

.gallery__item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gallery__item:hover {
  border-color: var(--muted2);
  box-shadow: 0 4px 24px rgba(184,98,26,0.10);
}

.gallery__item:first-child {
  grid-column: 1 / -1;
}

.gallery__thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.gallery__item:first-child .gallery__thumb {
  aspect-ratio: 21/9;
}

/* Stärkerer Fade-Overlay von unten nach oben */
.gallery__thumb::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 30%; /* Fade beginnt höher, unten stärker dunkel */
  background-image: linear-gradient(
    to bottom,
    transparent,
    rgba(0, 0, 0, 0.5),
    rgba(0, 0, 0, 0.9)
  );
  pointer-events: none;
  z-index: 1;
}

/* Deine Farb-Gradients (falls du sie noch willst) */
.gallery__thumb--1 { background-image: linear-gradient(135deg, #ddd5c4, #e8dfd0, #ddd5c4); }
.gallery__thumb--2 { background-image: linear-gradient(135deg, #d8d1c2, #e4dbd0, #d8d1c2); }
.gallery__thumb--3 { background-image: linear-gradient(135deg, #ddd5c4, #e8dfd0, #ddd5c4); }
.gallery__thumb--4 { background-image: linear-gradient(135deg, #d8d1c2, #e4dbd0, #d8d1c2); }

/* Wenn du später echte Bilder einsetzen willst:
.gallery__thumb--1 { background-image: url('aftermovie_1.png'); }
.gallery__thumb--2 { background-image: url('uni-salzburg_1.png'); }
*/

.gallery__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.2rem 1.4rem 1.4rem;
  z-index: 2;
}

.gallery__tag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.gallery__overlay h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.9); /* optional, für bessere Lesbarkeit */
}

/* ===== TEAM CARDS ===== */
.team-wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-top: 2.8rem;
}

.team-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}
.team-card:hover {
  border-color: var(--muted2);
  box-shadow: 0 8px 36px rgba(184,98,26,0.13);
  transform: translateY(-3px);
}

.team-card__avatar {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--surface2);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.team-card__initials {
  font-family: var(--font-display);
  font-size: 5rem;
  letter-spacing: 0.06em;
  color: var(--muted2);
  opacity: 0.55;
  user-select: none;
  z-index: 1;
}

.team-card__avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(184,98,26,0.07) 0%, transparent 70%);
}

.team-card__body {
  padding: 1.6rem 1.8rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.team-card__role {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted2);
}

.team-card__name {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--white);
  margin: 0;
}

.team-card__bio {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 300;
  margin: 0.5rem 0 0;
  line-height: 1.55;
}

.team-card__arrow {
  margin-top: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted2);
  transition: gap 0.15s;
}
.team-card:hover .team-card__arrow { 
  gap: 0.7rem; 
}


/* ===== SKILLS ===== */
.skills-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.8rem;
}

.skills__group {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.8rem;
  transition: border-color 0.2s;
}
.skills__group:hover { border-color: var(--border2); }

.skills__icon {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}
.skills__icon svg { width: 18px; height: 18px; stroke: var(--muted); fill: none; }

.skills__group h3 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--white);
}

.skills__group ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.skills__group li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 300;
}
.skills__group li::before {
  content: '—';
  color: var(--muted2);
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* ===== CONTACT ===== */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2.8rem;
}

.contact__info p {
  font-size: 0.96rem;
  color: var(--muted);
  font-weight: 300;
  margin: 0 0 2rem;
}

.contact__list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.contact__list li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.contact__list strong {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted2);
  font-weight: 500;
}
.contact__list a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.94rem;
  transition: color 0.15s;
}
.contact__list a:hover { color: var(--muted2); }

.contact__form {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 2rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1.1rem;
}
.field label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted2);
}
.field input,
.field textarea {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: border-color 0.15s;
  outline: none;
  cursor: none;
}
.field textarea { resize: vertical; min-height: 110px; border-radius: 8px; }
.field input:focus,
.field textarea:focus { border-color: var(--muted2); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 4px;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: none;
  transition: background 0.15s, border-color 0.15s;
}
.btn--primary {
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--white);
}
.btn--primary:hover {
  border-color: var(--muted2);
  background: rgba(184,98,26,0.06);
}
.btn--outline { background: transparent; border: 1px solid var(--border2); color: var(--text); }
.btn--outline:hover { border-color: var(--muted2); color: var(--muted2); }
.btn--full { width: 100%; margin-top: 0.5rem; }

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: 2rem;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.footer__logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--white);
}
.footer__logo span { color: var(--muted2); }

/* ===== PROJECT PAGE ===== */
.project-body { background: var(--bg); }
.project { padding: 2rem 0 4rem; }

.project__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted2);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.15s;
}
.project__back:hover { color: var(--white); }

.project__header { margin-bottom: 2.5rem; }
.project__header h1 {
  margin: 0.5rem 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--white);
}
.project__meta { margin: 0; font-size: 0.85rem; color: var(--muted); letter-spacing: 0.05em; }

.project__layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: start;
}

.project__frame {
  border-radius: var(--radius-lg);
  aspect-ratio: 16/9;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.8rem;
  color: var(--muted2);
  font-size: 0.85rem;
}
.project__frame svg { width: 36px; height: 36px; stroke: var(--muted2); fill: none; opacity: 0.4; }

.project__content h2 {
  margin-top: 0;
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.04em;
  color: var(--white);
}
.project__content h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-top: 1.8rem;
  margin-bottom: 0.5rem;
}
.project__content p { color: var(--muted); font-size: 0.94rem; font-weight: 300; }
.project__content ul { padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.project__content ul li { color: var(--muted); font-size: 0.94rem; }
.project__content ul li::before { content: '— '; color: var(--muted2); }

/* ===== TEAM PROFILE PAGE ===== */
.profile { padding: 2rem 0 5rem; }

.profile__hero {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3.5rem;
  align-items: start;
  margin-bottom: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--border);
}

.profile__avatar {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile__avatar-initials {
  font-family: var(--font-display);
  font-size: 7rem;
  letter-spacing: 0.06em;
  color: var(--muted2);
  opacity: 0.5;
  z-index: 1;
}


.profile__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}



.profile__avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(184,98,26,0.08) 0%, transparent 70%);
}

.profile__info {
  padding-top: 0.5rem;
}

.profile__role {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted2);
  margin-bottom: 0.7rem;
}

.profile__name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.8rem);
  line-height: 0.92;
  letter-spacing: 0.03em;
  color: var(--white);
  margin: 0 0 1.6rem;
}

.profile__bio {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.7;
  max-width: 480px;
  margin: 0 0 2rem;
}

.profile__links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.profile__link-item {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}
.profile__link-item strong {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted2);
  font-weight: 500;
}
.profile__link-item a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}
.profile__link-item a:hover { color: var(--muted2); }

.profile__skills-section h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.04em;
  color: var(--white);
  margin: 0 0 1.4rem;
}

.profile__skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: border-color 0.15s, color 0.15s;
}
.skill-tag:hover { border-color: var(--muted2); color: var(--muted2); }

/* ===== SCROLL ANIMATIONS ===== */

/* Fade-up: default for most elements */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Delay helpers */
.reveal--d1 { transition-delay: 0.1s; }
.reveal--d2 { transition-delay: 0.2s; }
.reveal--d3 { transition-delay: 0.3s; }
.reveal--d4 { transition-delay: 0.4s; }
.reveal--d5 { transition-delay: 0.5s; }

/* Fade from left */
.reveal--left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal--left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Fade from right */
.reveal--right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal--right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scale-in for cards */
.reveal--scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal--scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Stat number glow on entry */
.stat.is-visible .stat__num {
  animation: statGlow 0.8s ease forwards;
}
@keyframes statGlow {
  0%   { text-shadow: none; }
  50%  { text-shadow: 0 0 18px rgba(0,255,136,0.55); }
  100% { text-shadow: none; }
}

/* Skill tag stagger */
.skill-tag {
  opacity: 0;
  transform: translateY(12px) scale(0.95);
  transition: opacity 0.4s ease, transform 0.4s ease,
              border-color 0.15s, color 0.15s;
}
.skill-tag.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; gap: 2rem; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__item:first-child { grid-column: 1; }
  .gallery__item:first-child .gallery__thumb { aspect-ratio: 16/9; }
  .skills-wrap { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr; gap: 2rem; }
  .project__layout { grid-template-columns: 1fr; }
  .team-wrap { grid-template-columns: 1fr; }
  .profile__hero { grid-template-columns: 1fr; }
  .profile__avatar { aspect-ratio: 4/3; }
}

@media (max-width: 660px) {
  .page { padding: 0 1.2rem; }
  .skills-wrap { grid-template-columns: 1fr; }
  .about__stats { grid-template-columns: 1fr 1fr; }
  .team-wrap { grid-template-columns: 1fr; }

  .nav__links {
    position: fixed;
    inset: 0 0 auto;
    background: rgba(245,240,232,0.98);
    padding: 5rem 1.5rem 2rem;
    flex-direction: column;
    gap: 1.2rem;
    transform: translateY(-100%);
    transition: transform 0.22s ease-out;
    z-index: 50;
  }
  .nav__links--open { transform: translateY(0); }
  .nav__toggle { display: inline-flex; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
