/* ============================================================
   HOME HERO — FLUID RESPONSIVE LAYER
   ------------------------------------------------------------
   Purpose: The base hero in style.css uses fixed pixel values
   (.headerRow padding 46px 200px, fixed avatar/name sizes) and
   the media queries jump from an empty 768–1024 block straight
   to 1580px+, leaving 1025–1579px unhandled. The page only lined
   up at ~1512px.

   This layer makes the hero scale PROPORTIONALLY across the whole
   768–1779px range using clamp()/viewport units, calibrated so the
   layout at 1512px stays visually identical to the original.

   Untouched on purpose:
     - Mobile  (max-width: 767px)   -> handled in style.css
     - Desktop (min-width: 1780px)  -> handled in style.css
   ============================================================ */

/* Soft edge fade on the client-logo marquee so it reads as an
   intentional ticker instead of hard-cut logos. Safe at all sizes. */
.workCompanyInfo {
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 6%,
    #000 94%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 6%,
    #000 94%,
    transparent 100%
  );
}

@media (min-width: 768px) and (max-width: 1779px) {
  /* --- Header: proportional side gutters instead of a fixed 200px ---
     13.2vw ≈ 200px at 1512px (reference), so the "good" width is
     preserved while narrower/wider screens keep pills the same
     relative distance from the edges. */
  .headerRow {
    padding-top: clamp(28px, 3vw, 56px);
    padding-bottom: clamp(28px, 3vw, 56px);
    padding-left: clamp(56px, 13.2vw, 235px);
    padding-right: clamp(56px, 13.2vw, 235px);
  }

  /* Keep the Resume label from ever wrapping or being clipped. */
  .btnResume {
    width: auto;
    min-width: 160px;
  }
  .btnResume .btnText {
    white-space: nowrap;
  }

  /* --- Content column: full 1069px when there's room, otherwise
     add gutters so content never touches the screen edges. This
     does NOT change the 1512px layout (viewport is wide enough). */
  .userContainer {
    max-width: min(1069px, calc(100% - 48px));
    width: 100%;
  }

  /* --- Fluid hero elements. All clamps hit their MAX at ~1512px,
     so the reference layout is unchanged and only smaller screens
     scale down. --- */
  .userPic {
    width: clamp(150px, 13vw, 192px);
    height: clamp(150px, 13vw, 192px);
  }

  .userName {
    font-size: clamp(34px, 3.2vw, 48px);
  }

  .userSummery {
    max-width: 620px;
    width: 90%;
  }

  .userSection {
    padding: clamp(32px, 4vw, 48px) 0;
  }
}

/* Extra tightening on the smaller end of the range so the two pills
   under the name never collide. */
@media (min-width: 768px) and (max-width: 1024px) {
  .userExpDetails {
    flex-wrap: wrap;
  }
  .workCompListItem {
    padding: 0 16px;
  }
}

/* ============================================================
   UI & VISUAL TAB — show the visual feed first, projects below
   ============================================================ */
.tab-content.uiVisualTab.active {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.tab-content.uiVisualTab .contentGalleryBox {
  order: -1; /* visuals first */
  margin-bottom: 0;
  flex-direction: column; /* stack grid, then the View More button below it */
}
.tab-content.uiVisualTab .tabContentDetails {
  order: 0; /* project cards next */
}

/* Gallery collapse via height clamp (keeps the masonry grid intact) */
.contentGalleryBoxRow.galleryCollapsed {
  max-height: 520px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 74%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 74%, transparent 100%);
}

/* ============================================================
   VIEW MORE / VIEW LESS — limit long lists, expand on demand
   ============================================================ */
.viewMoreWrap {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 24px;
}
/* cards already carry ~40px under the last card, so pull the button up
   to keep it hugging the list instead of floating in empty space */
