/* ================================================================================

SIDHARTH SANDEEP - PORTFOLIO STYLES

Enhanced with improved visual hierarchy, accessibility, and mobile support

All UI/UX issues fixed, shadows strengthened, spacing optimized

Bright-only mode with Vibrant Teal & Coral accents for energetic appeal

================================================================================ */

/* ============================================================================

CSS CUSTOM PROPERTIES (Design Tokens)

============================================================================ */

:root {

  /* Neutrals (Bright Base) */
  --color-white: #ffffff;
  --color-black: #000000;
  --color-cream-50: #fdfcfb;  /* Warmer off-white background */
  --color-cream-100: #fefefe;
  --color-gray-100: #f8f9fa;
  --color-gray-200: #f1f3f4;
  --color-gray-300: #b8c0cc;
  --color-gray-400: #9aa3ad;
  --color-slate-500: #6b7a8a;
  --color-slate-700: #495867;
  --color-slate-900: #2d3748;

  /* Primary: Enhanced Teal */
  --color-teal-300: #4fd1c7;  /* Lighter teal for hovers */
  --color-teal-400: #38b2ac;
  --color-teal-500: #319795;  /* Main primary */
  --color-teal-600: #2c7a7b;
  --color-teal-700: #285e61;
  --color-teal-800: #234e52;

  /* Coral Accent for CTAs & Highlights */
  --color-coral-400: #f3b852;
  --color-coral-500: #3ea5e5;  /* Use for buttons, badges */
  --color-coral-600: #c53030;

  /* Other Accents */
  --color-green-500: #48bb78;
  --color-blue-500: #4299e1;
  --color-purple-500: #9f7aea;

  /* Semantic Colors - Bright Only */
  --color-background: var(--color-cream-50);
  --color-surface: var(--color-white);
  --color-surface-elevated: var(--color-cream-100);
  --color-text-primary: var(--color-slate-900);
  --color-text-secondary: var(--color-slate-700);
  --color-text-tertiary: var(--color-gray-400);
  --color-primary: var(--color-teal-500);
  --color-primary-hover: var(--color-teal-300);
  --color-primary-active: var(--color-teal-600);
  --color-accent: var(--color-coral-500);  /* New: For buttons */
  --color-border: rgba(49, 151, 149, 0.2);  /* Teal-tinted */
  --color-border-light: rgba(49, 151, 149, 0.12);
  --color-focus: var(--color-teal-400);

  /* Typography */
  --font-family-base: "FKGroteskNeue", "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-mono: "Berkeley Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Fluid typography */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.375vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.35rem + 0.75vw, 1.875rem);
  --text-3xl: clamp(1.875rem, 1.65rem + 1.125vw, 2.5rem);
  --text-4xl: clamp(2.25rem, 1.9rem + 1.75vw, 3.5rem);
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --line-height-tight: 1.25;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.75;

  /* Spacing (8px base grid) */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 5rem;
  --space-5xl: 6rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-base: 0.5rem;
  --radius-md: 0.625rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Shadows (Strengthened) */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2), 0 8px 16px rgba(0, 0, 0, 0.1);

  /* Focus Ring */
  --focus-ring: 0 0 0 3px rgba(49, 151, 149, 0.3);
  --focus-ring-offset: 0 0 0 2px var(--color-surface), 0 0 0 5px rgba(49, 151, 149, 0.3);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 250ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 350ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Z-index Scale */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;

  /* Layout */
  --container-max-width: 1200px;
  --nav-height: 70px;
}

/* ============================================================================

BASE STYLES

============================================================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family-base);
  font-size: var(--text-base);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
  background-color: var(--color-background);
  overflow-x: hidden;
}

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

/* ============================================================================

SKIP LINK

============================================================================ */

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--color-primary);
  color: white;
  padding: var(--space-md) var(--space-lg);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  z-index: var(--z-tooltip);
  border-radius: 0 0 var(--radius-base) 0;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

/* ============================================================================

TYPOGRAPHY

============================================================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

h1 {
  font-size: var(--text-4xl);
}

h2 {
  font-size: var(--text-3xl);
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

h5 {
  font-size: var(--text-lg);
}

h6 {
  font-size: var(--text-base);
}

p {
  margin-bottom: var(--space-md);
  max-width: 70ch;
}

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

a:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

strong,
b {
  font-weight: var(--font-weight-semibold);
}

code {
  font-family: var(--font-family-mono);
  font-size: 0.9em;
  background: var(--color-surface-elevated);
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-light);
}

/* ============================================================================

LAYOUT & CONTAINERS

============================================================================ */

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-2xl);
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--space-3xl);
  }
}

