/* ==========================================================================
   CSS Variables & Design System
   ========================================================================== */
:root {
  /* Colors */
  --bg-color: #F8F6F1;
  /* Off-white / warm cream */
  --bg-alt: #F0EDE6;
  /* Slightly tinted for sections */
  --primary-green: #2D6A4F;
  /* Luxury forest green */
  --sage-green: #74C69D;
  /* Soft sage green */
  --card-bg: #FFFFFF;
  /* Pure white for clay cards */
  --text-dark: #1A1A1A;
  /* Very dark grey for text */
  --text-light: #555555;
  /* Lighter grey for secondary text */

  /* Fonts */
  --font-heading: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Layout */
  --max-width: 1100px;
  --section-padding: 80px;
  --nav-height: 80px;

  /* Claymorphism Shadows */
  --clay-shadow: 6px 6px 0px var(--primary-green), 0px 8px 24px rgba(0, 0, 0, 0.08);
  --clay-shadow-hover: 8px 8px 0px var(--primary-green), 0px 12px 32px rgba(0, 0, 0, 0.12);
  --clay-shadow-press: 2px 2px 0px var(--primary-green), 0px 4px 12px rgba(0, 0, 0, 0.05);
  --clay-highlight: inset 2px 2px 4px rgba(255, 255, 255, 0.7);

  /* Outline Button Shadows */
  --outline-shadow: 4px 4px 0px var(--primary-green);
  --outline-shadow-hover: 6px 6px 0px var(--primary-green);
  --outline-shadow-press: 2px 2px 0px var(--primary-green);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-fast);
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 60px;
  height: 4px;
  background-color: var(--primary-green);
  border-radius: 4px;
}

.text-center {
  text-align: center;
}

.text-center::after {
  left: 50%;
  transform: translateX(-50%);
}

body.scrolling * {
  pointer-events: none !important;
}

/* ==========================================================================
   Interactive Dot Grid Background
   ========================================================================== */
#dot-grid-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  /* Let all clicks pass through to the canvas script listener */
  background: var(--bg-color);
  /* The base cream color */
}

.dot-grid__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ==========================================================================
   Claymorphism Base Utilities
   ========================================================================== */
.clay-card {
  background: var(--card-bg);
  border-radius: 24px;
  box-shadow: var(--clay-shadow);
  box-shadow: var(--clay-highlight), var(--clay-shadow);
  /* Need to combine for inset to work correctly */
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.clay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 20px;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
  text-align: center;
  border: none;
  background: var(--card-bg);
  /* Need explicit background */
}

.clay-btn.primary-btn {
  background-color: var(--primary-green);
  color: white;
  box-shadow: inset 2px 2px 4px rgba(255, 255, 255, 0.2), 6px 6px 0px rgba(0, 0, 0, 0.15), 0px 8px 24px rgba(45, 106, 79, 0.2);
}

.clay-btn.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: inset 2px 2px 4px rgba(255, 255, 255, 0.2), 8px 8px 0px rgba(0, 0, 0, 0.1), 0px 12px 32px rgba(45, 106, 79, 0.3);
  background-color: #245540;
}

.clay-btn.primary-btn:active {
  transform: scale(0.98);
  box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.2), 2px 2px 0px rgba(0, 0, 0, 0.2), 0px 4px 12px rgba(45, 106, 79, 0.1);
}

.clay-btn.outline-btn {
  background-color: var(--card-bg);
  color: var(--primary-green);
  border: 2px solid var(--primary-green);
  box-shadow: inset 2px 2px 4px rgba(255, 255, 255, 0.8), var(--outline-shadow);
}

.clay-btn.outline-btn:hover {
  transform: translateY(-2px);
  box-shadow: inset 2px 2px 4px rgba(255, 255, 255, 0.8), var(--outline-shadow-hover);
  background-color: #fcfcfc;
}

.clay-btn.outline-btn:active {
  transform: scale(0.98);
  box-shadow: inset 2px 2px 4px rgba(255, 255, 255, 0.8), var(--outline-shadow-press);
}

.clay-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--card-bg);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: inset 2px 2px 3px rgba(255, 255, 255, 0.8), 3px 3px 0px var(--primary-green), 0px 4px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.7);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

/* Base Interactions for cards/pills */
body:not(.scrolling) .clay-card:active:not(.placeholder-card),
body:not(.scrolling) .clay-pill:active,
body:not(.scrolling) .clay-btn.contact-btn:active {
  transform: scale(0.98);
}

