body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: radial-gradient(75.91% 50% at 50% 50%, #f7f7f7 68.49%, #ededed);
}

header {
  background-color: transparent; /* changed from #007acc */
  color: var(--black); /* changed from white */
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 968px;
  margin-left: auto;
  margin-right: auto;
  height: 36px;
  margin-top: 56px;
  padding-right: 24px;
  padding-left: 24px;
}

/* Color variables */
:root {
  --black: #201F1E;
  --white: #ffffff;
  --greylight: #f0f0f0;
  --greyhighlight: #B6B6BF;
  --border: #EDEDED;
}

/* Tab-bar wrapper */
#tab-bar {
  display: flex;
  flex-wrap: wrap;
  height: 36px;
  border-radius: 22px;
  border: 0.5px solid var(--Border, #EDEDED);
  background: var(--White, #FFF);
  align-items: center;
  margin-top: 0;
  box-sizing: border-box;
  overflow: hidden;
  padding-left: 4px;
  padding-right: 4px;
  /* Soft Shadow */
  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.12);
}

.mobile-nav-overlay {
  display: none;
  position: fixed;     /* Fixes it relative to the viewport */
  bottom: 0px;           /* Sticks it to the bottom */
  left: 0;             /* Aligns to the left edge */
  z-index: 999;       /* Keeps it above other elements */
  position: absolute;             /* ✅ new: sticks inside the scrollable container */
  width: 100%;
  height: calc(128px + env(safe-area-inset-bottom));
  pointer-events: none;         /* doesn’t block mouse/scroll */
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255,255,255,1) 70%
  );
}


/* Tab buttons */
#tab-bar .tab {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--black);
  background: transparent;
  border: none;
  outline: none;
  padding: 0 16px;
  height: 28px;
  margin-left: 8px;
  margin-right: 0;
  cursor: pointer;
  border-radius: 14px; /* updated from 4px to 14px */
  transition: background 0.3s, color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

/* Remove left margin for first tab */
#tab-bar .tab:first-child {
  margin-left: 0;
}

/* Selected tab */
#tab-bar .tab.selected {
  background: var(--black);
  color: var(--white);
  transition: background 0.3s, color 0.3s;
}

/* Prevent hover effect on the selected tab */
#tab-bar .tab.selected:hover {
  background: var(--black);
  color: var(--white);
  cursor: default;
}

#tab-bar .tab:hover {
  background: var(--greylight);
  color: var(--black);
  transition: background 0.2s, color 0.2s;
}

/* Content Sections */
.content-section {
  display: none;
  padding-top: 20px;
  max-width: 968px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.content-section.active {
  display: block;
}

#section1.content-section {
}

#site-name {
  display: flex;
  align-items: center;
  gap: 8px; /* changed from 12px to 8px */
  font-size: 18px;
  font-weight: 500;
  color: var(--black); /* ensure black text */
}

.site-static {
  white-space: nowrap;
  color: var(--black);
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 15px;
  font-weight: 500; /* Medium */
}

.site-divider {
  display: inline-block;
  width: 0.5px;
  height: 22px;
  background: var(--black);
  opacity: 0.5;
  margin: 0; /* removed 8px margin */
}

.site-dynamic {
  white-space: nowrap;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 15px;
  font-weight: 300; /* Light */
  opacity: 0.85;
  color: var(--black); /* ensure black text */
}

