/* ==========================================
   CANVA LIGHT MODE DESIGN SYSTEM & STYLES
   Instructional Design Portfolio - Maribel Hernandez
   Features: Fullscreen Lightbox Carousel & Case Study Modal Carousel
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
  /* Color Palette - Canva Light Theme (Preserved strictly) */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8F9FA;
  --bg-subtle: #F1F5F9;
  
  --text-primary: #0D1216;
  --text-heading: #1E293B;
  --text-secondary: #475569;
  --text-muted: #64748B;
  
  --accent-teal: #00C4CC;
  --accent-teal-dark: #00A3A8;
  --accent-teal-light: #E6FFFA;
  --accent-teal-border: #99F6E4;
  
  --accent-violet: #7D2AE8;
  --accent-violet-dark: #641EC2;
  --accent-violet-light: #F3E8FF;
  --accent-violet-border: #DDD6FE;
  
  --card-bg: #FFFFFF;
  --card-border: #E2E8F0;
  --card-border-hover: #CBD5E1;
  
  --shadow-sm: 0 2px 6px rgba(13, 18, 22, 0.05);
  --shadow-md: 0 6px 16px rgba(13, 18, 22, 0.08);
  --shadow-lg: 0 12px 24px -6px rgba(13, 18, 22, 0.1);
  --shadow-hover: 0 20px 35px -10px rgba(13, 18, 22, 0.12);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --header-height: 80px;
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

button {
  font-family: var(--font-heading);
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 96px 0;
}

.section-header {
  margin-bottom: 56px;
  text-align: center;
}

.section-subtitle {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-violet);
  margin-bottom: 12px;
  background-color: var(--accent-violet-light);
  padding: 6px 16px;
  border-radius: var(--radius-full);
}

.section-title {
  font-size: 2.5rem;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

/* Header / Sticky Navigation */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-avatar {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-violet));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
}

.brand-text {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
}

.brand-text span {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  position: relative;
  padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-violet);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-teal), var(--accent-violet));
  border-radius: var(--radius-full);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1),
.mobile-menu-toggle.mobile-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2),
.mobile-menu-toggle.mobile-open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3),
.mobile-menu-toggle.mobile-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero Section */
.hero {
  padding: 80px 0 64px;
  background: radial-gradient(circle at 90% 10%, rgba(0, 196, 204, 0.06) 0%, transparent 40%),
              radial-gradient(circle at 10% 90%, rgba(125, 42, 232, 0.05) 0%, transparent 40%);
}

.hero-content {
  max-width: 940px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--accent-teal-light);
  border: 1px solid var(--accent-teal-border);
  color: var(--accent-teal-dark);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: var(--accent-teal);
  box-shadow: 0 0 0 3px rgba(0, 196, 204, 0.25);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 196, 204, 0.4); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(0, 196, 204, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 196, 204, 0); }
}

.hero-headline {
  font-size: 3.25rem;
  letter-spacing: -0.03em;
  color: var(--text-heading);
  margin-bottom: 28px;
  line-height: 1.2;
}

