body {
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
  font-family: "NotionInter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji",
    "Segoe UI Symbol";
}

.about-shell {
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  .about-shell {
    padding-bottom: 5rem;
  }
}

/* Portfolio Section Styles */
#portfolio {
  padding-top: 6rem;
  padding-bottom: 6rem;
  background-color: #fbfbfb;
  border-top: 1px solid #eaeaea;
  border-bottom: 1px solid #eaeaea;
}

.slides-container {
  position: relative;
  width: 100%;
  min-height: clamp(28rem, 52vw, 36rem);
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  transition: height 300ms ease;
}

.work-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  transition: opacity 700ms ease-in-out;
  z-index: 1;
  opacity: 0;
}

.slide-inner-container {
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: 2.5rem;
  padding: 2.5rem;
  border: 1px solid #e5e7eb;
  transition: border-color 300ms;
  border-radius: 0.5rem;
  box-sizing: border-box;
  margin: 0 auto;
}

.slide-inner-container:hover {
  border-color: #9ca3af; /* gray-400 */
}

.media-column {
  grid-column: span 1 / span 1;
  width: 100%;
  background-color: black;
  border-radius: 0.375rem;
  overflow: hidden;
  position: relative;
}

.portfolio-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.details-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.details-top {
  flex-grow: 1;
}

.certificate-container {
  width: 100%;
  max-width: 220px;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 1 / 1.414;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  border-radius: 0.25rem;
  overflow: hidden;
  border: 1px solid #f3f4f6;
}

.certificate-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.details-bottom {
  flex-shrink: 0;
  padding-top: 1rem;
}

.review-text {
  font-style: italic;
  font-size: 1rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.review-author {
  margin-top: 0.5rem;
  font-weight: 600;
  text-align: center;
}

/* Navigation */

.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #fff 80%, #e5e7eb 100%);
  border-radius: 50%;
  padding: 1rem;
  width: 3.5rem;
  height: 3.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  z-index: 20;
  border: 2px solid #e5e7eb;
  cursor: pointer;
  opacity: 1;
  transition: background 200ms, box-shadow 200ms, border-color 200ms;
  display: flex;
  align-items: center;
  justify-content: center;
}

#prev-work {
  left: -4.5rem;
}

#next-work {
  right: -4.5rem;
}

.nav-button:hover {
  background: linear-gradient(135deg, #f3f4f6 80%, #fff 100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  border-color: #9ca3af;
}

.nav-icon {
  height: 2.2rem;
  width: 2.2rem;
  color: #222;
  display: block;
  stroke-width: 2.5;
}

.nav-button:hover {
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
/* Base and Typography */
.h2-style {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

.body-text-secondary {
  margin-top: 1rem;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  color: #8a8a8a;
}

@media (max-width: 768px) {
  .h2-style {
    font-size: 32px;
  }

  .body-text-secondary {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .h2-style {
    font-size: 28px;
  }

  .body-text-secondary {
    font-size: 15px;
  }
}

/* Layout */
#team {
  padding-top: 6rem;
  padding-bottom: 6rem;
  background-color: #ffffff;
}

#strategic-team {
  padding-top: 4rem;
  padding-bottom: 6rem;
  background-color: #fbfbfb;
}

.container-main {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (max-width: 768px) {
  #team {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  #strategic-team {
    padding-top: 3rem;
    padding-bottom: 4rem;
  }

  .container-main {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.section-header {
  text-align: center;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 5rem;
}

/* Team Carousel */

.team-carousel-wrapper {
  padding-bottom: 1rem;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.team-carousel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
  justify-items: center;
}

/* Team Card */

.team-card {
  position: relative;
  width: 100%;
  max-width: 220px;
  height: 300px;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: transform 300ms ease, box-shadow 300ms ease;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  margin: 0 auto;
  background-color: #f5f5f5;
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(100%);
  transition: filter 300ms ease;
  display: block;
}

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem 1.5rem;
  color: white;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 20%, transparent);
}

.card-overlay h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.card-overlay p {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.social-links {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  display: flex;
  gap: 1rem;
  opacity: 0;
  transition: opacity 300ms ease 100ms;
}

.social-links a {
  color: white;
  opacity: 0.8;
  transition: opacity 300ms ease;
}

.social-links a:hover {
  opacity: 1;
}

.social-links i {
  width: 20px;
  height: 20px;
}

/* Hover State controlled by JS */
.team-card.is-hovered {
  transform: translateY(-8px);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.team-card.is-hovered .team-photo {
  filter: grayscale(0%);
}

.team-card.is-hovered .social-links {
  opacity: 1;
}
/* Make About hero image bigger */
.about-hero-img {
  max-width: 700px !important;
  width: 100% !important;
  height: auto !important;
}

/* Strategic Team Grid - 5 columns */
.strategic-team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1rem;
  justify-items: center;
}

/* Responsive adjustments for strategic team grid */
@media (max-width: 1200px) {
  .strategic-team-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 900px;
    gap: 2rem;
  }

  .strategic-team-grid .team-card {
    max-width: 240px;
  }
}

@media (max-width: 768px) {
  .strategic-team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 500px;
    padding: 2rem 0.75rem;
  }

  .strategic-team-grid .team-card {
    max-width: none;
    height: 280px;
  }
}

@media (max-width: 480px) {
  .strategic-team-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 280px;
  }

  .strategic-team-grid .team-card {
    max-width: 100%;
    height: 320px;
  }
}