.section {
  padding: var(--space-4xl) 0;
}

@media (min-width: 768px) {
  .section {
    padding: var(--space-5xl) 0;
  }
}

.section-title {
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-bold);
  text-align: center;
  margin-bottom: var(--space-3xl);
  position: relative;
  padding-bottom: var(--space-lg);
}

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

.section-intro {
  text-align: center;
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  margin: -var(--space-xl) 0 var(--space-3xl) 0;
  padding-bottom: 2rem;
  /* Add exactly 2 lines worth of space (32px) */
  max-width: 100%;
  line-height: var(--line-height-relaxed);
}

/* ============================================================================

NAVIGATION

============================================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--color-border-light);
  z-index: var(--z-sticky);
  height: var(--nav-height);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav-brand {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.nav-brand:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.nav-brand:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
}

.nav-link {
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-medium);
  font-size: var(--text-base);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-base);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-primary);
  background: rgba(49, 151, 149, 0.08);
  text-decoration: none;
}

.nav-link.active {
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
}

.nav-link:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

/* Theme toggle removed - bright only */

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  z-index: var(--z-fixed);
}

.hamburger {
  width: 100%;
  height: 3px;
  background: var(--color-text-primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  transform-origin: center;
}

.nav-toggle.active .hamburger:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px); /* FIXED: Smoother animation */
}

.nav-toggle.active .hamburger:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .hamburger:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px); /* FIXED: Balanced */
}

@media (max-width: 768px) {
  .nav {
    height: var(--nav-height, 70px); /* Fallback */
  }

  .nav-wrapper {
    padding: 0 var(--space-md, 1rem); /* Side padding */
  }

  .nav-toggle {
    display: flex;
    order: 2; /* Align right */
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-height, 70px); /* FIXED: Below nav - prevents overlap */
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-surface, #ffffff); /* FIXED: Opaque with fallback */
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch; /* FIXED: Full-width items */
    padding: var(--space-2xl, 3rem) var(--space-md, 1rem); /* FIXED: Spacing with fallback */
    gap: var(--space-md, 1rem); /* Vertical gaps */
    transform: translateX(100%);
    transition: transform var(--transition-base, 0.3s ease);
    box-shadow: var(--shadow-lg);
    overflow-y: auto; /* FIXED: Scroll if needed */
    z-index: 999; /* High priority */
    list-style: none;
    margin: 0;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-menu li {
    width: 100%;
    margin: 0;
  }

  .nav-link {
    display: block; /* FIXED: Full tap area */
    width: 100%;
    text-align: center;
    padding: var(--space-md, 1rem) var(--space-lg, 1.5rem); /* FIXED: Larger targets */
    font-size: var(--text-lg, 1.125rem);
    border-bottom: 1px solid var(--color-border-light, rgba(49, 151, 149, 0.12)); /* FIXED: Visual separators */
    border-radius: var(--radius-base);
    transition: all var(--transition-fast);
  }

  .nav-menu li:last-child .nav-link {
    border-bottom: none; /* No separator on last */
  }

  .nav-link:hover,
  .nav-link:focus,
  .nav-link:active {
    background: rgba(49, 151, 149, 0.1);
    color: var(--color-primary);
  }

  /* Body lock for no scroll behind menu */
  body.nav-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }
}

/* ============================================================================

BUTTONS

============================================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-xl);
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  font-family: var(--font-family-base);
  line-height: 1;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-base);
  cursor: pointer;
  transition: all var(--transition-base);
  min-height: 44px;
  position: relative;
  overflow: hidden;
}

.btn:focus-visible {
  box-shadow: var(--focus-ring-offset);
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-accent);  /* Coral for buttons */
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-coral-400);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
  color: white;
}

.btn-primary:active {
  background: var(--color-coral-600);
  transform: translateY(0);
  box-shadow: var(--shadow-xs);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
}

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

.btn-lg {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--text-lg);
  min-height: 56px;
}

.btn-full-width {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============================================================================

HERO SECTION

============================================================================ */

.hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-4xl) 0 var(--space-2xl) 0;
  margin-top: var(--nav-height);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-name {
  font-size: var(--text-4xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-md);
  line-height: var(--line-height-tight);
}

