/* =========================================
   1. Variables & Reset
   ========================================= */
:root {
  /* Colors */
  --color-deep-purple: #3d1f3d;
  --color-warm-cream: #faf6f1;
  --color-light-beige: #f5f1e8;
  --color-rust: #1A7A7A; /* Rich, accessible Teal */
  --color-rust-hover: #125656; /* Darker Teal for hover states */
  --color-dark-teal: #1a4d4d;
  --color-text: #000035; 
  --color-white: #ffffff;
  --color-border: #e8e4dc;
  --color-link: #006596;

  /* Typography */
  --font-heading: 'Nunito', sans-serif;
  --font-body: 'Inter', sans-serif;

  
  /* Layout */
  --radius: 12px;
  --container-max: 1200px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

/* =========================================
   2. Typography & Alignment
   ========================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-deep-purple);
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); margin-bottom: 1.5rem; }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.5rem; }

/* Global Paragraphs */
p { 
  margin-bottom: 1.5rem; 
  text-align: left; 
}

/* Full-width sub-paragraphs (Fixes the "stops in the middle" issue) */
.hero-lead,
.section-intro,
.hero-subtitle,
.page-hero p {
  text-align: left;
  max-width: 100%;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-white);
}

/* Fix bullet alignment in cards */
.info-card ul {
  padding-left: 1.2rem;
  margin: 0 0 1rem 0;
}

.info-card ul li {
  margin-bottom: 0.5rem;
  text-align: left;
}

/* =========================================
   3. Accessibility & Utilities
   ========================================= */
.skip-link {
  position: absolute;
  top: -9999px;
  left: 1rem;
  background: var(--color-deep-purple);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  z-index: 100;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--color-rust);
  outline-offset: 3px;
  border-radius: 2px;
}

.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;
}

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

/* =========================================
   4. Layout & Container
   ========================================= */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 5rem 0; }

.section-white { background-color: var(--color-white); padding: 6rem 0; }
.section-beige { background-color: var(--color-light-beige); padding: 6rem 0; }

/* =========================================
   Rebuilt Navigation (Desktop & Mobile)
   ========================================= */

/* Header Base */
.site-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

/* Logo */
.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--color-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo-dot {
  display: inline-block;
  width: 12px; height: 12px;
  background: var(--color-rust);
  border-radius: 50%;
}

/* Desktop Nav List */
.nav-list {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
  margin: 0; padding: 0;
}

.nav-list > li > a, 
.dropdown-toggle {
  text-decoration: none;
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
}

.nav-list > li > a:hover, 
.dropdown-toggle:hover {
  color: var(--color-rust);
}

/* ACTIVE STATE INDICATOR (Using .active class) */
.nav-list > li > a.active {
  color: var(--color-rust) !important;
  font-weight: 700 !important;
  position: relative; 
}
.nav-list > li > a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--color-rust);
  border-radius: 2px;
}

/* Desktop Dropdowns */
.nav-item-has-dropdown { position: relative; }
.dropdown-arrow { font-size: 0.8em; transition: transform 0.2s ease; }

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  min-width: 220px;
  list-style: none;
  padding: 0.5rem 0;
  opacity: 0; 
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 100;
}

/* Show dropdown on hover (Desktop) */
@media (min-width: 969px) {
  .nav-item-has-dropdown:hover .dropdown-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
  }
  .nav-item-has-dropdown:hover .dropdown-arrow { transform: rotate(180deg); }
}

.dropdown-menu li a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}
.dropdown-menu li a:hover {
  background: var(--color-light-beige);
  color: var(--color-rust);
}

/* Mobile Menu Button (Hidden on Desktop) */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}
.hamburger {
  display: block;
  width: 24px; height: 2px;
  background: var(--color-text);
  position: relative;
  transition: all 0.3s ease;
}
.hamburger::before, .hamburger::after {
  content: '';
  position: absolute;
  width: 24px; height: 2px;
  background: var(--color-text);
  left: 0;
  transition: all 0.3s ease;
}
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

/* Mobile Menu Active State (X icon) */
body.menu-open .hamburger { background: transparent; }
body.menu-open .hamburger::before { top: 0; transform: rotate(45deg); }
body.menu-open .hamburger::after { top: 0; transform: rotate(-45deg); }

/* =========================================
   Mobile Navigation Styles
   ========================================= */
