/* Flamingo — Team & CV pages */

.hidden {
  display: none !important;
}

.team-page .team-intro {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.team-card {
  position: relative;
  padding: 36px 32px 32px;
  border-radius: var(--radius-lg, 20px);
  border: 1px solid var(--border-glass);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, border-color 0.3s ease;
  overflow: hidden;
}

.team-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.06), rgba(34, 211, 238, 0.04));
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
  border-color: rgba(59, 130, 246, 0.35);
}

.team-card:hover::before {
  opacity: 1;
}

.team-card-photo-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 24px;
}

.team-card-photo-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue, #3b82f6));
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.team-card:hover .team-card-photo-ring {
  opacity: 1;
  transform: rotate(8deg);
}

.team-card-photo {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border-glass);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
  z-index: 1;
}

.team-card:hover .team-card-photo {
  transform: scale(1.06);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.3);
}

.team-card-exp {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.1);
  border-radius: 50px;
}

.team-card-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
}

.team-card-role {
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--accent-cyan);
  margin-bottom: 16px;
}

.team-card-bio {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  text-align: center;
  margin-bottom: 20px;
}

.team-card-section {
  margin-bottom: 18px;
}

.team-card-section h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.team-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.team-tag {
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 50px;
  background: rgba(59, 130, 246, 0.12);
  color: var(--text-primary);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.team-tag--tech {
  background: rgba(34, 211, 238, 0.1);
  border-color: rgba(34, 211, 238, 0.25);
}

.team-card-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.875rem;
}

.team-card-contact a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.25s ease;
}

.team-card-contact a:hover {
  color: var(--accent-cyan);
}

.team-card-social {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.team-card-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  transition: all 0.25s ease;
}

.team-card-social a:hover {
  color: var(--accent-cyan);
  border-color: rgba(34, 211, 238, 0.4);
  transform: translateY(-2px);
}

.team-card-social svg {
  width: 18px;
  height: 18px;
}

.team-card-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* CV Page */
.cv-page {
  --cv-accent: #3b82f6;
  --cv-cyan: #22d3ee;
}

.cv-topbar {
  position: sticky;
  top: var(--header-height, 72px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 0 24px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border-glass);
  background: var(--bg-primary);
}

.cv-topbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cv-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
  padding: 40px;
  margin-bottom: 40px;
  border-radius: var(--radius-lg, 20px);
  border: 1px solid var(--border-glass);
  background: var(--bg-glass);
}

.cv-hero-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(59, 130, 246, 0.35);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.2);
}

.cv-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 6px;
}

.cv-hero-role {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--accent-cyan);
  margin-bottom: 12px;
}

.cv-hero-intro {
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 640px;
}

.cv-hero-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  font-size: 0.875rem;
}

.cv-hero-contact a {
  color: var(--text-secondary);
  text-decoration: none;
}

.cv-hero-contact a:hover {
  color: var(--accent-cyan);
}

.cv-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

.cv-sidebar {
  position: sticky;
  top: calc(var(--header-height, 72px) + 80px);
}

.cv-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border-glass);
  background: var(--bg-glass);
}

.cv-nav a {
  padding: 10px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.cv-nav a:hover,
.cv-nav a.active {
  color: var(--accent-cyan);
  background: rgba(59, 130, 246, 0.1);
}

.cv-section {
  margin-bottom: 40px;
  scroll-margin-top: calc(var(--header-height, 72px) + 100px);
}

.cv-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-glass);
}

.cv-section-header h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.cv-section-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.12);
  font-size: 1.125rem;
}

.cv-item {
  padding: 20px;
  margin-bottom: 12px;
  border-radius: 14px;
  border: 1px solid var(--border-glass);
  background: var(--bg-glass);
  transition: border-color 0.25s ease;
}

.cv-item:hover {
  border-color: rgba(59, 130, 246, 0.3);
}

.cv-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.cv-item-meta {
  font-size: 0.8125rem;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.cv-item p,
.cv-item li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.cv-skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.cv-skill-group h3 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.cv-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cv-portfolio-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  background: var(--bg-glass);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cv-portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.cv-portfolio-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.cv-portfolio-card-body {
  padding: 14px;
}

.cv-portfolio-card h3 {
  font-size: 0.9375rem;
  margin-bottom: 8px;
}

.cv-lang-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cv-lang-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 12px;
  align-items: center;
  font-size: 0.875rem;
}

.cv-lang-bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

[data-theme="light"] .cv-lang-bar {
  background: rgba(0, 0, 0, 0.08);
}

.cv-lang-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--cv-accent), var(--cv-cyan));
}

.cv-not-found {
  text-align: center;
  padding: 80px 24px;
}

.cv-not-found h1 {
  margin-bottom: 16px;
}

@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .cv-layout {
    grid-template-columns: 1fr;
  }

  .cv-sidebar {
    position: static;
  }

  .cv-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .cv-hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 28px;
  }

  .cv-hero-photo {
    margin: 0 auto;
  }

  .cv-hero-contact {
    justify-content: center;
  }

  .cv-skills-grid {
    grid-template-columns: 1fr;
  }

  .cv-portfolio-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  .header,
  .footer,
  .back-to-top,
  .wa-fab,
  .loader,
  .cursor,
  .cursor-follower,
  .cv-topbar,
  .cv-sidebar,
  .cv-no-print {
    display: none !important;
  }

  body {
    background: #fff !important;
    color: #111 !important;
  }

  .cv-hero,
  .cv-item,
  .cv-portfolio-card {
    break-inside: avoid;
    border: 1px solid #ddd !important;
    box-shadow: none !important;
  }

  .page-content {
    padding-top: 0 !important;
  }
}
