*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header Section */
header {
  width: 100%;
  background: #3a3a3a;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  top: 0;
  z-index: 1000;
  position: sticky;
}

main {
  flex: 1;
}

/* Nav */
nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

nav a {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1px;
  transition: color 0.2s ease;
}

nav a:hover {
  color: #fff;
}

/* Header */
header {
  background-color: #3d3d3d;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-LRG img {
  height: 30px;
  width: auto;
}

.logo-SML img {
  height: 20px;
  width: auto;
}

nav {
  display: flex;
  gap: 24px;
}

nav a {
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
  text-decoration: none;
}

nav a:hover {
  color: #00aeef;
  text-decoration: none;
}

/* Headshot Section */
/* Rounded photo */
.profile-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Website Section */

.profile-photo {
  width: clamp(100px, 20vw, 200px);
  height: clamp(100px, 20vw, 200px);
}

.intro-heading {
  font-size: clamp(22px, 4vw, 36px);
  line-height: 1.3;
  max-width: 90%;
  margin-top: 60px;
}

.intro-body {
  font-size: clamp(16px, 2.5vw, 23px);
  line-height: 1.5;
  max-width: 80%;
  margin-top: 40px;
}

.website-section {
  width: 100%;
  margin: 0 auto;
  padding: 60px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.section-header h1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-group {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: #00aeef;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 50px;
  border: 0;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: #333;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 50px;
  border: 0;
}

.btn-primary:active,
.btn-secondary:active {
  text-decoration: none;
}

.btn-primary:hover,
.btn-secondary:hover {
  opacity: 0.85;
  text-decoration: none;
}

.section-subtitle {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 24px;
}

/* Technical Skills Section */

.skills-section {
  width: 100%;
  height: 100%;
  padding: 20px 0;
  font-family: Arial, sans-serif;
  box-sizing: border-box;
}

.skills-table {
  width: 100%;
  border-collapse: collapse;
}

.skills-table td {
  padding: 10px 8px;
  font-size: 16px;
  color: #333;
  vertical-align: top;
}

.skills-table td:first-child {
  font-weight: bold;
  white-space: nowrap;
  width: 250px;
  color: #111;
}

/* Logos Section */

.companies-section {
  background-color: #f5f5f5;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  padding: 80px 60px;
  box-sizing: border-box;
}

.companies-section > .container > p {
  font-size: 15px;
  color: #333;
  margin-bottom: 28px;
}

.companies-section h3 {
  margin-bottom: 60px;
  font-size: clamp(20px, 3vw, 28px);
}

/* ── Logo Grid ── */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px 80px;
  align-items: center;
  width: 100%;
  margin-top: 40px;
}

/* ── Logo Item ── */
.logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.logo img {
  max-height: 100px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

/* Experience Section */
.experience-entry {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 16px;
}

.experience-entry span {
  flex: 1;
}

.experience-entry .date {
  text-align: right;
  white-space: nowrap;
  flex: 0 0 auto;
}

/* ── Section Heading ── */
.experience-section h3 {
  margin-top: 50px;
  margin-bottom: 30px;
  font-size: clamp(20px, 3vw, 28px);
}

/* ── Last Entry Spacing ── */
.experience-entry--last {
  margin-bottom: 60px;
}

/* ── Core Skills Section (Full-bleed) ── */
.coreskills-section {
  background-color: #f5f5f5;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  padding: 60px 60px;
  box-sizing: border-box;
}

.coreskills-section h3 {
  font-size: clamp(20px, 3vw, 28px);
  color: #222;
  margin-bottom: 24px;
}

/* ── Accordion Item ── */
.accordion-item {
  border-bottom: 1px solid #c0c0c0;
}

/* ── Accordion Header ── */
.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  cursor: pointer;
  background-color: transparent;
  border: none;
  width: 100%;
  text-align: left;
  outline: none;
  gap: 12px;
}

.accordion-header:focus,
.accordion-header:active,
.accordion-header:focus-visible {
  outline: none;
  box-shadow: none;
}

/* ── Accordion Header Label ── */
.accordion-label {
  margin-top: 20px;
  margin-left: 5px;
  font-size: clamp(15px, 2vw, 18px);
  color: #333;
}