@media (max-width: 968px) {
  .mobile-menu-btn { display: block; }

  .main-nav {
    position: fixed;
    top: 0; right: 0;
    width: 100%; height: 100vh;
    background: var(--color-white);
    padding: 5rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
    z-index: 999;
  }

  body.menu-open .main-nav { transform: translateX(0); }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }

  .nav-list > li { width: 100%; border-bottom: 1px solid var(--color-border); }
  
  .nav-list > li > a, .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 1.25rem 0;
    font-size: 1.125rem;
  }

  /* Mobile Dropdowns (Accordion style) */
  .dropdown-menu {
    position: static;
    opacity: 1; visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 1rem 1rem;
    display: none; /* Hidden by default on mobile */
    background: var(--color-light-beige);
    border-radius: 8px;
    margin-bottom: 1rem;
  }
  
  .dropdown-menu.is-open { display: block; }
  
  .dropdown-menu li a { padding: 0.75rem 0; }
}

/* =========================================
   6. Buttons
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 100px;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary { background: var(--color-rust); color: var(--color-white); }
.btn-primary:hover { background: var(--color-link); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(201, 110, 78, 0.3); }

.btn-secondary { background: var(--color-dark-teal); color: var(--color-white); }
.btn-secondary:hover { background: var(--color-link); transform: translateY(-2px); }

.btn-small { padding: 0.625rem 1.25rem; font-size: 0.875rem; }
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }


.btn-primary .caret {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;  
}
.btn-secondary .caret {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;  
}

.btn-primary:hover .caret {
  transform: translateX(3px);
}
 

.card-content .btn-link {
    color: var(--color-link); 
    font-weight: 600;
    display: inline-flex; 
    align-items: baseline; 
    gap: 0.5rem;
    text-decoration: none; 
    transition: opacity 0.3s ease;
    line-height: 1;
    font-size: 16px
}
.card-content .btn-link:hover {
    color: var(--color-rust);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
    opacity: .85;
}
.card-content .btn-link .caret { 
    stroke: var(--color-link);
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    display: block;
 }
 .card-content .btn-link:hover .caret {
  transform: translateX(2px);
  transition: transform 0.2s ease;
}

/* =========================================
   7. Hero Section
   ========================================= */
.hero { background: var(--color-warm-cream); padding: 5rem 0 6rem; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-content { max-width: 600px; }



.hero h1 { color: var(--color-deep-purple); margin-bottom: 1.5rem; }
.hero-subtitle { font-size: 1.125rem; color: var(--color-text-muted); margin-bottom: 2rem; line-height: 1.6; }

.hero-visual { 
  position: relative; 
  height: 400px;
 }
.image-stack { 
  position: relative; 
  width: 100%; 
  height: 100%;
  left: 40px;

}

.stack-card {
  position: absolute;
  width: 280px; 
  height: 320px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-light-beige);
  box-shadow: 0 8px 24px rgba(31, 26, 27, 0.05);
}

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

.stack-card-1 { 
  width: 320px;
  height: 280px;
  top: 20px; 
  left: 20px;
  transform: rotate(-4deg);
 }
.stack-card-2 { 
  width: 300px;
  height: 240px;
  top: 60px; 
  left: 180px; 
  transform: rotate(6deg);
 }
.stack-card-3 { 
  width: 260px;
  height: 220px;
  top: 160px; 
  left: 100px;
  transform: rotate(-2deg);
 }

/* =========================================
   8. Work/Projects Section
   ========================================= */
.section-work { padding: 5rem 0; background: var(--color-white); }
.section-header { margin-bottom: 3rem; }
.section-header h2 { margin-bottom: 0.5rem; }
.heading-underline { width: 60px; height: 3px; background: var(--color-rust); }
.section-header-center { text-align: center; }
.heading-underline-center { margin: 0 auto; }

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

.project-card {
  background: var(--color-white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%; 
  display: flex;
  flex-direction: column;
}
.project-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); }

.card-image {
  width: 100%;
  height: 240px; /* Fixed height ensures all images start and end at the same place */
  overflow: hidden;
  background-color: var(--color-light-beige); /* Nice fallback while loading */
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the image fills the box without distorting */
}
.card-content {
  padding: 1.5rem;
  flex-grow: 1; /* Expands to fill the remaining height of the card */
  display: flex;
  flex-direction: column; }

.card-tag {
  display: inline-block;
  background: var(--color-light-beige);
  color: var(--color-rust);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.card-content h3 { font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--color-deep-purple); }
.card-content p {font-size: 0.9375rem;
  color: var(--color-text); /* Updated to your new dark navy for readability */
  margin-bottom: 1.5rem;
  line-height: 1.5; }

