/* ==========================================================================
   Global & Base Styles
   ========================================================================== */
html {
  scroll-behavior: smooth;
  font-family: 'Lora', serif;
}

body {
  color: #1F2937;
  background-color: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

html.dark body {
  color: #F1F5F9;
  background-color: #0A120F;
}


/* ==========================================================================
   Theme Button Component (.theme-btn)
   Reusable across all sections
   ========================================================================== */
.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  background-color: #20B486;
  color: #FFFFFF;
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.25rem;
  border-radius: 3rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.theme-btn:hover {
  background-color: #148b67;
  transform: translateY(-2px);
  color: #FFFFFF;
}

.theme-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(32, 180, 134, 0.2);
}

/* Micro-interaction on icon inside button */
.theme-btn i,
.theme-btn svg {
  transition: transform 0.25s ease;
  width: 1.1rem;
  height: 1.1rem;
}

.theme-btn:hover i,
.theme-btn:hover svg {
  transform: translateX(2px) translateY(-2px);
}

/* Secondary / Outline Button Variant */
.theme-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  background-color: #FFFFFF;
  color: #20B486;
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.25rem;
  border-radius: 3rem;
  border: 1.5px solid #20B486;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.theme-btn-outline:hover {
  background-color: #E8F8F3;
  color: #179A72;
  border-color: #179A72;
  transform: translateY(-2px);
}

html.dark .theme-btn-outline {
  background-color: transparent;
  color: #20B486;
  border-color: #20B486;
}

html.dark .theme-btn-outline:hover {
  background-color: rgba(32, 180, 134, 0.15);
  color: #2dd4bf;
  border-color: #2dd4bf;
}

/* Micro-interaction on outline button icon */
.theme-btn-outline i,
.theme-btn-outline svg {
  transition: transform 0.25s ease;
  width: 1.1rem;
  height: 1.1rem;
}

.theme-btn-outline:hover i,
.theme-btn-outline:hover svg {
  transform: scale(1.1);
}

@media (max-width: 500px) {

  .theme-btn,
  .theme-btn-outline {
    padding: 0.65rem 1.3rem;
    font-size: 0.7rem !important;
  }
}

/* Navigation Active Link Indicator */
.nav-link {
  position: relative;
  font-weight: 500;
  color: #374151;
  transition: color 0.2s ease;
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: #20B486;
}

.nav-link.active {
  color: #20B486;
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2.5px;
  background-color: #20B486;
  border-radius: 9999px;
}

/* ==========================================================================
   Social Icon Buttons
   ========================================================================== */
.social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 9999px;
  background-color: #FFFFFF;
  border: 1px solid #E5E7EB;
  color: #20B486;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.04);
  transition: all 0.25s ease;
  text-decoration: none;
}

.social-icon-link:hover {
  background-color: #E8F8F3;
  border-color: #20B486;
  color: #179A72;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(32, 180, 134, 0.18);
}

html.dark .social-icon-link {
  background-color: #131E19;
  border-color: rgba(255, 255, 255, 0.1);
  color: #20B486;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

html.dark .social-icon-link:hover {
  background-color: #20B486;
  border-color: #20B486;
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(32, 180, 134, 0.35);
}

/* ==========================================================================
   Theme Switcher Button
   ========================================================================== */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 9999px;
  background-color: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #475569;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.theme-toggle-btn:hover {
  background-color: #E2E8F0;
  color: #20B486;
  transform: scale(1.05);
}

html.dark .theme-toggle-btn {
  background-color: #131E19;
  border-color: rgba(32, 180, 134, 0.25);
  color: #FBBF24; /* Warm luminous amber/gold for sun icon */
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.12);
}

html.dark .theme-toggle-btn:hover {
  background-color: #182821;
  border-color: #20B486;
  color: #FCD34D;
  transform: scale(1.05);
}


/* ==========================================================================
   Floating Keyframe Animations
   ========================================================================== */
@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes float-reverse {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(7px);
  }
}

.animate-float {
  animation: float 4.5s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float 5s ease-in-out 1.2s infinite;
}

.animate-float-reverse {
  animation: float-reverse 4.8s ease-in-out 0.6s infinite;
}

/* ==========================================================================
   Signature Font Style
   ========================================================================== */
.font-signature {
  font-family: 'Pinyon Script', cursive;
  font-style: normal;
}


.typing-text::after {
  content: '|';
  margin-left: 3px;
  color: #111827;
  animation: blink 0.75s step-end infinite;
}

html.dark .typing-text::after {
  color: #20B486;
}

