/* ============================================================
   SAI VIGNESH — Animal Rights Activist
   Personal Website Stylesheet
   Theme: Earthy & Warm
   ============================================================ */

/* ————————————————————————————————————————————
   Google Fonts
   ———————————————————————————————————————————— */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ————————————————————————————————————————————
   CSS Custom Properties
   ———————————————————————————————————————————— */
:root {
  /* Colors — Primary */
  --primary: #2D5016;
  --primary-light: #5A7D3A;
  --primary-lighter: #7FA656;

  /* Colors — Accent */
  --accent: #D4920B;
  --accent-light: #F0C75E;

  /* Colors — Additional */
  --terracotta: #C75B39;

  /* Backgrounds */
  --bg-dark: #1A1A12;
  --bg-dark-2: #2A2A1E;
  --bg-light: #FAF6F0;
  --bg-light-2: #F0EBE1;

  /* Text */
  --text-dark: #2C2C1E;
  --text-light: #F5F0E8;
  --text-muted: #8A8570;

  /* Cards */
  --card-bg: rgba(255, 250, 240, 0.95);
  --card-bg-dark: rgba(42, 42, 30, 0.85);

  /* Shadows */
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.18);

  /* Radii */
  --radius: 16px;
  --radius-sm: 8px;

  /* Transition */
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================================
   1. GLOBAL RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

::selection {
  background-color: var(--primary);
  color: var(--text-light);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-lighter);
}

/* Firefox scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-light) var(--bg-dark);
}

/* ============================================================
   2. NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(250, 246, 240, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  padding: 0.85rem 0;
}

.navbar__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
  transition: var(--transition);
}

.navbar.scrolled .navbar__logo {
  color: var(--primary);
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar__links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-light);
  position: relative;
  padding-bottom: 4px;
  transition: var(--transition);
}

.navbar.scrolled .navbar__links a {
  color: var(--text-dark);
}

.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.navbar__links a:hover::after,
.navbar__links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.navbar__links a:hover {
  color: var(--accent);
}

.navbar.scrolled .navbar__links a:hover {
  color: var(--accent);
}

/* Hamburger Toggle */
.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 1001;
}

.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-light);
  margin: 3px 0;
  transition: var(--transition);
  border-radius: 2px;
}

.navbar.scrolled .navbar__toggle span {
  background-color: var(--text-dark);
}

.navbar__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar__toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.navbar__mobile {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100vh;
  background: var(--bg-dark);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.navbar__mobile.active {
  transform: translateX(0);
}

.navbar__mobile a {
  color: var(--text-light);
  font-size: 1.25rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}

.navbar__mobile a:hover {
  color: var(--accent);
}

.navbar__overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.navbar__overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ============================================================
   3. HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background:
    linear-gradient(135deg, var(--bg-dark) 0%, rgba(26, 26, 18, 0.85) 40%, rgba(26, 26, 18, 0.5) 100%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 35px,
      rgba(45, 80, 22, 0.03) 35px,
      rgba(45, 80, 22, 0.03) 70px
    );
  background-color: var(--bg-dark);
  overflow: hidden;
}

.hero__container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4rem;
}

.hero__content {
  flex: 1;
  text-align: left;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero__greeting {
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.hero__name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--text-light);
  line-height: 1.1;
  font-weight: 700;
}