/* ── Accordion Toggle ── */
.accordion-toggle {
  font-size: 22px;
  color: #555;
  line-height: 1;
  transition: transform 0.3s ease;
  user-select: none;
  flex-shrink: 0;
}

.accordion-header.active .accordion-toggle {
  transform: rotate(45deg);
}

/* ── Accordion Body ── */
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.35s ease,
    padding 0.35s ease;
  padding: 0 4px;
  margin-top: 20px;
}

.accordion-body.open {
  max-height: 600px;
  padding: 0 4px 16px;
}

.accordion-body p {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  margin-left: 30px;
  margin-bottom: 6px;
}

/* ── Bold label inside body ── */
.skill-label {
  font-weight: bold;
}

.skill-desc {
  font-weight: normal;
}

/* Core Belief Section */
.core-belief-section {
  width: 100%;
}

.core-belief-section h3 {
  margin-top: 80px;
  margin-bottom: 80px;
  font-size: clamp(18px, 2.5vw, 24px);
}

.core-belief-quote {
  font-size: clamp(22px, 4vw, 42px);
  margin-top: 40px;
  margin-bottom: 80px;
  line-height: 1.35;
  max-width: 900px;
}

.core-belief-quote .highlight {
  font-weight: bold;
  color: #00aeef;
}

/* Achievement Section */
.achieve-section {
  background-color: #f5f5f5;
  width: 100vw;
  padding-top: 50px;
  padding-bottom: 40px;
}

/* Education Section */
.education-section h3 {
  margin-top: 50px;
  margin-bottom: 30px;
  font-size: clamp(20px, 3vw, 28px);
}

.education-section .experience-entry {
  margin-bottom: 60px;
}

/* Work Website Section */
.website-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 40px 0;
}

/* ── Section Header (Work title + buttons) ── */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-header h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
}

/* ── Websites Sub-section ── */
.workwebsite-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.worksection-subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  font-weight: 600;
}

/* ── Cards Grid ── */
.workcards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ── Individual Card ── */
.workcard {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border: none;
  outline: none;
}

.workcard-image-link {
  display: block;
  width: 100%;
  outline: none;
  text-decoration: none;
}

.workcard-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background-color: #d0d0d0;
  display: block;
  border: none;
  outline: none;
  transition: opacity 0.2s ease;
}

.workcard-image-link:hover .workcard-image {
  opacity: 0.85;
}

.workcard-title {
  font-size: 1rem;
  font-weight: 700;
}

.workcard-description {
  font-size: 0.875rem;
  color: #555;
  line-height: 1.5;
}

/* ── Button Group ── */
.btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Wireframes Section */

.wireframe-section {
  background-color: #f5f5f5;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  padding: 80px 60px;
  box-sizing: border-box;
}

/* ── Wireframe Sub-section ── */
.workwireframe-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.wireframesection-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.wireframesection-subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  font-weight: 600;
}

/* ── Cards Grid ── */
.wireframecards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ── Individual Card ── */
.wireframecard {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border: none;
  outline: none;
}

.wireframecard-image-link {
  display: block;
  width: 100%;
  outline: none;
  text-decoration: none;
}

.wireframecard-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background-color: #d0d0d0;
  display: block;
  border: none;
  outline: none;
  transition: opacity 0.2s ease;
}

.wireframecard-image-link:hover .wireframecard-image {
  opacity: 0.85;
}

.wireframecard-title {
  font-size: 1rem;
  font-weight: 700;
}

.wireframecard-description {
  font-size: 0.875rem;
  color: #555;
  line-height: 1.5;
}

/* ── View Wireframe Link ── */
.wireframecard-description a {
  text-decoration: none;
  color: #555;
  transition: color 0.2s ease;
}

.wireframecard-description a:hover {
  color: #00aeef;
}

/* ── Carousel ── */
.carousel-wrapper {
  width: 100%;
  padding: 30px 0;
}

.carousel-wrapper h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #111;
}

.carousel-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.carousel-arrow {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #555;
  padding: 10px;
  flex-shrink: 0;
  outline: none;
}

.carousel-arrow:focus {
  outline: none;
}
.carousel-arrow:hover {
  color: #000;
}

.carousel-track-wrapper {
  overflow: hidden;
  flex: 1;
}

.carousel-track {
  display: flex;
  gap: 16px;
  transition: transform 0.4s ease;
}

