/* =========================
   GLOBAL
========================= */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #555;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.5px;
}

h1 { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 24px; }
h4 { font-size: 18px; }

:root {
  --text: #0f172a;
  --muted: #64748b;
  --bg: #ffffff;
  --soft: #f8fafc;
  --accent: #1e293b;
}

/* GLOBAL SPACING */
section {
  padding: 100px 0;
}

.container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Home section scroll offset */
#home {
    scroll-margin-top: 84px; /* full non-shrunk navbar height: logo 60px + padding 1.2rem */
}
/* =========================
   NAVBAR
========================= */
:root {
    --navbar-height: 80px;
}

.custom-navbar {
    background: #ffffff;
    padding: 1.2rem 0;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03); 
}

.custom-navbar.scrolled {
    padding: 0.6rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

/* Logo */
.navbar-brand .logo {
    height: 60px;
    transition: height 0.3s ease;
}

.custom-navbar.scrolled .logo {
    height: 45px;
}

/* Nav links */
.navbar-nav .nav-link {
    color: #808291;
    margin-right: 1rem;
    display: inline-block;
    letter-spacing: 2px;
    padding: 5px 0 !important;
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    left: 0;
    bottom: -4px;
    background-color: #7FB1C5;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #7FB1C5;
    transform: scale(1.05);
}

.navbar-nav .nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.navbar-nav .nav-link.active {
    color: #7FB1C5;
}

.navbar-nav .nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* =========================
   SPLIT HERO
========================= */

.split-hero-contained {
    margin-top: 90px;
    padding: clamp(60px, 8vh, 120px) clamp(20px, 5vw, 60px);
    background: #fff;
}

/* =========================
   WRAPPER
========================= */

.split-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;

    /* 👇 MORE BREATHING ROOM */
    gap: clamp(24px, 3vw, 65px);

    align-items: stretch;
}

/* =========================
   CARD BASE
========================= */

.split-item {
    position: relative;
    flex: 1;
    height: clamp(400px, 55vh, 520px);

    overflow: hidden;
    cursor: pointer;
    border-radius: 12px;

    box-shadow: 0 10px 25px rgba(0,0,0,0.08);

    transition: flex 0.5s ease, box-shadow 0.4s ease;
}

/* =========================
   IMAGE
========================= */

.split-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform 0.8s ease;
}

/* =========================
   HOVER SYSTEM (SIMPLIFIED)
========================= */

/* soften non-hover card */
.split-wrapper:hover .split-item {
    flex: 0.9;
}

/* active card */
.split-wrapper .split-item:hover {
    flex: 1.15;
    box-shadow: 0 25px 60px rgba(0,0,0,0.18);
    z-index: 2;
}

/* image zoom */
.split-item:hover .split-img img {
    transform: scale(1.06);
}

/* =========================
   HEADER LABEL
========================= */

.card-header-label {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 3;
}

.card-header-label h2 {
    font-size: 1.4rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 500;

    color: #7FB1C5;

    padding-left: 12px;
    border-left: 2px solid #7FB1C5;
}

/* =========================
   OVERLAY BASE
========================= */

.overlay {
    position: absolute;
    inset: 0;

    background: rgba(0,0,0,0);

    transition: background 0.4s ease;
}

.split-item:hover .overlay {
    background: rgba(0,0,0,0.45);
}

/* =========================
   OVERLAY CONTENT
========================= */

.overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;

    transform: translate(-50%, -45%);
    opacity: 0;

    text-align: center;
    max-width: 60%;

    color: #fff;

    transition: opacity 0.45s ease, transform 0.45s ease;
}

.split-item:hover .overlay-content {
    transform: translate(-50%, -50%);
    opacity: 1;
}

.overlay-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .split-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .split-item {
        height: 320px;
    }

    .split-wrapper:hover .split-item,
    .split-wrapper .split-item:hover {
        flex: 1;
        transform: none;
    }
}

/* =========================
   LARGE SCREENS
========================= */

@media (min-width: 1400px) {
    .split-wrapper {
        max-width: 1100px;
    }

    .split-item {
        height: 480px;
    }
}

/* =========================
   SERVICES (IMAGE CARDS)
========================= */

.services-section {
    padding: 110px 20px;
    padding: 110px 20px;
    background: #eef5f8;
    position: relative;
}

.services-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 20% 30%,
        rgba(255,255,255,0.4),
        transparent 60%
    );
    pointer-events: none;
}

/* Header */
.section-header {
    margin-bottom: 70px;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    font-weight: 500;
    color: #111;
}