/* Section 1 Wrapper */
.section1-wrapper {
  width: 100%;
  min-height: calc(100vh - 78px - 36px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}

/* Section 2 Wrapper */
.section2-wrapper {
  width: 100%;
  height: calc(100vh - 20px - 56px - 36px - 32px);
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  gap: 32px;
  border-radius: 48px 48px 0 0;
  background: var(--white, #FFF);
}

.section1-columns {
  display: flex;
  flex: 1 1 auto;
  width: 100%;
  gap: 0;
  align-items: center;
  margin-bottom: 96px;
}

.section1-bio {
  display: flex;
  flex-direction: column;
  gap: 48px;
  justify-content: flex-start;
  align-items: flex-start;
  flex: 1 1 0; /* occupy all available horizontal space */
  min-width: 0;
}

.bio-image {
  width: 170px;
  height: 170px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.work-thumb-popup-image {
  width: 288px;
  height: 288px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.bio-description {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 360px;
}

.bio-paragraph {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: var(--black);
  margin: 0;
  line-height: 20px; /* set line-height to 20px */
}

.bio-paragraph-header {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--black);
  margin: 0;
  line-height: 20px; /* set line-height to 20px */
}

.bio-contacts {
  display: flex;
  flex-direction: column;
  gap: 16px; /* more space between rows */
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.contact-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: block;
}

.contact-email,
.contact-phone {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 13px;
  font-weight: 300; /* Light */
  color: var(--black);
  line-height: 24px; /* updated to 24px */
  display: block;
  white-space: pre-line;
}

.section1-works {
  width: 152px;
  flex: 0 0 152px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* vertically center content */
  height: 100%;
}

.section1-works-header-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section1-works-header {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--black);
  line-height: 20px;
  margin: 0;
}

.section1-works-divider {
  display: inline-block;
  width: 0.5px;
  height: 20px;
  background: var(--black);
  opacity: 0.5;
  margin: 0; /* removed 8px margin */
}

.section1-works-link {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 13px;
  font-weight: 500; /* Semibold */
  color: var(--black);
  text-decoration: underline;
  cursor: pointer;
  line-height: 20px;
  margin: 0;
  transition: text-decoration 0.2s;
}

.section1-works-link:hover {
  text-decoration: underline;
  color: var(--greyhighlight);
}

.section1-footer {
  width: 100%;
  max-width: 920px;
  height: 120px;
  border-top: 0.5px solid rgba(0, 0, 0, 0.24);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  justify-content: space-between; /* distribute logos evenly */
  padding-top: 32px;
  padding-left: 32px;
  padding-right: 32px;
  gap: 16px; /* gaps are distributed by space-between */
}

.footer-logo {
  max-height: 24px;
  width: 100%;
  flex-shrink: 1;
}

.section1-works-block {
  width: 100%;
  height: 408px;
  background: var(--white);
  border-radius: 76px;
  margin-top: 16px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.works-thumbs {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100%;
  width: 100%;
  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.12); /* Soft Shadow */
  background: var(--White, #FFF); /* Optional: match tab-bar background */
  border-radius: 204px; /* Optional: match tab-bar radius */
}

/* Default thumb size */
.works-thumb-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 24px;
  display: block;
  position: relative;
  cursor: pointer;
  transition: width 0.2s, height 0.2s;
}

/* Wrapper for hover effect */
.works-thumb-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.2s, height 0.2s;
  z-index: 1001;
}

/* Hovered image enlarged */
.works-thumb-wrapper:hover {
  width: 136px;
  height: 136px;
  z-index: 2000;
}

.works-thumb-wrapper:hover .works-thumb-img {
  width: 136px;
  height: 136px;
}



/* Overlay resizes with wrapper */
.works-thumb-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(32, 31, 30, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.works-thumb-wrapper:hover .works-thumb-overlay {
  opacity: 1;
  pointer-events: auto;
}

.works-thumb-arrow {
  width: 32px;
  height: 32px;
  display: block;
  background: url('Assets/icons/arrow_forward.svg') center center no-repeat;
  background-size: contain;
  pointer-events: none;
}

/* Popup styles for works-thumbs */
.works-thumb-popup {
  position: fixed;
  left: calc(50% - 48px); /* move 48px to the left */
  top: calc(50% + 12px);  /* move 24px to the bottom */
  transform: translate(-50%, -50%);
  width: 668px;
  height: 336px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(32, 31, 30, 0.12);
  display: flex;
  flex-direction: row;
  align-items: stretch;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

/* Show popup on hover */
.works-thumb-wrapper:hover .works-thumb-popup {
  opacity: 1;
  pointer-events: none;
}

/* Popup columns */
.works-thumb-popup-col {
  flex: 1 1 0;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

/* Triangle arrow base style */
.works-thumb-popup-arrow {
  position: absolute;
  right: -24px;
  width: 24px;
  height: 24px;
  background: transparent;
  z-index: 101;
  display: block;
}

/* Top-right for first hover */
.works-thumb-popup-arrow-top {
  top: 32px;
}

/* Middle-right for second hover */
.works-thumb-popup-arrow-middle {
  top: 50%;
  transform: translateY(-50%);
}

/* Bottom-right for third hover */
.works-thumb-popup-arrow-bottom {
  bottom: 32px;
}

/* Triangle shape using CSS */
.works-thumb-popup-arrow::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 12px solid #fff;
}



/* Adding hover overlay */
.white-overlay {
  position: fixed;
  inset: 0;                     /* top:0; right:0; bottom:0; left:0 */
  background: rgba(255,255,255,0.8);
  opacity: 0;
  transition: opacity .25s ease;
  z-index: 1000;
  pointer-events: none;         /* blocks background when visible */
}

.works-thumb-wrapper:hover ~ .white-overlay {
  opacity: 1;
}

/* Section 2 Filter Styles */
/* Section Header Layout */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 824px;
  gap: 24px;
}

/* Sort Tabs */
.sort-tabs {
  display: flex;
  gap: 16px;
  margin-left: 32px;
}

.sort-tab {
  position: relative;
  background: none;
  border: none;
  color: var(--black);
  opacity: 0.5;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  font-family: 'Roboto', sans-serif;
  cursor: pointer;
  transition: color 0.3s ease;
}

.sort-tab:hover {
  opacity: 0.9;
}

.sort-tab::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #000;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.sort-tab.selected::after {
  width: 20px; /* expands on active tab */
}

.sort-tab.selected {
  opacity: 1;
  pointer-events: none;
}

/* Filter Tabs */
#filter-tabs {
  display: flex;
  gap: 16px;
  margin-right: 32px;
  margin-left: 32px;
}