.tabContentDetails + .viewMoreWrap {
  margin-top: -12px;
}
.uiVisualTab .contentGalleryBox .viewMoreWrap {
  margin-top: 24px;
}
.viewMoreBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 190px;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 14px;
  padding: 14px 26px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: background 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease, transform 0.15s ease;
}
.viewMoreBtn:hover {
  background: #f0efef;
  border-color: #c9c9c9;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}
.viewMoreBtn .chev {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
}
.viewMoreBtn.isOpen .chev {
  transform: rotate(180deg);
}
.collapsibleHidden {
  display: none !important;
}

/* ============================================================
   TESTIMONIALS ("Real words. Real trust") — lighter & more compact
   Was: dark #262626 cards with a fixed 320px inner-scroll quote.
   Now: clean white cards, dark text, quote capped with a soft fade.
   ============================================================ */
.recommendSliderItem {
  background: #ffffff !important;
  border: 1px solid #ececec;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.06);
  border-radius: 24px;
  padding: 28px 26px 24px !important;
}
.recommendItemHeading {
  min-height: 0 !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  line-height: 1.3 !important;
}
.recommendItemDetails {
  height: 150px !important; /* fixed so the fade only bites long quotes */
  padding-top: 16px !important;
  overflow: hidden !important;
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
}
.recommendItemDetails p {
  font-size: 14px !important;
  color: #555555 !important;
  font-weight: 400 !important;
  line-height: 1.65 !important;
  margin-bottom: 12px !important;
}
.recommendItemUserData {
  border-top: 1px solid #eeeeee !important;
  margin-top: auto !important; /* pin attribution to the bottom */
  padding-top: 18px !important;
}
.recUserName,
.recUserName a {
  color: #1a1a1a !important;
  font-size: 16px !important;
  font-weight: 700 !important; /* name reads as a clear heading */
  line-height: 1.3 !important;
}
.recUserdesignation {
  color: #8a8a8a !important;
  font-size: 13px !important;
  font-weight: 400 !important; /* designation is a lighter subheading */
  line-height: 1.35 !important;
  padding-top: 3px !important;
}
.recUserRightData img {
  opacity: 1;
}

/* ============================================================
   SECTION RHYTHM — consistent breathing room so sections don't
   crowd together (projects / testimonials / why-me / breaking).
   Desktop & tablet only; mobile keeps its tighter spacing.
   ============================================================ */
@media (min-width: 768px) {
  .featureSection {
    padding-bottom: 40px; /* was effectively 0 — projects hugged testimonials */
  }
  .userSummaryWrapper {
    padding-top: 24px; /* space before "Why me" */
  }
  .userSummarySection {
    margin-bottom: 80px;
  }
  .breakingWrapper {
    padding-top: 24px; /* space before "Breaking it down" */
  }
}

/* ============================================================
   TESTIMONIALS HEADER + NAV ARROWS — consistent, centered, calmer
   ============================================================ */
.recommendTitle {
  /* no font-size here: let it scale with the breakpoints (36 -> 48),
     matching .userSummaryTitle so the two section headings stay equal */
  font-weight: 700 !important; /* was 900 (too heavy) */
  color: #1a1a1a !important;
  letter-spacing: -0.02em !important;
  line-height: 1.1 !important;
}

/* Neat pair of circular buttons, matching the site's dark round buttons */
.recommendSliderVariable .slick-prev,
.recommendSliderVariable .slick-next {
  top: -64px;
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  background: #1a1a1a !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  left: auto !important;
  /* override slick's base translate(0,-50%) so hover transforms don't
     shift the button vertically */
  transform: none !important;
  transition: background 0.2s ease, transform 0.15s ease;
}
/* Align the arrow pair with the RIGHT edge of the heading's container
   (the heading sits in a centered max-width container, but the slider is
   full-width — so match the container gutter instead of the screen edge). */
.recommendSliderVariable .slick-next {
  right: max(20px, calc((100% - 808px) / 2)) !important;
}
.recommendSliderVariable .slick-prev {
  right: calc(max(20px, (100% - 808px) / 2) + 52px) !important;
}
@media (min-width: 1780px) and (max-width: 1920px) {
  .recommendSliderVariable .slick-next {
    right: calc((100% - 1069px) / 2) !important;
  }
  .recommendSliderVariable .slick-prev {
    right: calc((100% - 1069px) / 2 + 52px) !important;
  }
}
.recommendSliderVariable .slick-prev:hover,
.recommendSliderVariable .slick-next:hover {
  background: #000000 !important;
  transform: scale(1.08) !important;
}
.recommendSliderVariable .slick-prev:active,
.recommendSliderVariable .slick-next:active {
  transform: scale(0.94) !important;
}

/* Crisp, centered SVG chevrons (no more off-center PNGs) */
.recommendSliderVariable .slick-prev::before,
.recommendSliderVariable .slick-next::before {
  content: "" !important;
  margin: 0 !important;
  width: 16px !important;
  height: 16px !important;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  opacity: 1 !important;
}
.recommendSliderVariable .slick-prev::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%3E%3Cpath%20d='M10%203l-5%205%205%205'%20stroke='white'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}
.recommendSliderVariable .slick-next::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%3E%3Cpath%20d='M6%203l5%205-5%205'%20stroke='white'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}
.recommendSliderVariable .slick-prev.slick-disabled,
.recommendSliderVariable .slick-next.slick-disabled {
  background: #c9c9c9 !important;
}

