/* RESET & BASE
-------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
}

:root {
  --transition: all 1s ease;
  --transition-all: all .4s ease-in-out;

  --color-primary: rgb(62, 35, 20);
  --color-primary-o85: hsla(21, 51%, 16%, 0.85);

  --color-secondary: #fe9152;
  --color-secondary-1: hsl(22, 76%, 59%);
  --color-secondary-2: #be6c3c;
  --color-secondary-3: hsl(22, 51%, 33%);
  --color-secondary-4: #3e2314;

  --color-green: hsl(110, 100%, 71%);
  --color-blue: #276bb4;
  --color-blue-lighter: #47a0ff;

  --color-white: #ffffff;
  --color-black: #000000;

  --color-grey-0: #f7f7f7;
  --color-grey-1: #dae0e7;
  --color-grey-2: #b2becd;
  --color-grey-3: hsl(206, 10%, 47%);
  --color-grey-4: hsl(208, 11%, 30%);
  --color-grey-5: hsl(218, 12%, 19%);
  --color-grey-6: hsl(200, 20%, 9%);

  --color-bg-gradient: linear-gradient(
    90deg,
    rgba(62, 35, 20, 1) 0%,
    rgba(190, 108, 60, 1) 63%,
    rgba(254, 145, 82, 1) 100%
  );

  /* dotted blue pattern used on work strip */
  --color-bg-image-work:
    radial-gradient(50% 50% at 100% 0,
      #286cb5 0% 5%,
      rgba(71, 160, 255, 0.04) 6% 15%,
      #286cb5 16% 25%,
      rgba(71, 160, 255, 0.04) 26% 35%,
      #286cb5 36% 45%,
      rgba(71, 160, 255, 0.04) 46% 55%,
      #286cb5 56% 65%,
      rgba(71, 160, 255, 0.04) 66% 75%,
      #286cb5 76% 85%,
      rgba(71, 160, 255, 0.04) 86% 95%,
      #0000 96%),
    radial-gradient(50% 50% at 0 100%,
      #286cb5 0% 5%,
      rgba(71, 160, 255, 0.04) 6% 15%,
      #286cb5 16% 25%,
      rgba(71, 160, 255, 0.04) 26% 35%,
      #286cb5 36% 45%,
      rgba(71, 160, 255, 0.04) 46% 55%,
      #286cb5 56% 65%,
      rgba(71, 160, 255, 0.04) 66% 75%,
      #286cb5 76% 85%,
      rgba(71, 160, 255, 0.04) 86% 95%,
      #0000 96%),
    radial-gradient(50% 50%,
      #286cb5 0% 5%,
      rgba(71, 160, 255, 0.04) 6% 15%,
      #286cb5 16% 25%,
      rgba(71, 160, 255, 0.04) 26% 35%,
      #286cb5 36% 45%,
      rgba(71, 160, 255, 0.04) 46% 55%,
      #286cb5 56% 65%,
      rgba(71, 160, 255, 0.04) 66% 75%,
      #286cb5 76% 85%,
      rgba(71, 160, 255, 0.04) 86% 95%,
      #0000 96%),
    radial-gradient(50% 50%,
      #286cb5 0% 5%,
      rgba(71, 160, 255, 0.04) 6% 15%,
      #286cb5 16% 25%,
      rgba(71, 160, 255, 0.04) 26% 35%,
      #286cb5 36% 45%,
      rgba(71, 160, 255, 0.04) 46% 55%,
      #286cb5 56% 65%,
      rgba(71, 160, 255, 0.04) 66% 75%,
      #286cb5 76% 85%,
      rgba(71, 160, 255, 0.04) 86% 95%,
      #0000 96%) 26px 26px;

  --br-sm-1: 0.5rem;
  --br-sm-2: 1rem;
  --br-sm-3: 2rem;

  --border-guide: 1px solid hsl(125, 100%, 50%);
  --effect-black-gradient: linear-gradient(
    360deg,
    hsl(243, 100%, 7%) 0%,
    hsla(243, 100%, 4%, 0.71) 43%,
    hsla(0, 0%, 0%, 0) 100%
  );

  --box-shadow-1: 0 3px 15px hsla(0, 0%, 0%, 0.3);

  --btn-shadow: 0 3px 15px hsla(0, 0%, 0%, 0.3);
  --btn-shadow-hover: 0 3px 8px hsla(0, 0%, 0%, 0.3);
  --btn-shadow-focus: 0 3px 5px hsla(0, 0%, 0%, 0.3);

  --effect-hShadow: 2px 2px var(--color-grey-6);
  --effect-hShadowInv: 2px 2px var(--color-white);
  --effect-hShadowInvSml: 1px 1px var(--color-white);

  --font-header: 'Anybody', sans-serif;
}

body {
  /*background: var(--color-bg-gradient);*/
  background-color:#be6c3c;
  font-family: 'Poppins', sans-serif;
  color: var(--color-grey-5);
  transition: var(--transition-all);
  overflow-x: hidden;
}

a {
  display: inline-block;
  text-decoration: none;
  color: var(--color-secondary);
  font-family: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-header);
}

/* HERO / HOME
-------------------------------------------------- */
.header-content {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 100vh;
  height: 100dvh;
  background: url("../images/newHeaderBG.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 20% center;
  overflow: hidden;
  padding-right: 3rem;
  position: relative;
}

/* adjust crop on smaller widths */
@media (max-width: 768px) {
  .header-content {
    background-position: 32% center;
  }
}
@media (max-width: 480px) {
  .header-content {
    background-position: 38% center;
  }
}

/* grouped hero heading (name + subtitle) */
.hero-heading {
    position: absolute;
    right: 3rem;
    bottom: 24vh;              /* move whole block up/down as needed */
    text-align: right;

    /*  master scale – BOTH title + subtitle follow this */
    font-size: clamp(3rem, 1rem + 10vw, 7rem);
}

/* main name */
.hero-heading .title {
    font-weight: 800;
    color: var(--color-secondary);

    /* now sized relative to the container */
    font-size: 1em;
    line-height: 0.95;
    text-shadow:
        0px 4px 18px rgba(0,0,0,0.55),
        0px 2px 8px rgba(0,0,0,0.35);
}

/* animated subtitle */
.hero-heading .sub-title {
    margin-top: 0.55rem;

    /* relative to the title/container instead of viewport width */
    font-size: 0.22em;  /* tweak 0.20–0.26em to taste */

    letter-spacing: 0.12em;
    font-weight: 600;
    text-transform: uppercase;
    color: hsl(0, 0%, 97%);
    text-shadow:
        0px 2px 6px rgba(0,0,0,0.55),
        0px 0px 3px rgba(255,255,255,0.35);
}

/* keep heading within margins on narrower screens */
@media (max-width: 900px) {
  .hero-heading {
    right: 3rem;
    left: 3rem;
  }
}
@media (max-width: 600px) {
  .hero-heading {
    font-size: clamp(2.4rem, 1rem + 10vw, 5rem);
    bottom: 20vh;
  }
}
@media (max-width: 480px) {
  .hero-heading {
    right: 2rem;
    left: 2rem;
    bottom: 18vh;
  }
}

/* CLOUD LAYER – subtle parallax clouds */
.cloud-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  background: transparent;
  z-index: 1;
}

.cloud {
  position: absolute;
  width: 260px;
  height: 140px;
  pointer-events: none;
}

.cloud::before {
  content: "";
  position: absolute;
  inset: -60%;
  background:
    radial-gradient(
      ellipse 60% 40% at 50% 45%,
      rgba(255, 255, 255, 0.6) 0%,
      rgba(255, 255, 255, 0.3) 40%,
      rgba(255, 255, 255, 0) 100%
    );
  filter: blur(20px);
  opacity: 0.16;
}

.c1 {
  top: 12vh;
  left: -20vw;
}

.c2 {
  top: 18vh;
  left: 10vw;
  transform: scale(0.9);
}

.c3 {
  top: 24vh;
  right: -25vw;
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .c1 { top: 10vh; }
  .c2 { top: 16vh; }
  .c3 { top: 22vh; }
}

/* FLYOUT SOCIAL
-------------------------------------------------- */
.flyout-social-icons {
  display: flex;
  align-items: center;
  position: absolute;
  top: 3.125rem;
  right: 0;
  color: var(--color-white);
  padding: 1rem 2rem;
  background-color: hsla(33, 77%, 71%, 0.18);
  border-radius: .625rem 0 0 .625rem;
  z-index: 10;
}

.flyout-social-icon {
  margin: 0 1rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.2em;
  transition: all .25s ease-in-out;
}

.flyout-social-icon:hover {
  color: var(--color-secondary);
  transform: scale(2);
  text-shadow: 1px 1px var(--color-grey-6);
}

/* MAIN NAV CONTROLS
-------------------------------------------------- */
.controls {
  display: flex;
  position: absolute;
  gap: 3.5rem;
  bottom: 6rem;
  right: 3rem;
  z-index: 9999;
}

.control {
  display: flex;
  justify-content: center;
  color: rgba(255, 255, 255, 0.75);
  text-shadow: var(--effect-hShadow);
  cursor: pointer;
  transition: color .2s ease, opacity .2s ease, transform .2s ease;
  border: none;
  background: transparent;
  padding: 0;
  appearance: none;
}

.control:hover {
  color: #ff9b60;
  opacity: 1;
  transform: translateY(-2px);
}

.control:focus-visible {
  outline: 2px solid #ff9b60;
  outline-offset: 10px;
  color: #ff9b60;
  opacity: 1;
}

.control-text {
  position: absolute;
  top: 2.4rem;
  text-transform: uppercase;
  font-family: var(--font-header);
  font-weight: 600;
  font-size: clamp(0.75rem, 0.55rem + 0.4vw, 0.9rem);
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.7);
  clip-path: inset(0 -10px 0 120px);
  opacity: 0.8;
  transition: color .2s ease, opacity .2s ease, clip-path .25s ease-in-out;
}

.control:hover .control-text {
  color: #ff9b60;
  opacity: 1;
  clip-path: inset(0 0 0 0);
}

/* active state – lift button slightly, pop icon only */
.active-btn {
  transform: translateY(-4px);
  transition: var(--transition-all);
}

.controls i {
  pointer-events: none;
  text-align: center;
  font-size: clamp(1.1rem, 0.8rem + 1.1vw, 1.6rem);
  transition: transform .2s ease, color .2s ease;
}

.active-btn i {
  color: var(--color-secondary) !important;
  transform: scale(1.25);
}



/* PAGE SECTIONS
-------------------------------------------------- */
section {
  height: 100vh;
  height: 100dvh;
  width: 100%;
  position: absolute;
  left: 0;
  top: 0;
  overflow-x: hidden;
}

.section {
  transform: translateX(-100%) scale(0);
  transition: var(--transition-all);
  background-color: var(--color-white);
}

/* Prevent transforms from affecting fixed children like section titles */
.section {
  transform: none !important;
}

@keyframes slideSectionAnim {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(0) scaleX(1); }
}