.highlight {
  color: var(--color-accent);  /* Coral for highlights */
  position: relative;
  display: inline-block;
}

.hero-subtitle {
  font-size: var(--text-2xl);
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-lg);
}

.hero-description {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  margin: 0 auto var(--space-xl);
  line-height: var(--line-height-relaxed);
  max-width: 60ch;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  justify-content: center;
  margin-bottom: var(--space-2xl);
}

.meta-item {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-surface);
  border-radius: var(--radius-base);
  border: 1px solid var(--color-border-light);
}

.hero-cta {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero {
    min-height: 80vh;
    padding: var(--space-4xl) 0;
  }

  .hero-name {
    font-size: var(--text-3xl);
  }

  .hero-subtitle {
    font-size: var(--text-xl);
  }

  .hero-meta {
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 300px;
  }
}

/* ============================================================================

ABOUT SECTION

============================================================================ */

.about {
  background: var(--color-surface);
  padding-top: var(--space-3xl) !important;
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-text {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.about-text p {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin: 0 auto var(--space-lg);
  max-width: 70ch;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-2xl);
  justify-items: center;
}

.stat {
  text-align: center;
  min-width: 150px;
}

.stat-number {
  display: block;
  font-size: var(--text-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat-label {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: var(--font-weight-medium);
}

@media (max-width: 768px) {
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }
}

/* ============================================================================

ACHIEVEMENTS SECTION

============================================================================ */

.achievement-categories {
  display: grid;
  gap: var(--space-2xl);
}

.achievement-category {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
}

.category-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--color-border-light);
}

.category-icon {
  font-size: var(--text-3xl);
  line-height: 1;
}

.category-title {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  margin: 0;
}

.achievement-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.achievement-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-md);
  background: var(--color-background);
  border-radius: var(--radius-base);
  border-left: 4px solid var(--color-primary);
}

.achievement-item strong {
  color: var(--color-text-primary);
  font-size: var(--text-lg);
}

.achievement-detail {
  color: var(--color-text-secondary);
  font-size: var(--text-base);
}

/* ============================================================================

LEADERSHIP SECTION

============================================================================ */

.leadership {
  background: var(--color-background);
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-4xl);
}

@media (max-width: 768px) {
  .leadership-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

.leadership-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.leadership-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--color-primary);
}

.card-header {
  margin-bottom: var(--space-lg);
}

.card-title {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

.card-role {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-summary {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-lg);
}

.card-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.card-highlights li {
  position: relative;
  padding-left: var(--space-lg);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

.card-highlights li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
  font-size: var(--text-xl);
}

/* ============================================================================

SERVICES SECTION

============================================================================ */

.subsection-title {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  text-align: center;
  margin-bottom: var(--space-2xl);
  color: var(--color-text-primary);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

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

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-title {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.service-role {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
  display: block;
}

.service-description {
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin: 0;
}

/* ============================================================================

PROJECTS SECTION

============================================================================ */

.projects {
  background: var(--color-surface);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-2xl);
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

.project-card {
  background: var(--color-background);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  position: relative;
}

.project-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--color-primary);
}

/* Featured Project Card */
.project-card.featured {
  border-color: var(--color-primary);
  border-width: 2px;
  position: relative;
  background: linear-gradient(to bottom,
    rgba(49, 151, 149, 0.03) 0%,
    var(--color-background) 100%
  );
}

/* Featured badge - clean corner placement */
.project-card.featured::before {
  content: '⭐ FEATURED';
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: var(--color-accent);  /* Coral badge */
  color: white;
  font-size: 0.65rem;
  font-weight: var(--font-weight-bold);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-base);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow-sm);
  z-index: 10;
}

/* Ensure title doesn't overlap with badge */
.project-card.featured .project-title {
  padding-right: 130px;
}

.project-header {
  margin-bottom: var(--space-lg);
}

.project-title {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
  padding-right: var(--space-3xl);
}

.project-type {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  font-weight: var(--font-weight-medium);
  display: block;
}

.project-summary {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-lg);
}

.project-toggle {
  display: none;
}

.project-expand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  background: var(--color-surface);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  cursor: pointer;
  transition: all var(--transition-base);
  user-select: none;
  min-height: 48px;
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.project-expand:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.project-expand:focus-visible {
  box-shadow: var(--focus-ring);
}

.expand-icon {
  transition: transform var(--transition-base);
  font-size: 0.75em;
}