.hero-headline span {
  background: linear-gradient(135deg, var(--accent-teal-dark), var(--accent-violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-bio-wrapper {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 820px;
  margin: 36px auto 44px;
  text-align: left;
  background: #ffffff;
  padding: 32px 36px;
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05), 0 2px 6px rgba(0, 0, 0, 0.02);
}

.hero-portrait-col {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-portrait-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 4px solid #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.hero-bio-col {
  flex: 1;
}

.hero-bio-col .hero-bio {
  margin: 0;
  text-align: left;
  font-size: 0.98rem;
  line-height: 1.65;
  color: #334155;
  font-weight: 400;
}

/* Filter Tags / Pill Buttons */
.filter-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.filter-pill {
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.filter-pill.teal-style {
  border: 2px solid var(--accent-teal);
  color: var(--text-heading);
  background-color: transparent;
}

.filter-pill.teal-style:hover {
  background-color: var(--accent-teal-light);
  transform: translateY(-2px);
}

.filter-pill.teal-style.active {
  background-color: var(--accent-teal);
  color: white;
  box-shadow: 0 4px 14px rgba(0, 196, 204, 0.4);
}

.filter-pill.violet-style {
  border: 2px solid var(--accent-violet);
  color: var(--text-heading);
  background-color: transparent;
}

.filter-pill.violet-style:hover {
  background-color: var(--accent-violet-light);
  transform: translateY(-2px);
}

.filter-pill.violet-style.active {
  background-color: var(--accent-violet);
  color: white;
  box-shadow: 0 4px 14px rgba(125, 42, 232, 0.35);
}

/* Featured Projects Section */
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.project-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: start;
  opacity: 1 !important;
  visibility: visible !important;
}

.project-card:hover {
  border-color: var(--card-border-hover);
  box-shadow: var(--shadow-hover);
}

/* Left Column: Info & 3 Individual Styled Boxes */
.project-info-col {
  display: flex;
  flex-direction: column;
}

.project-header-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.project-title-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background-color: var(--accent-teal-light);
  border: 1px solid var(--accent-teal-border);
  color: var(--accent-teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.project-card:nth-child(even) .project-title-icon {
  background-color: var(--accent-violet-light);
  border-color: var(--accent-violet-border);
  color: var(--accent-violet);
}

.project-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.22;
  letter-spacing: -0.01em;
}

/* Tech Stack Tags */
.tech-stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tech-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  background-color: transparent;
  border: 1.5px solid var(--card-border);
  padding: 5px 13px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.tech-tag:hover {
  border-color: var(--accent-teal);
  color: var(--accent-teal-dark);
}

/* 3 Individual Styled Boxes (Problem, Solution, Impact) */
.text-boxes-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.text-box {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.problem-box {
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
}

.problem-box .block-label {
  color: #475569;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.solution-box {
  background-color: #E6FFFA;
  border: 1px solid #99F6E4;
}

.solution-box .block-label {
  color: #00A3A8;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.impact-box {
  background-color: #F3E8FF;
  border: 1px solid #DDD6FE;
}

.impact-box .block-label {
  color: #7D2AE8;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.block-body {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.impact-box .block-body {
  color: var(--text-primary);
  font-weight: 400;
}

/* View All Projects Button */
.view-all-projects-wrapper {
  display: none;
  text-align: right;
  margin-top: 40px;
  padding-top: 12px;
}

.btn-view-all-projects {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 0.98rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  background-color: var(--card-bg);
  border: 2px solid var(--accent-violet-border);
  color: var(--accent-violet-dark);
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.btn-view-all-projects:hover {
  background-color: var(--accent-violet);
  border-color: var(--accent-violet);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-view-all-projects svg {
  transition: transform 0.2s ease;
}

.btn-view-all-projects:hover svg {
  transform: translateX(-4px);
}

/* Read Case Study Button */
.btn-read-case-pod {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 2px solid var(--accent-teal);
  color: var(--accent-teal-dark);
  background-color: transparent;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.925rem;
  transition: var(--transition-smooth);
  width: fit-content;
}

.btn-read-case-pod:hover {
  background-color: var(--accent-teal-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 196, 204, 0.2);
}

.project-card:nth-child(even) .btn-read-case-pod {
  border-color: var(--accent-violet);
  color: var(--accent-violet);
}

.project-card:nth-child(even) .btn-read-case-pod:hover {
  background-color: var(--accent-violet-light);
  box-shadow: 0 4px 12px rgba(125, 42, 232, 0.2);
}

/* Right Column: Side-by-Side Image Gallery */
.project-media-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  justify-content: flex-start;
}

.media-main-card,
.media-thumb-card,
.project-media-col img {
  cursor: zoom-in !important;
}

.media-main-card {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  position: relative;
  background-color: var(--bg-secondary);
}

.media-main-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: var(--transition-smooth);
}

.media-main-card:hover img {
  transform: scale(1.03);
}

.media-thumbs-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 12px;
  width: 100%;
}

.media-thumb-card {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  position: relative;
  background-color: var(--bg-secondary);
}

.media-thumb-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: var(--transition-smooth);
}

.media-thumb-card:hover img {
  transform: scale(1.04);
}

/* Lightbox Expanded Image Carousel Modal */
.lightbox-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(13, 18, 22, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-container {
  position: relative;
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: scale(0.94);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox-backdrop.active .lightbox-container {
  transform: scale(1);
}

.lightbox-img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  object-fit: contain;
  transition: opacity 0.25s ease, transform 0.25s ease;
  cursor: zoom-out !important;
}

.lightbox-caption {
  margin-top: 14px;
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  background: rgba(255, 255, 255, 0.12);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
}

.lightbox-close-btn {
  position: absolute;
  top: -50px;
  right: 0;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  transition: var(--transition-fast);
  z-index: 20;
}

.lightbox-close-btn:hover {
  background-color: white;
  color: var(--text-heading);
  transform: rotate(90deg);
}

/* Lightbox Carousel Navigation Arrows */
.lightbox-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: white;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: var(--transition-fast);
  z-index: 20;
}

.lightbox-btn:hover {
  background-color: white;
  color: var(--accent-violet);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: -70px;
}

.lightbox-next {
  right: -70px;
}

/* Lightbox Pagination Dots */
.lightbox-dots {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  z-index: 20;
}

.lightbox-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition-fast);
}