.sec1,
.sec2,
.sec3,
.sec5 {
  display: none;
  transform: translateX(0) scale(1);
}

.sec2 {
  background-image: url("../images/aboutBG.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: bottom center;
}

.sec3 {
  background-image: url("https://images.unsplash.com/photo-1584241477986-b1503d3ce979?auto=format&fit=crop&w=2070&q=80");
  background-size: cover;
}

.sec5 {
  background-image: url("https://images.unsplash.com/photo-1565419081241-df2d7e716dc8?auto=format&fit=crop&w=2070&q=80");
  background-size: cover;
  background-position: 10% 100%;
}

.active-page {
  display: block;
}

/* MAIN TITLE (bottom right label)
-------------------------------------------------- */
.main-title {
  position: fixed;
  right: 3rem;
  bottom: 2rem;
  animation: scaleAnim 1s ease-in-out;
  z-index: 9999;
  pointer-events: none;
}

.main-title h2 {
  font-size: clamp(1rem, 1rem + 10vw, 2rem);
  color: var(--color-secondary);
}

.main-title-bar {
  color: var(--color-blue-lighter);
}

.main-title .bg-text {
  color: var(--color-secondary-2);
}

@keyframes scaleAnim {
  0% { transform: translateX(100%) scaleX(0); }
  100% { transform: translateX(0) scaleX(1); }
}

/* GENERIC 2-COL CONTAINER
-------------------------------------------------- */
.container-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 auto;
  padding: 2rem;
  max-width: 100%;
  min-height: 80vh;
  min-height: 80dvh;
}