.hero__tagline {
  font-size: 1.5rem;
  color: var(--accent-light);
  font-weight: 300;
  margin-top: 0.5rem;
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.hero__tag {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1.5px solid var(--accent);
  color: var(--accent-light);
  letter-spacing: 0.3px;
}

.hero__tag--alt {
  border-color: var(--primary-lighter);
  color: var(--primary-lighter);
}

.hero__description {
  color: var(--text-muted);
  max-width: 500px;
  line-height: 1.7;
  margin-top: 1.5rem;
  font-size: 1.05rem;
}

.hero__cta {
  margin-top: 2rem;
  display: flex;
  flex-direction: row;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__btn {
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.hero__btn--primary {
  background-color: var(--accent);
  color: var(--bg-dark);
}

.hero__btn--primary:hover {
  background-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 146, 11, 0.35);
}

.hero__btn--secondary {
  border: 2px solid var(--text-light);
  background: transparent;
  color: var(--text-light);
}

.hero__btn--secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.hero__image-wrapper {
  flex: 0 0 auto;
  animation: fadeInUp 1s ease-out 0.5s both;
}

.hero__image {
  width: 380px;
  height: 380px;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  object-fit: cover;
  border: 4px solid var(--accent);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: blobMorph 8s ease-in-out infinite;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  animation: bounce 2s ease infinite;
}

.hero__scroll span {
  font-size: 1.5rem;
}

/* ============================================================
   4. ABOUT
   ============================================================ */
.about {
  background-color: var(--bg-light);
  padding: 6rem 0;
}

/* Shared Section Header */
.section__header {
  text-align: center;
  margin-bottom: 4rem;
}

.section__label {
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  display: block;
}

.section__title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-top: 0.5rem;
  line-height: 1.2;
}

.section__title span {
  color: var(--accent);
}

/* Dark section variant */
.section__title--light {
  color: var(--text-light);
}

.section__divider {
  width: 60px;
  height: 3px;
  background-color: var(--accent);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.section__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__image-wrapper {
  position: relative;
}

.about__image-wrapper::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  right: 12px;
  bottom: 12px;
  border: 3px solid var(--accent);
  border-radius: var(--radius);
  z-index: 0;
  transition: var(--transition);
}

.about__image-wrapper:hover::before {
  top: -8px;
  left: -8px;
}

.about__image {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

.about__text p {
  line-height: 1.8;
  margin-bottom: 1rem;
  color: var(--text-dark);
  font-size: 1.02rem;
}

.about__text p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   5. STATS
   ============================================================ */
.stats {
  background-color: var(--bg-dark);
  padding: 5rem 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* 7th card spans 2 columns so row 2 fills cleanly: [5][6][7——] */
.stat-card:last-child {
  grid-column: span 2;
}

.stat-card {
  text-align: center;
  padding: 2rem 1rem;
}

.stat-card__icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: block;
}

.stat-card__number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: var(--text-light);
  font-weight: 700;
  line-height: 1;
}

.stat-card__label {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================================
   6. INITIATIVES
   ============================================================ */
.initiatives {
  background-color: var(--bg-light);
  padding: 6rem 0;
}

.initiatives__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.initiative-card {
  background: #ffffff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

.initiative-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.initiative-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.initiative-card__body {
  padding: 1.5rem;
}

.initiative-card__icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-top: -40px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(45, 80, 22, 0.3);
}

.initiative-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin: 1rem 0 0.5rem;
  color: var(--text-dark);
}

.initiative-card__text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   7. SANCTUARY
   ============================================================ */
.sanctuary {
  min-height: 500px;
  position: relative;
  overflow: hidden;
  /* Fallback background if YouTube video fails to load */
  background: #1a1a12 url('Media/sanctuary-overview.jpg') center center / cover no-repeat;
}


.sanctuary__overlay {
  position: relative;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 18, 0.88) 0%,
    rgba(42, 42, 30, 0.80) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.sanctuary__content {
  max-width: 700px;
  text-align: center;
  color: var(--text-light);
  padding: 4rem 2rem;
  position: relative;
  z-index: 2;
}

.sanctuary__founded {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: block;
}

.sanctuary__title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.sanctuary__text {
  line-height: 1.8;
  color: rgba(245, 240, 232, 0.7);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.sanctuary__stat {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.sanctuary__stat-label {
  color: var(--text-muted);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ============================================================
   8. AWARDS
   ============================================================ */
.awards {
  background-color: var(--bg-light-2);
  padding: 6rem 0 5rem;
}

.awards__timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-left: 30px;
}

.awards__timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--primary-light);
}

.award-card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.award-card::before {
  content: '';
  position: absolute;
  left: -30px;
  top: 2rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--primary);
  border: 3px solid var(--bg-light-2);
  z-index: 1;
}

.award-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-hover);
}

.award-card__year {
  display: inline-block;
  background-color: var(--primary);
  color: #ffffff;
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}

.award-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin: 0.75rem 0 0.5rem;
  color: var(--text-dark);
}