@keyframes blink {

  from,
  to {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0%);
  }

  100% {
    transform: translateX(-100%);
  }
}

@keyframes marquee-reverse {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(0%);
  }
}


.lightbox-modal {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.media-filter-chip.active {
  background-color: #20B486;
  color: #FFFFFF;
  border-color: #20B486;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #F4FBF8;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #20B486;
  border-radius: 4px;
}

/* modern card hover */
.project-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px -10px rgba(11, 43, 32, 0.15);
}

.video-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
}

.video-thumb video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge-pill {
  background: rgba(32, 180, 134, 0.12);
  color: #0B2B20;
  font-weight: 600;
  padding: 0.2rem 0.8rem;
  border-radius: 40px;
  font-size: 0.65rem;
  letter-spacing: 0.03em;
}

.stagger-2 {
  --gap: 20px;
  --offset: 20px;
  display: grid;
  align-items: start;
  grid-template-columns: 1fr;
  column-gap: var(--gap);
  row-gap: var(--gap);
}

@media (min-width: 640px) {
  .stagger-2 {
    --gap: 24px;
    --offset: 24px;
    grid-template-columns: repeat(2, 1fr);
    row-gap: calc(var(--gap) - var(--offset));
  }

  .stagger-2>*:nth-child(even) {
    margin-top: var(--offset);
  }
}

/* images: 2 columns mobile (alternate) / 3 columns sm+
           pattern per row: normal, bottom, normal */
.stagger-3 {
  --gap: 20px;
  --offset: 20px;
  display: grid;
  align-items: start;
  grid-template-columns: repeat(2, 1fr);
  column-gap: var(--gap);
  row-gap: calc(var(--gap) - var(--offset));
}

.stagger-3>*:nth-child(even) {
  margin-top: var(--offset);
}

@media (min-width: 640px) {
  .stagger-3 {
    --gap: 24px;
    --offset: 24px;
    grid-template-columns: repeat(3, 1fr);
  }

  /* reset the mobile alternate… */
  .stagger-3>*:nth-child(even) {
    margin-top: 0;
  }

  /* …and drop only the middle card of each row */
  .stagger-3>*:nth-child(3n+2) {
    margin-top: var(--offset);
  }
}

/* ============================================================
           REEL TAG + EXPAND BUTTON (opens reel in the media viewer)
           ============================================================ */
.reel-tag {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 10;
  pointer-events: none;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(11, 43, 32, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #FFFFFF;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.reel-expand {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 10;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(11, 43, 32, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.reel-expand:hover {
  background: #20B486;
  border-color: #20B486;
  color: #0B2B20;
}

/* ============================================================
           FULLSCREEN FIX — show the WHOLE video (contain, not cover)
           ============================================================ */
video:fullscreen,
video:-webkit-full-screen,
.video-thumb:fullscreen video,
.video-thumb:-webkit-full-screen video {
  object-fit: contain !important;
  background: #000000;
}

.video-thumb:fullscreen,
.video-thumb:-webkit-full-screen {
  aspect-ratio: auto !important;
  border-radius: 0;
}

/* ============================================================
           MEDIA VIEWER (lightbox) — buttons, counter
           ============================================================ */
.lb-btn {
  position: absolute;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.25s ease;
}

.lb-btn:hover {
  background: #20B486;
  border-color: #20B486;
  color: #0B2B20;
}

.lb-close {
  top: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  font-size: 1rem;
}

.lb-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  font-size: 1rem;
}

.lb-prev {
  left: 0.75rem;
}

.lb-next {
  right: 0.75rem;
}

@media (max-width: 640px) {
  .lb-nav {
    width: 38px;
    height: 38px;
  }

  .lb-prev {
    left: 0.4rem;
  }

  .lb-next {
    right: 0.4rem;
  }
}


.case-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #F4FBF8 0%, #FFFFFF 58%, #E8F8F3 100%);
}

.case-hero::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: rgba(32, 180, 134, .10);
  filter: blur(4px);
  right: -170px;
  top: -180px;
}

.case-hero::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  border: 1px solid rgba(32, 180, 134, .16);
  left: -100px;
  bottom: -120px;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: #20B486;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: #20B486;
  border-radius: 999px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 5.4rem);
  line-height: .96;
  letter-spacing: -.055em;
  font-weight: 900;
  color: #111827;
}

.hero-title .accent {
  color: #20B486;
}