/* ABOUT SECTION
-------------------------------------------------- */

/* ABOUT SECTION
-------------------------------------------------- */

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2.5rem, 4vw, 4rem) clamp(2rem, 5vw, 6vw);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.75rem;
  align-items: flex-start;
  justify-items: center;
  min-height: 100dvh;
  overflow-x: clip;
}

@media (max-width: 900px) {
  .about-container {
    grid-template-columns: 1fr;
    padding: 3rem 2rem;
    row-gap: 1.6rem;
    justify-items: center;
  }
  .right-about {
    margin-left: 0;
    margin-top: 0;
  }
  .speech-bubble {
    max-width: min(720px, 100%);
    width: 100%;
    transform: none;
  }
  .tools-panel {
    max-width: min(720px, 100%);
    width: 100%;
    padding: 2.6rem 2.4rem;
  }
  .tool-list.tools-stacks {
    position: static;
    min-height: auto;
  }
  .tool-stack {
    position: static;
    width: 100%;
  }
  .tool-stack-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }
}

@media (max-width: 640px) {
  .about-container {
    padding: 2.4rem 1.4rem;
    row-gap: 1.2rem;
  }
  .speech-bubble {
    padding: 2rem 1.6rem 2.2rem;
    max-width: none;
  }
  .tools-panel {
    padding: 2.2rem 1.6rem;
    border-radius: 1.6rem;
    max-width: none;
  }
  .tool-stack-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
  .tool .tool-icon {
    width: 3.6rem;
    height: 3.6rem;
  }
}