/* ============================================================
   SECTION HEADING CONSISTENCY — match the type system (Poppins 700,
   tight tracking) instead of the heavier 900 used here/there.
   ============================================================ */
.userSummaryTitle,
.breakingTitle {
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
}

/* ============================================================
   "Why me" action buttons — were oversized (68px/20px) on large
   screens; bring them to a proportional size.
   ============================================================ */
@media (min-width: 1780px) and (max-width: 1920px) {
  .aboutBtn,
  .bookBtn {
    height: 54px !important;
    font-size: 16px !important;
  }
  .aboutBtn {
    padding: 0 26px !important;
  }
  .bookBtn {
    padding: 0 30px !important;
  }
  .aboutBtn:hover,
  .bookBtn:hover {
    font-size: 16px !important;
  }
}

/* ============================================================
   TOP-TO-BOTTOM HEADING CONSISTENCY
   Unify every heading to Poppins 700 + a single dark (#1a1a1a),
   so section titles, project-card titles and testimonial titles
   all share the same weight and color.
   ============================================================ */
.headingItem {
  font-weight: 700 !important; /* was 800/900 */
  color: #1a1a1a !important; /* was #262626 */
}
.userSummaryTitle {
  color: #1a1a1a !important;
}

/* ============================================================
   "Let's connect" CTA — match the "About Me" button exactly
   (add the subtle outline, same light-gray hover, same size).
   ============================================================ */
.connectBtn {
  border: 1px solid #e2e2e2 !important;
  color: var(--black) !important;
  background: #ffffff !important;
}
.connectBtn:hover {
  color: var(--black) !important;
  background: #f1f1f1 !important;
}
.connectBtn:hover svg path {
  fill: #000000 !important; /* keep the arrow dark on the light hover (mobile) */
}
@media (min-width: 1780px) and (max-width: 1920px) {
  .connectBtn {
    height: 54px !important;
    font-size: 16px !important;
    padding: 0 26px !important;
  }
  .connectBtn:hover {
    font-size: 16px !important;
  }
}

/* ============================================================
   "About Me" DISCOVERABILITY — visible header link (desktop) +
   footer link, so it isn't hidden behind the avatar hover.
   (Mobile uses the hamburger menu, which already lists it.)
   ============================================================ */
.rightSection {
  align-items: center;
}
.navAboutLink {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  margin-right: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a !important;
  text-decoration: none;
  border-radius: 99px;
  transition: background 0.2s ease, color 0.2s ease;
}
.navAboutLink:hover {
  color: #000000 !important;
  background: rgba(0, 0, 0, 0.05);
}
@media (max-width: 767px) {
  .navAboutLink {
    display: none; /* mobile uses the hamburger menu + footer link */
  }
}