.filter-tab {
  position: relative;
  background: none;
  border: none;
  color: var(--black);
  opacity: 0.5;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  font-family: 'Roboto', sans-serif;
  cursor: pointer;
  transition: color 0.3s ease;
}

.filter-tab:hover {
  opacity: 0.9;
}

.filter-tab::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #000;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.filter-tab.selected::after {
  width: 100%;
  max-width: 20px; /* expands on active tab */
}

.filter-tab.selected {
  opacity: 1;
  pointer-events: none;
}

.filter-tab.disabled {
  opacity: 0.2;
  pointer-events: none;
}

.filter-tab.disabled::after {
  width: 0;
  max-width: 20px; /* expands on active tab */
}

/* Section 2 Content Wrapper */
.section2-content {
  position: relative;
  display: flex;
  padding: 56px 0;
  flex-direction: column;
  align-items: center;
  gap: 0px;
  Align-self: stretch;
  height: 100%;
  overflow-y: auto;
  border-top: 1px solid var(--border, #EDEDED);
}

.section2-content-overlay {
  position: absolute;             /* ✅ new: sticks inside the scrollable container */
  top: 85px;                       /* pinned to the top of section2-content */
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 10;                  /* must be higher than the inner content */
  pointer-events: none;         /* doesn’t block mouse/scroll */
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255,255,255,0) 100%
  );
}

/* Portfolio Cards designs */
.portfolio-card {
  display: flex;
  max-width: 856px;
  align-items: center;
  gap: 56px;
  margin-bottom: 80px;
  margin-right: 32px;
  margin-left: 32px;
  border-radius: 60px;
  transition: background-color 0.4s;
}

.portfolio-card:hover {
  cursor: pointer;
  background-color: var(--border);
}

/* Overlay for portfolio card image */
.portfolio-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 60px;
  background: rgba(32, 31, 30, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.portfolio-card:hover .portfolio-card-overlay {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.2s;
}

.portfolio-card-overlay-arrow {
  width: 32px;
  height: 32px;
  display: block;
  background: url('Assets/icons/open_in_full.svg') center center no-repeat;
  background-size: contain;
  pointer-events: none;
}

.portfolio-card-thumbnail {
  position: relative;
  width: 248px;
  height: 248px;
  flex-shrink: 0;
  aspect-ratio: 1/1;
}

.portfolio-card-description {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  flex: 1 0 0;
}

.portfolio-card-description-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  align-self: stretch;
}

.portfolio-paragraph-header {
  align-self: stretch;
  color: rgba(0, 0, 0, 0.87);
  font-family: Roboto;
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: 32px; /* 160% */
  margin-block-start: 0;
  margin-block-end: 0;
}

.portfolio-card-tags {
  display: flex;
  gap: 8px;
  align-self: stretch;
  flex-wrap: wrap;
}