@media (max-height: 820px) and (min-width: 901px) {
  .about-container {
    padding: clamp(2rem, 3vw, 3rem) clamp(2rem, 4vw, 4.5rem);
  }
  .speech-bubble {
    min-height: clamp(380px, 55vh, 480px);
    max-height: calc(100dvh - 6rem);
  }
  .tools-panel {
    max-height: calc(100dvh - 6rem);
    padding: clamp(2.2rem, 3vw, 3rem) clamp(2.4rem, 3vw, 3.6rem);
  }
  .tool-list.tools-stacks {
    min-height: clamp(240px, 40vh, 320px);
  }
}

.left-about,
.right-about {
  position: relative;
}

/* left column: main orange card */
.left-about {
  z-index: 2;                 /* sits above the drawer */
  display: flex;
  flex-direction: column;
}

/* right column: drawer that “lives” under card edge */
.right-about {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  z-index: 1;
  margin-left: 0;
  margin-top: 2rem;
  height:100%;
}


/* main orange card */
.speech-bubble {
  position: relative;
  max-width: 36rem;
  width: 100%;
  padding: clamp(2.2rem, 3vw, 2.8rem) clamp(2.2rem, 4vw, 3rem) clamp(2.4rem, 4vw, 3.2rem);
  border-radius: 0.9rem;
  background: rgba(243, 194, 173, 0.5);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .45);
  transform: rotate(-2deg);
  font-size: 0.98rem;
  line-height: 1.55;
  min-height: clamp(420px, 60vh, 520px);
  max-height: calc(100dvh - 8rem);
}

.speech-bubble::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  transform: rotate(-1deg) translate(.25em, -.15em) scale(1.01);
  background: #fe9152;
  opacity: 0.95;
}

.speech-bubble h2 {
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem);
  margin-bottom: 1.1rem;
}

.speech-bubble p {
  margin-bottom: 0.6rem;
}

.speech-bubble a {
  color: var(--color-white);
}
.speech-bubble a:hover {
  text-decoration: underline;
}

.speech-bubble a.main-btn:hover,
.speech-bubble a.main-btn:focus {
  text-decoration: none;               
}

.speech-bubble a.main-btn:hover .btn-text,
.speech-bubble a.main-btn:focus .btn-text {
  text-decoration: underline;          
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

/* pill stats row under heading */
.bio-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.4rem 0 1.1rem;
}

.bio-stat {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.bio-stat span {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3e2314;
}

.bio-stat label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(62, 35, 20, 0.85);
}

/* bullet list inside card */
.bio-list {
  margin: 0 0 0.9rem 0;
  padding-left: 1.4rem;
}

.bio-list li {
  list-style-type: disc;
  list-style-position: outside;
  margin-bottom: 0.25rem;
}
.bio-list li::marker {
  color: var(--color-blue);
}

/*  tools panel
-------------------------------------------------- */
.tools-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  width: 100%;
  max-width: 78rem;
  margin-right: 0;
  padding: clamp(2.4rem, 4vw, 3.2rem) clamp(2.6rem, 4vw, 4rem) clamp(2.6rem, 4vw, 3.4rem) clamp(2.8rem, 5vw, 5rem);
  isolation: isolate;
  max-height: calc(100dvh - 8rem);

  /* Cool, neutral frosted glass (Apple-inspired) */
  background: linear-gradient(150deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0.22) 40%,
    rgba(255, 255, 255, 0.14) 100%);
  backdrop-filter: blur(26px) saturate(130%);
  -webkit-backdrop-filter: blur(26px) saturate(130%);

  border-radius: 2.4rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.32),
    0 1px 0 rgba(255, 255, 255, 0.38) inset,
    0 -1px 0 rgba(255, 255, 255, 0.08) inset;

  overflow: visible;
}
.tools-panel::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 1.8rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.22), transparent 42%),
    radial-gradient(circle at 80% 0%, rgba(255,255,255,0.14), transparent 36%);
  opacity: 0;
  pointer-events: none;
}


/* Header spacing */
.tools-header {
  margin-bottom: 1.2rem;
}

.tools-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  opacity: 0.75;
  color: rgba(51, 65, 85, 0.9);
  display: block;
}

.tools-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: none;
  margin-bottom: 0.2rem;
}


/* === STACK LIST === */
.tool-list.tools-stacks {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  margin-top: 0.2rem;
  position: relative;
  min-height: clamp(260px, 45vh, 360px);
}