.lightbox-dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.lightbox-dot.active {
  background-color: var(--accent-teal);
  width: 24px;
  border-radius: var(--radius-full);
}

/* Modal Interactive Image Carousel */
.modal-carousel-wrapper {
  position: relative;
  width: 100%;
  height: 520px;
  max-height: 70vh;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--card-border);
  background-color: var(--bg-subtle);
  margin-top: 28px;
  margin-bottom: 28px;
}

.modal-carousel-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.modal-carousel-slide {
  min-width: 100%;
  width: 100%;
  height: 100%;
  position: relative;
  cursor: zoom-in;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background-color: var(--bg-subtle);
  box-sizing: border-box;
}

.modal-carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-heading);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: var(--transition-fast);
  z-index: 10;
}

.carousel-btn:hover {
  background-color: white;
  transform: translateY(-50%) scale(1.1);
  color: var(--accent-violet);
}

.carousel-prev {
  left: 16px;
}

.carousel-next {
  right: 16px;
}

.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
  background: rgba(13, 18, 22, 0.6);
  backdrop-filter: blur(6px);
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition-fast);
}

.dot:hover {
  background-color: rgba(255, 255, 255, 0.85);
}

.dot.active {
  background-color: var(--accent-teal);
  width: 24px;
  border-radius: var(--radius-full);
}

/* Core Expertise Section */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.expertise-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  position: relative;
  opacity: 1 !important;
  visibility: visible !important;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.expertise-card:hover {
  border-color: var(--accent-teal);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.expertise-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background-color: var(--accent-teal-light);
  color: var(--accent-teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 24px;
}

.expertise-card:nth-child(even) .expertise-icon-wrapper {
  background-color: var(--accent-violet-light);
  color: var(--accent-violet);
}

.expertise-title {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: var(--text-heading);
}

.expertise-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.expertise-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.expertise-bullets li {
  font-size: 0.925rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.expertise-bullets li::before {
  content: '✓';
  color: var(--accent-teal);
  font-weight: 900;
  font-size: 1rem;
  line-height: 1.4;
}

.expertise-card:nth-child(even) .expertise-bullets li::before {
  color: var(--accent-violet);
}

/* The Journey Section (Timeline) */
.timeline {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 28px;
  width: 3px;
  background: linear-gradient(180deg, var(--accent-teal), var(--accent-violet));
  border-radius: var(--radius-full);
}

.timeline-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: 40px;
  opacity: 1 !important;
  visibility: visible !important;
}

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

.timeline-node {
  position: absolute;
  left: 17px;
  top: 4px;
  width: 25px;
  height: 25px;
  border-radius: var(--radius-full);
  background-color: white;
  border: 4px solid var(--accent-teal);
  box-shadow: 0 0 0 4px rgba(0, 196, 204, 0.2);
  z-index: 2;
  transition: var(--transition-fast);
}

.timeline-item:nth-child(even) .timeline-node {
  border-color: var(--accent-violet);
  box-shadow: 0 0 0 4px rgba(125, 42, 232, 0.2);
}

.timeline-item:hover .timeline-node {
  transform: scale(1.2);
}

.timeline-content {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-content {
  box-shadow: var(--shadow-md);
  border-color: var(--card-border-hover);
}

.timeline-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.timeline-role {
  font-size: 1.2rem;
  color: var(--text-heading);
}

.timeline-date {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-violet);
  background-color: var(--accent-violet-light);
  padding: 4px 14px;
  border-radius: var(--radius-full);
}

.timeline-org {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-teal-dark);
  margin-bottom: 12px;
}

