:root {
  --forest: #00693b;
  --lime: #ecf65f;
  --charcoal: #222625;
  --navy-charcoal: #232836;
  --white: #ffffff;
  --olive: #6b8635;
  --mint: #b1dc5c;
  --accent-green: #b6d635;
  --secondary-gray: #c9cdd3;
  --black: #000000;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  color: var(--charcoal);
  background:
    radial-gradient(circle at 10% 15%, rgba(182, 214, 53, 0.12) 0%, transparent 34%),
    radial-gradient(circle at 92% 82%, rgba(35, 40, 54, 0.08) 0%, transparent 33%),
    linear-gradient(160deg, #ecefe7 0%, #dfe5d9 38%, #f6f7f3 100%);
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.bg-shape {
  position: fixed;
  border-radius: 999px;
  filter: blur(2px);
  pointer-events: none;
  z-index: 0;
}

.bg-shape-1 {
  width: 200px;
  height: 200px;
  left: 2vw;
  top: 4vh;
  background: linear-gradient(130deg, #d8e6b4, #b6d635);
  opacity: 0.35;
}

.bg-shape-2 {
  width: 240px;
  height: 240px;
  right: 3vw;
  bottom: 6vh;
  background: linear-gradient(130deg, #232836, #2a3142);
  opacity: 0.16;
}

.card {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  background: var(--white);
  border: 3px solid var(--forest);
  border-radius: 22px;
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  animation: cardIn 700ms ease-out both;
}

.brand-row {
  background: linear-gradient(130deg, var(--navy-charcoal), #2a3142);
  padding: 1rem 1.25rem;
  border-bottom: 5px solid var(--accent-green);
  display: flex;
  justify-content: center;
}

.logo {
  height: auto;
  width: min(100%, 260px);
  display: block;
  object-fit: contain;
  background: var(--white);
  border-radius: 10px;
  padding: 0.25rem;
}

.hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  padding: 1.8rem;
}

.profile-photo,
.hero-copy > * {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 560ms ease-out forwards;
}

.profile-photo { animation-delay: 80ms; }
.hero-copy .eyebrow { animation-delay: 120ms; }
.hero-copy h1 { animation-delay: 180ms; }
.hero-copy .subtitle { animation-delay: 240ms; }
.hero-copy .bio { animation-delay: 300ms; }
.hero-copy .actions { animation-delay: 360ms; }
.hero-copy .socials { animation-delay: 420ms; }

.profile-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  border: 4px solid var(--lime);
  box-shadow: 0 14px 22px rgba(0, 0, 0, 0.2);
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--navy-charcoal);
}

h1 {
  margin: 0.3rem 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.05;
  color: var(--charcoal);
}

.subtitle {
  margin: 0;
  display: inline-block;
  background: var(--lime);
  color: var(--black);
  font-weight: 700;
  padding: 0.3rem 0.55rem;
  border-radius: 8px;
}

.bio {
  margin-top: 1rem;
  max-width: 56ch;
  line-height: 1.55;
}

.actions {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.socials {
  margin-top: 0.95rem;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.social-link {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #f2f5ef;
  border: 1px solid #d8e2d3;
  color: var(--navy-charcoal);
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-2px);
  background: #e8efdd;
  border-color: #b9c9af;
}

.social-link svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0.72rem 1rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--forest);
  color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #005a33;
}

.btn-secondary {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: #f3f5f2;
}

.details {
  border-top: 1px solid #dce6d9;
  padding: 1.4rem 1.8rem 1.8rem;
}

.details h2 {
  margin: 0 0 1rem;
  color: var(--forest);
}

.contact-card {
  background: linear-gradient(150deg, #ffffff 0%, #f4f7ef 100%);
  border: 2px solid #d8e4cf;
  border-left: 6px solid var(--accent-green);
  border-radius: 14px;
  padding: 1rem;
}

.contact-name {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--navy-charcoal);
}

.contact-title {
  margin: 0.2rem 0 0.85rem;
  font-weight: 700;
  color: #3f495b;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.contact-item {
  background: #ffffff;
  border: 1px solid #dce6d9;
  border-radius: 10px;
  padding: 0.7rem 0.75rem;
}

.contact-item-wide {
  grid-column: 1 / -1;
}

.contact-item .label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #5a6577;
}

.contact-item a,
.contact-item .value {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.98rem;
  color: var(--charcoal);
  text-decoration: none;
}

.contact-item a {
  color: var(--forest);
  font-weight: 700;
}

.site-footer {
  background: var(--navy-charcoal);
  color: var(--white);
  padding: 1rem 1.8rem 1.25rem;
  border-top: 5px solid var(--accent-green);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 460ms ease, transform 460ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.footer-main {
  margin: 0;
  font-weight: 700;
}

.footer-sub {
  margin: 0.35rem 0 0;
  color: var(--secondary-gray);
  font-size: 0.96rem;
}

.footer-credit {
  margin: 0.45rem 0 0;
  color: var(--secondary-gray);
  font-size: 0.9rem;
}

.footer-credit a {
  color: var(--white);
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.58);
  padding: 1rem;
}

.modal-panel {
  width: min(460px, 100%);
  background: var(--white);
  border: 3px solid var(--forest);
  border-radius: 16px;
  padding: 1.15rem;
}

.modal-panel h2 {
  margin: 0;
  color: var(--charcoal);
}

.modal-panel p {
  margin: 0.65rem 0 1rem;
  line-height: 1.4;
}

.modal-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

@media (max-width: 780px) {
  .logo {
    width: min(100%, 200px);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .profile-photo {
    max-width: 300px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