.tool-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  margin-top: 0;
  position: absolute;
  inset: 0;
  width: 100%;
  pointer-events: none;
}

/* Category label */
.tool-stack-header {
  align-self: flex-start;
  text-align: left;
  padding-top: 0.25rem;
  padding-left: 0.5rem;
  margin: 0;
}

.tool-stack-label {
  background: linear-gradient(120deg,
    rgba(255,255,255,0.38),
    rgba(255,255,255,0.16));
  color: #0f172a;
  padding: 0.25rem 0.9rem;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.18),
    0 1px 0 rgba(255,255,255,0.5) inset;
}

/* === GRID OF TOOLS === */
.tool-stack-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-items: center;
  gap: 1.6rem;
  padding: 0.4rem 1rem 0 1rem;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}


/* Tool tile */
.tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.5rem 0.8rem;
  background: linear-gradient(145deg,
    rgba(255,255,255,0.28),
    rgba(255,255,255,0.12));
  border-radius: 1.2rem;
  max-width: 180px;
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.22),
    0 1px 0 rgba(255,255,255,0.4) inset,
    0 -1px 0 rgba(255,255,255,0.18) inset;
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.2s ease;
}

.tool:hover {
  transform: translateY(-6px);
  filter: brightness(1.06);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.3),
    0 1px 0 rgba(255,255,255,0.5) inset,
    0 -1px 0 rgba(255,255,255,0.2) inset;
}
.tool:focus-visible {
  outline: 2px solid rgba(15, 23, 42, 0.65);
  outline-offset: 4px;
}

.tool .tool-icon {
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 1.3rem;

  /* lighter frosted tile so logos pop */
  background:
    linear-gradient(140deg, rgba(255,255,255,0.32), rgba(255,255,255,0.12)),
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.58), rgba(255,255,255,0.05));

  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.28);

  display: flex;
  align-items: center;
  justify-content: center;

  transform: translateZ(0); /* avoid blur/fringing */
}

.tool .tool-icon img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  display: block;
}

.tool-name {
  font-size: 0.75rem;
  line-height: 1.25;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(15, 23, 42, 0.9);
  white-space: normal;
}

/* Hover state – subtle lift + glow */

.tool:hover .tool-icon {
  background:
    linear-gradient(140deg, rgba(255,255,255,0.65), rgba(255,255,255,0.18)),
    radial-gradient(circle at 30% 0%, rgba(255,255,255,0.75), rgba(255,255,255,0.16) 55%, transparent 90%);
  box-shadow:
    0 22px 38px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.35);
}

.tool:hover .tool-name {
  color: #0f172a;
}

/* buttons on About */
.left-about button {
  padding: 1rem;
  border: none;
  background-color: var(--color-secondary-1);
  color: var(--color-secondary-4);
  font-size: 1.25rem;
  font-weight: 900;
  border-radius: var(--br-sm-2);
  cursor: pointer;
}

.left-about button:hover {
  background-color: var(--color-secondary-4);
  color: var(--color-white);
}

/* NOTE: the photo behind the card – adjust if you re-enable it */
.left-about img {
  max-width: 550px;
  transform: scaleX(-1);
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: -1;
  filter: sepia(100%);
  border-bottom: 1rem solid var(--color-secondary-1);
}

/* small page prompt arrow */
.page-prompt {
  display: flex;
  position: absolute;
  text-shadow: var(--effect-hShadow);
  font-size: 2rem;
  color: var(--color-white);
  rotate: 5deg;
  right: 18rem;
  bottom: 10rem;
}

.page-prompt i {
  padding-right: 1rem;
  transform: scaleX(-1) rotate(45deg);
}

/* WORK SECTION – serious layout
-------------------------------------------------- */

.sec3 {
  background-size: cover;
  background-position: center;
}

/* main work container: same idea as other sections, just custom content */
.work-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 5vw 3.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  column-gap: 3rem;
  align-items: center;
  color: var(--color-white);
}

/* left = blue panel, right = sample cards */
.left-work,
.right-work {
  position: relative;
}

/* LEFT: create a “stage” so all .work-type panels stack in place */
.left-work {
  z-index: 3;
  min-height: 380px;      /* enough height for tallest text block */
  overflow: hidden;       /* anything sliding under gets clipped */
}