.card-metrics { display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto; }

.metric-pill {
  display: inline-block;
  background: var(--color-white);
  color: var(--color-deep-purple);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  border-radius: 100px;
  border: 1px solid var(--color-border);
  margin-top: 1rem;
}

/* =========================================
   9. Quote Section
   ========================================= */
.quote-section {
  position: relative;
  background:
    linear-gradient(to bottom, transparent 60%, rgba(255,255,255,0.08)),
    radial-gradient(circle at -5% -10%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 105% 90%, rgba(255,255,255,0.08) 0%, transparent 50%),
    #0f4c4c;
  border-radius: 24px;
  box-shadow: 0 18px 48px -12px rgba(0,0,0,0.15), 0 6px 18px -6px rgba(0,0,0,0.1);
  overflow: hidden;
  padding: 6rem 2rem;
  text-align: center;
  margin: 4rem 0;
  color: #ffffff;
}

.quote-section blockquote {
  background: transparent !important;
  border-left: none !important;
  margin: 0 auto;
  padding: 0;
  max-width: 800px;
}

.quote-icon {
  font-family: var(--font-heading);
  font-size: 4rem;
  color: #ffffff;
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 2rem;
  display: block;
}

.quote-section blockquote p {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: #ffffff !important;
}

.quote-section cite {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff !important;
  opacity: 0.9;
  display: inline-block;
}

.quote-section cite::before {
  content: "";
  display: inline-block;
  width: 32px; height: 1px;
  background: #ffffff;
  margin-right: 12px;
  vertical-align: middle;
  opacity: 0.6;
}

@media (max-width: 768px) {
  .quote-section { padding: 4rem 1.5rem; border-radius: 16px; margin: 2rem 1rem; }
  .quote-section blockquote p { font-size: 1.25rem; }
}

/* =========================================
   10. Approach Section
   ========================================= */
.section-approach { padding: 5rem 0; background: var(--color-white); }
.approach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; margin-top: 3rem; list-style: none; }
.approach-item { text-align: center; }

.approach-icon {
  width: 56px; height: 56px;
  background: var(--color-rust);
  color: var(--color-white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
}

.approach-item h3 { font-size: 1.25rem; margin-bottom: 1rem; color: var(--color-deep-purple); }
.approach-item p { font-size: 0.9375rem; color: var(--color-text-muted); line-height: 1.6; }

/* =========================================
   11. Case Study Specific Styles
   ========================================= */
.hero-case-study {
  background: var(--color-deep-purple);
  color: var(--color-white);
  padding: 5rem 0 4rem;
}
.hero-case-study h1 { color: var(--color-white); }
.hero-case-study .lead { color: rgba(255, 255, 255, 0.9); max-width: 800px; }

.project-meta {
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--color-rust); margin-bottom: 1rem; display: block;
}

.project-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem; margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Hero Stats Container (Side-by-side layout) */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columns for the 4 stats */
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive: Stack on smaller screens */
@media (max-width: 968px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .hero-stats { grid-template-columns: 1fr; }
}

/* Individual Stat Item */
.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #dcd6ce;
}

.stat-value {
  font-size: 1.125rem; /* 18px */
  font-weight: 600;
  color: #ffffff; /* Pure white for max contrast */
}

.lead { font-size: 1.125rem; color: var(--color-text-muted); max-width: 800px; }

/* Grids & Cards */
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 2rem; }
.three-column { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2rem; }

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

.stacked-cards { display: flex; flex-direction: column; gap: 1.5rem; }

.info-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  
}
.info-card h3 { margin-top: 0; margin-bottom: 0.75rem; font-size: 1.15rem; color: var(--color-deep-purple); }
.info-card p,
.info-card ul,
.info-card ul li {
  margin-bottom: 0;
  color: var(--color-text); /* Changes from muted gray to your primary dark navy */
  font-size: 1.125rem; /* Bumps it up to 18px */
  line-height: 1.6;
}
.metric-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--color-border);
}
.metric-card .metric-value { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 800; color: var(--color-rust); display: block; margin-bottom: 0.5rem; }
.metric-card .metric-label { font-size: 0.875rem; color: var(--color-text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; }

.section-label { 
  font-size: 0.95rem; 
  font-weight: 700; 
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-rust); margin-bottom: 0.5rem; display: block; }

.section-label-hero{
    font-size: 0.95rem; 
   font-weight: 700; 
   text-transform: uppercase; 
   letter-spacing: 0.05em; 
   color: var(--color-warm-cream); 
   margin-bottom: 0.5rem; 
   display: block; }