.project-toggle:not(:checked) ~ .project-expand .collapse-text,
.project-toggle:checked ~ .project-expand .expand-text {
  display: none;
}

.project-toggle:checked ~ .project-expand .expand-icon {
  transform: rotate(180deg);
}

.project-details {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 400ms cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 0;
}

.project-toggle:checked ~ .project-details {
  grid-template-rows: 1fr;
  margin-top: var(--space-md);
}

.project-details > div {
  overflow: hidden;
  min-height: 0;
}

.project-section {
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--color-border-light);
}

.project-section:first-child {
  padding-top: var(--space-xl);
}

.project-section:last-child {
  padding-bottom: 0;
}

.detail-title {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.outcome-list {
  list-style: none;
  padding-left: 0;
}

.outcome-list li {
  position: relative;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-sm);
  line-height: var(--line-height-relaxed);
}

.outcome-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);  /* Coral checkmarks */
  font-weight: var(--font-weight-bold);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.tag {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
}

/* ============================================================================

CONTACT SECTION

============================================================================ */

.contact {
  background: var(--color-background);
}

.contact-content {
  max-width: 700px;
  margin: 0 auto;
}

.contact-intro {
  text-align: center;
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3xl);
  line-height: var(--line-height-relaxed);
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-4xl);
}

.contact-link-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.contact-link-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
}

.link-icon {
  font-size: var(--text-3xl);
  line-height: 1;
}

.link-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.link-title {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.link-value {
  font-size: var(--text-base);
  color: var(--color-primary);
  font-weight: var(--font-weight-medium);
  word-break: break-all;
}

.contact-link-card:hover .link-value {
  text-decoration: none;
}

.form-wrapper {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
}

.form-heading {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  text-align: center;
  margin-bottom: var(--space-xl);
  color: var(--color-text-primary);
}

.form-status {
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  border-radius: var(--radius-base);
  font-weight: var(--font-weight-medium);
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(49, 151, 149, 0.1);
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
}

.form-status.error {
  display: block;
  background: rgba(229, 62, 62, 0.1);  /* Coral error */
  border: 1px solid var(--color-coral-500);
  color: var(--color-coral-500);
}

.contact-form {
  width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

.required {
  color: var(--color-coral-500);  /* Coral required */
  font-weight: var(--font-weight-bold);
}

.form-control {
  width: 100%;
  padding: var(--space-md);
  font-size: var(--text-base);
  font-family: var(--font-family-base);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
  background: var(--color-background);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-base);
  transition: all var(--transition-fast);
  min-height: 44px;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--focus-ring);
}

.form-control:hover {
  border-color: var(--color-text-tertiary);
}

.form-control.error {
  border-color: var(--color-coral-500);
}

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

.error-message {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-coral-500);
  margin-top: var(--space-xs);
  font-weight: var(--font-weight-medium);
  min-height: 1.5em;
}

.error-message:empty {
  display: none;
}

/* ============================================================================

MEDIA GALLERY CAROUSEL SECTION

============================================================================ */

.media-gallery {
  background: var(--color-surface);
}

.carousel-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.carousel-track {
  display: flex;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-slide {
  min-width: 100%;
  opacity: 0;
  transition: opacity 600ms ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

.slide-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  background: var(--color-background);
  padding: var(--space-3xl);
  min-height: 500px;
  align-items: center;
}

@media (max-width: 768px) {
  .slide-content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    min-height: auto;
    padding: var(--space-xl);
  }
}

/* Slide Image - Fixed 16:9 Aspect Ratio */
.slide-image {
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: var(--color-surface-elevated);
  /* Fixed aspect ratio */
  aspect-ratio: 16 / 9;
  min-height: 280px;
  max-height: 420px;
}

/* Fallback for older browsers without aspect-ratio support */
@supports not (aspect-ratio: 16 / 9) {
  .slide-image {
    height: 380px;
  }
}

.slide-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Crops to fill */
  object-position: center;
  /* Center crop */
  display: block;
  transition: transform var(--transition-slow);
}

/* Zoom effect on active slide */
.carousel-slide.active .slide-image img {
  animation: zoomIn 600ms ease-out;
}