/* each panel overlays in the same slot; GSAP just fades/moves them */
.left-work .work-type {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

/* RIGHT: stage for the gallery cards */
.right-work {
  z-index: 1;
  min-height: 260px;      /* reserves space so cards don’t push page */
}

/* shared blue panel used by each view’s copy block */
.work-type {
  padding: 2.6rem 3rem;
  border-radius: 1.6rem;
  background: rgba(22, 92, 172, 0.96);
  box-shadow:
    0 28px 65px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 640px;
}

.work-type::before {
  content: "";
  position: absolute;
  inset: auto 10% -18px 10%;
  border-radius: 999px;
  background: radial-gradient(
    ellipse at 50% 0,
    rgba(0, 0, 0, 0.6),
    transparent 70%
  );
  opacity: 0.75;
}

.work-type h2 {
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  margin-bottom: 1rem;
}

.work-type p {
  margin-bottom: 0.55rem;
}

/* ---- Work nav pills (top strip) ---- */

.work-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 5vw 0;
  margin: 0 auto;
  max-width: 1200px;
  color: var(--color-white);
}

.work-controls button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(12, 12, 16, 0.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    0 14px 35px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.5);
  transition:
    background 160ms ease-out,
    color 160ms ease-out,
    border-color 160ms ease-out,
    box-shadow 160ms ease-out,
    transform 120ms ease-out;
}

.work-controls button:hover {
  background: rgba(25, 25, 30, 0.65);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(0, 0, 0, 0.75);
  transform: translateY(-1px);
}

/* orange active pill */
.work-controls button.is-active {
  background: var(--color-secondary);
  border-color: rgba(0, 0, 0, 0.6);
  color: var(--color-secondary-4);
  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(0, 0, 0, 0.8);
}

.work-controls button.is-active::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.38);
  opacity: 0.9;
}

/* ---- Sample galleries (right-hand column) ---- */

/* stack each gallery set on the same stage; GSAP swaps them */
.work-gallery-set {
  position: absolute;
  bottom: 0;
  right: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5rem;
  opacity: 0;
  pointer-events: none;
}

.work-gallery-set.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* straight “polaroid” cards – no skew */
.polaroid-card {
  position: relative;
  width: 240px;
  max-width: 260px;
  padding: 0.85rem 0.85rem 1.15rem;
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.97);
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(0, 0, 0, 0.1);
  transform: translateY(0);
  transition:
    transform 200ms ease-out,
    box-shadow 200ms ease-out,
    background 160ms ease-out;
}

.polaroid-card.polaroid-primary {
  width: 260px;
}

.polaroid-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1rem;
  object-fit: cover;
}

.polaroid-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(0, 0, 0, 0.15);
}

/* RESPONSIVE – stack columns on tablet/phone */
@media (max-width: 1024px) {
  .work-container {
    grid-template-columns: 1fr;
    row-gap: 2.6rem;
    padding-top: 3.25rem;
  }

  .left-work {
    order: 1;
  }

  .right-work {
    order: 2;
  }
}

@media (max-width: 768px) {
  .work-controls {
    flex-wrap: wrap;
    row-gap: 0.75rem;
  }

  .work-container {
    padding-inline: 1.5rem;
  }

  .right-work {
    justify-content: center;
  }

  .polaroid-card {
    width: min(220px, 45vw);
  }
}


/* CONTACT SECTION
-------------------------------------------------- */
.contact-container {
  max-width: 1400px;
  align-items: center;
}

