/* =============================================
   COLT COAN - Photography Portfolio
   Cal.com-Inspired Monochrome Design System
   ============================================= */

/* CSS Variables — Light mode default (Cal.com inspired) */
:root {
  /* Colors — Monochrome grayscale */
  --color-bg: #ffffff;
  --color-bg-secondary: #fafafa;
  --color-bg-tertiary: #f5f5f5;
  --color-text: #242424;
  --color-text-muted: #898989;
  --color-text-secondary: #6b6b6b;
  --color-accent: #242424;
  --color-accent-hover: #111111;
  --color-border: rgba(34, 42, 53, 0.1);
  --color-overlay: rgba(255, 255, 255, 0.95);

  /* Typography — Outfit display + Inter body */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing — Generous Cal.com rhythm */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 5rem;
  --space-xl: 6rem;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s ease;
  --transition-slow: 0.6s ease;
  --transition-cubic: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-max: 1200px;
  --nav-height: 80px;

  /* Shadows — Cal.com multi-layered system */
  --shadow-card: rgba(19, 19, 22, 0.7) 0px 1px 5px -4px,
                 rgba(34, 42, 53, 0.08) 0px 0px 0px 1px,
                 rgba(34, 42, 53, 0.05) 0px 4px 8px 0px;
  --shadow-soft: rgba(34, 42, 53, 0.05) 0px 4px 8px;
  --shadow-button-inset: rgba(255, 255, 255, 0.15) 0px 2px 0px inset;
}

/* Dark mode overrides — applied to html (anti-FOUC) or body */
:is(html, body).dark-mode {
  --color-bg: #0a0a0a;
  --color-bg-secondary: #111111;
  --color-bg-tertiary: #1a1a1a;
  --color-text: #f5f5f5;
  --color-text-muted: #898989;
  --color-text-secondary: #aaaaaa;
  --color-accent: #f5f5f5;
  --color-accent-hover: #e0e0e0;
  --color-border: rgba(255, 255, 255, 0.1);
  --color-overlay: rgba(0, 0, 0, 0.9);
  --shadow-card: rgba(0, 0, 0, 0.5) 0px 1px 5px -4px,
                 rgba(255, 255, 255, 0.06) 0px 0px 0px 1px,
                 rgba(0, 0, 0, 0.3) 0px 4px 8px 0px;
  --shadow-soft: rgba(0, 0, 0, 0.2) 0px 4px 8px;
}

/* Light mode explicit class (matches defaults) */
body.light-mode {
  --color-bg: #ffffff;
  --color-bg-secondary: #fafafa;
  --color-bg-tertiary: #f5f5f5;
  --color-text: #242424;
  --color-text-muted: #898989;
  --color-text-secondary: #6b6b6b;
  --color-accent: #242424;
  --color-accent-hover: #111111;
  --color-border: rgba(34, 42, 53, 0.1);
  --color-overlay: rgba(255, 255, 255, 0.95);
}

/* =============================================
   THEME TOGGLE
   ============================================= */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--color-text-muted);
  transition: color var(--transition-fast), background var(--transition-fast);
  cursor: pointer;
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-bg-tertiary);
}

/* Show sun in dark mode, moon in light mode */
.theme-icon-sun { display: none; }
.theme-icon-moon { display: block; }

.dark-mode .theme-icon-sun { display: block; }
.dark-mode .theme-icon-moon { display: none; }