.section-header h2::after {
    content: "";
    display: block;
    width: 50px;
    height: 2px;
    background: #7FB1C5;
    margin: 12px auto 0;
}

.section-header p {
    font-family: 'Inter', sans-serif;
    color: #666;
    max-width: 650px;
    margin: 20px auto 0;
    line-height: 1.7;
}

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

/* Card */
.service-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.45s ease;
    box-shadow: 0 18px 40px rgba(0,0,0,0.1); /* slightly stronger shadow */
    border: 1px solid rgba(0,0,0,0.03);
    border-top: 3px solid #7FB1C5;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 35px 70px rgba(0,0,0,0.15);
}

.service-card:hover .service-content h3 {
    color: #7FB1C5;
}

/* Image */
.service-image {
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.08);
}

/* Content */
.service-content {
    padding: 30px;
}

.service-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: #111;
}

.service-content h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #7FB1C5;
    margin-bottom: 12px;
}

.service-content p {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   PROJECTS GALLERY (FINAL STABLE ARC STYLE)
========================= */

/* ---------- HERO ---------- */

.projects-hero {
    position: relative;
    height: clamp(220px, 32vh, 420px);
    margin-top: var(--navbar-height);

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    color: #fff;
    overflow: hidden;
}

.projects-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.6);
    z-index: 1;
}

.projects-hero-content {
    position: relative;
    z-index: 2;
}

/* ---------- INTRO ---------- */

.projects-intro {
    padding: 70px 0 110px;
    background: #fff;
}

.intro-title-wrap {
    position: relative;
}

.intro-title {
    margin: 10px 0 40px;
    line-height: 1.05;
    display: inline-block;
    position: relative;
    z-index: 1;
}

.intro-title::before {
    content: "";
    position: absolute;
    inset: -12px -18px;
    background: radial-gradient(#7FB1C5 1.5px, transparent 1.5px);
    background-size: 20px 20px;
    opacity: 0.35;
    z-index: -1;
    pointer-events: none;
    clip-path: inset(40% 0 0 0);
    transform: translateY(25px);
}

.intro-title-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 40px;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 2fr;
    gap: 60px;
}

/* ---------- FILTER ---------- */

.projects-filter {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 60px;
    padding: 12px 20px;
    background: #fff;
    border: 1px solid #7FB1C5;           /* subtle light border */
    border-radius: 50px;                 /* pill-shaped callout */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.filter-btn {
    background: none;
    border: none;
    color: #808291;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 0;
    position: relative;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

/* Underline effect - exactly like navbar */
.filter-btn::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    left: 0;
    bottom: -4px;
    background-color: #7FB1C5;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

/* Hover Effect - Same as navbar */
.filter-btn:hover {
    color: #7FB1C5;
    transform: scale(1.05);
}

.filter-btn:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Active state */
.filter-btn.active {
    color: #7FB1C5;
}

.filter-btn.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ---------- GRID (FIXED CORE ISSUE) ---------- */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 70px 40px;
    align-items: start;
}

/* ---------- PROJECT ITEM ---------- */

.project-item {
    position: relative;
    display: block;
    width: 100%;

    opacity: 0;
    transform: translateY(40px);

    transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
                transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.project-item.is-hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.project-item:nth-child(even) {
    margin-top: 60px;
}

/* ---------- MEDIA ---------- */

.project-media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #eee;
}

.project-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-item:hover .project-media img {
    transform: scale(1.04);
}

.project-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0.05));
    z-index: 1;
}

/* ---------- TEXT OVERLAY ---------- */

.project-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: #fff;
    z-index: 2;
    transition: transform 0.4s ease;
}

.project-item:nth-child(even) .project-overlay {
    align-items: flex-end;
    text-align: right;
}

.project-item:nth-child(odd) .project-overlay {
    align-items: flex-start;
    text-align: left;
}

.project-index {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 0.85;
    margin-bottom: 6px;
}

.project-title {
    font-size: 1.6rem;              /* was 16px → cleaner and smaller */
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

.project-title a {
    text-decoration: none;
    color: inherit;
}

.project-line {
    width: 28px;
    height: 1px;
    background: #fff;
    opacity: 0.75;
}

.project-item:hover .project-overlay {
    transform: translateY(-5px);
}

/* RESPONSIVE FOR INDEX */
@media (max-width: 1024px) {
    .intro-grid {
        grid-template-columns: 1fr;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .project-item:nth-child(even) {
        margin-top: 0;
    }
    .project-overlay {
        align-items: flex-start !important;
        text-align: left !important;
    }
}

@media (max-width: 600px) {
    .projects-grid {
        gap: 50px;
    }
    .project-title {
        font-size: 18px;
    }
    .projects-filter {
        flex-wrap: wrap;
        gap: 16px;
    }
}

/* =========================
   PROJECT DETAIL PAGE - ArcPrime Light Style
========================= */

/* HERO - Full width with overlay */
.project-hero {
    position: relative;
    height: 82vh;
    min-height: 620px;
    overflow: hidden;
}

.project-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.5));
    display: flex;
    align-items: flex-end;
    padding-bottom: 90px;
}

