/*
 * DEDOLYTICS - Premium Portfolio Styles
 * Luxury matte-black aesthetic with metallic sheen
 */

/* ========================================
   CSS Custom Properties (Theme)
   ======================================== */
:root {
  /* Base colors - will be overridden by theme.json */
  --bg: #0a0a0a;
  --panel: #151515;
  --panel-hover: #1a1a1a;
  --text: #f5f5f5;
  --muted: #888888;
  --accent: #c9c9c9;
  --accent2: #e0e0e0;
  --glow: rgba(255, 255, 255, 0.08);
  --border: #2a2a2a;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  --space-2xl: 8rem;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 0 40px rgba(255, 255, 255, 0.05);

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

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

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

/* Background texture */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at top, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
    radial-gradient(ellipse at bottom, rgba(255, 255, 255, 0.01) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* ========================================
   Typography
   ======================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
}

h2 {
  font-size: clamp(2rem, 5vw, 3rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

h4 {
  font-size: 1.25rem;
}

p {
  color: var(--muted);
  max-width: 65ch;
}

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

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

/* ========================================
   Layout Components
   ======================================== */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

section {
  padding: var(--space-2xl) 0;
  position: relative;
}

/* Section divider */
section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

section:last-of-type::after {
  display: none;
}

/* ========================================
   Navigation
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-md) 0;
  background: linear-gradient(to bottom, var(--bg) 0%, rgba(10, 10, 10, 0.9) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

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

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-logo span {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  padding: var(--space-sm) 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition-base);
}

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

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

.nav-cta {
  display: flex;
  gap: var(--space-md);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--space-sm);
  z-index: 100;
}

/* Mobile menu open state */
.nav-links.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: var(--space-lg);
  gap: 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.nav-links.open li {
  border-bottom: 1px solid var(--border);
}

.nav-links.open a {
  display: block;
  padding: var(--space-md) 0;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  padding: var(--space-sm) var(--space-md);
}

.btn-ghost:hover {
  color: var(--text);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 80px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

/* Ambient glow */
.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 50%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.hero-logo {
  width: clamp(200px, 40vw, 400px);
  height: auto;
  margin-bottom: var(--space-xl);
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

.hero-title {
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  position: relative;
  opacity: 0;
  animation: fadeInUp 1s ease 0.3s forwards;
}

/* Kinetic shimmer effect */
.hero-title span {
  display: inline-block;
  background: linear-gradient(90deg,
      var(--text) 0%,
      var(--text) 30%,
      #ffd700 50%,
      var(--text) 70%,
      var(--text) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 2.5s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: -100% 0;
  }
}

.hero-subtitle {
  font-size: clamp(0.875rem, 2vw, 1.125rem);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: fadeInUp 1s ease 0.5s forwards;
}

.hero-services {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  opacity: 0;
  animation: fadeInUp 1s ease 0.7s forwards;
}

.hero-services span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  position: relative;
}

.hero-services span:not(:last-child)::after {
  content: '•';
  position: absolute;
  right: calc(-1 * var(--space-lg) / 2 - 0.25em);
  color: var(--muted);
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  opacity: 0;
  animation: fadeInUp 1s ease 0.9s forwards;
}

/* Scroll indicator - positioned between hero and gallery */
.scroll-indicator-container {
  display: flex;
  justify-content: center;
  padding: 2rem 0;
  background: var(--bg);
  position: relative;
  z-index: 10;
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 1s ease 1.5s forwards;
  pointer-events: none;
}

.scroll-indicator span {
  opacity: 0.6;
}

.scroll-indicator::after {
  content: '';
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 0.4;
    transform: scaleY(0.9);
  }

  50% {
    opacity: 0.9;
    transform: scaleY(1);
  }
}

/* ========================================
   Gallery Section (Game Menu Style)
   ======================================== */
.gallery-section {
  padding: var(--space-2xl) 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.gallery-header h2 {
  margin-bottom: var(--space-sm);
}

.gallery-header p {
  margin: 0 auto;
  text-align: center;
}

/* ========================================
   Project Grid (Replaces Carousel)
   ======================================== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: var(--space-xl);
}

@media (max-width: 900px) {
  .project-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.project-card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: var(--accent);
}

.project-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #0a0a0a;
  position: relative;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.project-card:hover .project-card-image img {
  transform: scale(1.05);
}

.project-card-content {
  padding: 1.5rem;
}

.project-card-category {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.project-card-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.project-card-description {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.project-card-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent2);
  transition: color 0.3s ease;
}

.project-card:hover .project-card-cta {
  color: var(--accent);
}

/* Carousel container */
.gallery-carousel {
  position: relative;
  width: 100%;
  height: 500px;
  perspective: 1200px;
  perspective-origin: center center;
  overflow: visible;
}

.gallery-track {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Gallery card */
.gallery-card {
  position: absolute;
  left: 50%;
  width: 400px;
  height: 280px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
    opacity 0.4s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  box-shadow: var(--shadow-md);
}

.gallery-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gallery-card:hover::before,
.gallery-card.active::before {
  opacity: 1;
}

.gallery-card.active {
  transform: translateZ(50px) scale(1.05);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: rgba(255, 255, 255, 0.15);
  z-index: 10;
}

.gallery-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--bg);
  transition: transform var(--transition-slow);
}

.gallery-card:hover .gallery-card-image {
  transform: scale(1.02);
}

.gallery-card-content {
  padding: var(--space-md);
  background: linear-gradient(to top, var(--panel) 80%, rgba(21, 21, 21, 0.95));
}

.gallery-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-card-meta {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.gallery-card-type {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 8px;
  background: var(--border);
  border-radius: var(--radius-sm);
  color: var(--accent);
}

.gallery-card-tags {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.gallery-card-tag {
  font-size: 0.625rem;
  color: var(--muted);
}

/* Gallery navigation */
.gallery-nav {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.gallery-nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-nav-btn:hover {
  background: var(--panel-hover);
  border-color: var(--accent);
  transform: scale(1.05);
}

.gallery-nav-btn:active {
  transform: scale(0.95);
}

/* Gallery info panel */
.gallery-info {
  max-width: 500px;
  margin: var(--space-lg) auto 0;
  padding: var(--space-lg);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-base);
}

.gallery-info.visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-info-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.gallery-info-caption {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Empty state */
.gallery-empty {
  text-align: center;
  padding: var(--space-2xl);
  color: var(--muted);
}

.gallery-empty-icon {
  font-size: 4rem;
  margin-bottom: var(--space-lg);
  opacity: 0.3;
}

/* ========================================
   Services Section
   ======================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.service-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  font-size: 1.5rem;
}

.service-card h3 {
  margin-bottom: var(--space-sm);
}

.service-card p {
  font-size: 0.9rem;
}

/* ========================================
   Process Section
   ======================================== */
.process-timeline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: var(--space-xl);
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 2.5rem;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 15%, var(--accent) 85%, transparent 100%);
  opacity: 0.4;
}

.process-step {
  flex: 1;
  text-align: center;
  padding: 0 var(--space-md);
  position: relative;
}

.process-step-number {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 50%;
  margin: 0 auto var(--space-lg);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  position: relative;
  z-index: 1;
  transition: all var(--transition-base);
}

.process-step:hover .process-step-number {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  transform: scale(1.05);
}

.process-step h4 {
  margin-bottom: var(--space-sm);
}

.process-step p {
  font-size: 0.875rem;
  margin: 0 auto;
}

/* ========================================
   Outcomes Section
   ======================================== */
.outcomes-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-xl) auto 0;
}

.outcome-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  transition: all var(--transition-base);
}

.outcome-item:hover {
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.outcome-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1.25rem;
  color: var(--accent);
}

.outcome-content h4 {
  margin-bottom: var(--space-xs);
}

.outcome-content p {
  font-size: 0.9rem;
}

/* ========================================
   Contact Section
   ======================================== */
.contact-section {
  text-align: center;
}

.contact-form {
  max-width: 500px;
  margin: var(--space-xl) auto 0;
}

.form-group {
  margin-bottom: var(--space-md);
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: var(--space-sm);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--space-md);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

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

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

.contact-info {
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
}

.contact-info a {
  font-size: 1.25rem;
  font-weight: 500;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer p {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0 auto;
}

.footer a {
  color: var(--accent);
}

/* ========================================
   Modal (PDF/Image Viewer)
   ======================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-size: 1rem;
  font-weight: 600;
}

.modal-controls {
  display: flex;
  gap: var(--space-sm);
}

.modal-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-btn:hover {
  background: var(--panel-hover);
  border-color: var(--accent);
}

.modal-close {
  font-size: 1.25rem;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: var(--text);
}

.modal-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

/* PDF Viewer */
.pdf-viewer {
  display: flex;
  width: 100%;
  height: 100%;
}

.pdf-sidebar {
  width: 180px;
  background: var(--panel);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: var(--space-md);
}

.pdf-thumb {
  width: 100%;
  height: auto;
  margin-bottom: var(--space-md);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  opacity: 0.6;
}

.pdf-thumb:hover,
.pdf-thumb.active {
  border-color: var(--accent);
  opacity: 1;
}

.pdf-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: var(--space-lg);
}

.pdf-canvas {
  max-width: 100%;
  max-height: 100%;
  box-shadow: var(--shadow-lg);
}

.pdf-page-nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.pdf-page-info {
  font-size: 0.875rem;
  color: var(--muted);
}

/* Image Viewer */
.image-viewer {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: var(--space-lg);
}

.image-viewer img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform var(--transition-base);
  cursor: zoom-in;
}