/* Loader — always black background with white logo */
.loader {
  background: #0a0a0a !important;
}
.loader .loader-progress {
  background: #ffffff;
}
.loader .loader-bar {
  background: rgba(255, 255, 255, 0.15);
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

body.no-scroll {
  overflow: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

/* =============================================
   LOADER
   ============================================= */
.loader {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

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

.loader-logo {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-logo .loader-text {
  display: block;
}

.loader-logo .loader-img {
  max-width: 150px;
  max-height: 100px;
  object-fit: contain;
}

.loader-bar {
  width: 200px;
  height: 2px;
  background: var(--color-border);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}

.loader-progress {
  width: 0;
  height: 100%;
  background: var(--color-text);
  animation: loadProgress 1.5s ease forwards;
}

@keyframes loadProgress {
  to { width: 100%; }
}

/* =============================================
   NAVIGATION
   ============================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-sm) 0;
  transition: background var(--transition-medium), padding var(--transition-medium),
              box-shadow var(--transition-medium);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.75rem 0;
  box-shadow: var(--shadow-soft);
}

.dark-mode .nav.scrolled {
  background: rgba(10, 10, 10, 0.95);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.nav-logo {
  display: flex;
  align-items: center;
  transition: opacity var(--transition-fast);
}

.nav-logo:hover {
  opacity: 0.7;
}

.nav-logo .logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.nav-logo .logo-img {
  max-height: 56px;
  width: auto;
  pointer-events: auto;
}

/* Logo dark/light mode switching */
.nav-logo .logo-img-dark { display: block; }
.nav-logo .logo-img-light { display: none; }
.dark-mode .nav-logo .logo-img-dark { display: none; }
.dark-mode .nav-logo .logo-img-light { display: block; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--color-text-secondary);
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-text);
  transition: width var(--transition-medium);
}

.nav-link:hover {
  color: var(--color-text);
}

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

.nav-link-cta {
  color: #ffffff;
  background: var(--color-accent);
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  transition: background var(--transition-fast), transform var(--transition-fast),
              opacity var(--transition-fast);
  box-shadow: var(--shadow-button-inset);
}

.nav-link-cta::after {
  display: none;
}

.nav-link-cta:hover {
  color: #ffffff;
  opacity: 0.85;
  transform: translateY(-1px);
}

.dark-mode .nav-link-cta {
  color: #0a0a0a;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  z-index: 1002;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

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

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

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

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  background: var(--color-bg);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(34, 42, 53, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(34, 42, 53, 0.02) 0%, transparent 50%);
}

.dark-mode .hero-gradient {
  background:
    radial-gradient(ellipse at 20% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  padding-bottom: 7rem;
}

.hero-subtitle {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 700;
  line-height: 1.10;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.hero-line {
  display: block;
}

.hero-line-accent {
  color: var(--color-text-muted);
  font-style: italic;
  font-weight: 400;
}

.hero-description {
  font-size: 1rem;
  color: var(--color-text-muted);
  letter-spacing: 0.15em;
  margin-bottom: var(--space-lg);
  font-weight: 400;
}

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

.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-text-muted);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-text-muted), transparent);
  animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.5; transform: scaleY(0.8); }
}

/* =============================================
   BUTTONS — Cal.com dark primary + ghost outline
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: 8px;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: var(--color-accent);
  color: #ffffff;
  box-shadow: var(--shadow-button-inset);
}

.dark-mode .btn-primary {
  color: #0a0a0a;
}

.btn-primary:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--color-bg);
  color: var(--color-text);
  box-shadow: var(--shadow-card);
}

.btn-outline:hover {
  box-shadow: rgba(19, 19, 22, 0.7) 0px 2px 8px -4px,
              rgba(34, 42, 53, 0.12) 0px 0px 0px 1px,
              rgba(34, 42, 53, 0.08) 0px 6px 12px 0px;
  transform: translateY(-1px);
}

.btn-full {
  width: 100%;
}

/* =============================================
   SECTIONS — Generous Cal.com spacing
   ============================================= */
.section {
  padding: var(--space-xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-subtitle {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.10;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

/* =============================================
   GALLERY
   ============================================= */
.gallery-filter {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
  position: relative;
  z-index: 100;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  background: transparent;
  border-radius: 9999px;
  transition: all var(--transition-fast);
  cursor: pointer;
  box-shadow: rgba(34, 42, 53, 0.08) 0px 0px 0px 1px;
}

.filter-btn:hover {
  color: var(--color-text);
  box-shadow: rgba(34, 42, 53, 0.15) 0px 0px 0px 1px;
}

.filter-btn.active {
  color: #ffffff;
  background: var(--color-accent);
  box-shadow: none;
}

.dark-mode .filter-btn.active {
  color: #0a0a0a;
}

.dark-mode .filter-btn {
  box-shadow: rgba(255, 255, 255, 0.1) 0px 0px 0px 1px;
}

.dark-mode .filter-btn:hover {
  box-shadow: rgba(255, 255, 255, 0.2) 0px 0px 0px 1px;
}

/* Filter Dropdown */
.filter-dropdown {
  position: relative;
  z-index: 1000;
}

.filter-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  background: transparent;
  border-radius: 9999px;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: rgba(34, 42, 53, 0.08) 0px 0px 0px 1px;
}

.filter-dropdown-btn:hover {
  color: var(--color-text);
  box-shadow: rgba(34, 42, 53, 0.15) 0px 0px 0px 1px;
}

.filter-dropdown-btn.active {
  box-shadow: rgba(34, 42, 53, 0.2) 0px 0px 0px 1px;
}

.filter-dropdown-btn.has-selection {
  color: var(--color-text);
  box-shadow: rgba(34, 42, 53, 0.2) 0px 0px 0px 1px;
}

.filter-dropdown-btn svg {
  transition: transform var(--transition-fast);
}

.filter-dropdown-btn .filter-icon {
  display: none;
}

.filter-dropdown-btn .chevron-icon {
  display: block;
}

.filter-dropdown-btn.active .chevron-icon {
  transform: rotate(180deg);
}

.filter-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  background: var(--color-bg);
  border-radius: 12px;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-10px);
  transition: all var(--transition-fast);
  z-index: 1001;
  box-shadow: var(--shadow-card), rgba(0, 0, 0, 0.1) 0px 10px 40px;
}