.portfolio-card-tag {
  display: flex;
  padding: 4px 16px;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  background: var(--black, #201F1E);
  color: var(--white, #FFF);
  font-feature-settings: 'liga' off, 'clig' off;
  font-family: Roboto;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px; /* 133.333% */
}

/* Sort Separators */
.year-separator {
  width: calc(100vw - 200px);
  max-width: 792px;
  padding: 8px;
  color: var(--black);
  font-feature-settings: 'liga' off, 'clig' off;
  font-family: Roboto;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px; /* 157.143% */
  border-bottom: 1px solid var(--Border, #EDEDED);
  margin-bottom: 24px;
}
.year-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
}

/* Modal Layouts */ /* Modal Styling */
.modal {
  display: none; /* hidden by default */
  position: fixed;
  z-index: 3000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: white;
  margin: 60px auto;
  height: calc(100vh - 60px);
  width: 95%;
  max-width: 900px;
  position: relative;
  border-radius: 60px 60px 0 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.modal-scrollable {
  padding: 120px 0 0 0;
  overflow-y: auto;
  flex: 1;
  box-sizing: border-box;
  border-radius: 60px 60px 0 0;
}

.modal-content-overlay {
  position: absolute;             /* ✅ new: sticks inside the scrollable container */                      /* pinned to the top of section2-content */
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 9;                  /* must be higher than the inner content */
  pointer-events: none; 
  border-radius: 60px 60px 0 0;        /* doesn’t block mouse/scroll */
  background: linear-gradient(
    to bottom,
    rgb(255, 255, 255) 0%,
    rgba(255, 255, 255, 0) 100%
  );
}

.close-btn {
  position: absolute;
  right: 16px;
  top: 16px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 10;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn img {
  width: 100%;
  height: 100%;
  display: block;
}

.modal-data-section {
  margin-bottom: 72px;
  padding-left: 60px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 60px;
}

.modal-hero {
  display: inline-flex;
  align-items: flex-start;
}

.modal-about {
  display: flex;
  width: 100%;
  max-width: 378px;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}

.modal-about-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  align-self: stretch;
}

.modal-title {
  color: rgba(0, 0, 0, 0.87);
  font-feature-settings: 'liga' off, 'clig' off;
  font-family: Roboto;
  font-size: 32px;
  font-style: normal;
  font-weight: 600;
  line-height: 40px; /* 125% */
}

.modal-industry-tag {
  display: flex;
  padding: 4px 16px;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  background: var(--black, #201F1E);
  color: var(--white);
}

.modal-industry-label {
  font-feature-settings: 'liga' off, 'clig' off;
  font-family: Roboto;
  font-size: 12px;
  font-style: normal;
  font-weight: 300;
  line-height: 16px; /* 133.333% */
  margin: 0;
}

.modal-industry-value {
  font-feature-settings: 'liga' off, 'clig' off;
  font-family: Roboto;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px; /* 133.333% */
  margin: 0;
}

.modal-textblock {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  align-self: stretch;
  max-width: 378px;
}
.modal-textblock-headline {
  color: var(--black, #201F1E);
  font-feature-settings: 'liga' off, 'clig' off;
  font-family: Roboto;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px; /* 133.333% */
  margin: 0;
}

.modal-texts {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.modal-text {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: var(--black);
  line-height: 20px;
}

.modal-text span {
  display: block;
  position: relative;
  padding-left: 16px;
  margin-bottom: 0;
  font-family: Roboto;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.6;
}

.modal-text span::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #000; /* adjust as needed */
}

.modal-hero-image {
  max-width: 462px;
  height: auto;
}

.modal-link {
  display: flex;
  align-items: center;
  gap: 8px;
}

.external-icon-wrapper {
  display: flex;
  padding: 4px;
  align-items: center;
  border-radius: 6px;
  background: var(--Black, #201F1E);
  transition: opacity 0.3s ease;
}

.modal-link:hover .external-icon-wrapper {
  opacity: 0.5;
}

.modal-carousel-wrapper {
  background-color: var(--black);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 660px;
}

.carousel-header {
  color: var(--white, #201F1E);
  font-feature-settings: 'liga' off, 'clig' off;
  font-family: Roboto;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px; /* 133.333% */
  margin: 0;
}

.modal-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 320px;
}

.carousel-image {
  width: 90%;
  max-width: 776px;
  display: block;
  margin: 0 auto;
}

.carousel-caption {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 90%;
  max-width: 776px;
  text-align: center;
  color: var(--white);
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 13px;
  font-weight: 300;
}

.carousel-prev, .carousel-next {
  background-color: #ffffff00;
  position: absolute;
  border: none;
  padding: 0;
  top: 50%;
  opacity: 0.5;
  cursor: pointer;
  z-index: 2;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}
.carousel-prev { left: 24px; }
.carousel-next { right: 24px; }

.carousel-prev:hover,
.carousel-next:hover {
  opacity: 1;
}

.modal-gallery-image {
  display: block;
  max-width: 100%;
  margin: 0 auto;
}

.carousel-indicator-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}

.carousel-indicator-segment {
  width: 6px;
  height: 2px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 1px;
  transition: all 0.3s ease;
}

.carousel-indicator-segment.active {
  width: 24px;
  background: var(--white);
}

.section3-wrapper {
  display: flex;
  flex: 1 0 0;
  width: 100%;
  height: calc(100vh - 20px - 56px - 36px - 32px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cv-central-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1 0 0;
  width: 100%;
  gap: 32px;
}

.cv-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  max-width: 448px;
}

.cv-title {
  color: var(--black);
  font-feature-settings: 'liga' off, 'clig' off;
  font-family: "Roboto";
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 40px; /* 250% */
  margin: 0;
}

.cv-experience-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.cv-experience-item {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  align-self: stretch;
}

.cv-experience-item-period {
  width: 148px;
  color: var(--black);
  font-feature-settings: 'liga' off, 'clig' off;
  font-family: "Roboto";
  font-size: 12px;
  font-style: normal;
  font-weight: 274;
  line-height: 20px; /* 166.667% */
  margin: 0;
}

.cv-experience-description {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  flex: 1 0 0;
}

.cv-experience-description-title {
  color: var(--black);
  font-feature-settings: 'liga' off, 'clig' off;
  font-family: "Roboto";
  font-size: 12px;
  font-style: normal;
  font-weight: 590;
  line-height: 20px; /* 166.667% */
  opacity: 0.75;
  margin: 0;
}

.cv-column-two {
  display: flex;
  width: 100%;
  max-width: 288px;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  flex-shrink: 0;
  align-self: stretch;
}

.business-card {
  display: flex;
  padding: 80px 120px;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  border-radius: 32px;
  background: var(--White, #FFF);
}

.contacts {
  display: flex;
  align-items: center;
  gap: 128px;
}

.contacts-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
}

.contacts-divider {
  height: 1px;
  align-self: stretch;
  background: var(--border);
}

#menu-toggle {
  display: none; /* hidden on desktop */
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 780px) {

  .modal-hero-image {
    max-width: 320px;
    height: auto;
  }

  .footer-logo {
    max-height: 17px;
  }

  .portfolio-card-thumbnail {
    width: 200px;
    height: 200px;
  }

  .portfolio-card {
    gap: 24px;
  }

  .section3-wrapper {
    height: calc(80vh - 20px - 56px - 36px - 32px);
    align-items: normal;
  }

  .cv-central-wrapper {
    flex-direction: column;
    align-items: normal;
    flex: 1 0 0;
    width: 100%;
    gap: 32px;
    overflow-y: scroll;
    padding-bottom: 64px;
  }

  .cv-experience-item {
    flex-direction: column;
    align-items: normal;
    gap: 8px;
  }

  .cv-block {
    gap: 12px;
  }

  .cv-column-two {
    gap: 32px;
  }

  .contacts {
    display: flex;
    flex-direction: column;
    align-items: normal;
    gap: 24px;
  }

  .business-card {
    padding: 40px 60px;
  }
}

@media (max-width: 600px) {

  .mobile-nav-overlay {
    display: block;
  }

  .section1-wrapper {
  min-height: calc(80vh - 56px - 36px);
}

  .modal-hero-image {
    display: none;
  }

  .modal-texts {
    flex-direction: column;
    gap: 32px;
  }

  .modal-data-section {
    gap: 32px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .carousel-prev { left: 12px; }
  .carousel-next { right: 12px; }

  .carousel-image {
    width: 84%;
  }

  #tab-bar {
    position: fixed;     /* Fixes it relative to the viewport */
    bottom: 0;           /* Sticks it to the bottom */
    left: 0;             /* Aligns to the left edge */
    z-index: 1000;       /* Keeps it above other elements */
    margin-left: calc((100vw - 304px)/2);
    margin-right: 0;
    margin-bottom: 24px; 
  }

  .section1-works {
    display: none;
  }

  .section1-footer {
    display: none;
  }

  #menu-toggle {
    display: block; /* show icon */
  }

  #filter-tabs {
    display: none; /* hidden by default on mobile */
    flex-direction: column;
    position: absolute;
    right: -24px;
    top: 60px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    padding: 8px;
    width: 160px;
    z-index: 2600;
  }

  #filter-tabs.open {
    display: flex; /* visible when menu is open */
  }

  .portfolio-card {
    flex-direction: column;
    max-width: 856px;
    gap: 24px;
    align-items: normal;
    margin-bottom: 80px;
    margin-right: 32px;
    margin-left: 32px;
    border-radius: 60px;
    transition: background-color 0.4s;
  }

  .portfolio-card-thumbnail {
    width: 100%;
    height: auto;
  }

  .section-header {
    display: flex;
    width: 90%;
    max-width: 824px;
    gap: 16px;
  }

  .section2-wrapper {
    padding-top: 16px;
  }

  .section2-content-overlay {
    top: 84px;                       /* pinned to the top of section2-content */
  }

  .business-card {
    padding: 20px 30px;
  }
}