/* Ensure clay card specific box shadows compress on active */
body:not(.scrolling) .clay-card:active:not(.placeholder-card) {
  box-shadow: var(--clay-highlight), var(--clay-shadow-press);
}

/* ==========================================================================
   Navbar
   ========================================================================== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(248, 246, 241, 0.85);
  /* Off-white with opacity */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  transition: border-bottom var(--transition-fast);
}

#navbar.scrolled {
  border-bottom: 2px solid var(--sage-green);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.nav-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-green);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-green);
  transition: width var(--transition-fast);
  border-radius: 2px;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--primary-green);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  color: var(--primary-green);
  cursor: pointer;
}

/* Mobile Menu hidden by default */
.mobile-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  width: 100%;
  background: rgba(248, 246, 241, 0.98);
  backdrop-filter: blur(12px);
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-150%);
  transition: transform 0.3s ease;
  z-index: 999;
}

.mobile-menu.active {
  transform: translateY(0);
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
}

.mobile-nav-links a {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: calc(var(--nav-height) + 40px);
  text-align: center;
  overflow: hidden;
  /* Remove opaque section backgrounds so the dot grid is visible underneath */
  background: transparent;
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-title {
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--primary-green);
  margin-bottom: 1.5rem;
}

.hero-tagline {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 3rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 4rem;
}

.hero-socials {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

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

.social-pill:hover {
  transform: translateY(-2px);
  color: var(--primary-green);
  box-shadow: inset 2px 2px 3px rgba(255, 255, 255, 0.8), 4px 4px 0px var(--sage-green), 0px 6px 12px rgba(0, 0, 0, 0.08);
}

.social-pill i {
  font-size: 1.125rem;
}

/* Decorative Blobs */
.decorative-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
  opacity: 0.4;
  pointer-events: none;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background-color: var(--sage-green);
  top: -100px;
  left: -100px;
}

.blob-2 {
  width: 300px;
  height: 300px;
  background-color: var(--primary-green);
  bottom: 0;
  right: -50px;
  opacity: 0.2;
}

/* ==========================================================================
   Combined About & Skills Section (Tabs)
   ========================================================================== */
.about-section {
  background-color: var(--bg-alt);
  /* slight tint */
}

.tabs-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
  min-height: 500px;
  /* Prevent layout shift when switching tabs */
}

.tab-header {
  display: inline-flex;
  background-color: var(--bg-color);
  padding: 8px;
  border-radius: 999px;
  gap: 8px;
  margin-bottom: 40px;
  box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.tab-btn {
  border: none;
  background: transparent;
  box-shadow: none;
  color: var(--text-light);
  padding: 12px 24px;
}

.tab-btn:hover {
  color: var(--primary-green);
  transform: none;
  /* Override default pill hover */
}

.tab-btn.active {
  background-color: var(--primary-green);
  color: white;
  box-shadow: inset 2px 2px 4px rgba(255, 255, 255, 0.2), 0px 4px 12px rgba(45, 106, 79, 0.2);
}

.tab-btn.active i {
  color: white;
}

.tab-content {
  display: none;
  animation: fadeInTab 0.4s ease-out;
}

.tab-content.active {
  display: block;
}

@keyframes fadeInTab {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* My Story Tab */
.about-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: center;
  text-align: left;
}

.about-card {
  aspect-ratio: 1;
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 24px;
}

.profile-image-wrapper {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 8px solid var(--primary-green);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-color);
}

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

.tab-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.about-text {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-pill {
  color: var(--primary-green);
}

/* Toolkit Tab */
.toolkit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: left;
}

.toolkit-group {
  padding: 24px;
  border-radius: 20px;
}

.toolkit-group h4 {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  border-bottom: 2px solid var(--bg-color);
  padding-bottom: 8px;
}

.tools-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Experience Tab */
.experience-timeline {
  max-width: 600px;
  margin: 0 auto;
}

.experience-item {
  padding: 32px;
  border-radius: 20px;
  text-align: left;
}

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

.exp-role {
  font-size: 1.25rem;
  color: var(--primary-green);
}