.left-contact {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

.left-contact img {
  width: 90%;
  filter: sepia(100);
  z-index: -1;
}

.left-contact h3 {
  margin-top: -3em;
  z-index: 50;
  padding: 1rem 2rem;
  background-color: var(--color-secondary-3);
  border-radius: 2rem;
  color: var(--color-white);
}

.left-contact .contact-wrapper {
  position: relative;
  background-color: var(--color-secondary-2);
  background-image: var(--color-bg-image);
  background-attachment: fixed;
  background-size: cover;
  border-radius: 2rem;
  margin-top: -2rem;
  padding: 3rem 2rem;
  color: var(--color-primary);
  width: 100%;
  box-shadow: 0 3px 5px var(--color-secondary-4);
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.contact-info .fa-reply {
  transform: rotate(-120deg);
}

.left-contact h4 {
  font-size: 2rem;
  text-transform: uppercase;
  padding: 1rem 1rem;
}

.contact-info .fa-share {
  transform: rotate(120deg);
}

.contact-info i {
  font-size: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .5rem;
}

.contact-item p {
  margin: .3rem 0 !important;
  padding: 0 !important;
  font-size: clamp(0.5rem, 1rem, 1.2rem);
}

.contact-item a {
  color: var(--color-white);
  font-size: clamp(0.5rem, 1rem + 10vw, 1.2rem);
}

.contact-item a:hover {
  text-decoration: underline;
  cursor: pointer;
}

.contact-item .icon {
  display: grid;
  grid-template-columns: 2rem 1fr;
}

.contact-item .icon i {
  display: flex;
  align-items: center;
  font-size: 1.3rem;
}

.contact-icons {
  display: flex;
  justify-content: space-evenly;
}

.contact-icon {
  display: flex;
  margin-top: 1rem;
}

.contact-icon a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  background-color: var(--color-secondary-4);
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin: 0 .4rem;
  transition: var(--transition-all);
}

.contact-icon a:hover {
  background-color: var(--color-white);
  transform: scale(1.2);
}

.contact-icon a:hover i {
  color: var(--color-secondary);
  transform: scale(1.2);
}

.contact-icon i {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.testimonials {
  padding: 3rem 2rem 2rem 3rem;
  color: var(--color-secondary);
  border-radius: 2rem;
  background-color: var(--color-primary-o85);
  font-style: italic;
  margin: -1rem 2rem;
}

.testimonials span {
  display: block;
  text-align: right;
}

.right-contact {
  text-align: right;
}

.right-contact h3 {
  font-size: clamp(2rem, 1.7037rem + 1.4815vw, 3rem);
  text-transform: uppercase;
  color: var(--color-secondary);
  text-shadow: var(--effect-hShadow);
}

.right-contact .cta-ani-word {
  display: inline-block;
  color: var(--color-white);
  text-shadow: var(--effect-hShadow);
  font-size: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.right-contact p {
  font-size: clamp(1.3rem, 1.5rem, 1.8rem);
  color: var(--color-secondary-3);
  padding-left: 4rem;
}

.right-contact img {
  max-width: 50%;
  margin: 2.5rem auto 1rem;
  border-radius: 2rem;
  border: 10px solid var(--color-white);
  box-shadow: var(--box-shadow-1);
}

.right-contact h4 {
  color: white;
  font-size: 2rem;
  text-align: right;
  text-shadow: var(--effect-hShadow);
}

/* UTILITIES & GLOBAL CTA
-------------------------------------------------- */
.btn-con {
  display: flex;
  align-self: flex-end;
}

.main-btn {
  border-radius: 30px;
  color: var(--color-white);
  font-weight: 600;
  position: relative;
  border: 2px solid var(--color-secondary);
  display: flex;
  align-self: flex-start;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-secondary-2);
}

.main-btn i {
  color: var(--color-white) !important;
}

.btn-text {
  padding: 0 2rem;
}

.btn-icon {
  background-color: var(--color-secondary-3);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 1rem;
}

.main-btn::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  transform: translateX(100%);
  transition: var(--transition-all);
  z-index: -1;
}

.main-btn:hover::before {
  width: 100%;
  height: 100%;
  background-color: var(--color-secondary);
  transform: translateX(0);
}

.theme-btn {
  top: 5%;
  left: 3%;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--color-grey-4);
  opacity: .3;
  cursor: pointer;
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 3px 15px rgba(0, 0, 0, .3);
  transition: all .1s ease-in-out;
}

.theme-btn:hover { opacity: .8; }
.theme-btn:active { transform: translateY(-3px); }

.theme-btn i {
  font-size: 1.4rem;
  color: var(--color-grey-2);
  pointer-events: none;
}

/* accessibility helper */
.screen-reader-text {
  position: absolute;
  top: -99999px;
  left: -99999px;
}

.guide-border {
  border: var(--border-guide);
}

/* basic misc animations */
.rotate {
  animation: rotation 2s;
}
@keyframes rotation {
  from { transform: rotate(0deg); }
  to { transform: rotate(359deg); }
}
.wiggle {
  animation: wiggle 0.5s;
}
@keyframes wiggle {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(2deg); }
  50% { transform: rotate(-2deg); }
  75% { transform: rotate(1deg); }
  100% { transform: rotate(0deg); }
}

/* Safety guard: keep nav icons unstyled by tool tile rules */
.controls i,
.controls svg,
.controls .fa-solid,
.controls .fa-regular,
.controls .fa-brands {
  background: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  backdrop-filter: none;
}

