.intro-section {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 3rem;
  background-color: #0a0a0a;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.04) 0px,
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px,
    transparent 14px
  );
  overflow: hidden;
}

.intro-section main {
  flex: 1;
  min-width: 0;
  padding: 1.5rem 0 0;
  margin: 0;
  max-width: 640px;
}

/* Simple cross-fade between the intro card and the site content. Hiding
   uses position:absolute + opacity, never display:none — switching an
   element to display:none and back resets every CSS animation inside it
   (the video card entrances, tab fades, etc.), which is what made the
   reveal feel like a stutter/freeze. Position swap avoids that entirely. */
.intro-card {
  width: 100%;
  max-width: 380px;
  background: #141414;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  opacity: 1;
  transition: opacity 0.4s ease;
}

.intro-card.fading {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

main {
  opacity: 0;
  position: absolute;
  pointer-events: none;
  transition: opacity 0.4s ease, max-width 0.5s var(--ease-smooth);
}

main.visible {
  position: static;
}

main.visible.shown {
  opacity: 1;
  pointer-events: auto;
}

.reveal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.9rem 1.1rem;
  margin-top: 0.3rem;
  background: linear-gradient(135deg, var(--accent, #ff4d4d), var(--accent-light, #ff7a7a));
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.4s var(--ease-smooth), opacity 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
  box-shadow: 0 10px 25px rgba(255, 77, 77, 0.3);
}

.reveal-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(255, 77, 77, 0.45);
}

.reveal-btn i {
  transition: transform 0.4s var(--ease-smooth);
}

.reveal-btn:hover i {
  transform: translateX(4px);
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: center;
  margin-bottom: 1rem;
  padding: 0.6rem 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  color: var(--text-muted, #a0a0a0);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.back-btn:hover {
  background: rgba(255, 77, 77, 0.1);
  border-color: rgba(255, 77, 77, 0.4);
  color: var(--text, #f2f2f2);
  transform: translateX(-3px);
}

.back-btn i {
  transition: transform 0.4s var(--ease-smooth);
}

.back-btn:hover i {
  transform: translateX(-3px);
}

@media (max-width: 900px) {
  html, body {
    height: auto;
    min-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
  }

  body {
    flex-shrink: 0;
  }

  .intro-section {
    flex: none;
    flex-direction: column;
    align-items: center;
    height: auto;
    gap: 2rem;
    padding: 2rem 1.25rem 2.5rem;
    overflow: visible;
  }

  .intro-card {
    width: 100%;
    max-width: 420px;
  }

  .intro-section main {
    width: 100%;
    flex: none;
    height: auto;
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .intro-section {
    padding: 1.5rem 1rem 2rem;
    gap: 1.5rem;
  }

  .intro-photo {
    aspect-ratio: 4 / 3;
  }
}

.intro-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
}

.intro-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.intro-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(20, 20, 20, 0) 45%, rgba(20, 20, 20, 0.95) 100%);
}

.intro-name {
  position: absolute;
  left: 1.5rem;
  bottom: 1.3rem;
  right: 1.5rem;
  z-index: 2;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 900;
  font-size: clamp(1.6rem, 8vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.intro-name-light {
  color: #f5f5f5;
}

.intro-name-accent {
  color: var(--accent-light, #ff7a7a);
}

.intro-location {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-muted, #a0a0a0);
}

.intro-divider {
  flex-shrink: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 1.4rem 1.5rem 0;
}

.intro-info {
  flex-shrink: 0;
  padding: 1.4rem 1.5rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.intro-field {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: #1c1c1c;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  text-decoration: none;
  transition: border-color 0.4s var(--ease-smooth), transform 0.4s var(--ease-smooth);
}

.intro-field-link:hover {
  border-color: var(--accent, #ff4d4d);
  transform: translateY(-2px);
}

.intro-field i {
  font-size: 1.2rem;
  color: #8a8a8a;
}

.intro-label {
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #8a8a8a;
  margin-bottom: 0.15rem;
}

.intro-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-light, #ff7a7a);
}

.intro-socials {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.2rem;
}

.intro-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1c1c1c;
  border: 1px solid #2a2a2a;
  color: #8a8a8a;
  font-size: 0.95rem;
  text-decoration: none;
  transition: border-color 0.4s var(--ease-smooth), color 0.4s var(--ease-smooth), transform 0.4s var(--ease-smooth);
}

.intro-social-icon:hover {
  border-color: var(--accent, #ff4d4d);
  color: var(--accent-light, #ff7a7a);
  transform: translateY(-2px);
}