.exp-company {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.text-left {
  text-align: left;
}



/* ==========================================================================
   Projects Section
   ========================================================================== */
.projects-section {
  background-color: var(--bg-alt);
}

/* Two-column layout: list left, CardSwap right */
.projects-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* CardSwap wrapper — provides the perspective + fixed height for the canvas */
.cardswap-wrapper {
  position: relative;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-swap-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  perspective: 900px;
  overflow: visible;
}

/* Individual 3D cards inside CardSwap */
.cs-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 360px;
  min-height: 260px;
  border-radius: 24px;
  background: var(--card-bg);
  border: 1.5px solid rgba(116, 198, 157, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transform-style: preserve-3d;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.cs-card:hover {
  border-color: rgba(45, 106, 79, 0.5);
  box-shadow: 0 20px 60px rgba(45, 106, 79, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.cs-card-inner {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cs-card-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-green), var(--sage-green));
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  width: fit-content;
}

.cs-card-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
  margin: 0;
}

.cs-card-desc {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

.cs-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0.25rem;
}

.cs-card-tags span {
  background: rgba(116, 198, 157, 0.15);
  color: var(--primary-green);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
  border: 1px solid rgba(116, 198, 157, 0.3);
}

.cs-card-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-green);
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid rgba(116, 198, 157, 0.15);
}

/* ==========================================================================
   Featured Hero Info Panel (Left Side of CardSwap)
   ========================================================================== */
.featured-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
  height: 100%;
}

.featured-cover-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  border: 1.5px solid rgba(116, 198, 157, 0.3);
  background-color: var(--card-bg);
}

.featured-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-text-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.featured-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.1;
  margin: 0;
}