.award-card__org {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.award-card__presenter {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.award-card--featured {
  border-left: 4px solid var(--accent);
  padding-left: 2.5rem;
}

.award-card--featured::before {
  background-color: var(--accent);
}

/* ============================================================
   8b. PRESS / IN THE NEWS
   ============================================================ */
.press {
  background-color: var(--bg-light);
  padding: 5rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.press__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Base card */
.press-card {
  background: #ffffff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.press-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

/* Article screenshot image */
.press-card__img-wrap {
  height: 190px;
  overflow: hidden;
  background: var(--bg-light-2);
}

.press-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
}

.press-card:hover .press-card__img-wrap img {
  transform: scale(1.03);
}

/* Card body */
.press-card__body {
  padding: 1.1rem 1.25rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Publication badge */
.press-card__pub {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  align-self: flex-start;
  color: #ffffff;
}

.press-card__pub--toi  { background-color: #C8001D; } /* TOI red    */
.press-card__pub--nie  { background-color: #1B3E7A; } /* NIE navy   */

/* Headline */
.press-card__headline {
  font-family: 'Playfair Display', serif;
  font-size: 0.98rem;
  color: var(--text-dark);
  line-height: 1.45;
  flex: 1;
  margin: 0;
}

/* Date */
.press-card__date {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
}

/* Excerpt (text-only cards) */
.press-card__excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

/* Read link */
.press-card__link {
  display: inline-block;
  color: var(--accent);
  font-size: 0.83rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  margin-top: 0.25rem;
}

.press-card__link:hover {
  color: var(--primary);
}

/* Text-only cards — left accent stripe */
.press-card--text {
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ============================================================
   9. GALLERY
   ============================================================ */
.gallery {
  background-color: var(--bg-dark);
  padding: 6rem 0;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.gallery__item {
  overflow: hidden;
  border-radius: var(--radius-sm);
  position: relative;
  cursor: pointer;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery__item:hover img {
  transform: scale(1.05);
}

.gallery__item::after {
  content: attr(data-caption);
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 1rem 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
}

.gallery__item:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.gallery__item--tall {
  grid-row: span 2;
}

.gallery__item--wide {
  grid-column: span 2;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox__image {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  transition: var(--transition);
  line-height: 1;
  z-index: 2001;
}

.lightbox__close:hover {
  color: var(--accent);
  transform: rotate(90deg);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--accent);
}

.lightbox__nav--prev,
.lightbox__prev {
  left: 1.5rem;
}

.lightbox__nav--next,
.lightbox__next {
  right: 1.5rem;
}

/* ============================================================
   10. SOCIAL
   ============================================================ */
.social {
  background-color: var(--bg-light);
  padding: 6rem 0;
}

.social__groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.social__group {
  text-align: center;
}

.social__group-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.social__group-label {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
}

.social__group-label--tamil {
  background-color: var(--terracotta);
}

.social__group-label--english {
  background-color: var(--primary);
}

.channel-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #ffffff;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: var(--text-dark);
}

.channel-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.channel-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.channel-card__icon--youtube {
  background-color: #FF0000;
  color: #ffffff;
}

.channel-card__icon--instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #ffffff;
}

.channel-card__icon--facebook {
  background-color: #1877F2;
  color: #ffffff;
}

.channel-card__info {
  flex: 1;
  text-align: left;
}

.channel-card__name {
  font-weight: 600;
  font-size: 1rem;
}

.channel-card__handle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.channel-card__arrow {
  margin-left: auto;
  color: var(--text-muted);
  transition: var(--transition);
  font-size: 1.2rem;
}

.channel-card:hover .channel-card__arrow {
  color: var(--accent);
  transform: translateX(3px);
}

/* ============================================================
   11. CONTACT
   ============================================================ */
.contact {
  background-color: var(--bg-dark);
  padding: 6rem 0;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact__info {
  color: var(--text-light);
}

.contact__info-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.contact__info-text {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact__detail {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
  margin: 1.5rem 0;
}

.contact__detail-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact__detail-text {
  color: var(--text-light);
  font-size: 0.95rem;
}

.contact__detail-label {
  color: var(--text-muted);
  font-size: 0.8rem;
  display: block;
  margin-bottom: 0.15rem;
}

.contact__form {
  background: var(--card-bg-dark);
  padding: 2.5rem;
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.form__group {
  margin-bottom: 1.5rem;
}

.form__label {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  display: block;
  font-weight: 500;
}

.form__input,
.form__textarea {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-light);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: rgba(138, 133, 112, 0.6);
}

.form__input:focus,
.form__textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 146, 11, 0.2);
}

.form__textarea {
  min-height: 120px;
  resize: vertical;
}

.form__btn {
  width: 100%;
  padding: 14px;
  background-color: var(--accent);
  color: var(--bg-dark);
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

.form__btn:hover {
  background-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 146, 11, 0.35);
}

/* Form Error State */
.form__error {
  display: none;
  color: var(--terracotta);
  font-size: 0.8rem;
  margin-top: 0.35rem;
}

.form__group--error .form__error {
  display: block;
}

.form__group--error .form__input,
.form__group--error .form__textarea {
  border-color: var(--terracotta);
}

.form__group--focused .form__label {
  color: var(--accent);
}

/* Form Success */
.form__success {
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  background: rgba(45, 80, 22, 0.2);
  border: 1px solid var(--primary-light);
  color: var(--primary-lighter);
  margin-top: 1rem;
  font-size: 0.95rem;
}

.form__success.active {
  display: flex;
  animation: fadeInUp 0.4s ease-out;
}

.form__error-msg {
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  background: rgba(180, 40, 40, 0.15);
  border: 1px solid rgba(220, 80, 80, 0.5);
  color: #f88;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.form__error-msg.active {
  display: flex;
  animation: fadeInUp 0.4s ease-out;
}

.form__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Gallery Caption */
.gallery__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 1rem 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
}

.gallery__item:hover .gallery__caption {
  opacity: 1;
  transform: translateY(0);
}

/* Section Subtitle */
.section__subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 550px;
  margin: 1rem auto 0;
  line-height: 1.6;
}

/* Social Group Header */
.social__group-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

/* Awards Featured Section */
.awards__featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 900px;
  margin: 0 auto 3rem;
  padding: 2rem;
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
}

.awards__featured-image {
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.awards__featured-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.awards__featured-content {
  padding: 1rem 0;
}

.awards__featured-content .award-card__title {
  font-size: 1.6rem;
  margin: 1rem 0 0.5rem;
}

/* Contact Detail Value */
.contact__detail-value {
  color: var(--text-light);
  font-size: 0.95rem;
  transition: var(--transition);
}

a.contact__detail-value:hover {
  color: var(--accent);
}

/* Footer Nav Title */
.footer__nav-title {
  color: var(--text-light);
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer__logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
}

.footer__logo:hover {
  color: var(--accent);
}

/* ============================================================
   12. FOOTER
   ============================================================ */
.footer {
  background-color: #141410;
  padding: 3rem 0 1.5rem;
}

.footer__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer__brand {
  font-family: 'Playfair Display', serif;
  color: var(--text-light);
  font-size: 1.3rem;
  font-weight: 700;
}

.footer__tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

.footer__links {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
}

.footer__links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer__links a:hover {
  color: var(--text-light);
}

.footer__social {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  font-size: 1rem;
}

.footer__social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.footer__copyright {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer__heart {
  color: var(--terracotta);
}

/* ============================================================
   13. SCROLL ANIMATIONS
   ============================================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.slide-left {
  transform: translateX(-30px);
}

.animate-on-scroll.slide-right {
  transform: translateX(30px);
}

.animate-on-scroll.slide-left.visible,
.animate-on-scroll.slide-right.visible {
  transform: translateX(0);
}

/* Stagger children animations */
.animate-on-scroll.stagger > *:nth-child(1) { transition-delay: 0.1s; }
.animate-on-scroll.stagger > *:nth-child(2) { transition-delay: 0.2s; }
.animate-on-scroll.stagger > *:nth-child(3) { transition-delay: 0.3s; }
.animate-on-scroll.stagger > *:nth-child(4) { transition-delay: 0.4s; }
.animate-on-scroll.stagger > *:nth-child(5) { transition-delay: 0.5s; }
.animate-on-scroll.stagger > *:nth-child(6) { transition-delay: 0.6s; }

/* ============================================================
   14. KEYFRAME ANIMATIONS
   ============================================================ */

/* Scroll Indicator Bounce */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Gentle Float */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* Count Up (visual placeholder — typically JS-driven) */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Content Entrance */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Image Blob Morph */
@keyframes blobMorph {
  0%, 100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
  25% {
    border-radius: 58% 42% 55% 45% / 56% 61% 39% 44%;
  }
  50% {
    border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
  }
  75% {
    border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
  }
}

/* ============================================================
   15. RESPONSIVE — TABLET (max-width: 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .hero__container {
    gap: 3rem;
  }

  .hero__image {
    width: 300px;
    height: 300px;
  }

  .about__grid {
    gap: 3rem;
  }

  .stats__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Centre the lone 7th card in a 3-col row */
  .stat-card:last-child {
    grid-column: 2;
  }

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

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

  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 200px;
  }

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

  .social__groups {
    gap: 2rem;
  }
}

/* ============================================================
   15b. RESPONSIVE — MOBILE (max-width: 768px)
   ============================================================ */
@media (max-width: 1200px) {
  .navbar__links {
    display: none;
  }

  .navbar__toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  .hero__scroll {
    display: none;
  }

  /* Hero */
  .hero__container {
    flex-direction: column-reverse;
    text-align: center;
    gap: 2rem;
    padding-top: 6rem;
    padding-bottom: 5rem;
  }

  .hero__content {
    text-align: center;
  }

  .hero__description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__cta {
    justify-content: center;
  }

  .hero__image {
    width: 260px;
    height: 260px;
  }

  .hero__name {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero__tagline {
    font-size: 1.15rem;
  }

  /* Sections */
  .section__title {
    font-size: 2rem;
  }

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

  .about__image-wrapper {
    max-width: 400px;
    margin: 0 auto;
  }

  /* Stats */
  .stats__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .stat-card:last-child {
    grid-column: 2;
  }

  .stat-card__number {
    font-size: 2.25rem;
  }

  /* Initiatives */
  .initiatives__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Press */
  .press__grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* Awards */
  .awards__timeline {
    padding-left: 25px;
  }

  .award-card {
    padding: 1.5rem;
  }

  .award-card__title {
    font-size: 1.15rem;
  }

  /* Gallery */
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }

  .gallery__item--wide {
    grid-column: span 1;
  }

  /* Social */
  .social__groups {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Contact */
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact__form {
    padding: 2rem;
  }

  /* Footer */
  .footer__container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer__links {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Sanctuary */
  .sanctuary__title {
    font-size: 2rem;
  }

  .sanctuary__stat {
    font-size: 3rem;
  }

  /* Awards Featured */
  .awards__featured {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .awards__featured-image img {
    height: 220px;
  }

  /* Parallax disable on mobile */
  .sanctuary {
    background-attachment: scroll;
  }
}

/* ============================================================
   15c. RESPONSIVE — SMALL MOBILE (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {
  .hero__name {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .hero__tagline {
    font-size: 1rem;
  }

  .hero__btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .hero__image {
    width: 220px;
    height: 220px;
  }

  .section__title {
    font-size: 1.65rem;
  }

  .section__label {
    font-size: 0.75rem;
  }

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

  /* Full width on small screens — no orphan */
  .stat-card:last-child {
    grid-column: span 2;
  }

  .stat-card {
    padding: 1.25rem 0.5rem;
  }

  .stat-card__number {
    font-size: 2rem;
  }

  .stat-card__label {
    font-size: 0.75rem;
  }

  .gallery__grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 150px;
  }

  .gallery__item--tall {
    grid-row: span 1;
  }

  .contact__form {
    padding: 1.5rem;
  }

  .channel-card {
    padding: 1rem 1.25rem;
  }

  .channel-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .sanctuary__content {
    padding: 3rem 1.5rem;
  }

  .sanctuary__title {
    font-size: 1.65rem;
  }

  .sanctuary__stat {
    font-size: 2.5rem;
  }

  .awards__timeline {
    padding-left: 20px;
  }

  .award-card {
    padding: 1.25rem;
  }

  .award-card::before {
    left: -24px;
    width: 10px;
    height: 10px;
  }

  .navbar__mobile {
    width: 100%;
  }

  .lightbox__nav {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .lightbox__nav--prev,
  .lightbox__prev {
    left: 0.75rem;
  }

  .lightbox__nav--next,
  .lightbox__next {
    right: 0.75rem;
  }
}

/* ============================================================
   16. MISSING / SUPPLEMENTAL CLASSES
   ============================================================ */

/* Hero entrance animations — respects --delay CSS var */
.animate-hero {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: var(--delay, 0s);
}

/* Navbar CTA pill link */
.navbar__cta-link {
  background-color: var(--accent) !important;
  color: var(--bg-dark) !important;
  padding: 8px 20px !important;
  border-radius: 50px;
  font-weight: 600 !important;
}

.navbar__cta-link::after {
  display: none !important;
}

.navbar__cta-link:hover {
  background-color: var(--accent-light) !important;
  color: var(--bg-dark) !important;
}

/* Hero decorative background layer */
.hero__bg-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 35px,
    rgba(45, 80, 22, 0.04) 35px,
    rgba(45, 80, 22, 0.04) 70px
  );
}

/* Hero scroll indicator icon wrapper */
.hero__scroll-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

/* Contact detail list container */
.contact__details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Footer social section wrapper — flex column on its own */
.footer__social-wrapper {
  display: flex;
  flex-direction: column;
}

/* Sanctuary stat number span */
.sanctuary__stat-number {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.25rem;
}

/* Sanctuary stat container reset (was incorrectly sized) */
.sanctuary__stat {
  font-size: inherit;
  font-family: inherit;
  font-weight: inherit;
  color: inherit;
  line-height: inherit;
  margin-bottom: 0;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-accent {
  color: var(--accent);
}

.text-primary {
  color: var(--primary);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }

  .hero__image {
    animation: none;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */

.services {
  background-color: var(--bg-dark);
  padding: 6rem 0 5rem;
}

.services .section__label {
  color: var(--accent-light);
}

.services .section__title {
  color: var(--text-light);
}

.services .section__title span {
  color: var(--accent);
}

.services .section__subtitle {
  color: var(--text-muted);
}

.services .section__divider {
  background: var(--accent);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--bg-dark-2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(90, 125, 58, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card__icon {
  width: 56px;
  height: 56px;
  background: rgba(90, 125, 58, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--primary-lighter);
  transition: background 0.3s ease;
}

.service-card:hover .service-card__icon {
  background: rgba(90, 125, 58, 0.25);
}

.service-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.service-card__desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.services__cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 3rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   PORTFOLIO SECTION
   ========================================================================== */

.portfolio {
  background-color: var(--bg-dark-2);
  padding: 6rem 0 5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.portfolio .section__label {
  color: var(--accent-light);
}

.portfolio .section__title {
  color: var(--text-light);
}

.portfolio .section__title span {
  color: var(--accent);
}

.portfolio .section__subtitle {
  color: var(--text-muted);
}

.portfolio .section__divider {
  background: var(--accent);
}

.portfolio__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.75rem;
  margin-top: 3rem;
}

.portfolio__grid .portfolio-card {
  flex: 0 1 calc((100% - 3.5rem) / 3);
}

.portfolio-card {
  background: var(--bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  border-color: rgba(90, 125, 58, 0.45);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.portfolio-card__img-wrap {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.portfolio-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
  display: block;
}

.portfolio-card:hover .portfolio-card__img-wrap img {
  transform: scale(1.04);
}

.portfolio-card__link {
  margin-top: 0.9rem;
  align-self: flex-start;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

.portfolio-card__link:hover,
.portfolio-card__link:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}

.portfolio-card__body {
  padding: 1.4rem 1.5rem 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.portfolio-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-light);
}

.portfolio-card__summary {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.portfolio-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.75rem;
}

.portfolio-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: rgba(90, 125, 58, 0.18);
  color: var(--primary-lighter);
  border: 1px solid rgba(90, 125, 58, 0.3);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ==========================================================================
   PROCESS SECTION
   ========================================================================== */

.process {
  background-color: var(--bg-dark);
  padding: 6rem 0 5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.process .section__label {
  color: var(--accent-light);
}

.process .section__title {
  color: var(--text-light);
}

.process .section__title span {
  color: var(--accent);
}

.process .section__divider {
  background: var(--accent);
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
}

.process__steps::before {
  content: '';
  position: absolute;
  top: 2rem;
  left: calc(12.5% + 1rem);
  right: calc(12.5% + 1rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(90, 125, 58, 0.4) 20%, rgba(90, 125, 58, 0.4) 80%, transparent);
}

.process-step {
  text-align: center;
  position: relative;
  padding-top: 1rem;
}

.process-step__number {
  font-size: 2.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1.25rem;
  display: inline-block;
}

.process-step__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.6rem;
}

.process-step__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   RESPONSIVE — portfolio / services / process
   ========================================================================== */

@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio__grid .portfolio-card {
    flex-basis: calc((100% - 1.75rem) / 2);
  }

  .process__steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 3rem;
  }

  .process__steps::before {
    display: none;
  }
}

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

  .portfolio__grid .portfolio-card {
    flex-basis: 100%;
  }

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

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