/* ============================================================
   HEADER AS A PILL NAVBAR (exploration) — mirror the project
   category nav: one rounded white bar, logo left, nav + divider
   + Resume right. Desktop/tablet only; mobile keeps its bar.
   ============================================================ */
@media (min-width: 768px) {
  .headerRow {
    max-width: min(1200px, calc(100% - 64px)) !important;
    margin: 44px auto 0 !important;
    padding: 10px 14px 10px 24px !important;
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 100px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    align-items: center;
  }
  /* logo sits plainly inside the bar (no separate gray pill) */
  .headerRow .logoArea {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 8px !important;
    height: auto !important;
  }
  /* subtle divider before the Resume CTA, like the category nav */
  .navDivider {
    width: 1px;
    height: 30px;
    background: #ececec;
    margin: 0 6px 0 10px;
    flex: 0 0 auto;
  }
}
@media (max-width: 767px) {
  .navDivider {
    display: none;
  }
}

/* ============================================================
   HERO AVATAR — remove the About-Me hover overlay (now that
   "About Me" is in the header + footer), and trim size a touch
   on large screens.
   ============================================================ */
.hoverUserPic {
  display: none !important;
}
.userPic {
  cursor: default;
}
@media (min-width: 1780px) and (max-width: 1920px) {
  .userPic {
    width: 232px !important;
    height: 232px !important;
  }
}

/* ============================================================
   Resume button — match the "How I Design?" font style
   (Poppins; weight 500 at base, 600 on large screens; and no
   weight jump on hover). Sizes already match.
   ============================================================ */
.btnResume,
.btnResume .btnText,
.btnResume:hover {
  font-weight: 500 !important;
}
@media (min-width: 1780px) and (max-width: 1920px) {
  .btnResume,
  .btnResume .btnText,
  .btnResume:hover {
    font-weight: 600 !important;
  }
}

/* ============================================================
   DESKTOP HEADER = logo + hamburger menu (same panel as mobile).
   Removes About Me / Resume / divider from the bar; the hamburger
   sits on the right with a circular hover.
   ============================================================ */
@media (min-width: 768px) {
  .headerRow .navAboutLink,
  .headerRow .navDivider,
  .headerRow .btnResume {
    display: none !important;
  }
  .headerRow .menuInfo {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-right: 0;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.25s ease;
  }
  .headerRow .menuInfo:hover {
    background: #f0efef; /* circle appears on hover */
  }
  .headerRow .menuInfo img {
    width: 20px;
    height: auto;
  }
}

/* ============================================================
   DESKTOP MENU OVERLAY — REDESIGN (min-width: 768px only)
   Mobile menu is intentionally left untouched.
   - content centered in a max-width column
   - larger nav links with hairline dividers + hover slide
   - bottom band: stats row + awards + "Let's connect" footer
   ============================================================ */
