:root {
  --color-bg: #0B0D17;
  --color-text: #FFFFFF;
  --color-text-secondary: #D0D6F9;
  --color-accent: #D0D6F9;
  --color-highlight: #3E3FCE;
  --color-border: #383B4B;

  --font-family-heading: 'Bellefair', serif;
  --font-family-subheading: 'Barlow Condensed', sans-serif;
  --font-family-body: 'Barlow', sans-serif;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semi: 600;
  --weight-bold: 700;

  --font-size-xxl: 150px;
  --font-size-xl: 100px;
  --font-size-lg: 56px;
  --font-size-md: 28px;
  --font-size-sm: 16px;
  --font-size-xs: 14px;

  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 96px;

  --button-bg: transparent;
  --button-border: 1px solid rgba(255, 255, 255, 0.25);
  --button-hover-bg: rgba(255, 255, 255, 0.1);
  --button-radius: 50%;
  --button-text-color: var(--color-text);

  --max-content-width: 1200px;
}

@import url('https://fonts.googleapis.com/css2?family=Bellefair&family=Barlow+Condensed:wght@400;700&family=Barlow:wght@400;500&display=swap');

* {
  margin: 0;
  box-sizing: border-box;
}

.container {
  max-width: 1350px;
  margin: 0 auto;
}

body {
  background-image: url('../img/crew-background.webp');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  height: 100vh;
  overflow: hidden;
  font-family: var(--font-family-body);
  color: var(--color-text);
}

/* Header */
.header {
  padding: 10px 55px;
  display: flex;
  align-items: center;
  font-family: var(--font-family-heading);

}

.logo img {
  display: block;
}

.line {
  background-color: #979797;
  height: 1px;
  width: 473px;
  margin-left: 64px;
}

.links {
  display: flex;
  align-items: center;
}

.links a {
  text-decoration: none;
  color: var(--color-text);
  white-space: nowrap;
}

ul {
  display: flex;
  column-gap: 48px;
  margin: 0;
  padding: 40px 120px;
  background-color: #ffffff17;
    list-style: none;
  backdrop-filter: blur(5px);
}

ul span {
  font-weight: var(--weight-bold);
}

li:hover {
  text-decoration: underline;
  cursor: pointer;
}
li::marker{
  font-size: 50px;
  color: #979797;
  cursor: pointer;
}
li::marker:focus{
  color: #fff;
} 
.links .active a {
  position: relative;
}

.links .active a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -18px;
  margin: auto;
  height: 3px;
  background-color: #fff;
  opacity: .9;
}

/* Crew layout */
.crew-middle {
  padding: 0px 165px;
  display: flex;
  column-gap: 160px;
  align-items: center;

}

/* Left column */
.left-crew {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  row-gap: 18px;
  justify-content: center;
}

.left-crew p {
  color: var(--color-accent);
  font-family: var(--font-family-subheading);
  font-size: 16px;
  letter-spacing: 4px;
}

.section-index {
  opacity: .4;
  margin-right: 12px;
  font-weight: var(--weight-bold);

}
.title-crew{
    margin-bottom: 80px;
    font-size: 28px;
}
.box-crew-text{
  display: flex;
  flex-direction: column;
  row-gap: 20px;
}

/* Crew tabs */
.crew-tabs {
  display: flex;
  align-items: center;
  column-gap: var(--space-sm);
  margin-top: 20px;
  padding: 0px 165px;
}

.crew-tab {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: #979797; /* cinza padrão */
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.crew-tab.active {
  background-color: #fff; /* bolinha branca ativa */
}




/* Role and name */
.role {
  font-family: var(--font-family-heading);
  font-size: 32px;
  letter-spacing: 2px;
  color: var(--color-text-secondary);
  margin-top: 8px;
  font-weight: 100;
  opacity: 0.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.crew-name {
  font-family: var(--font-family-heading);
  font-weight: normal;
  font-size: 56px;
  line-height: 1;
  color: #fff;
  margin-top: 4px;
  white-space: nowrap;
}

.box-crew-text .crew-bio {
  color: var(--color-text-secondary);
  font-family: var(--font-family-body);
  font-size: 18px;
  line-height: 32px;
  max-width: 520px;
  margin-top: 8px;
}

/* Right column hero */
.right-crew {
  width: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crew-hero {
  position: relative;
  width: 420px;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crew-hero img {
  max-width: 400px;
  height: auto;
  display: block;
  filter: drop-shadow(0 40px 80px rgba(0, 0, 0, .5));
}

/* Photo transitions */
.crew-hero .crew-photo {
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: transform 0.8s ease, opacity 0.6s ease;
}
.crew-hero .ansari{
  top: 80%;
}
.crew-hero .crew-photo.active {
  opacity: 1;
  transform: translateX(50%, -50%);
  z-index: 2;
}

.crew-hero .crew-photo.exit-left {
  transform: translate(-150%, -50%);
  opacity: 0;
}

.crew-hero .crew-photo.enter-right {
  transform: translate(150%, -50%);
  opacity: 0;
  z-index: 3;
}

/* Responsividade básica */
@media (max-width:900px) {
  .crew-middle {
    flex-direction: column-reverse;
    padding: 40px 40px;
    column-gap: 48px;
  }

  .crew-name {
    font-size: 48px;
  }

  .crew-hero {
    width: 300px;
    height: 300px;
  }

  .line {
    width: 240px;
    margin-left: 24px;
  }

  ul {
    padding: 20px 40px;
    column-gap: 20px;
  }
}