.project-details, .checklist { list-style: none; padding: 0; }
.project-details li { margin-bottom: 0.5rem; }
.checklist li { margin-bottom: 0.5rem; padding-left: 1.5rem; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--color-rust); font-weight: bold; }

.milestone-box { border-left: 4px solid var(--color-rust); padding: 1.5rem; background: var(--color-white); margin-top: 1.5rem; }
.milestone-box h4 { margin-bottom: 0.5rem; }
.milestone-box p { margin-bottom: 0; }

/* Wireframes */
.wireframe-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-top: 3rem; }

.wireframe-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-white);
  position: relative;
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wireframe-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.08); }

.wireframe-card img {
  width: 100%; height: 280px;
  object-fit: contain;
  background-color: var(--color-white);
  padding: 1rem;
  display: block;
}

.wireframe-card-content, .wireframe-card > div { padding: 1.5rem; }
.wireframe-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.wireframe-card p { font-size: 1rem; margin-bottom: 0; }

/* Modal X Button Fix */
.close-modal {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  width: 48px; height: 48px;
  background: var(--color-white);
  color: var(--color-deep-purple);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.2s ease;
}
.close-modal:hover { background: var(--color-rust); color: var(--color-white); }
dialog.image-modal { position: relative; border: none; border-radius: 16px; padding: 0; max-width: 90vw; max-height: 90vh; background: transparent; }
dialog.image-modal::backdrop { background: rgba(0, 0, 0, 0.85); }
.modal-image { max-width: 100%; max-height: 85vh; display: block; border-radius: 16px; }

/* Progress Bars & Badges */
.progress-item { margin-bottom: 1.5rem; }
.progress-header { display: flex; justify-content: space-between; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.9rem; }
.progress-track { background: var(--color-light-beige); height: 8px; border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 4px; }
.progress-fill-rust { background-color: var(--color-rust); }
.progress-fill-teal { background-color: #4a7c7c; }
.progress-fill-orange { background-color: #d97757; }

.finding-heading { color: var(--color-text); display: flex; align-items: center; gap: 0.75rem; font-size: 1.1rem; margin-bottom: 0.5rem; }
.finding-badge { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; font-size: 0.75rem; font-weight: 700; color: white; flex-shrink: 0; }
.badge-critical { background-color: var(--color-rust); }
.badge-medium { background-color: var(--color-text-muted); }

.theme-quote { background: var(--color-light-beige); padding: 1rem; border-radius: 8px; font-style: italic; font-size: 0.9rem; margin-top: 1rem; border-left: 3px solid var(--color-rust); }

.bg-beige-card { background-color: #f5f1e8; }
.bg-gray-card { background-color: #f0f4f5; }

/* =========================================
   12. Overview Page Project List
   ========================================= */
.project-list { display: grid; grid-template-columns: 1fr; gap: 3rem; list-style: none; }
@media (min-width: 768px) { .project-list { grid-template-columns: repeat(2, 1fr); gap: 4rem; } }

.project-list .project-card { border: 1px solid var(--color-border); border-radius: var(--radius); padding: 2rem; display: flex; flex-direction: column; transition: box-shadow 0.2s ease; }
.project-list .project-card:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); }
.project-list .project-card h3 { margin-top: 0.5rem; margin-bottom: 1rem; }
.project-list .project-card p { flex-grow: 1; margin-bottom: 1.5rem; }

.read-more { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--color-rust); text-decoration: none; font-weight: 600; border-bottom: 2px solid var(--color-rust); padding-bottom: 2px; }
.read-more:hover { color: var(--color-rust-hover); border-color: var(--color-rust-hover); }

/* =========================================
   13. About Page Specifics
   ========================================= */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 4rem; }
@media (min-width: 768px) { .about-grid { grid-template-columns: 1fr 2fr; } }

.about-bio-image { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }

.expertise-list { list-style: none; padding: 0; margin: 0; }
.expertise-list li { position: relative; padding-left: 1.5rem; margin-bottom: 1.5rem; color: var(--color-text); font-size: 1rem; line-height: 1.5; }
.expertise-list li::before { content: ''; position: absolute; left: 0; top: 0.5rem; width: 8px; height: 8px; background-color: var(--color-rust); border-radius: 50%; }
.expertise-list strong { display: block; color: var(--color-deep-purple); font-weight: 700; margin-bottom: 0.25rem; }