.filter-dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.filter-dropdown-item {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
}

.filter-dropdown-item:hover {
  background: var(--color-bg-tertiary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-sm);
}

/* Masonry layout for original aspect ratios */
.gallery-grid.aspect-original {
  display: block;
  column-count: 3;
  column-gap: var(--space-sm);
}

.gallery-grid.aspect-original .gallery-item {
  aspect-ratio: unset !important;
  height: auto !important;
  overflow: visible !important;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: var(--space-sm);
  display: inline-block;
  width: 100%;
}

.gallery-grid.aspect-original .gallery-item img {
  width: 100%;
  height: auto !important;
  object-fit: contain;
  display: block;
}

/* Fixed aspect ratios use grid layout */
.gallery-grid.aspect-2x3 .gallery-item {
  aspect-ratio: 2/3;
}

.gallery-grid.aspect-1x1 .gallery-item {
  aspect-ratio: 1/1;
}

/* Hide titles when setting is disabled */
.gallery-grid.hide-titles .gallery-overlay {
  display: none;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-medium), transform var(--transition-medium);
}

.gallery-item:hover {
  box-shadow: rgba(19, 19, 22, 0.7) 0px 2px 8px -4px,
              rgba(34, 42, 53, 0.12) 0px 0px 0px 1px,
              rgba(34, 42, 53, 0.08) 0px 8px 16px 0px;
  transform: translateY(-2px);
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.15s; }
.gallery-item:nth-child(3) { animation-delay: 0.2s; }
.gallery-item:nth-child(4) { animation-delay: 0.25s; }
.gallery-item:nth-child(5) { animation-delay: 0.3s; }
.gallery-item:nth-child(6) { animation-delay: 0.35s; }

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

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: none;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-md);
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-category {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.25rem;
}

.gallery-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
}

.gallery-item.hidden {
  display: none;
}

/* =============================================
   ABOUT SECTION
   ============================================= */
.section-about {
  background: var(--color-bg-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-xl);
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.about-image-wrapper img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.about-image-accent {
  position: absolute;
  top: -16px;
  left: -16px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--color-border);
  border-radius: 12px;
  z-index: -1;
}

.about-content .section-subtitle {
  text-align: left;
}

.about-content .section-title {
  text-align: left;
  margin-bottom: var(--space-md);
}

.about-text p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}

.about-text strong {
  color: var(--color-text);
  font-weight: 600;
}