.image-viewer.zoomed img {
  cursor: zoom-out;
  transform: scale(2);
}

/* ========================================
   Placeholder Card (for PBIX/missing previews)
   ======================================== */
.placeholder-preview {
  width: 100%;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 100%);
  gap: var(--space-md);
  border-bottom: 1px solid var(--border);
}

.placeholder-preview-icon {
  font-size: 3.5rem;
  opacity: 0.6;
  filter: grayscale(0.3);
}

.placeholder-preview-text {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.7;
}

/* ========================================
   Kindworth Section/Page Styles
   ======================================== */
.kindworth-hero {
  background: linear-gradient(135deg, var(--bg) 0%, #0f1419 100%);
}

.kindworth-logo {
  height: 60px;
  width: auto;
  margin-bottom: var(--space-lg);
}

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

.feature-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

/* Kindworth Gallery (horizontal scroll) */
#kindworthGallery {
  overflow: visible;
}

#kindworthGallery .gallery-track {
  position: relative;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  gap: var(--space-lg);
  padding: var(--space-lg) var(--space-xl);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

#kindworthGallery .gallery-track::-webkit-scrollbar {
  display: none;
}

#kindworthGallery .gallery-card {
  position: relative;
  left: auto;
  transform: none;
  flex-shrink: 0;
  scroll-snap-align: center;
  opacity: 1;
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

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

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

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* ========================================
   Accessibility
   ======================================== */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
  .gallery-card {
    width: 350px;
    height: 250px;
  }

  .gallery-card-image {
    height: 170px;
  }

  .process-timeline {
    flex-wrap: wrap;
    gap: var(--space-lg);
  }

  .process-timeline::before {
    display: none;
  }

  .process-step {
    flex-basis: 45%;
  }
}

@media (max-width: 768px) {
  :root {
    font-size: 14px;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 120px var(--space-lg) var(--space-xl);
    min-height: auto;
  }

  .hero-services {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }

  .gallery-carousel {
    height: 400px;
  }

  .gallery-card {
    width: 280px;
    height: 220px;
  }

  .gallery-card-image {
    height: 140px;
  }

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

  .process-step {
    flex-basis: 100%;
  }

  .pdf-sidebar {
    display: none;
  }

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

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

  .gallery-carousel {
    height: 350px;
  }

  .gallery-card {
    width: 240px;
    height: 200px;
  }

  .gallery-card-image {
    height: 120px;
  }

  .modal-header {
    flex-wrap: wrap;
    gap: var(--space-sm);
  }
}