ADLEI DIGITAL MARKETING AGENCY — OFFICIAL BRAND PORTFOLIO STYLESHEET
   Accurately matches https://www.adlei.in/ design system, tokens & typography
   ========================================================================== */

/* ---------- 1. DESIGN TOKENS & VARIABLES (EXACT MATCH TO ADLEI.IN) ---------- */
:root {
  --brand:          #083731; /* Adlei Primary Deep Forest Teal */
  --brand-mid:      #0a4a40; /* Mid Teal for Accents & Hover States */
  --brand-light:    #0d5c4f; /* Lighter Accent Teal */
  --brand-accent:   #083731;
  --cream:          #FFFEFD; /* Warm Off-White / Cream Base */
  --beige:          #F5F4F0; /* Soft Warm Beige for Panels / Cards */
  --beige2:         #EEEDE9; /* Secondary Beige for Hover / Dividers */
  --warm-white:     #FFFEFD;
  --dark:           #010101; /* Rich Black */
  --dark2:          #050505; /* Deep Contrast Footer Background */
  --text-primary:   #010101; /* Primary Body & Headline Text */
  --text-secondary: #3a3a3a; /* Secondary Paragraph Text */
  --text-muted:     #7a7a7a; /* Muted Meta Text */
  --border:         rgba(8, 55, 49, 0.12); /* Subtle Brand Border */
  --border-light:   rgba(8, 55, 49, 0.06); /* Hairline Border */
  
  --radius-sm:      10px;
  --radius:         16px;
  --radius-lg:      24px;
  --radius-xl:      32px;

  --font-primary:   'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ease-spring:    cubic-bezier(0.19, 1, 0.22, 1);
  --ease-smooth:    cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- 2. RESET & BASE ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body.adlei-portfolio-body {
  font-family: var(--font-primary);
  background-color: var(--warm-white);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: var(--brand);
  color: #FFFFFF;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

/* ---------- 3. FIXED NAVBAR MATCHING ADLEI.IN ---------- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 254, 253, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: all 0.35s ease;
}

#navbar.scrolled {
  background: rgba(255, 254, 253, 0.98);
  height: 64px;
  border-bottom-color: var(--border);
  box-shadow: 0 4px 20px rgba(8, 55, 49, 0.04);
}

.nav-logo a {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 32px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand);
  font-weight: 600;
}

.nav-cta {
  background: var(--brand);
  color: #ffffff !important;
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-cta:hover {
  background: var(--brand-mid);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(8, 55, 49, 0.2);
}

/* ---------- 4. HERO SECTION ----------
   NOTE: .page-hero / .hero-badge / .section-title / .section-sub /
   .btn-primary / .btn-secondary / .about-hero-img and friends are the
   site's shared components, already defined once in style.css and
   loaded on every page via includes/header.php. Portfolio.php reuses
   those classes as-is for its hero, so they are intentionally NOT
   redeclared here anymore — keeping a second copy in sync by hand is
   how this page's hero used to quietly drift from the rest of the
   site. If the hero ever needs a portfolio-only tweak, scope it to
   `.page-hero.adlei-portfolio-hero` rather than re-defining the
   shared class. */

/* ---------- 5. ADLEI PORTFOLIO SECTION ---------- */

.adlei-portfolio-section {
  position: relative;
  padding: 100px 40px;
  background: var(--beige);
  border-top: 1px solid var(--border-light);
}

.portfolio-container {
  max-width: 1240px;
  margin: 0 auto;
}

/* =========================================================
   SELECTED WORKS HEADER — SUFAIL STYLE
   ========================================================= */

.portfolio-header-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  column-gap: 70px;
  align-items: end;
  max-width: none;
  margin: 0 0 40px;
  text-align: left;
}

.portfolio-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;

  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 0;

  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;

  margin-bottom: 14px;
}

.pulse-indicator {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--brand);
}

.portfolio-main-title {
  grid-column: 1;
  margin: 0;

  font-family: var(--font-primary);
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;

  color: var(--text-primary) !important;
}

/* Subtitle moves to the right like Sufail page */
.portfolio-main-subtitle {
  grid-column: 2;
  grid-row: 1 / span 2;

  align-self: end;

  max-width: 380px;
  margin: 0;

  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;

  color: var(--text-secondary) !important;
}

.highlight-emerald {
  color: var(--text-secondary) !important;
  font-weight: 400;
}