.about-publications {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.publications-title {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.publications-logos {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.publication {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-muted);
  opacity: 0.6;
  transition: opacity var(--transition-fast);
  letter-spacing: -0.01em;
}

.publication:hover {
  opacity: 1;
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.section-testimonials {
  background: var(--color-bg);
}

.testimonials-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto var(--space-md);
  overflow: hidden;
}

.testimonial-slide {
  display: none;
  text-align: center;
  padding: var(--space-md);
  animation: fadeIn 0.5s ease;
}

.testimonial-slide.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  font-style: italic;
}

.testimonial-quote::before {
  content: '\201C';
  color: var(--color-text-muted);
}

.testimonial-quote::after {
  content: '\201D';
  color: var(--color-text-muted);
}

.testimonial-author {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.testimonials-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

.testimonial-prev,
.testimonial-next {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
  box-shadow: rgba(34, 42, 53, 0.08) 0px 0px 0px 1px;
}

.testimonial-prev:hover,
.testimonial-next:hover {
  color: var(--color-text);
  box-shadow: rgba(34, 42, 53, 0.15) 0px 0px 0px 1px;
}

.testimonial-prev svg,
.testimonial-next svg {
  width: 20px;
  height: 20px;
}

.testimonials-dots {
  display: flex;
  gap: 0.5rem;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.testimonial-dot.active,
.testimonial-dot:hover {
  background: var(--color-text);
  transform: scale(1.2);
}

/* =============================================
   CONTACT SECTION
   ============================================= */
.section-contact {
  background: var(--color-bg-secondary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.contact-info .section-subtitle {
  text-align: left;
}

.contact-info .section-title {
  text-align: left;
  margin-bottom: var(--space-md);
}

.contact-description {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.contact-social {
  display: flex;
  gap: var(--space-sm);
}

.social-link {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
  box-shadow: rgba(34, 42, 53, 0.08) 0px 0px 0px 1px;
}

.social-link:hover {
  color: var(--color-text);
  box-shadow: rgba(34, 42, 53, 0.15) 0px 0px 0px 1px;
  transform: translateY(-2px);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.contact-form-wrapper {
  background: var(--color-bg);
  padding: var(--space-lg);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

.dark-mode .contact-form-wrapper {
  background: var(--color-bg-tertiary);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.form-group input,
.form-group textarea {
  padding: 0.875rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg-secondary);
  border: none;
  border-radius: 8px;
  transition: box-shadow var(--transition-fast);
  box-shadow: rgba(34, 42, 53, 0.08) 0px 0px 0px 1px inset;
}

.dark-mode .form-group input,
.dark-mode .form-group textarea {
  background: var(--color-bg-secondary);
  box-shadow: rgba(255, 255, 255, 0.1) 0px 0px 0px 1px inset;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  box-shadow: rgba(34, 42, 53, 0.2) 0px 0px 0px 1px inset,
              rgba(59, 130, 246, 0.5) 0px 0px 0px 3px;
}

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

.contact-form .btn {
  grid-column: 1 / -1;
  margin-top: var(--space-sm);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--color-bg);
  padding: var(--space-lg) 0 var(--space-md);
  border-top: 1px solid var(--color-border);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
  margin-bottom: var(--space-lg);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
  letter-spacing: -0.02em;
}

.footer-tagline {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-location {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

.footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

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

.footer-links a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-text);
}

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

.footer-services p {
  margin: 0;
}

.footer-services a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-services a:hover {
  color: var(--color-text);
}

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

.footer-instagram p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.footer-instagram a {
  color: var(--color-text);
  font-weight: 600;
  transition: opacity var(--transition-fast);
}

.footer-instagram a:hover {
  opacity: 0.7;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.footer-bottom p {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* =============================================
   CATEGORY PAGES (SEO-OPTIMIZED)
   ============================================= */
.category-hero {
  padding: calc(var(--nav-height) + var(--space-lg)) 0 var(--space-lg);
  background: var(--color-bg-secondary);
  text-align: center;
}

.category-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  line-height: 1.10;
  letter-spacing: -0.02em;
}

.category-description {
  color: var(--color-text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  margin-bottom: var(--space-md);
}

.breadcrumb ol {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.breadcrumb li:not(:last-child)::after {
  content: '\203A';
  color: var(--color-text-muted);
}

.breadcrumb a {
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--color-text);
}

.gallery-cta {
  text-align: center;
  margin-top: var(--space-lg);
}

.section-seo-content {
  background: var(--color-bg-secondary);
  padding: var(--space-lg) 0;
}

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

.seo-content h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.seo-content p {
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.seo-content .text-link {
  color: var(--color-text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--color-border);
  text-underline-offset: 4px;
  transition: text-decoration-color var(--transition-fast);
}

.seo-content .text-link:hover {
  text-decoration-color: var(--color-text);
}

.section-description {
  color: var(--color-text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: var(--space-sm) auto 0;
  text-align: center;
}

.gallery-filter .filter-btn[href] {
  text-decoration: none;
}

/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: var(--color-overlay);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-medium), visibility var(--transition-medium);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

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

.lightbox-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--color-text);
  z-index: 2001;
  transition: color var(--transition-fast), transform var(--transition-fast);
  border-radius: 50%;
  box-shadow: var(--shadow-card);
  background: var(--color-bg);
}

.lightbox-close:hover {
  transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  z-index: 2001;
  transition: all var(--transition-fast);
  border-radius: 50%;
  box-shadow: var(--shadow-card);
  background: var(--color-bg);
}

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

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

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

.lightbox-prev svg,
.lightbox-next svg {
  width: 32px;
  height: 32px;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  pointer-events: auto;
  cursor: zoom-in;
  opacity: 1;
  transition: transform 0.2s ease-out, opacity 0.4s ease;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
  box-shadow: var(--shadow-card);
}

.lightbox-content img.is-loading {
  opacity: 0.7;
}

.lightbox-caption {
  margin-top: var(--space-sm);
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  text-align: center;
}

.lightbox-zoom-indicator {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 1rem;
  background: var(--color-bg);
  color: var(--color-text);
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
  z-index: 2002;
  box-shadow: var(--shadow-card);
}

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

.lightbox-hint {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 1rem;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  text-align: center;
  opacity: 0.7;
  pointer-events: none;
  z-index: 2002;
}

/* =============================================
   REVEAL ANIMATIONS
   ============================================= */
.reveal-up,
.reveal-left {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-left {
  transform: translateX(-30px);
}

.reveal-up.revealed,
.reveal-left.revealed {
  opacity: 1;
  transform: translate(0);
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

/* Tablet landscape and below */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .about-image {
    max-width: 500px;
    margin: 0 auto;
  }

  .about-content .section-subtitle,
  .about-content .section-title {
    text-align: center;
  }

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

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

  .publications-logos {
    justify-content: center;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .contact-info .section-subtitle,
  .contact-info .section-title {
    text-align: center;
  }

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

  .contact-social {
    justify-content: center;
  }
}

/* Tablet portrait and mobile */
@media (max-width: 768px) {
  :root {
    --space-lg: 3rem;
    --space-xl: 4rem;
    --nav-height: 70px;
  }

  /* Navigation - Hamburger Menu */
  .nav-toggle {
    display: flex;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .nav-logo .logo-text {
    font-size: 1.25rem;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background: var(--color-bg);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
    padding: var(--nav-height) var(--space-md) var(--space-md);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-medium), visibility var(--transition-medium);
  }

  .nav-menu.active {
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    font-size: 1.5rem;
    font-family: var(--font-display);
    font-weight: 700;
  }

  .nav-link-cta {
    margin-top: var(--space-sm);
    font-size: 1rem;
  }

  /* Hero Section Mobile */
  .hero {
    min-height: 100svh;
  }

  .hero-content {
    padding: 0 1.5rem;
  }

  .hero-title {
    font-size: clamp(2rem, 10vw, 3.5rem);
  }

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

  .hero-description {
    font-size: 0.85rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .hero-scroll {
    display: none;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    padding: 1rem 1.5rem;
  }

  /* Section Headers */
  .section-header {
    padding: 0 1rem;
  }

  .section-title {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  .section-subtitle {
    font-size: 0.8rem;
  }

  .section-description {
    font-size: 0.9rem;
    padding: 0 0.5rem;
  }

  /* Gallery Filter */
  .gallery-filter {
    justify-content: center;
    flex-wrap: nowrap;
    padding: 0 1rem;
    margin-bottom: var(--space-md);
    gap: 0.75rem;
  }

  .filter-btn {
    flex-shrink: 0;
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  .filter-dropdown-btn {
    padding: 0.6rem 0.75rem;
    min-width: auto;
    gap: 0;
  }

  .filter-dropdown-btn span {
    display: none;
  }

  .filter-dropdown-btn .filter-icon {
    display: block;
  }

  .filter-dropdown-btn .chevron-icon {
    display: none;
  }

  .filter-dropdown-btn svg {
    width: 18px;
    height: 18px;
  }

  .filter-dropdown-menu {
    left: auto;
    right: 0;
    transform: translateX(0) translateY(-10px);
  }

  .filter-dropdown-menu.active {
    transform: translateX(0) translateY(0);
  }

  /* Gallery Grid */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 1rem;
  }

  .gallery-grid.aspect-original {
    column-count: 1;
    column-gap: 1rem;
    padding: 0 1rem;
  }

  .gallery-grid.aspect-original .gallery-item {
    margin-bottom: 1rem;
    aspect-ratio: unset !important;
    height: auto !important;
  }

  .gallery-grid.aspect-original .gallery-item img {
    height: auto !important;
    object-fit: contain !important;
  }

  .gallery-item {
    aspect-ratio: 4/3;
  }

  .gallery-overlay {
    padding: 1rem;
  }

  .gallery-title {
    font-size: 1rem;
  }

  .gallery-category {
    font-size: 0.75rem;
  }

  /* About Section */
  .about-content {
    padding: 0 1rem;
  }

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

  /* Testimonials */
  .testimonials-slider {
    padding: 0 1rem;
  }

  .testimonial-quote {
    font-size: 1.1rem;
    line-height: 1.6;
  }

  .testimonials-controls {
    margin-top: 1.5rem;
  }

  /* Contact Section */
  .contact-form {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .contact-form-wrapper {
    padding: var(--space-md);
    margin: 0 1rem;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr 1fr;
    text-align: left;
    gap: var(--space-md);
    padding: 0 1rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
  }

  .footer-links {
    justify-content: flex-start;
  }

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

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

  /* Lightbox Mobile */
  .lightbox-content {
    padding: 1rem;
    max-height: 85vh;
  }

  .lightbox-content img {
    max-height: 70vh;
  }

  .lightbox-close {
    top: 0.5rem;
    right: 0.5rem;
    width: 40px;
    height: 40px;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
  }

  .lightbox-prev {
    left: 0.5rem;
  }

  .lightbox-next {
    right: 0.5rem;
  }

  .lightbox-hint {
    font-size: 0.7rem;
    bottom: 0.5rem;
  }

  .lightbox-zoom-indicator {
    bottom: 3rem;
  }

  .lightbox-info {
    padding: 1rem;
  }

  .lightbox-title {
    font-size: 1.1rem;
  }

  /* Category pages responsive */
  .category-hero {
    padding: calc(var(--nav-height) + var(--space-md)) 0 var(--space-md);
  }

  .category-title {
    font-size: 2rem;
  }

  .breadcrumb {
    font-size: 0.85rem;
  }
}

/* Small mobile phones */
@media (max-width: 480px) {
  :root {
    --space-lg: 2.5rem;
    --space-xl: 4rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0 1rem;
  }

  .gallery-grid.aspect-original {
    column-count: 1;
    padding: 0 1rem;
  }

  .gallery-grid.aspect-original .gallery-item {
    aspect-ratio: unset !important;
    height: auto !important;
  }

  .gallery-grid.aspect-original .gallery-item img {
    height: auto !important;
    object-fit: contain !important;
  }

  .gallery-item {
    aspect-ratio: 4/5;
  }

  .hero-title {
    font-size: clamp(1.75rem, 9vw, 2.5rem);
  }

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

  .filter-btn {
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
  }

  .contact-form-wrapper {
    padding: 1.5rem;
    margin: 0 0.5rem;
  }

  .form-group input,
  .form-group textarea {
    font-size: 16px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 0 1rem;
  }

  .footer-links,
  .footer-services,
  .footer-instagram {
    text-align: center;
  }

  .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
  }

  .lightbox-content {
    padding: 0.5rem;
  }

  .lightbox-info {
    position: relative;
    bottom: auto;
    background: var(--color-bg-secondary);
    border-radius: 0;
  }

  .lightbox-prev,
  .lightbox-next {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
  }
}

/* Very small phones (iPhone SE, etc) */
@media (max-width: 375px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .nav-logo .logo-text {
    font-size: 1.1rem;
  }

  .filter-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.7rem;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .gallery-item:hover .gallery-overlay {
    opacity: 0;
  }

  .gallery-item:active .gallery-overlay {
    opacity: 1;
  }

  .gallery-item:hover {
    transform: none;
    box-shadow: var(--shadow-card);
  }

  .btn:hover {
    transform: none;
  }

  .btn:active {
    transform: scale(0.98);
  }

  .filter-btn:hover {
    color: var(--color-text-muted);
    background: transparent;
  }

  .filter-btn:active,
  .filter-btn.active {
    color: #ffffff;
    background: var(--color-accent);
  }
}

/* Landscape mobile orientation */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: calc(var(--nav-height) + 2rem) 0 2rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-cta {
    flex-direction: row;
    gap: 1rem;
  }

  .hero-cta .btn {
    width: auto;
    max-width: none;
  }

  .lightbox-content img {
    max-height: 60vh;
  }
}

/* Safe area insets for notched phones */
@supports (padding: max(0px)) {
  .nav {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .footer {
    padding-bottom: max(var(--space-md), env(safe-area-inset-bottom));
  }

  .lightbox-close {
    top: max(0.5rem, env(safe-area-inset-top));
    right: max(0.5rem, env(safe-area-inset-right));
  }
}