.hero-description {
  max-width: 660px;
  color: #6B7280;
  font-size: clamp(.92rem, 1.4vw, 1.08rem);
  line-height: 1.85;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem .85rem;
  border: 1px solid rgba(32, 180, 134, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: #374151;
  font-size: .7rem;
  font-weight: 700;
}

.media-shell {
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(229, 231, 235, .9);
  box-shadow: 0 24px 70px -35px rgba(11, 43, 32, .22);
  border-radius: 28px;
}

.media-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.15rem;
  border-bottom: 1px solid #E5E7EB;
}

.media-toolbar-title {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.media-toolbar-title .icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #E8F8F3;
  color: #20B486;
}

.media-filter-chip {
  background: #FFFFFF;
}

.media-filter-chip.active {
  background-color: #20B486 !important;
  color: #FFFFFF !important;
  border-color: #20B486 !important;
  box-shadow: 0 8px 18px rgba(32, 180, 134, .18);
}

.gallery-section {
  padding: 1.15rem;
}

.gallery-section+.gallery-section {
  padding-top: .25rem;
}

.gallery-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .8rem;
}

.gallery-heading .label {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: #374151;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.gallery-heading .label i {
  color: #20B486;
}

.modern-project-card {
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  box-shadow: 0 12px 35px -25px rgba(11, 43, 32, .30);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.modern-project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(32, 180, 134, .42);
  box-shadow: 0 22px 42px -25px rgba(11, 43, 32, .32);
}

.modern-project-card .video-thumb,
.modern-project-card .relative.aspect-\[4\/5\] {
  border-radius: 18px;
}

.info-panel {
  position: relative;
}

.info-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 28px;
  overflow: hidden;
}

.info-card-top {
  padding: 1.6rem;
}

.info-number {
  color: #20B486;
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .18em;
}

.info-title {
  margin-top: .6rem;
  color: #111827;
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  line-height: 1;
  letter-spacing: -.045em;
  font-weight: 900;
}

.info-subtitle {
  margin-top: .8rem;
  color: #6B7280;
  font-size: .76rem;
  font-weight: 700;
}

.info-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem;
  margin-top: 1.35rem;
}

.info-meta>div {
  padding: .85rem;
  border-radius: 16px;
  background: #F4FBF8;
  border: 1px solid rgba(229, 231, 235, .9);
}

.info-meta>div:last-child {
  grid-column: 1 / -1;
}

.info-label {
  display: block;
  margin-bottom: .25rem;
  color: #6B7280;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.info-value {
  color: #111827;
  font-size: .73rem;
  line-height: 1.45;
  font-weight: 800;
}

.info-divider {
  height: 1px;
  background: #E5E7EB;
  margin: 1.35rem 0;
}

.what-title {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .55rem;
  color: #20B486;
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .15em;
}

.what-title::after {
  content: "";
  width: 24px;
  height: 2px;
  background: #20B486;
  border-radius: 99px;
}

.info-copy {
  color: #6B7280;
  font-size: .76rem;
  line-height: 1.85;
}

.deliverable {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  color: #111827;
  font-size: .72rem;
  line-height: 1.5;
  font-weight: 700;
}

.deliverable+.deliverable {
  margin-top: .7rem;
}

.deliverable .check {
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #E8F8F3;
  color: #20B486;
  font-size: .58rem;
}

.impact-modern {
  position: relative;
  overflow: hidden;
  background: #0B2B20;
  color: #FFFFFF;
  border-radius: 28px;
  box-shadow: 0 24px 60px -32px rgba(11, 43, 32, .45);
}

.impact-modern::before {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  border-radius: 999px;
  right: -110px;
  bottom: -120px;
  background: rgba(32, 180, 134, .22);
  filter: blur(25px);
}

.impact-modern .impact-inner {
  position: relative;
  z-index: 1;
  padding: 1.6rem;
}

.impact-modern .impact-label {
  color: #20B486;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.impact-modern h3 {
  margin-top: .7rem;
  font-size: 1.25rem;
  line-height: 1.2;
  font-weight: 800;
}

.impact-modern p {
  margin-top: .7rem;
  color: rgba(255, 255, 255, .7);
  font-size: .75rem;
  line-height: 1.8;
}

.impact-modern a {
  margin-top: 1.2rem;
  width: 100%;
  justify-content: center;
  background: #FFFFFF;
  color: #0B2B20;
}

.impact-modern a:hover {
  background: #20B486;
  color: #0B2B20;
}

@media (max-width: 767px) {
  .media-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .info-meta {
    grid-template-columns: 1fr;
  }

  .info-meta>div:last-child {
    grid-column: auto;
  }

  .gallery-section {
    padding: .85rem;
  }
}