.carousel-slide {
  min-width: calc((100% - 32px) / 3);
  background: #1a1a1a;
  height: 276px;
  border-radius: 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 40px 0;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1a1a1a;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.3s;
}

.dot.active {
  opacity: 1;
}

/* Print Section */

.print-section {
  background-color: #f5f5f5;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  padding: 80px 60px;
  box-sizing: border-box;
}

/* ── Print Sub-section ── */
.workprint-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.print-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.printsection-subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  font-weight: 600;
}

/* ── Single unified grid ── */
.printcards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ── Individual Card ── */
.printcard {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border: none;
  outline: none;
}

.printcard-image-link {
  display: block;
  width: 100%;
  outline: none;
  text-decoration: none;
  cursor: pointer;
}

.printcard-image {
  width: 100%;
  height: 140px;
  background-color: #d0d0d0;
  display: block;
  border: none;
  outline: none;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.printcard-image-link:hover .printcard-image {
  opacity: 0.8;
}

.printcard-title {
  font-size: 1rem;
  font-weight: 700;
}

.printcard-description {
  font-size: 0.875rem;
  color: #555;
  line-height: 1.5;
}

/* ── Lightbox Modal ── */
#lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

#lightbox-overlay.active {
  display: flex;
}

#lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  user-select: none;
}

#lightbox-close {
  position: fixed;
  top: 20px;
  right: 28px;
  font-size: 36px;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}

#lightbox-close:hover {
  opacity: 1;
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
  opacity: 0.6;
  transition: opacity 0.2s;
  padding: 10px 18px;
  user-select: none;
}

.lightbox-nav:hover {
  opacity: 1;
}

#lightbox-prev {
  left: 16px;
}
#lightbox-next {
  right: 16px;
}

#lightbox-counter {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-family: sans-serif;
  letter-spacing: 0.05em;
}

/* Work Motion Graphics Section */

.workmotion-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 40px 0;
}

.workmotion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.workmotion-subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  font-weight: 600;
}

/* ── Cards Grid ── */
.motioncards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ── Individual Card ── */
.motioncard {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border: none;
  outline: none;
}

.motioncard-image-link {
  display: block;
  width: 100%;
  outline: none;
  text-decoration: none;
}

.motioncard-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background-color: #d0d0d0;
  display: block;
  border: none;
  outline: none;
  transition: opacity 0.2s ease;
}

.motioncard-image-link:hover .motioncard-image {
  opacity: 0.85;
}

.motioncard-title {
  font-size: 1rem;
  font-weight: 700;
}

.motioncard-description {
  font-size: 0.875rem;
  color: #555;
  line-height: 1.5;
}

/* Areas of Expertise Section */

.areas-section {
  background-color: #f5f5f5;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  padding: 80px 60px;
  box-sizing: border-box;
}

.areas-section > .container > p {
  font-size: 16px;
  color: #333;
  margin-bottom: 20px;
}

/* ── Wrapper ── */
.expertise-wrapper {
  width: 100%;
  max-width: 1100px;
}

.expertise-wrapper h3 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 500;
  color: #111;
  margin-bottom: 60px;
}