@keyframes zoomIn {
  from {
    transform: scale(1.1);
    opacity: 0.8;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive sizing */
@media (max-width: 1024px) {
  .slide-image {
    max-height: 350px;
  }
}

@media (max-width: 768px) {
  .slide-image {
    aspect-ratio: 4 / 3;
    /* Taller on mobile */
    min-height: 240px;
    max-height: 300px;
  }
}

@media (max-width: 480px) {
  .slide-image {
    min-height: 200px;
    max-height: 250px;
  }
}

/* Slide Text */
.slide-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-lg);
}

.slide-title {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin: 0;
  line-height: var(--line-height-tight);
}

.slide-description {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin: 0;
}

.slide-date {
  display: inline-block;
  font-size: var(--text-sm);
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: var(--space-sm);
}

/* Navigation Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  z-index: 10;
  box-shadow: var(--shadow-md);
}

.carousel-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: var(--shadow-lg);
}

.carousel-btn:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 4px;
}

.carousel-btn span {
  font-size: 2rem;
  font-weight: bold;
  line-height: 1;
  color: var(--color-text-primary);
}

.carousel-btn:hover span {
  color: white;
}

.carousel-prev {
  left: var(--space-lg);
}

.carousel-next {
  right: var(--space-lg);
}

@media (max-width: 768px) {
  .carousel-btn {
    width: 40px;
    height: 40px;
  }

  .carousel-prev {
    left: var(--space-sm);
  }

  .carousel-next {
    right: var(--space-sm);
  }

  .carousel-btn span {
    font-size: 1.5rem;
  }
}

/* Indicators (Dots) */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-xl);
  background: var(--color-background);
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  padding: 0;
}

.indicator:hover {
  background: var(--color-text-tertiary);
  transform: scale(1.2);
}

.indicator.active {
  background: var(--color-primary);
  width: 32px;
  border-radius: var(--radius-full);
}

.indicator:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 4px;
}

/* Multiple Images Grid Layout - UPDATED WITH FIXED HEIGHTS */
.slide-images-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  /* Main image is 2x wider than thumbnails */
  grid-template-rows: 1fr 1fr;
  gap: var(--space-md);
  width: 100%;
  height: 450px;
  /* Fixed height for consistent display */
  min-height: 400px;
}

.grid-main-image {
  grid-column: 1 / 2;
  grid-row: 1 / 4;
  /* Spans both rows - full height */
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.grid-thumbnail {
  overflow: hidden;
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  min-height: 130px;
  /* Ensures thumbnails have good height */
}

.grid-thumbnail:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.slide-images-grid img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Crops to fill */
  object-position: center;
  display: block;
}

/* Mobile - Stack vertically */
@media (max-width: 768px) {
  .slide-images-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: var(--space-sm);
    height: auto;
  }

  .grid-main-image {
    grid-column: 1;
    grid-row: 1;
    height: 280px;
  }

  .grid-thumbnail {
    height: 180px;
    min-height: 180px;
  }
}

/* ============================================================================

FOOTER

============================================================================ */

.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border-light);
  padding: var(--space-3xl) 0;
  margin-top: var(--space-5xl);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-xl);
}

.footer-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-text p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin: 0;
}

.footer-quote {
  font-style: italic;
  color: var(--color-text-tertiary);
}

.social-links {
  display: flex;
  gap: var(--space-lg);
}

.social-link {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-medium);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-base);
  transition: all var(--transition-fast);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.social-link:hover {
  color: var(--color-primary);
  background: rgba(49, 151, 149, 0.08);
  text-decoration: none;
}

.social-link:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .social-links {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* ============================================================================

UTILITY CLASSES

============================================================================ */

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

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

/* ============================================================================

ANIMATIONS

============================================================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .section {
    animation: fadeIn 0.6s var(--transition-base) both;
  }

  .section:nth-child(even) {
    animation-delay: 0.1s;
  }
}

/* ============================================================================

IMAGE LIGHTBOX

============================================================================ */

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  padding: var(--space-xl);
}

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

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

#lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  transform: scale(0.9);
  transition: transform var(--transition-slow);
}

.lightbox.active #lightbox-image {
  transform: scale(1);
}

.lightbox-caption {
  color: white;
  font-size: var(--text-lg);
  text-align: center;
  max-width: 600px;
  line-height: var(--line-height-relaxed);
  padding: var(--space-md);
  background: rgba(0, 0, 0, 0.5);
  border-radius: var(--radius-base);
}

/* Lightbox Controls */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 10;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.lightbox-close {
  top: var(--space-xl);
  right: var(--space-xl);
  font-size: 2.5rem;
  line-height: 1;
}