@media (min-width: 768px) {
  /* keep the whole overlay to one screen — no scroll */
  .hamBurgerMenuSection {
    height: 100vh;
    overflow: hidden;
  }

  /* one centered column for EVERY band — identical left/right margins */
  .menuHeader,
  .menuLinkData,
  .menuBottomDetails {
    max-width: min(1200px, calc(100% - 64px)); /* mirror the homepage pill */
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    width: 100%;
    box-sizing: border-box;
  }

  /* dark top: flex column so header + nav stack cleanly (fixes overlap) */
  .menuTopSection {
    display: flex;
    flex-direction: column;
    padding: 40px 0 28px;
  }
  .menuHeader {
    height: auto;
    padding-top: 6px;
    padding-bottom: 6px;
    align-items: center;
    background: transparent;
    position: static;
  }
  /* logo: match the homepage size + left position */
  .menuLogo {
    width: auto;
  }
  .menuLogo img {
    height: 29px;
    width: auto;
    display: block;
  }
  /* close (X): sit where the hamburger was, right-aligned */
  .menuCloseInfo {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  .menuCloseInfo img {
    width: 44px;
    height: 44px;
  }
  .menuLinkData {
    margin-top: 24px;
  }

  /* nav links — full column width so icons align at the right edge */
  .menuLinkList {
    max-width: 100%;
    width: 100%;
  }
  .menuLinkList li:not(:last-child) {
    margin-bottom: 0;
  }
  .menuLinkList a {
    height: auto;
    font-size: clamp(20px, 1.35vw, 28px); /* fluid — scales with the display */
    font-weight: 600;
    line-height: 1;
    padding: 16px 2px;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.25s ease, padding-left 0.25s ease;
  }
  .menuLinkList a:hover {
    color: #bdbdbd;
    padding-left: 12px;
  }
  .menuLinkList a svg {
    width: 18px;
  }
  .linkArrow {
    width: 14px;
  }
  .commingText {
    font-size: 14px;
    align-self: center;
  }
  /* no divider under the last link (Dribbble) */
  .menuLinkList li:last-child a {
    border-bottom: none;
  }

  /* bottom band — SAME margins as the top; items spread end-to-end */
  .menuBottomSection {
    padding: 48px 0 40px; /* space above the Experience row */
    flex: 1 1 auto; /* fill the rest of the screen */
    display: flex;
  }
  .menuUserSummaryExpData {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 24px;
  }
  /* fluid stat text in the menu — scales with the display (menu-only) */
  .menuUserSummaryExpData .userSummaryExpHeading {
    font-size: clamp(13px, 0.95vw, 20px);
  }
  .menuUserSummaryExpData .userSummaryExpTitle {
    font-size: clamp(16px, 1.25vw, 26px);
  }
  .menuBottomDetails .userSummaryAward {
    margin: 40px 0 0;
    padding-top: 0;
    flex: 0 0 auto; /* don't stretch — keep badges grouped with the stats */
    width: 100%;
  }
  .menuBottomDetails .userSummaryAwardListData {
    justify-content: space-between;
    align-items: center;
    gap: 20px;
  }
  .menuBottomDetails .userSummaryAwardItem img {
    height: 60px;
    width: auto;
  }
  .menuLetSection {
    justify-content: space-between;
    align-items: center;
    margin-top: auto; /* pin "Let's craft brilliance" to the bottom */
  }
  .menuLetCraftText {
    font-size: 20px;
    font-weight: 700;
  }
  .menuLetConnectBtn {
    height: 48px;
    font-size: 15px;
    padding: 0 26px;
  }
}

/* menu logo matches the homepage logo size on large screens too */
@media (min-width: 1780px) and (max-width: 1920px) {
  .menuLogo img {
    height: 37px;
  }
}

/* ============================================================
   PROJECT TABS — original pill bar (tabs left), with
   "Trusted By / Millions of Users" on the right.
   ============================================================ */
/* balanced pill: equal breathing room top/bottom and left/right */
.featureSection .tabBarInfo {
  padding: 15px 16px;
}
.featureSection .navTabBar button {
  height: 38px;
}
.featureSection .tabTrustInfo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-left: 24px;
  margin-right: 12px; /* clear the pill's rounded right edge */
  border-left: 1px solid var(--whisperColor);
  text-align: left;
}
.featureSection .tabTrustLabel {
  font-size: 13px;
  color: #7a7a7a;
  font-weight: 500;
  line-height: 1.25;
}
.featureSection .tabTrustValue {
  font-size: 16px;
  color: #1a1a1a;
  font-weight: 700;
  line-height: 1.25;
}

/* ============================================================
   FIXED BOTTOM BAR — reduce oversized sizing on large screens
   ============================================================ */
@media (min-width: 1780px) and (max-width: 1920px) {
  .userFixedSection {
    max-width: 820px;
    padding: 8px 12px;
  }
  .userFixedPicInfo {
    width: 52px;
    height: 52px;
  }
  .userFixedName {
    font-size: 19px;
  }
  .userFixedWork {
    font-size: 14px;
  }
  .btnWhy {
    height: 50px;
    font-size: 15px;
    padding: 0 24px;
  }
  .btnBook {
    height: 50px;
    font-size: 16px;
    padding: 0 26px;
  }
  .btnBook:hover {
    font-size: 16px;
  }
}