/* RESPONSIVE TWEAKS
-------------------------------------------------- */
@media (max-width: 1024px) {
  .work-container {
    padding-inline: 1.75rem;
  }
  .work-controls {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .polaroid-card {
    width: min(240px, 42vw);
  }
}

@media screen and (max-width: 840px) {
  /* don’t touch about-container here */
  .container-2-col:not(.about-container) {
    grid-template-columns: 1fr;
    grid-gap: 2rem;
  }

  .left-contact {
    grid-row: 2;
    padding-bottom: 6rem;
  }

  .right-contact p {
    padding-left: 0;
  }
}


@media screen and (max-width: 600px) {
  /* blog layout removed */
}

/* responsive overrides */
@media screen and (max-width: 840px) {
  .contact-container {
    grid-template-columns: 1fr;
    row-gap: 2rem;
    padding-inline: 1.6rem;
  }
  .right-contact,
  .right-contact h3,
  .right-contact h4 {
    text-align: center;
  }
  .right-contact img {
    max-width: 65%;
  }
}

@media screen and (max-width: 600px) {
  .work-controls {
    flex-wrap: wrap;
    gap: 0.6rem;
  }
  .work-controls button {
    width: 48%;
    justify-content: center;
  }
  .work-container {
    padding-inline: 1.2rem;
  }
  .polaroid-card {
    width: min(200px, 70vw);
  }
  .contact-container {
    padding-inline: 1.2rem;
  }
  .right-contact img {
    max-width: 80%;
  }
}

@media screen and (max-width: 480px) {
  .header-content {
    padding-right: 2rem;
  }
}



/* --------------------------------------------
   iPad / medium screens – shrink ABOUT content only
   -------------------------------------------- */
@media (min-width: 768px) and (max-width: 1180px) {

  /* shrink the whole about content group */
  .about-container {
    transform: scale(0.92);
    transform-origin: top center;
  }

  /* reduce card vertical footprint slightly */
  .speech-bubble {
    min-height: 460px;              /* was 520px */
    padding: 2.2rem 2.4rem 2.4rem;  /* slightly tighter */
  }

  /* tighten the tools drawer */
  .right-about {
    margin-top: -2rem;              /* was -3rem */
    margin-left: -20px;             /* nicer balance at this scale */
  }

  /* FIXED: combine translate + scale in one transform so it behaves correctly 
  .tools-panel {
    transform: translateY(-1.5rem) scale(0.90);
    transform-origin: top right;
  }
    */
}

/* =========================================
   PHONE LAYOUT – bottom nav + title bar
   (phones only: up to 767px)
========================================= */
@media (max-width: 767px) {

  :root {
    --mobile-nav-height: 72px;      /* footer bar */
    --mobile-title-height: 40px;    /* title strip */
  }
  .about-container {
    gap: 5rem; /* a little more breathing room between the two cards */
  }
  /* Make sure content never hides behind fixed footer */
  section,
  .about-container,
  .work-container,
  .contact-container {
    padding-bottom: calc(
      var(--mobile-nav-height) + var(--mobile-title-height) + 12px
    );
  }
/* stop transforms breaking fixed positioning on mobile */
  .section,
  .sec1,
  .sec2,
  .sec3,
  .sec5 {
    transform: none !important;
  }
  /* Bottom nav bar – fixed to very bottom */
  .controls {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--mobile-nav-height);
    padding: 0 0.75rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 0.65rem;
    background-color: var(--color-secondary-4);  /* solid, matches title */
    box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    z-index: 9999;
  }

  .control {
    flex-direction: column;
    align-items: center;
  }

  .controls i {
    font-size: 1.3rem;
  }

  .control-text {
    position: static;     /* no absolute positioning on mobile */
    top: auto;
    margin-top: 0.1rem;
    clip-path: none;
    opacity: 0.9;
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  .controls .control-text {
      margin-top: 0.35rem;   /* was 0.1rem */
  }

  /* Keep row perfectly flat on mobile */
  .controls .active-btn {
    transform: none !important;
  }

  /* Active icon: colour only, no extra lift/scale */
  .controls .active-btn i {
    transform: none !important;
    color: var(--color-secondary);
  }

  /* Page title bar – fixed directly above nav, seamless */
.main-title {
   position: fixed !important;
   left: 0 !important;
   right: 0 !important;
   bottom: var(--mobile-nav-height) !important;
   width: 100%;
    height: var(--mobile-title-height);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: linear-gradient(
      to top,
      rgba(62, 35, 20, 0.98),
      rgba(62, 35, 20, 0.86)
    );
    box-shadow: 0 -8px 18px rgba(0, 0, 0, 0.75);
    z-index: 9998;

    /* kill the desktop animation so it doesn’t drag the bar */
    animation: none;
    transform: none;
  }

  .main-title h2 {
    font-size: 0.9rem;
    margin: 0;
  }

  .speech-bubble {
    padding: 2.1rem 1.7rem 2.4rem;
    min-height: auto;
  }

  .tools-header {
    align-items: center;
    margin-bottom: 1.6rem;
  }

  .tools-heading {
    font-size: 1rem;
    text-align: center;
  }

  .tool-list.tools-stacks {
    gap: 1.8rem;
  }

  .tool-stack {
    flex-direction: column;
    align-items: center;
  }

  .tool-stack-header {
    width: auto;
    text-align: center;
  }

  .tool-stack-items {
    justify-content: center;
    gap: 0.75rem;
  }

  .tool .tool-icon img {
    width: 50px;
  }

  .tool-name {
    font-size: 0.7rem;
  }
}