.lightbox-prev {
  left: var(--space-xl);
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev:hover {
  transform: translateY(-50%) scale(1.1);
}

.lightbox-next {
  right: var(--space-xl);
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next:hover {
  transform: translateY(-50%) scale(1.1);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .lightbox {
    padding: var(--space-md);
  }

  .lightbox-close,
  .lightbox-prev,
  .lightbox-next {
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
  }

  .lightbox-close {
    top: var(--space-md);
    right: var(--space-md);
  }

  .lightbox-prev {
    left: var(--space-sm);
  }

  .lightbox-next {
    right: var(--space-sm);
  }

  #lightbox-image {
    max-height: 70vh;
  }
}

/* Prevent body scroll when lightbox is open */
body.lightbox-open {
  overflow: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: var(--radius-full);
  border: 3px solid var(--color-background);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-hover);
}
/* Inner Carousel for Slide 5 (Nested) - Updated for Below Caption */
.inner-carousel-container {
  position: relative;
  width: 100%;
  height: 350px;  /* Fixed height for images only; caption separate below */
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;  /* Rounded top only; bottom flat for caption connection */
  box-shadow: var(--shadow-lg);
  background: var(--color-surface-elevated);
  margin-bottom: 0;  /* No gap to caption wrapper */
}

.inner-carousel-track {
  display: flex;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
  width: 100%;  /* Each slide full width */
}

.inner-carousel-slide {
  min-width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 600ms ease-in-out;
  position: relative;
}

.inner-carousel-slide.active {
  opacity: 1;
}

.inner-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;  /* Crop to fill 16:9 aspect */
  display: block;
}
.inner-carousel-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;  /* Crop to fill like images */
  display: block;
  background: var(--color-surface-elevated);  /* Placeholder while loading */
}

/* Ensure active media has higher z-index if overlapping */
.inner-carousel-slide.active video,
.inner-carousel-slide.active img {
  z-index: 5;
}
/* Caption Below Carousel (New Wrapper and Styling) */
.inner-caption-wrapper {
  width: 100%;
  height: auto;  /* Auto-height based on text (1-2 lines typical) */
  margin-top: -2px;  /* Seamless connection; overrides any border-radius bottom */
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);  /* Rounded bottom only */
  overflow: hidden;
  background: rgba(0, 0, 0, 0.7);  /* Dark semi-transparent bar for contrast */
  transition: background var(--transition-fast);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);  /* Subtle shadow to blend with carousel */
}

.inner-caption-wrapper:hover {
  background: rgba(0, 0, 0, 0.8);  /* Slightly darker on hover for emphasis */
}

.inner-caption {
  width: 100%;
  padding: var(--space-sm) var(--space-md);  /* Compact padding */
  color: white;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  text-align: center;
  line-height: var(--line-height-tight);
  word-break: break-word;  /* Handles long captions gracefully */
  /* No absolute positioning, opacity, or transform - always visible */
}

.inner-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.8);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
  color: var(--color-text-primary);
}

.inner-carousel-btn:hover {
  background: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.inner-prev {
  left: var(--space-sm);
}

.inner-next {
  right: var(--space-sm);
}

.inner-carousel-indicators {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.5);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  z-index: 5;  /* Above images but below caption if needed */
}

.inner-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.inner-indicator.active,
.inner-indicator:hover {
  background: var(--color-primary);
  transform: scale(1.2);
}

/* Pause on hover */
.inner-carousel-container:hover .inner-carousel-track {
  animation-play-state: paused;
}

/* Responsive: Adjust height on mobile */
@media (max-width: 768px) {
  .inner-carousel-container {
    height: 250px;
  }
  
  .inner-carousel-btn {
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
  }
  
  .inner-caption {
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--text-xs);
  }
  
  .inner-caption-wrapper {
    margin-top: -1px;  /* Tighter on mobile */
  }
}
/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) var(--color-background);
}
/* Larger nav brand name */
.nav-brand {
  font-size: clamp(1.5rem, 1.4rem + 0.5vw, 1.875rem) !important;  /* Larger: 24px min, 30px max */
  line-height: 1.1;  /* Tighter line height for better fit */
}

@media (max-width: 768px) {
  .nav-brand {
    font-size: clamp(1.375rem, 1.3rem + 0.375vw, 1.625rem);  /* 22px min, 26px max on mobile */
  }
}