.project-hero-overlay .container {
    position: relative;
    z-index: 2;
    color: #fff;
}

.project-title {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.08;
    margin: 0 0 10px 0;
}

.project-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* MAIN DETAIL SECTION */
.project-detail {
    padding: 110px 0 100px;
    background: #fff;
}

.project-detail-meta .meta-box {
    position: sticky;
    top: 130px;
}

.meta-item {
    margin-bottom: 34px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.meta-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.meta-label {
    display: block;
    font-size: 0.83rem;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 7px;
}

.meta-value {
    font-size: 1.18rem;
    color: #1f1f1f;
    font-weight: 500;
}

/* CONTENT AREA */
.project-body {
    font-size: 1.06rem;
    line-height: 1.88;
    color: #444;
}

.project-body p {
    margin-bottom: 1.9em;
}

/* GALLERY */
.project-gallery {
    background: #fff;
    padding-top: 0px;
}

.gallery-heading {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 55px;
    color: #222;
}

.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 28px;
}

.gallery-item.large {
    grid-column: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.45s ease;
}

.gallery-item:hover img {
    transform: scale(1.035);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .project-hero {
        height: 68vh;
    }
    .project-title {
        font-size: 2.9rem;
    }
    .project-gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-item.large {
        grid-column: span 1;
    }
}

/* =========================
   PROJECT DETAIL
========================= */
.project-detail {
    padding-top: 20px;
}

.project-detail .container {
    max-width: 900px;
}

.project-body {
    max-width: 520px;
}

.project-showcase {
    padding-top: 140px;
    padding-bottom: 40px;
    background: #fff;
}

.project-main-image {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.project-main-image img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.12);
}

.project-main-image {
    position: relative;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
}

.nav-arrow:hover {
    background: rgba(0,0,0,0.7);
}

.nav-arrow.prev {
    left: 10px;
}

.nav-arrow.next {
    right: 10px;
}

.project-detail-wrap {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 50px;
    align-items: start;
}

.project-detail-right {
    margin-left: auto;
    text-align: right;
}

.meta-row {
    margin-bottom: 18px;
}

.meta-label {
    color: #7FB1C5;
    font-weight: 600;
}

.meta-value {
    color: #6b7280;
    margin-left: 6px;
}

.project-thumbnails {
    padding: 20px 0 120px;
}

.thumbnail-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-padding: 20px;
}

.thumbnail-img {
    width: 140px;
    height: 90px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 4px;

    opacity: 0.7;
    transition: all 0.3s ease;
}

.thumbnail-img:hover {
    opacity: 1;
    transform: scale(1.05);
}

.thumbnail-img.active {
    opacity: 1;
    border: 2px solid #7FB1C5;
}



/* =========================
   ABOUT
========================= */
/* HERO */
.about-hero {
    position: relative;
    height: clamp(200px, 30vh, 400px); 
    overflow: hidden;
    margin-top: var(--navbar-height);
}

.hero-bg {
    position: absolute;
    inset: 0;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    z-index: 1;
}

/* Optional dark overlay */
.about-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 2;
}

.hero-content {
    position: relative;
    inset: 0;
    z-index: 3;

    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    color: white;
    text-align: center;
    padding: 0 20px;
}

/*About Section*/
.about-section {
    padding-top: 60px;
}

.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.about-image {
    position: relative;
    display: inline-block;
    isolation: isolate;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.about-image img {
    position: relative;
    width: 100%;
    height: auto;
    z-index: 2;
    display: block;
    object-fit: cover;
    margin: 0 auto;
    border-radius: 10px; 
}

.about-image::before {
    content: "";
    position: absolute;

    top: -14px;
    left: -14px;

    width: 100%;
    height: 100%;

    background-color: rgba(127,177,197,0.18); /* 👈 filled */

    z-index: 0;
}

.about-image::after {
    content: "";
    position: absolute;

    top: 14px;
    left: 14px;

    width: 100%;
    height: 100%;

    border: 2px solid rgba(127,177,197,0.7);

    z-index: 1;
}

.about-eyebrow {
    display: block;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #7FB1C5;
    margin-bottom: 8px;
}

.about-text .rich-text {
    margin-top: 0;
    line-height: 1.7;
    color: #555;
}

@media (max-width: 900px) {
    .about-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1; /* optional: image first on mobile */
    }
}