/* ---------- 6. CATEGORY FILTERS — SUFAIL STYLE ---------- */

.filter-navbar-wrap {
  margin: 0 0 40px;
  display: block;
}

.filter-navbar {
  display: flex;
  align-items: center;
  gap: 10px;

  background: transparent;
  padding: 0;

  border: 0;
  box-shadow: none;

  flex-wrap: wrap;
  justify-content: flex-start;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 9px 18px;

  border-radius: 100px;
  border: 1.5px solid var(--border);

  background: var(--cream);

  color: var(--text-secondary);

  font-family: var(--font-primary);
  font-size: 13.5px;
  font-weight: 600;

  line-height: 1;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;

  user-select: none;
}

.filter-btn:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--cream);
}

.filter-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--cream);
  font-weight: 600;
  box-shadow: none;
}

.filter-btn .count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  min-width: auto;
  height: auto;

  border-radius: 0;

  background: transparent;
  color: inherit;

  font-size: 11px;
  font-weight: 700;
}

.filter-btn.active .count-badge {
  background: transparent;
  color: inherit;
}

.filter-status-row {
  display: none;
}

.filter-status-row strong {
  color: inherit;
  font-weight: 600;
}

/* =========================================================
   7. SELECTED WORKS GRID — SUFAIL STYLE
   ========================================================= */

#adlei-portfolio {
  --portfolio-gap: 24px;
}

.portfolio-grid-3col {
  width: 100%;

  display: grid;
  grid-template-columns: repeat(3, 1fr);

  gap: 24px;

  padding: 0 0 70px;
}

/* =========================================================
   PORTFOLIO CARD
   ========================================================= */

.portfolio-card-item {
  position: relative;

  width: 100% !important;
  height: auto !important;

  aspect-ratio: 4 / 3 !important;

  min-width: 0;
  margin: 0 !important;
  padding: 0;

  overflow: hidden;

  display: block;

  background: var(--brand);

  border: 0;
  border-radius: 18px;

  box-shadow: none;

  opacity: 1;

  transform: translateY(0);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;

  will-change: transform;
}

.portfolio-card-item:hover {
  transform: translateY(-4px);

  box-shadow:
    0 14px 30px rgba(8, 55, 49, 0.12);
}

/* =========================================================
   IMAGE
   ========================================================= */

.card-thumb-wrap {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  overflow: hidden;

  background: var(--brand);

  border-radius: 18px;
}

.card-thumb-img {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: top center;

  border-radius: 0;

  transform: none;

  transition: none;
}

/* =========================================================
   SUFAIL DEEP TEAL OVERLAY
   ========================================================= */

.card-thumb-wrap::after {
  content: "";

  position: absolute;

  inset: 0;

  z-index: 2;

  pointer-events: none;

  background: linear-gradient(
    to bottom,
    rgba(8, 55, 49, 0.08) 20%,
    rgba(8, 55, 49, 0.20) 35%,
    rgba(8, 55, 49, 0.50) 55%,
    rgba(8, 55, 49, 0.82) 78%,
    rgba(8, 55, 49, 0.94) 100%
  );
}

/* =========================================================
   CATEGORY PILL — SUFAIL STYLE
   ========================================================= */

.category-pill-tag {
  position: absolute;

  top: 16px;
  right: 16px;

  z-index: 3;

  background: rgba(255, 254, 253, 0.92);

  color: var(--brand);

  font-family: var(--font-primary);

  font-size: 11px;
  font-weight: 700;

  letter-spacing: 0.03em;

  text-transform: capitalize;

  line-height: 1;

  padding: 6px 14px;

  border-radius: 100px;

  backdrop-filter: none;
  -webkit-backdrop-filter: none;

  opacity: 1;

  transform: none;

  transition: none;
}

/* DO NOT HIDE CATEGORY PILL ON HOVER */
.portfolio-card-item:hover .category-pill-tag {
  opacity: 1;
  transform: none;
}

/* =========================================================
   PROJECT INFORMATION — SUFAIL STYLE
   ========================================================= */

.card-details-wrap {
  position: absolute;

  left: 0;
  right: 0;
  bottom: 0;

  z-index: 4;

  padding: 26px 24px 22px;

  color: var(--cream);

  background: transparent;

  pointer-events: none;

  opacity: 1;

  visibility: visible;

  transform: none;
}

