:root {
  font-family: "Inter", system-ui, sans-serif;
  color: #333333;
  background-color: #ffffff;
  --accent: #ffc107;
  --accent-dark: #e6ac00;
  --muted: #666666;
  --card-bg: #ffffff;
  --shadow: 0 25px 55px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #e8f4fc 0%, #ffffff 30%, #ffffff 70%, #e8f4fc 100%);
  color: #333333;
}

.site-header {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffc107;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #ffffff;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.logo-mark:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(255, 193, 7, 0.4);
}

.header-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.header-nav {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover {
  color: var(--accent);
  background-color: rgba(255, 193, 7, 0.15);
}

.nav-link.active {
  color: #ffffff;
  background-color: var(--accent);
}

.nav-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.details-btn {
  padding: 0.65rem 1.6rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 166, 35, 0.5);
  text-decoration: none;
  color: #2d2d2d;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease;
}

.details-btn:hover,
.details-btn:focus-visible {
  background: var(--accent);
  color: #ffffff;
}

main {
  padding: 2rem 2rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.hero {
  display: grid;
  grid-template-columns: auto minmax(360px, 1fr) 1.2fr;
  grid-template-rows: auto 1fr;
  align-items: stretch;
  gap: 1.75rem;
  padding: 2.5rem;
  border-radius: 32px;
  background: var(--card-bg);
  box-shadow: var(--shadow);
}

.social-rail {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: center;
  padding-right: 0.25rem;
  grid-column: 1;
  grid-row: 1 / span 2;
}

.social-rail a {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 193, 7, 0.3);
  background: #ffffff;
  color: #333333;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.social-rail a:hover,
.social-rail a:focus-visible,
.social-rail a.active {
  transform: translateX(4px);
  border-color: var(--accent);
  color: var(--accent);
}

/* Enhanced email icon styling */
.email-icon {
  position: relative;
  overflow: hidden;
}

.email-icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 193, 7, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50%;
  pointer-events: none;
}

.email-icon:hover::before {
  opacity: 1;
}

.email-icon svg {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.email-icon:hover svg {
  transform: scale(1.1);
}

.hero-image {
  margin: 0;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 193, 7, 0.2);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
  width: 100%;
  height: 100%;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
  grid-column: 2;
  grid-row: 1 / span 2;
}

.hero-image:hover {
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.profile-picture {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease, box-shadow 0.35s ease;
  transform-origin: center;
  cursor: pointer;
}

.profile-picture:hover {
  transform: scale(1.05) rotate(1deg);
  filter: brightness(1.1) contrast(1.05);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.12);
}

.hero-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  grid-column: 3;
  grid-row: 1;
}

.eyebrow {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-details h1 {
  margin: 0;
  font-size: clamp(2.5rem, 4vw, 3.6rem);
  color: #333333;
}

.roles {
  margin: 0.35rem 0 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.78rem;
  color: var(--muted);
}

.info-list {
  list-style: none;
  margin: 0;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-top: 1px solid rgba(255, 193, 7, 0.3);
  border-bottom: 1px solid rgba(255, 193, 7, 0.3);
}

.info-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding-bottom: 0.4rem;
}

.info-list li + li {
  border-top: 1px solid rgba(255, 193, 7, 0.15);
  padding-top: 0.7rem;
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffc107;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #ffffff;
  flex-shrink: 0;
}

.info-text strong {
  display: inline-block;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.info-text strong::after {
  content: ":";
  margin-left: 0.3rem;
  color: rgba(102, 102, 102, 0.6);
}

.info-text p {
  margin: 0.15rem 0 0;
  font-size: 1rem;
  color: #333333;
}

.info-text a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.bio h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #333333;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bio h2::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: #ffc107;
}

/* Bio section that spans under the image */
.bio-section {
  grid-column: 3;
  grid-row: 2;
  margin-top: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 193, 7, 0.3);
}