/* ── Grid ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── Card Base ── */
.card {
  border-radius: 8px;
  height: 260px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.card--blue {
  background: linear-gradient(0deg, #ffffff 0%, #d6f0fc 100%);
}
.card--yellow {
  background: linear-gradient(0deg, #ffffff 0%, #fbfbe3 100%);
}
.card--pink {
  background: linear-gradient(0deg, #ffffff 0%, #fde8ee 100%);
}

/* ── Card Faces ── */
.card-front,
.card-back {
  position: absolute;
  inset: 0;
  padding: 28px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-front {
  transform: translateY(0);
  opacity: 1;
}

.card-back {
  transform: translateY(100%);
  opacity: 0;
  align-items: flex-start;
  justify-content: flex-start;
}

.card.active .card-front {
  transform: translateY(-100%);
  opacity: 0;
}

.card.active .card-back {
  transform: translateY(0);
  opacity: 1;
}

/* ── Card Content ── */
.card-icon {
  width: 140px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 16px;
}

.card-label {
  font-size: 24px;
  font-weight: 400;
  color: #222;
  text-align: center;
}

.card-back .card-label {
  font-size: 20px;
  font-weight: normal;
  color: #222;
  text-align: center;
  width: 100%;
  margin-bottom: 12px;
}

.card-back .card-desc {
  font-size: 16px;
  color: #333;
  line-height: 1.6;
  text-align: left;
}

/* ── Arrow Button ── */
.card-arrow {
  position: absolute;
  bottom: 14px;
  right: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  outline: none;
  line-height: 1;
  transition: transform 0.4s ease;
  -webkit-tap-highlight-color: transparent;
}

.card-arrow:focus,
.card-arrow:focus-visible,
.card-arrow:active {
  outline: none;
  box-shadow: none;
}

.card-arrow svg {
  display: block;
}

.card.active .card-arrow {
  transform: rotate(180deg);
}
.card--blue .card-arrow svg {
  stroke: #4a90d9;
}
.card--yellow .card-arrow svg {
  stroke: #c8960a;
}
.card--pink .card-arrow svg {
  stroke: #c0506a;
}

/* Testimonial Section */

.testimonials {
  padding: 60px 40px;
  background-color: #f5f5f5;
  font-family: Arial, sans-serif;
}

.testimonials h3 {
  margin-bottom: 30px;
  color: #222;
  font-size: clamp(20px, 3vw, 28px);
}

.testimonials__subtitle {
  font-size: clamp(14px, 1.8vw, 16px);
  color: #555;
  margin-bottom: 60px;
}

/* ── Grid ── */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── Card ── */
.testimonial-card {
  background-color: #ffffff;
  border-radius: 6px;
  padding: 30px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.testimonial-card__quote {
  width: 56px;
  height: auto;
  margin: 0 auto 12px auto;
  display: block;
}

.testimonial-card__text {
  font-size: 16px;
  color: #444;
  line-height: 1.5;
  flex-grow: 1;
  margin-top: 20px;
  margin-bottom: 35px;
}

.testimonial-card__name {
  font-size: 14px;
  font-weight: bold;
  line-height: 1.2;
  color: #00aaff;
  margin: 0;
}

.testimonial-card__title,
.testimonial-card__company {
  font-size: 14px;
  line-height: 1.2;
  color: #666;
  margin: 2px 0 0 0;
}

/* Contact Section */

/* ── Contact + Footer wrapper ── */
.site-bottom {
  margin-top: auto;
}

/* ── Contact Bar ── */
.contact-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0;
  padding: 30px 40px;
  width: 100%;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* ── Contact Item ── */
.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  padding: 10px 0;
}

.contact-item:not(:last-child) {
  border-right: 1px solid #cccccc;
}

.contact-item__icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.contact-item__label {
  font-size: clamp(16px, 2.5vw, 26px);
  line-height: 1.2;
  color: #444;
  margin-top: 20px;
}

.contact-item__link {
  font-size: clamp(13px, 1.8vw, 19px);
  font-weight: bold;
  color: #00aaff;
  text-decoration: none;
  word-break: break-word;
  text-align: center;
}

.contact-item__link:hover {
  text-decoration: none;
}

/* ── Footer ── */
footer {
  width: 100%;
  background: #3a3a3a;
  padding: 10px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  box-sizing: border-box;
}

/* Footer Section */

footer {
  width: 100%;
  background: #3a3a3a;
  padding: 10px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  flex-wrap: wrap;
  gap: 16px;
}

/* ── Left: Logo + Nav ── */
.footer-left {
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

/* ── Logo ── */
.logo {
  text-transform: uppercase;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-text {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: 34px;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.logo-highlight {
  color: #00bcd4;
}
.logo-plain {
  color: #888;
}

.logo-SML img {
  height: 20px;
  width: auto;
  display: block;
}

/* ── Footer Nav ── */
.footer-nav {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #ccc;
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: #00aeef;
}

/* ── Social Icons ── */
.social-icons {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  outline: none;
  background: none;
  color: #ccc;
  text-decoration: none;
  transition: color 0.2s ease;
}

.social-icons a:hover {
  color: #00aeef;
}

.social-icons svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.icon-email svg {
  transform: rotate(-45deg);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 16px;
    padding: 16px 20px;
  }

  nav {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .intro-heading,
  .intro-body {
    max-width: 100%;
  }

  .core-belief-section h3 {
    margin-top: 60px;
    margin-bottom: 60px;
  }

  .core-belief-quote {
    margin-top: 28px;
    margin-bottom: 60px;
  }

  .contact-bar {
    padding: 24px 24px;
    gap: 0;
  }

  .contact-item__icon {
    width: 72px;
    height: 72px;
  }

  .contact-item__label {
    margin-top: 12px;
  }

  footer {
    padding: 10px 24px;
  }

  .print-section {
    padding: 60px 32px;
  }

  .printcards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .printcard-image {
    height: 130px;
  }

  /* Lightbox nav repositioned for smaller screens */
  .lightbox-nav {
    font-size: 36px;
    padding: 8px 12px;
  }

  .coreskills-section {
    padding: 48px 32px;
  }

  .motioncards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .motioncard-image {
    height: 160px;
  }

  .experience-entry {
    gap: 12px;
  }

  .experience-entry span {
    font-size: 15px;
  }

  .coreskills-section {
    padding: 48px 32px;
  }

  .accordion-body p {
    font-size: 15px;
    margin-left: 16px;
  }

  .workcards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .workcard-image {
    height: 160px;
  }

  .companies-section {
    padding: 60px 32px;
  }

  .companies-section h3 {
    margin-bottom: 40px;
  }

  .logo-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 48px;
  }

  .logo {
    justify-content: center;
  }

  .logo img {
    max-height: 80px;
  }

  footer {
    padding: 16px 24px;
    gap: 12px;
  }

  .footer-left {
    gap: 32px;
  }

  .footer-nav {
    gap: 24px;
  }
  .areas-section {
    padding: 60px 32px;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-icon {
    width: 110px;
    height: 95px;
  }

  .card-label {
    font-size: 20px;
  }

  .card-back .card-label {
    font-size: 18px;
  }

  .card-back .card-desc {
    font-size: 14px;
  }

  .testimonials {
    padding: 50px 28px;
  }

  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials__subtitle {
    margin-bottom: 40px;
  }

  .education-section h3 {
    margin-top: 40px;
    margin-bottom: 24px;
  }

  .education-section .experience-entry {
    margin-bottom: 48px;
  }
  .companies-section {
    padding: 30px 40px;
  }

  .logo-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 40px;
  }

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

  .site-footer {
    padding: 24px 20px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .footer-left {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
  }

  .footer-icons {
    justify-content: center;
  }
  .testimonials__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  nav a {
    font-size: 13px;
    letter-spacing: 1px;
  }

  .btn-group {
    flex-direction: column;
    align-items: center;
  }

  .core-belief-section h3 {
    margin-top: 40px;
    margin-bottom: 40px;
  }

  .core-belief-quote {
    margin-top: 20px;
    margin-bottom: 40px;
  }

  .wireframe-section {
    padding: 60px 32px;
  }

  .wireframecards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .wireframecard-image {
    height: 160px;
  }

  /* Carousel: show 2 slides */
  .carousel-slide {
    min-width: calc((100% - 16px) / 2);
    height: 220px;
  }

  .wireframe-section {
    padding: 40px 20px;
  }

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

  .wireframecard-image {
    height: 200px;
  }

  .wireframecard-title {
    font-size: 0.95rem;
  }

  /* Carousel: show 1 slide */
  .carousel-slide {
    min-width: 100%;
    height: 200px;
  }

  .carousel-arrow {
    padding: 6px;
    font-size: 18px;
  }

  .carousel-dots {
    margin: 24px 0;
  }

  .workmotion-section {
    padding: 24px 0;
  }

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

  .motioncard-image {
    height: 200px;
  }

  .motioncard-title {
    font-size: 0.95rem;
  }

  .website-section {
    padding: 24px 0;
    gap: 1.5rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-group {
    width: 100%;
  }

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

  .workcard-image {
    height: 200px;
  }

  .workcard-title {
    font-size: 0.95rem;
  }

  .contact-bar {
    flex-direction: column;
    padding: 32px 20px;
    gap: 0;
  }

  /* Replace vertical dividers with horizontal ones on mobile */
  .contact-item:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid #cccccc;
    padding-bottom: 24px;
    margin-bottom: 8px;
  }

  .contact-item {
    width: 100%;
    padding: 16px 0;
  }

  .contact-item__icon {
    width: 60px;
    height: 60px;
  }

  .contact-item__label {
    margin-top: 8px;
  }

  footer {
    flex-direction: column;
    align-items: center;
    padding: 16px 20px;
    text-align: center;
  }

  .print-section {
    padding: 40px 20px;
  }

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

  .printcard-image {
    height: 200px;
  }

  /* Lightbox adjustments for mobile */
  #lightbox-img {
    max-width: 95vw;
    max-height: 75vh;
  }

  #lightbox-close {
    top: 12px;
    right: 16px;
    font-size: 28px;
  }

  .lightbox-nav {
    font-size: 28px;
    padding: 6px 8px;
  }

  #lightbox-prev {
    left: 4px;
  }
  #lightbox-next {
    right: 4px;
  }

  #lightbox-counter {
    font-size: 12px;
    bottom: 14px;
  }

  .coreskills-section {
    padding: 36px 20px;
  }

  .experience-section h3 {
    margin-top: 36px;
    margin-bottom: 20px;
  }

  /* Stack each entry vertically on mobile */
  .experience-entry {
    flex-direction: column;
    gap: 2px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
  }

  .experience-entry span {
    font-size: 14px;
    flex: unset;
  }

  /* Role — bold on mobile for hierarchy */
  .experience-entry span:first-child {
    font-weight: bold;
    font-size: 15px;
    color: #222;
  }

  .experience-entry .date {
    text-align: left;
    color: #888;
    font-size: 13px;
  }

  .experience-entry--last {
    margin-bottom: 40px;
  }

  .accordion-body p {
    margin-left: 0;
    font-size: 15px;
  }

  .education-section h3 {
    margin-top: 32px;
    margin-bottom: 20px;
  }

  .education-section .experience-entry {
    flex-direction: column;
    gap: 2px;
    margin-bottom: 36px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
  }

  .education-section .experience-entry span {
    font-size: 14px;
    flex: unset;
  }

  .education-section .experience-entry span:first-child {
    font-weight: bold;
    font-size: 15px;
    color: #222;
  }

  .education-section .experience-entry .date {
    text-align: left;
    color: #888;
    font-size: 13px;
  }

  .companies-section {
    padding: 40px 20px;
  }

  .companies-section h3 {
    margin-bottom: 28px;
  }

  .logo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 24px;
    margin-top: 24px;
  }

  .logo img {
    max-height: 60px;
  }
  .testimonials {
    padding: 40px 20px;
  }

  .testimonials h3 {
    margin-bottom: 16px;
  }

  .testimonials__subtitle {
    margin-bottom: 28px;
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .testimonial-card {
    padding: 24px 20px;
  }

  .testimonial-card__text {
    font-size: 15px;
    margin-bottom: 24px;
  }

  footer {
    flex-direction: column;
    align-items: center;
    padding: 20px 16px;
    gap: 16px;
    text-align: center;
  }

  .footer-left {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .footer-nav {
    gap: 20px;
    justify-content: center;
  }

  .social-icons {
    justify-content: center;
  }
  .areas-section {
    padding: 40px 20px;
  }

  .expertise-wrapper h3 {
    margin-bottom: 32px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .card {
    height: auto;
    min-height: 220px;
  }

  .card-front,
  .card-back {
    position: relative;
    padding: 24px 20px 48px;
  }

  .card-back {
    display: none;
  }

  .card.active .card-front {
    display: none;
    transform: none;
    opacity: 1;
  }

  .card.active .card-back {
    display: flex;
    transform: none;
    opacity: 1;
  }

  .card-icon {
    width: 90px;
    height: 78px;
  }

  .card-label {
    font-size: 18px;
  }

  .card-back .card-label {
    font-size: 16px;
  }

  .card-back .card-desc {
    font-size: 14px;
  }

  .skills-table td:first-child {
    width: auto;
    white-space: normal;
  }

  .skills-table tr {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
  }

  .skills-table td {
    padding: 4px 8px;
  }

  .skills-section {
    padding: 30px 20px;
  }

  .companies-section {
    padding: 24px 20px;
  }

  .logo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 20px;
  }

  .companies-section {
    padding: 30px 20px;
  }
}