@media (max-width: 1280px) {
  .slide-inner-container {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 2rem;
    padding: 2rem;
  }
}

@media (max-width: 1024px) {
  #portfolio {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .slide-inner-container {
    grid-template-columns: 1.5fr 1fr;
    gap: 1.75rem;
    padding: 1.75rem;
  }

  .media-column {
    min-height: clamp(260px, 40vw, 360px);
  }

  .review-text {
    font-size: 0.95rem;
  }

  .nav-button {
    width: 3.25rem;
    height: 3.25rem;
  }

  #prev-work {
    left: -1rem;
  }

  #next-work {
    right: -1rem;
  }

  .team-carousel {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 550px;
  }

  .team-card {
    max-width: 240px;
    height: 320px;
  }
}

@media (max-width: 820px) {
  .nav-button {
    top: auto;
    bottom: 1.5rem;
    transform: none;
  }

  #prev-work {
    left: 1.5rem;
  }

  #next-work {
    right: 1.5rem;
  }

  .team-carousel {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
  }

  .team-card {
    max-width: none;
    height: 300px;
  }
}

@media (max-width: 768px) {
  .slides-container {
    min-height: 0;
    height: auto;
  }

  .slide-inner-container {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .media-column {
    min-height: clamp(220px, 55vw, 320px);
  }

  .details-column {
    align-items: center;
    text-align: center;
    gap: 1.25rem;
  }

  .certificate-container {
    margin-right: 0;
    max-width: 180px;
  }

  .details-top h3 {
    margin-bottom: 1rem;
  }

  .review-text {
    font-size: 0.9rem;
  }

  .review-author {
    font-size: 0.85rem;
  }

  .team-carousel {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    max-width: 500px;
    margin: 0 auto;
  }

  .team-card {
    max-width: none;
    height: 280px;
  }
}

@media (max-width: 640px) {
  .about-shell {
    padding-bottom: 3rem;
  }

  .nav-button {
    width: 3rem;
    height: 3rem;
    bottom: 1rem;
  }

  #prev-work {
    left: 1rem;
  }

  #next-work {
    right: 1rem;
  }

  .nav-icon {
    height: 1.8rem;
    width: 1.8rem;
  }

  .team-carousel {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 280px;
    margin: 0 auto;
  }

  .team-card {
    height: 320px;
    max-width: 100%;
  }

  .review-text {
    font-size: 0.875rem;
    line-height: 1.5;
  }

  .review-author {
    font-size: 0.8rem;
  }

  .media-column {
    min-height: clamp(200px, 58vw, 280px);
  }

  .certificate-container {
    max-width: 160px;
  }
}

@media (max-width: 480px) {
  .slide-inner-container {
    padding: 1rem;
    gap: 1rem;
  }

  .media-column {
    min-height: clamp(180px, 65vw, 240px);
  }

  .nav-button {
    width: 2.75rem;
    height: 2.75rem;
  }

  .nav-icon {
    height: 1.6rem;
    width: 1.6rem;
  }

  .certificate-container {
    max-width: 140px;
  }

  .details-top h3 {
    font-size: 1.25rem;
  }

  .review-text {
    font-size: 0.8rem;
  }

  .review-author {
    font-size: 0.75rem;
  }

  .team-carousel {
    max-width: 260px;
  }

  .team-card {
    height: 300px;
  }
}