/* =========================
   TEAM SECTION
========================= */
.team-section {
  background: var(--soft);
}

.section-title {
  text-align: left;
  font-size: 2.5rem;
  margin-bottom: 60px;
}

/* =========================
   GRID
========================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  align-items: start;
}

/* =========================
   CARD
========================= */
.team-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.3s ease;
}

.team-card:hover {
  transform: translateY(-6px);
}

/* =========================
   HEADER (NAME)
========================= */
.team-header {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.team-header h3 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 1px;
  font-weight: 500;
}

/* =========================
   BODY (ROLE + IMAGE)
========================= */
.team-body {
  display: flex;
  align-items: stretch;
}

/* =========================
   ROLE (LEFT VERTICAL)
========================= */
.team-role-vertical {
  width: 70px;

  display: flex;
  align-items: center;
  justify-content: center;

  writing-mode: vertical-rl;
  transform: rotate(180deg);

  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #7FB1C5;

  border-right: 1px solid rgba(0,0,0,0.06);
}

/* =========================
   IMAGE
========================= */
.team-image {
  position: relative;
  flex: 1;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.team-card:hover .team-image img {
  transform: scale(1.05);
}

.team-image-wrap {
  position: relative;
  flex: 1;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.team-bio {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  background: rgba(0, 0, 0, 0.75);
  color: #fff;

  transform: translateY(100%);
  transition: transform 0.4s ease, opacity 0.4s ease;

  padding: 80px 20px 30px 10px;

  z-index: 2;
}

.team-bio-inner {
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.95;
  margin-top: 20px;
}

.team-card:hover .team-bio {
  transform: translateY(0%);
  opacity: 1;
}

.team-media {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.team-bio-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  height: 100%;
  background: rgba(18, 30, 40, 0.9);
  backdrop-filter: blur(6px);
  color: #fff;

  transform: translateY(100%);
  transition: transform 0.45s ease;

  display: flex;
}

.team-card:hover .team-bio-panel {
  transform: translateY(0);
}

.team-bio-content {
  padding: 24px;
  overflow-y: auto;

  height: 100%;
  box-sizing: border-box;
}

.team-bio-content::-webkit-scrollbar {
  width: 4px;
}

.team-bio-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {

  .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
  }

  .team-body {
    flex-direction: column;
  }

  .team-role-vertical {
    writing-mode: horizontal-tb;
    transform: none;
    width: 100%;
    border-right: none;
    border-top: 1px solid rgba(0,0,0,0.06);
    padding: 10px;
  }

  .team-bio {
    position: relative;
    transform: none;
    background: #111;
  }

  .team-card:hover .team-bio {
    transform: none;
  }
}

/* =========================
   FOOTER
========================= */
footer {
    background: #111;
    color: #aaa;
    padding: 60px 0;
    text-align: center;
}

footer h5 {
    color: #fff;
}

/* =========================
   Tricks
========================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   PATTERN UTILITY
========================= */
.pattern-bg {
  position: relative;
  overflow: hidden;
}

.pattern-bg::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image:
  radial-gradient(rgba(127,177,197,0.08), rgba(0,0,0,0.02) 25px, rgba(0,0,0,0.15) 26px, transparent 26px),
  radial-gradient(transparent 25px, rgba(127,177,197,0.35) 25px, rgba(127,177,197,0.35) 26px, transparent 26px),
  radial-gradient(transparent 50px, rgba(127,177,197,0.2) 50px, rgba(127,177,197,0.2) 51px, transparent 51px),
  radial-gradient(rgba(127,177,197,0.4), rgba(127,177,197,0) 50px),
  radial-gradient(transparent 25px, rgba(127,177,197,0.3) 25px, rgba(127,177,197,0.3) 26px, transparent 26px);

  background-size: 200px 200px;
  background-position: -75px -45px, 0 0, 20px 50px, 25px 55px, 50px 125px;

  opacity: 0.5; /* 👈 subtle for cards */
  pointer-events: none;
  z-index: 0;
}

/* ensure content sits above pattern */
.pattern-bg > * {
  position: relative;
  z-index: 1;
}

.divider {
    width: 200px;
    height: 2px;
    background: #7FB1C5;
    margin: 10px 0 18px;
}