.timeline-bullets {
  list-style: disc;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 0.925rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Certifications & Credentials Section */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
}

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

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

.cert-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 360px;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
  opacity: 1 !important;
  visibility: visible !important;
}

a.cert-card {
  cursor: pointer;
}

.cert-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-teal-border);
}

.cert-badge-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.cert-card:nth-child(even) .cert-badge-icon {
  border-color: var(--accent-violet-border);
}

.cert-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 8px;
  line-height: 1.35;
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.cert-issuer {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  margin-top: auto;
}

.cert-status {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-teal-dark);
  background-color: var(--accent-teal-light);
  padding: 4px 12px;
  border-radius: var(--radius-xs);
}

/* Footer (Call to Action) */
.footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--card-border);
  padding: 96px 0 48px;
  text-align: center;
  position: relative;
}

.footer-cta-card {
  max-width: 800px;
  margin: 0 auto 64px;
  background-color: white;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  box-shadow: var(--shadow-lg);
}

.footer-headline {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: var(--text-heading);
}

.footer-subtext {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

.footer-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-teal-primary {
  background-color: var(--accent-teal);
  color: white;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 14px rgba(0, 196, 204, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-teal-primary:hover {
  background-color: var(--accent-teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 196, 204, 0.45);
}

.btn-violet-outline {
  border: 2px solid var(--accent-violet);
  color: var(--accent-violet);
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-violet-outline:hover {
  background-color: var(--accent-violet-light);
  transform: translateY(-2px);
}

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

/* Modals System */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(13, 18, 22, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background-color: white;
  width: 100%;
  max-width: 840px;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  position: relative;
}

.modal-backdrop.active .modal-container {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--bg-subtle);
  color: var(--text-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: var(--transition-fast);
  z-index: 10;
}

.modal-close-btn:hover {
  background-color: #E2E8F0;
  transform: rotate(90deg);
}

.modal-body {
  padding: 40px;
}

.modal-title {
  font-size: 2rem;
  margin-bottom: 12px;
}

.modal-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.modal-section {
  margin-bottom: 24px;
}

.modal-section-title {
  font-size: 1.15rem;
  color: var(--accent-violet);
  margin-bottom: 8px;
}

/* Contact Form Modal */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-heading);
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 3px rgba(0, 196, 204, 0.15);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .project-card {
    grid-template-columns: 1fr;
    padding: 32px;
  }
  
  .lightbox-prev {
    left: 12px;
  }
  
  .lightbox-next {
    right: 12px;
  }
}

@media (max-width: 992px) {
  .hero-headline {
    font-size: 2.5rem;
  }
  
  .expertise-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header {
    height: 70px;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    flex-direction: column;
    padding: 20px 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid var(--card-border);
    gap: 16px;
    z-index: 1000;
  }
  
  .nav-links.active,
  .nav-links.mobile-open {
    display: flex;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .hero-headline {
    font-size: 2rem;
  }

  .hero-bio-wrapper {
    flex-direction: column;
    text-align: center;
    padding: 20px 20px;
    gap: 20px;
    margin: 24px auto 32px;
  }

  .hero-portrait-img {
    width: 130px;
    height: 130px;
  }

  .hero-bio-col .hero-bio {
    text-align: center;
    font-size: 1rem;
  }
  
  .project-card {
    padding: 24px;
  }
  
  .timeline::before {
    left: 15px;
  }
  
  .timeline-node {
    left: 4px;
  }
  
  .timeline-item {
    padding-left: 45px;
  }
  
  .footer-cta-card {
    padding: 32px 20px;
  }
  
  .footer-headline {
    font-size: 1.75rem;
  }
  
  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  
  .lightbox-btn {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }
}