.timeline-card { display: flex; align-items: center; gap: 2rem; background: var(--color-warm-cream); border-radius: 12px; padding: 1.5rem 2rem; margin-bottom: 1rem; }
.timeline-date { background: var(--color-white); color: var(--color-dark-teal); font-weight: 700; font-size: 0.875rem; padding: 0.5rem 1rem; border-radius: 100px; white-space: nowrap; border: 1px solid var(--color-border); }
.timeline-content h3 { margin: 0 0 0.25rem 0; font-size: 1.1rem; color: var(--color-deep-purple); }
.timeline-content p { margin: 0; font-size: 0.9rem; color: var(--color-text); }

.about-expertise {
  position: relative;
  background-color: #F7F4EC; /* beige */
  overflow: hidden;
  border-radius: 0 80px 0 0
}

.about-timeline { 
  box-shadow: 0 20px 50px rgba(0,0,0,0.2); 
 
  position: relative; z-index: 2; 
  margin-top: -2rem; 
  background-color: #3d1f3d;
}

/* =========================================
   14. Accessibility Page Specifics (Clean)
   ========================================= */
.a11y-card { transition: box-shadow 0.3s ease, border-color 0.3s ease; }


.process-number {
  position: static;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: var(--color-rust); color: var(--color-white);
  border-radius: 50%;
  font-family: var(--font-heading); font-weight: 700; font-size: 1rem;
  margin-bottom: 1rem;
}

.standards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.5rem; }
.standard-badge { background: var(--color-white); border: 1px solid var(--color-border); border-radius: 8px; padding: 1.25rem; text-align: left; }
.standard-badge h3 { color: var(--color-deep-purple); font-size: 1rem; font-weight: 700; margin: 0 0 0.25rem 0; }
.standard-badge p { font-size: 0.875rem; color: var(--color-text-muted); margin: 0; }

.tools-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.tool-tag { background: var(--color-light-beige); color: var(--color-deep-purple); padding: 0.375rem 0.875rem; border-radius: 6px; font-size: 0.875rem; font-weight: 500; }

.persona-card { background: var(--color-white); border-radius: 12px; padding: 2rem; border: 1px solid var(--color-border); }
.persona-card h3 { color: var(--color-deep-purple); margin-top: 0; margin-bottom: 1rem; }

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin: 2rem 0; padding: 3rem 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.stat-box { text-align: left; }
.stat-number-large { display: block; font-family: var(--font-heading); font-size: 2.5rem; font-weight: 800; color: var(--color-deep-purple); line-height: 1; margin-bottom: 0.5rem; }
.stat-label-large { font-size: 0.875rem; color: var(--color-text-muted); font-weight: 500; line-height: 1.4; }

@media (max-width: 968px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
  .standards-grid { grid-template-columns: 1fr; }
}

/* =========================================
   15. Footer
   ========================================= */
.site-footer { background: var(--color-deep-purple); color: var(--color-white); padding: 2rem 0; text-align: center; }
.site-footer p { font-size: 0.875rem; opacity: 0.8; margin: 0; }
.footer-content { display: flex; flex-direction: column; gap: 2rem; }
@media (min-width: 768px) { .footer-content { flex-direction: row; justify-content: space-between; align-items: center; } }
.footer-links { list-style: none; display: flex; gap: 1.5rem; }
.footer-links a { color: var(--color-white); text-decoration: none; opacity: 0.8; transition: opacity 0.2s; }
.footer-links a:hover { opacity: 1; }

/* =========================================
   16. Responsive
   ========================================= */
@media (max-width: 968px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { height: 300px; }
  .project-grid, .approach-grid, .three-column, .grid-3-col { grid-template-columns: 1fr; }
  .two-column, .grid-2-col { grid-template-columns: 1fr; gap: 2rem; }
  .achievements-list { grid-template-columns: 1fr; }
  .nav-container { flex-wrap: wrap; gap: 1rem; }
  .nav-list { order: 3; width: 100%; justify-content: center; gap: 1.5rem; }
  .btn-small { display: none; }
}

@media (max-width: 768px) {
  .project-stats { grid-template-columns: 1fr; gap: 1.5rem; }
  .btn-group { flex-direction: column; }
  .btn { width: 100%; }
  .wireframe-grid { grid-template-columns: 1fr; }
}
/* =========================================
   RESTORED: Portfolio Overview & Sub-pages
   ========================================= */

/* Dark Purple Hero Banner for Sub-pages (Design/Research Overview) */
.page-hero {
  background-color: var(--color-deep-purple);
  color: var(--color-white);
  padding: 5rem 0 4rem;
}