.bio {
  max-width: 600px;
}

.bio p {
  margin: 0;
  line-height: 1.55;
  color: #555555;
}

.details-panel {
  background: var(--card-bg);
  border-radius: 32px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.details-full {
  margin-top: 2rem;
}

.details-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.details-eyebrow {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--muted);
}

.details-head h2 {
  margin: 0.25rem 0 0;
  font-size: 1.9rem;
  color: #333333;
}

.details-pill {
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  background: #ffc107;
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #ffffff;
}

.details-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.details-column h3 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #333333;
}

.details-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid #ffc107;
}

.details-list li {
  padding: 0 0 1.2rem 1.5rem;
  position: relative;
}

.details-list li::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 3px solid #ffc107;
  background: #fff;
  position: absolute;
  left: -7px;
  top: 0.25rem;
}

.details-list span {
  display: block;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
  color: #333333;
}

.details-list p {
  margin: 0;
  color: #555555;
  line-height: 1.5;
}

.site-footer {
  text-align: center;
  margin: 2rem auto 0;
  padding: 1.5rem 0;
  color: #6b6b6b;
  font-size: 0.9rem;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    padding: 1.5rem;
  }

  .social-rail {
    flex-direction: row;
    justify-content: center;
    padding: 1.5rem 0;
    grid-column: 1;
    grid-row: 4;
    order: 4;
  }

  .profile-picture {
    height: 350px;
    min-height: auto;
  }

  .hero-image {
    height: 350px;
    min-height: auto;
    grid-column: 1;
    grid-row: 1;
  }

  .hero-details {
    grid-column: 1;
    grid-row: 2;
  }

  .hero-details h1 {
    font-size: 2rem;
    text-align: center;
  }

  .eyebrow {
    text-align: center;
  }

  .roles {
    text-align: center;
  }

  .bio-section {
    grid-column: 1;
    grid-row: 3;
    margin-top: 1rem;
    padding-top: 1.5rem;
  }

  .info-list {
    gap: 0.5rem;
    padding: 0.75rem 0;
  }

  .info-list li {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.3rem;
  }

  .info-list li + li {
    padding-top: 0.5rem;
  }

  .info-icon {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

  .info-text strong {
    font-size: 0.75rem;
  }

  .info-text p {
    font-size: 0.85rem;
    margin-top: 0.1rem;
  }

  .site-header {
    padding: 1rem;
  }

  main {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 1rem;
    border-radius: 20px;
  }

  .hero-details h1 {
    font-size: 1.75rem;
  }

  .eyebrow {
    font-size: 0.7rem;
  }

  .roles {
    font-size: 0.7rem;
  }

  .profile-picture {
    height: 280px;
  }

  .hero-image {
    height: 280px;
    border-radius: 16px;
  }

  .info-icon {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

  .info-text strong {
    font-size: 0.7rem;
  }

  .info-text p {
    font-size: 0.8rem;
  }

  .info-list {
    gap: 0.4rem;
    padding: 0.5rem 0;
  }

  .info-list li {
    gap: 0.5rem;
    padding-bottom: 0.2rem;
  }

  .info-list li + li {
    padding-top: 0.4rem;
  }

  .bio h2 {
    font-size: 0.95rem;
  }

  .bio p {
    font-size: 0.9rem;
  }

  .social-rail a {
    width: 40px;
    height: 40px;
  }

  .social-rail svg {
    width: 18px;
    height: 18px;
  }

  .nav-link svg {
    width: 20px;
    height: 20px;
  }

  .nav-label {
    font-size: 0.6rem;
  }

  .details-panel {
    padding: 1.5rem;
    border-radius: 20px;
  }

  .details-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .details-head h2 {
    font-size: 1.5rem;
  }

  .details-column h3 {
    font-size: 1rem;
  }

  .details-list span {
    font-size: 0.9rem;
  }

  .details-list p {
    font-size: 0.85rem;
  }
}