.featured-desc {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.6;
  max-width: 90%;
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   Bottom Projects Carousel
   ========================================================================== */
.projects-carousel-section {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(116, 198, 157, 0.2);
}

.carousel-title {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

.projects-carousel {
  display: flex;
  overflow-x: auto;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  /* space for scrollbar/shadows */
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar for clean look */
.projects-carousel::-webkit-scrollbar {
  display: none;
}

.projects-carousel {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.carousel-card {
  flex: 0 0 350px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.75rem;
  border-radius: 20px;
  cursor: pointer;
  background: var(--card-bg);
  border: 1px solid rgba(116, 198, 157, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.carousel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(45, 106, 79, 0.1);
  border-color: rgba(45, 106, 79, 0.4);
}

.carousel-content {
  flex-grow: 1;
  padding-right: 1rem;
}

.carousel-project-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.carousel-project-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carousel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.carousel-tags span {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary-green);
  background: rgba(116, 198, 157, 0.15);
  padding: 3px 8px;
  border-radius: 40px;
}

.carousel-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(116, 198, 157, 0.15);
  color: var(--primary-green);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.carousel-card:hover .carousel-link {
  background: var(--primary-green);
  color: white;
}

.project-card {
  display: flex;
  flex-direction: column;
  padding: 2.5rem 2rem;
  border-radius: 28px;
  height: 100%;
  cursor: pointer;
}

.project-content {
  flex-grow: 1;
}

.project-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.project-desc {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2rem;
}

.tiny-pill {
  padding: 4px 12px;
  font-size: 0.8rem;
  box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.8), 2px 2px 0px var(--sage-green);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--primary-green);
  align-self: flex-start;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.project-link:hover {
  gap: 10px;
  border-bottom: 2px solid var(--primary-green);
}

/* Placeholder Card Styling */
.placeholder-card {
  border: 2px dashed rgba(45, 106, 79, 0.3);
  box-shadow: none;
  background-color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.placeholder-card .project-title,
.placeholder-card .project-desc {
  color: var(--text-light);
  opacity: 0.8;
}

.project-card:not(.placeholder-card):hover {
  transform: translateY(-6px);
  box-shadow: var(--clay-highlight), var(--clay-shadow-hover);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-container {
  max-width: 800px;
  text-align: center;
}

.contact-copy {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 3rem;
}

.contact-card {
  padding: 3rem;
  border-radius: 32px;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.contact-btn {
  background-color: var(--bg-color);
  color: var(--text-dark);
  box-shadow: var(--clay-highlight), 4px 4px 0px var(--sage-green), 0px 4px 12px rgba(0, 0, 0, 0.05);
}

.contact-btn:hover {
  color: var(--primary-green);
  box-shadow: var(--clay-highlight), 6px 6px 0px var(--sage-green), 0px 8px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.status-indicator {
  display: flex;
  justify-content: center;
}

.status-pill {
  padding: 10px 20px;
  box-shadow: var(--clay-highlight), 3px 3px 0px rgba(0, 0, 0, 0.1);
}

.status-dot {
  width: 10px;
  height: 10px;
  background-color: #10B981;
  /* bright green for active status */
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #10B981;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  background-color: var(--bg-color);
  border-top: 2px solid var(--primary-green);
  padding: 2rem 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-container p {
  color: var(--text-light);
  font-weight: 500;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials a {
  color: var(--primary-green);
  font-size: 1.25rem;
}

.footer-socials a:hover {
  transform: translateY(-2px);
  color: var(--sage-green);
}

/* ==========================================================================
   Animations & Interactivity (Fade-ins)
   ========================================================================== */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, visibility;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: none;
}

/* Prevent Flash of Unstyled Content for GSAP BlurText elements */
.blur-text:not(.blur-inited) {
  opacity: 0;
}

/* ==========================================================================
   Project Details Page Styles
   ========================================================================== */

/* Gallery */
.project-gallery {
  padding: 2.5rem 2rem;
  margin-bottom: 2rem;
}

.gallery-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--bg-alt, #eee);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(45, 106, 79, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

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

.gallery-caption {
  display: block;
  padding: 0.6rem 0.9rem;
  font-size: 0.8rem;
  color: var(--text-light);
  background: var(--card-bg);
  font-family: var(--font-body);
}

/* Lightbox */
#lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#lightbox-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.lightbox-img {
  max-width: 85vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  text-align: center;
  font-family: var(--font-body);
}

.lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.project-details-section {
  padding-top: calc(var(--nav-height) + 60px);
  min-height: 100vh;
}

.project-header {
  padding: 2rem 2rem 1.75rem;
  margin-bottom: 2rem;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-title {
  animation: fadeSlideIn 0.6s ease forwards;
}

.project-hero-title {
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.project-subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto 2rem;
}

.project-tags-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.project-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.project-body {
  padding: 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.markdown-content {
  text-align: left;
  line-height: 1.85;
  font-size: 1.05rem;
  color: var(--text-dark);
}

/* Section headings */
.markdown-content .md-h1,
.markdown-content .md-h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-left: 0.85rem;
  border-left: 4px solid var(--primary-green);
  line-height: 1.3;
}

.markdown-content .md-h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 1.75rem;
  margin-bottom: 0.6rem;
}

/* Fallback for any h1/h2/h3 not using the new classes */
.markdown-content h1,
.markdown-content h2,
.markdown-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--primary-green);
}

/* Paragraphs */
.markdown-content p {
  margin-bottom: 1.2rem;
  color: var(--text-light);
}

/* Bold */
.markdown-content strong {
  color: var(--text-dark);
  font-weight: 700;
}

/* Lists */
.markdown-content .md-list,
.markdown-content ul {
  margin: 0 0 1.5rem 0;
  padding-left: 1.4rem;
  color: var(--text-light);
}

.markdown-content li {
  margin-bottom: 0.45rem;
  padding-left: 0.25rem;
}

.markdown-content li::marker {
  color: var(--primary-green);
}

/* Blockquote */
.markdown-content .md-quote {
  background: rgba(45, 106, 79, 0.07);
  border-left: 4px solid var(--sage-green);
  border-radius: 0 12px 12px 0;
  padding: 0.75rem 1.25rem;
  margin: 1.25rem 0;
  color: var(--text-light);
  font-style: italic;
}

/* Horizontal divider */
.markdown-content .md-divider {
  border: none;
  border-top: 2px solid rgba(45, 106, 79, 0.15);
  margin: 2.5rem 0;
}

/* Tables */
.markdown-content .md-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  border-radius: 14px;
  overflow: hidden;
  font-size: 0.95rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

.markdown-content .md-table thead {
  background: var(--primary-green);
  color: white;
}

.markdown-content .md-table th {
  padding: 0.75rem 1.1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.markdown-content .md-table td {
  padding: 0.7rem 1.1rem;
  color: var(--text-light);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.markdown-content .md-table tbody tr:last-child td {
  border-bottom: none;
}

.markdown-content .md-table tbody tr:nth-child(even) {
  background: rgba(45, 106, 79, 0.04);
}

.markdown-content .md-table tbody tr:hover {
  background: rgba(116, 198, 157, 0.12);
}

/* Code blocks */
.code-block-wrapper {
  background: #1a1a1a;
  border-radius: 14px;
  padding: 1.5rem;
  margin: 1.75rem 0;
  overflow-x: auto;
}

.code-block-wrapper code {
  font-family: 'JetBrains Mono', 'Fira Mono', monospace;
  color: #f8f8f2;
  font-size: 0.88rem;
  line-height: 1.7;
}

/* Inline code */
.markdown-content code:not(pre code) {
  background: rgba(45, 106, 79, 0.08);
  padding: 0.18rem 0.45rem;
  border-radius: 6px;
  font-family: 'JetBrains Mono', 'Fira Mono', monospace;
  color: var(--primary-green);
  font-size: 0.88em;
  border: 1px solid rgba(45, 106, 79, 0.2);
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 900px) {
  .projects-layout {
    grid-template-columns: 1fr;
  }

  .cardswap-wrapper {
    display: none;
    /* Hide CardSwap on smaller viewports */
  }
}

/* =========================================================================
   CONTACT SECTION (REDESIGNED)
   ========================================================================= */
.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
}

.contact-form-wrapper {
  width: 100%;
  padding: 3rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--card-bg);
}

.form-title {
  font-family: serif;
  /* Matching reference image style */
  font-size: 2.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
  line-height: 1.5;
}

.contact-form {
  width: 100%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: flex;
  gap: 1.25rem;
  width: 100%;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: transparent;
  color: var(--text-dark);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-light);
  opacity: 0.7;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--text-dark);
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
}

.textarea-group {
  position: relative;
}

.char-counter {
  position: absolute;
  bottom: 15px;
  right: 15px;
  font-size: 0.75rem;
  color: var(--text-light);
  pointer-events: none;
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  border-radius: 8px;
  background: var(--primary-green);
  color: var(--card-bg);
  font-family: inherit;
  font-weight: 500;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
  margin-top: 0.5rem;
}

.submit-btn:hover {
  transform: translateY(-2px);
  background: var(--sage-green);
  color: var(--text-dark);
  opacity: 0.95;
}

.submit-btn:active {
  transform: translateY(0);
}

.contact-socials-row {
  display: flex;
  gap: 1.5rem;
  margin-top: 2.5rem;
  justify-content: center;
}

.social-icon {
  color: var(--text-dark);
  font-size: 1.5rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.social-icon:hover {
  transform: translateY(-3px);
  color: var(--primary-green);
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas>a {
    width: 100%;
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .about-card {
    max-width: 300px;
    margin: 0 auto;
    aspect-ratio: 1;
  }

  .about-container .text-left {
    text-align: center;
  }

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

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

  .contact-card {
    padding: 2rem;
    flex-direction: column;
    text-align: center;
  }

  .contact-btn {
    width: 100%;
  }

  .hero-title {
    font-size: 2.75rem;
    word-break: break-word;
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }

  .project-header {
    padding: 1.5rem 1rem 1.25rem;
    margin-bottom: 1.5rem;
  }

  .project-hero-title {
    font-size: 2.25rem;
    word-break: break-word;
  }

  .project-body {
    padding: 2rem 1rem;
  }

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

  .gallery-item img {
    height: auto;
    aspect-ratio: 16/9;
  }

  /* Carousel Refinements */
  .carousel-card {
    flex: 0 0 280px;
    /* Smaller cards to show more of the next one */
    padding: 1.25rem;
  }

  .carousel-project-title {
    font-size: 1.1rem;
  }

  .carousel-project-desc {
    font-size: 0.85rem;
    -webkit-line-clamp: 3;
    /* More space for text */
    line-clamp: 3;
  }

  /* About Section Refinements */
  .about-section {
    padding: 40px 0;
  }

  .tabs-wrapper {
    padding: 1.5rem 1rem;
    margin: 0 10px;
  }

  .tab-header {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .tab-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
    flex: 1 1 auto;
  }

  .about-container {
    gap: 1.5rem;
  }

  .about-content {
    text-align: center;
  }

  .tab-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .about-text {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .about-tags {
    justify-content: center;
  }

  .toolkit-group {
    padding: 1.25rem;
  }

  .toolkit-group h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  /* Contact Form Mobile Refinements */
  .contact-form-wrapper {
    padding: 2rem 1.5rem;
  }

  .form-row {
    flex-direction: column;
  }
}