.page-hero h1 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.page-hero .hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin-bottom: 0;
}

/* Zig-Zag Layout Container */
.portfolio-list {
  padding: 5rem 0;
  background-color: var(--color-warm-cream);
}

.portfolio-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
}

.portfolio-item:last-child {
  margin-bottom: 0;
}

/* Flips the order for every other item */
.portfolio-item.reverse {
  direction: rtl;
}

.portfolio-item.reverse > * {
  direction: ltr;
}

/* Image Styling */
.portfolio-image {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
}

.portfolio-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.image-bg-wrapper {
  background-color: var(--color-light-beige);
  padding: 2rem;
  border-radius: 16px;
}

/* Content Styling */
.portfolio-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-deep-purple);
}

.portfolio-content p {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.portfolio-content .card-tag {
  margin-bottom: 1rem;
}

.portfolio-content .card-metrics {
  margin-bottom: 2rem;
}

/* Project Navigation (Back Button Area) */
.project-nav {
  padding: 4rem 0;
  background-color: var(--color-warm-cream);
}

/* Responsive: Stack on mobile */
@media (max-width: 768px) {
  .portfolio-item,
  .portfolio-item.reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
    direction: ltr;
  }
  
  .portfolio-item.reverse > * {
    direction: ltr;
  }
  
  .portfolio-image {
    order: -1;
  }
}
/* =========================================
   Fix Giant Overview Images
   ========================================= */
.portfolio-image {
  width: 100%;
  height: 400px; /* Fixed height for uniformity */
  border-radius: 16px;
  overflow: hidden;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Crops the image nicely instead of stretching it */
  display: block;
  border-radius: 16px;
}
/* =========================================
   Active Nav Indicator (Using .active class)
   ========================================= */

/* 1. Style the active link text */
.nav-list > li > a.active {
  color: var(--color-rust) !important;
  font-weight: 700 !important;
  position: relative; 
}

/* 2. Create the underline */
.nav-list > li > a.active::after {
  content: '';
  position: absolute;
  bottom: -6px; /* Adjust to move line closer/further */
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--color-rust);
  border-radius: 2px;
}

/* =========================================
   2. Frame & Constrain Overview Images
   ========================================= */
.portfolio-image {
  width: 100%;
  height: 400px; /* Keeps them from being too giant */
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border); /* Adds a subtle, clean frame */
  box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* Adds professional depth */
  background-color: var(--color-light-beige); /* Nice fallback while loading */
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Crops nicely instead of stretching */
  display: block;
}
/* =========================================
   Force 2-Column Layout (Side-by-Side)
   ========================================= */
.grid-2-col, 
.two-column, 
.leadership-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 2rem !important;
  margin-top: 2rem !important;
}

/* Stack them only on mobile */
@media (max-width: 768px) {
  .grid-2-col, 
  .two-column, 
  .leadership-grid {
    grid-template-columns: 1fr !important;
  }
}
/* =========================================
   No-Shift Navigation Indicator
   ========================================= */

/* 1. Reserve the space for ALL nav links and buttons (Transparent border) */
.nav-list > li > a,
.nav-list > li > .dropdown-toggle {
  border-bottom: 3px solid transparent !important;
  padding-bottom: 4px !important;
}

/* 2. Just change the color when active (No layout shift!) */
.nav-list > li > a.active,
.nav-list > li > a[aria-current="page"],
.nav-list > li > .dropdown-toggle.active,
.nav-list > li > .dropdown-toggle[aria-current="page"],
.dropdown-menu li a.active,
.dropdown-menu li a[aria-current="page"] {
  color: var(--color-rust) !important;
  font-weight: 700 !important;
  border-bottom-color: var(--color-rust) !important;
}
/* =========================================
   Abstract Cards for Research Projects
   ========================================= */
.abstract-card {
  height: 240px; /* Matches your standard card image height */
  background: linear-gradient(135deg, var(--color-deep-purple) 0%, var(--color-rust) 100%);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

/* Subtle decorative circle in the top right */
.abstract-card::before {
  content: '';
  position: absolute;
  top: -60px; 
  right: -60px;
  width: 200px; 
  height: 200px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

/* Large, subtle background number */
.abstract-card .card-number {
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.15);
  position: absolute;
  top: 1rem; 
  left: 2rem;
  line-height: 1;
}

/* Category text at the bottom */
.abstract-card .card-category {
  color: white;
  margin: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}