/* Small category / project type */
.card-sub-category {
  display: block;

  margin-bottom: 7px;

  color: rgba(255, 254, 253, 0.95);

  font-family: var(--font-primary);

  font-size: 11px;
  font-weight: 700;

  letter-spacing: 0.06em;

  line-height: 1.3;

  text-transform: capitalize !important;
}

/* Project title */
.card-title {
  margin: 0 0 14px;

  color: var(--cream);

  font-family: var(--font-primary);

  font-size: 21px;

  font-weight: 700;

  line-height: 1.15;

  letter-spacing: -0.01em;

  text-transform: capitalize !important;
}

/* =========================================================
   DESCRIPTION
   ========================================================= */

/*
   Sufail cards do not display the project description.
   Hide it so the card composition matches the reference.
*/

.card-summary {
  display: none !important;
}

/* =========================================================
   VIEW PROJECT BUTTON
   ========================================================= */

.card-action-row {
  position: relative;

  z-index: 5;

  margin-top: 0;

  pointer-events: auto;
}

.view-site-pill {
  display: inline-flex;

  align-items: center;
  gap: 6px;

  padding: 10px 18px;

  border: 0;

  border-radius: 100px;

  background: var(--cream);

  color: var(--brand);

  font-family: var(--font-primary);

  font-size: 13px;
  font-weight: 700;

  line-height: 1;

  text-decoration: none;

  opacity: 1;
  visibility: visible;
  transform: none;

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.view-site-pill:hover {
  background: var(--cream);

  color: var(--brand);

  transform: translateY(-2px);
}

.view-site-pill .arrow-icon {
  font-size: 14px;
}

/* =========================================================
   KEEP CONTENT ALWAYS VISIBLE
   ========================================================= */

.portfolio-card-item:hover .card-details-wrap,
.portfolio-card-item:hover .card-action-row,
.portfolio-card-item:hover .view-site-pill {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* Keep image stable */
.portfolio-card-item:hover .card-thumb-img {
  transform: none;
}

/* =========================================================
   MOBILE / TOUCH
   ========================================================= */

@media (hover: none), (pointer: coarse) {

  .portfolio-card-item:hover {
    transform: none;

    box-shadow: none;
  }

  .card-details-wrap {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  .portfolio-card-item,
  .card-thumb-img,
  .card-details-wrap,
  .category-pill-tag,
  .view-site-pill {
    transition: none !important;
  }

  .portfolio-card-item,
  .portfolio-card-item:hover {
    transform: none !important;
  }
}

/* ---------- 8. SECTION BOTTOM CTA (ADLEI BRAND BOX) ---------- */
.section-bottom-cta {
  margin-top: 64px;
}

.cta-mini-card {
  background: var(--brand);
  border-radius: var(--radius-xl);
  padding: 44px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: #FFFFFF;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}

.cta-mini-left h4 {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
  color: #FFFFFF;
}

.cta-mini-left p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.btn-primary-adlei {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  background: #FFFFFF;
  color: var(--brand) !important;
  font-size: 14.5px;
  font-weight: 600;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-primary-adlei:hover {
  background: var(--beige);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ---------- 9. CASE STUDY MODAL DIALOG ---------- */
.case-study-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
}

.case-study-modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 1, 1, 0.65);
  backdrop-filter: blur(10px);
}

.modal-dialog-card {
  position: relative;
  width: 100%;
  max-width: 840px;
  max-height: 90vh;
  background: var(--warm-white);
  border-radius: var(--radius-xl);
  overflow-y: auto;
  box-shadow: 0 30px 90px rgba(8, 55, 49, 0.3);
  border: 1px solid var(--border);
  transform: scale(0.94) translateY(16px);
  transition: transform 0.4s var(--ease-spring);
  z-index: 2;
  color: var(--text-primary);
}

.case-study-modal.open .modal-dialog-card {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--warm-white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-size: 16px;
  font-weight: 700;
  z-index: 10;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modal-close-btn:hover {
  background: var(--brand);
  color: #FFFFFF;
  transform: rotate(90deg);
}

.modal-banner-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.modal-inner-content {
  padding: 36px 40px;
}

.modal-category-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 100px;
  background: rgba(8, 55, 49, 0.08);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.modal-project-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  line-height: 1.2;
}

.modal-stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  padding: 18px 20px;
  background: var(--beige);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 28px;
}

.modal-stat-box .ms-val {
  font-size: 26px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.03em;
}

.modal-stat-box .ms-lbl {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
}

.modal-body-section {
  margin-bottom: 22px;
}

.modal-body-section h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.modal-body-section p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.modal-actions-row {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

/* ---------- 10. OFFICIAL ADLEI.IN FOOTER ---------- */
footer {
  background: var(--dark2);
  padding: 80px 40px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto 60px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 60px;
}

.footer-brand img {
  height: 32px;
  filter: brightness(0) invert(1) opacity(0.85);
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.7;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.social-btn {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.25s ease;
}

.social-btn:hover {
  background: var(--brand);
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-col h5 {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #FFFFFF;
}

/* ---------- 11. FLOATING ACTION BUTTONS (WHATSAPP & CALL) ---------- */
.floating-stack {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 990;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
}

.floating-btn--whatsapp {
  background: #25D366;
}

.floating-btn--call {
  background: var(--brand);
}

.floating-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.floating-btn svg {
  width: 24px;
  height: 24px;
  fill: #FFFFFF;
}

/* ---------- HERO — matches the About page hero ----------
   Measured from the live About page at a 1500px container:
   image 713 x 600 (aspect 713/600), 40px radius, soft shadow;
   badge inset 30px from the image's left and bottom edges.
   Scoped to .adlei-portfolio-page so the shared .page-hero used by
   other pages is not affected. */
.adlei-portfolio-page .page-hero {
  padding: 150px 40px 100px;
}

.adlei-portfolio-page .page-hero .section-title {
  text-wrap: balance;
}

.adlei-portfolio-page .page-hero .section-sub {
  text-wrap: pretty;
}

.adlei-portfolio-page .about-hero-img {
  position: relative;
  width: 100%;
  aspect-ratio: 713 / 600;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: var(--shadow-lg, 0 24px 56px rgba(8, 55, 49, 0.13));
}

.adlei-portfolio-page .about-hero-img > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.adlei-portfolio-page .about-hero-float {
  position: absolute !important;
  bottom: 30px !important;
  left: 30px !important;
  z-index: 10 !important;
  max-width: calc(100% - 60px);
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 23px 28px;
  background: rgba(255, 254, 253, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(8, 55, 49, 0.12);
}

.adlei-portfolio-page .about-hero-float-icon {
  flex: 0 0 55px;
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--brand);
  color: var(--cream);
}

.adlei-portfolio-page .about-hero-float-icon svg {
  width: 26px;
  height: 26px;
}

.adlei-portfolio-page .about-hero-float h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

.adlei-portfolio-page .about-hero-float p {
  margin: 3px 0 0;
  font-size: 15px;
  line-height: 1.4;
  color: var(--text-muted);
}

/* ---------- 12. RESPONSIVE MEDIA QUERIES ---------- */

/* Large tablets / small laptops: 3 columns stay, header + footer tighten */
@media (max-width: 1080px) {
  .portfolio-header-block {
    grid-template-columns: minmax(0, 1fr) 320px;
    column-gap: 40px;
  }

  .portfolio-main-subtitle {
    max-width: 320px;
  }

  .portfolio-grid-3col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .portfolio-card-item[data-category="website"],
  .portfolio-card-item[data-category="video-branding"],
  .portfolio-card-item[data-category="posters"],
  .portfolio-card-item[data-category="social-media"],
  .portfolio-card-item[data-category="logos"],
  .portfolio-card-item[data-category="brochure"],
  .portfolio-card-item[data-category="seo"],
  .portfolio-card-item[data-category="content-marketing"] {
    grid-column: span 1;
    aspect-ratio: 4 / 3 !important;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

/* Tablets and below: single-column header, 2-column grid */
@media (max-width: 900px) {
  #navbar {
    padding: 0 24px;
  }

  .nav-links {
    display: none;
  }

  .adlei-portfolio-page .page-hero {
    padding: 110px 24px 60px;
  }

  .page-hero-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .adlei-portfolio-section {
    padding: 60px 20px;
  }

  /* Hero image + badge: compact sizes (desktop sizes are defined once,
     near the bottom of this file) */
  .adlei-portfolio-page .about-hero-img {
    border-radius: 28px;
  }

  .adlei-portfolio-page .about-hero-float {
    left: 16px !important;
    right: 16px !important;
    bottom: 16px !important;
    max-width: calc(100% - 32px);
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius);
  }

  .adlei-portfolio-page .about-hero-float-icon {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .adlei-portfolio-page .about-hero-float-icon svg {
    width: 20px;
    height: 20px;
  }

  .adlei-portfolio-page .about-hero-float h4 {
    font-size: 14px;
  }

  .adlei-portfolio-page .about-hero-float p {
    margin-top: 2px;
    font-size: 12px;
  }

  /* Selected-works header: stack instead of the 380px side column */
  .portfolio-header-block {
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
    margin-bottom: 32px;
  }

  .portfolio-main-title {
    grid-column: 1;
  }

  .portfolio-main-subtitle {
    grid-column: 1;
    grid-row: auto;
    max-width: none;
    margin-top: 16px;
  }

  /* Grid: 2 columns, smaller card typography so text always fits */
  .portfolio-grid-3col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  #adlei-portfolio .portfolio-card-item .card-details-wrap {
    padding: 20px 18px 18px !important;
  }

  #adlei-portfolio .portfolio-card-item .card-sub-category {
    font-size: 10.5px !important;
    letter-spacing: 1px !important;
  }

  #adlei-portfolio .portfolio-card-item .card-title {
    font-size: 18px !important;
  }

  #adlei-portfolio .category-pill-tag {
    top: 12px;
    right: 12px;
    padding: 6px 11px;
    font-size: 10.5px;
  }

  #adlei-portfolio .view-site-pill {
    padding: 9px 15px;
    font-size: 12.5px;
  }

  /* Footer */
  footer {
    padding: 56px 24px 32px;
  }

  .footer-top {
    margin-bottom: 40px;
  }

  .footer-social {
    flex-wrap: wrap;
  }
}

/* Phones: single column, full-size cards */
@media (max-width: 560px) {
  .adlei-portfolio-section {
    padding: 48px 16px;
  }

  .portfolio-grid-3col {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 0 0 48px;
  }

  #adlei-portfolio .portfolio-card-item {
    min-height: 230px;
  }

  #adlei-portfolio .portfolio-card-item .card-details-wrap {
    padding: 22px 20px 20px !important;
  }

  #adlei-portfolio .portfolio-card-item .card-sub-category {
    font-size: 11px !important;
  }

  #adlei-portfolio .portfolio-card-item .card-title {
    font-size: 20px !important;
  }

  #adlei-portfolio .category-pill-tag {
    top: 14px;
    right: 14px;
    font-size: 11px;
  }

  #adlei-portfolio .view-site-pill {
    padding: 10px 18px;
    font-size: 13px;
  }

  /* Social cards: keep the round icon buttons apart */
  #adlei-portfolio .card-action-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }

  /* Filter pills: larger touch targets, tighter gaps */
  .filter-navbar {
    gap: 8px;
  }

  .filter-btn {
    padding: 11px 16px;
    font-size: 13px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .cta-mini-card {
    padding: 32px 24px;
  }

  .floating-stack {
    bottom: 16px;
    right: 16px;
    gap: 10px;
  }

  .floating-btn {
    width: 48px;
    height: 48px;
  }

  .case-study-modal {
    padding: 12px;
  }

  .modal-banner-img {
    height: 200px;
  }

  .modal-close-btn {
    top: 12px;
    right: 12px;
  }

  .modal-inner-content {
    padding: 24px 20px;
  }
}

/* Very small phones (320–380px) */
@media (max-width: 380px) {
  #adlei-portfolio .portfolio-card-item {
    min-height: 220px;
  }

  #adlei-portfolio .portfolio-card-item .card-details-wrap {
    padding: 18px !important;
  }

  #adlei-portfolio .portfolio-card-item .card-title {
    font-size: 18px !important;
  }
}

/* Allow normal page scrolling while hovering portfolio cards */
.portfolio-card-item,
.card-thumb-wrap,
.card-thumb-img {
  touch-action: pan-y;
}

.portfolio-card-item {
  overscroll-behavior: auto;
}
.instagram-icon-link {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: #ffffff;
  color: #083731;

  border-radius: 50%;
  text-decoration: none;

  transition: all 0.25s ease;
}

.instagram-icon-link svg {
  display: block;
}

.instagram-icon-link:hover {
  background: #083731;
  color: #ffffff;
  transform: translateY(-2px);
}

.instagram-icon-link,
.facebook-icon-link {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #083731;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.25s ease;
}

.instagram-icon-link svg,
.facebook-icon-link svg {
  display: block;
}

.instagram-icon-link:hover,
.facebook-icon-link:hover {
  background: #083731;
  color: #ffffff;
  transform: translateY(-2px);
}