/**
 * Edap Digital - Core Design System
 * Inspired by modern, minimal architecture (Vercel, Linear, Stripe).
 */

:root {
  /* Colors - Zinc/Slate Palette */
  --bg-background: #111113;      /* Slightly brighter dark */
  --bg-surface: #1a1a1e;         /* Brighter surface */
  --bg-surface-hover: #27272a;   /* Zinc 800 */
  
  --text-primary: #fafafa;       /* Zinc 50 */
  --text-secondary: #a1a1aa;     /* Zinc 400 */
  --text-muted: #71717a;         /* Zinc 500 */
  
  --border-subtle: #27272a;      /* Zinc 800 */
  --border-strong: #3f3f46;      /* Zinc 700 */
  
  /* Accents (Refined Teal & Indigo) */
  --accent-primary: #14b8a6;     /* Teal 500 */
  --accent-secondary: #6366f1;   /* Indigo 500 */
  
  /* Typography */
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', system-ui, -apple-system, sans-serif;
  
  /* Animation */
  --ease-out-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
}

[data-theme="light"] {
  --bg-background: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f1f5f9;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg-background);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  line-height: 1.6;
  position: relative;
  /* Body has no overflow set so only html scrolls, completely eliminating double scrollbars */
}

/* Premium Glow Background (Fixed in viewport, no document overflow) */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
      linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center 30%, black, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at center 30%, black, transparent 70%);
  z-index: -2;
  pointer-events: none;
}

body::before {
  content: '';
  position: fixed;
  top: -15vh;
  left: -15vw;
  width: 55vw;
  height: 55vh;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.06) 0%, rgba(9, 9, 11, 0) 65%);
  z-index: -1;
  pointer-events: none;
}
body::after {
  content: '';
  position: fixed;
  top: 35vh;
  right: -15vw;
  width: 60vw;
  height: 60vh;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, rgba(9, 9, 11, 0) 65%);
  z-index: -1;
  pointer-events: none;
}

main { flex: 1 0 auto; }

/* --- Marquee (Kayan Teknoloji Şeridi - Ultra-Wide & Mobile Fluid) --- */
.marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 3.5rem 0;
  display: flex;
  background: transparent;
  user-select: none;
  mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll-marquee 45s linear infinite;
  will-change: transform;
}
.marquee-track:hover {
  animation-play-state: paused;
}
.marquee-content {
  display: inline-flex;
  gap: 5.5rem;
  padding-right: 5.5rem;
  align-items: center;
  flex-shrink: 0;
}
.marquee-content i {
  font-size: 3.25rem;
  color: var(--text-muted);
  opacity: 0.35;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
}
.marquee-content i:hover { 
  color: var(--text-primary); 
  opacity: 1;
  transform: scale(1.15) translateY(-4px);
}
@keyframes scroll-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 1920px) {
  .container {
    max-width: 1400px;
    padding: 0 2rem;
  }
}

.section { padding: 5.5rem 0; }

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 2.5rem;
}

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 600;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out-smooth);
}
a:hover { color: var(--accent-primary); }

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

/* Gradients */
.text-gradient-accent {
  background: linear-gradient(to right, #5eead4, #99f6e4, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#animated-word {
  display: inline-block;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.word-exit {
  opacity: 0;
  transform: translateY(10px);
}
.word-enter {
  opacity: 0;
  transform: translateY(-10px);
}

/* --- Components --- */

/* --- Projects Filter Buttons --- */
.filter-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}
.filter-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.filter-btn.active {
  background: var(--text-primary);
  color: var(--bg-background);
  border-color: var(--text-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--duration-fast) var(--ease-out-smooth);
}

.btn-primary {
  background-color: var(--text-primary);
  color: var(--bg-background);
}
.btn-primary:hover {
  background-color: var(--text-secondary);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background-color: transparent;
  border-color: var(--border-subtle);
  color: var(--text-primary);
}
.btn-outline:hover {
  background-color: var(--bg-surface-hover);
  border-color: var(--border-strong);
}

/* Cards (With Spotlight Effect) */
.card {
  position: relative;
  background-color: rgba(26, 26, 30, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 2rem;
  transition: all var(--duration-fast) var(--ease-out-smooth);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: var(--mouse-y, -100px);
  left: var(--mouse-x, -100px);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.12), transparent 60%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out-smooth);
  pointer-events: none;
  z-index: 0;
}
.card:hover::before {
  opacity: 1;
}
.card > * {
  position: relative;
  z-index: 1;
}
.card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  transform: translateY(-2px);
}

/* --- Form Elements --- */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}
.form-input {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-background);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem; /* 16px to prevent iOS Safari auto-zoom on input focus */
  transition: border-color var(--duration-fast) var(--ease-out-smooth), box-shadow var(--duration-fast) var(--ease-out-smooth);
  outline: none;
}
.form-input:hover { border-color: var(--border-strong); }
.form-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 1px var(--accent-primary);
}
.form-input::placeholder { color: var(--text-muted); }

/* --- Header & Navigation --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.3s;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  display: inline-flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all var(--duration-fast) var(--ease-out-smooth);
}
.nav-links a:hover { 
  color: var(--text-primary); 
  background-color: rgba(255, 255, 255, 0.04);
}
.nav-links a.active {
  color: var(--text-primary);
  background-color: rgba(20, 184, 166, 0.12);
  border-color: rgba(20, 184, 166, 0.32);
  font-weight: 600;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 9px;
  transition: all var(--duration-fast);
}
.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-strong);
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s, background-color 0.2s;
  transform-origin: center;
}
.menu-toggle span:nth-child(2) {
  margin: 4px 0;
}
.menu-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* --- Modern Footer --- */
.modern-footer {
  position: relative;
  flex-shrink: 0;
  border-top: 1px solid var(--border-subtle);
  padding: 5rem 0 2rem 0;
  margin-top: auto;
  background-color: var(--bg-surface);
  overflow: hidden;
}

.modern-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.footer-slogan {
  color: var(--text-secondary);
  font-size: 1rem;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
}
.footer-slogan:hover {
  color: var(--text-primary);
  text-shadow: 0 0 12px rgba(255,255,255,0.3);
}

.copy-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.copy-email-btn:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.footer-socials {
  display: flex;
  gap: 1rem;
}
.footer-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 1.25rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.footer-social-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0);
  transition: all 0.3s ease;
}
.footer-social-btn:hover {
  color: var(--text-primary);
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}
.footer-social-btn:hover::after {
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 1.5rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}
.status-dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.back-to-top {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.2s;
  padding: 0;
}
.back-to-top:hover {
  color: var(--text-primary);
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.reveal.delay-1 { transition-delay: 100ms; }
.reveal.delay-2 { transition-delay: 200ms; }
.reveal.delay-3 { transition-delay: 300ms; }
.reveal.delay-4 { transition-delay: 400ms; }

/* --- Responsive Media Queries --- */
@media (max-width: 860px) {
  /* Project Modal Sheet for Mobile/Tablet */
  .project-modal-overlay {
    padding: 1rem;
    align-items: center;
  }
  .project-modal-content.split-layout {
    flex-direction: column;
    max-height: 88dvh;
    height: auto;
    border-radius: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .project-modal-image-side {
    height: 200px;
    flex: none;
    order: 1;
  }
  .project-modal-body {
    flex: 1;
    order: 2;
    padding: 1.5rem;
    overflow-y: visible;
  }
  .project-modal-title { font-size: 1.65rem; }
  .project-modal-desc { font-size: 0.95rem; margin-bottom: 1.5rem; }
  .project-modal-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  .project-modal-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  /* Base Spacing */
  .section { padding: 3.5rem 0; }
  .container { padding: 0 1.25rem; }
  
  /* Fluid Typographic Clamping */
  h1 { font-size: clamp(2.1rem, 7vw, 2.85rem) !important; }
  h2 { font-size: clamp(1.6rem, 5vw, 2.1rem) !important; }
  .section-title { font-size: 1.75rem; margin-bottom: 2rem; }
  
  /* Component Adjustments */
  .card { padding: 1.35rem; }
  .card::before { display: none; } /* Better GPU performance on mobile */
  
  /* Grids collapse gracefully without overflow */
  .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 1.25rem; }

  /* Fluid Marquee for mobile */
  .marquee-container { padding: 2.25rem 0; }
  .marquee-content { gap: 3.5rem; padding-right: 3.5rem; }
  .marquee-content i { font-size: 2.35rem; }

  /* Mobile Navigation Slide-Down Drawer */
  .menu-toggle { display: flex; }
  .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    width: 100%;
    background-color: rgba(17, 17, 19, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.5rem 1.5rem 2rem 1.5rem;
    gap: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  }
  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a {
    display: block;
    width: 100%;
    padding: 0.6rem 0;
    font-size: 1.05rem;
  }
  
  /* Modern Footer Mobile */
  .modern-footer { padding: 3.5rem 0 2rem 0; }
  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    margin-top: 3rem;
  }
}

@media (max-width: 480px) {
  .section { padding: 2.75rem 0; }
  .container { padding: 0 1rem; }
  .card { padding: 1.2rem; }
  .hero-section { min-height: 80vh; min-height: 80dvh; }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; }
  .project-modal-overlay { padding: 0.5rem; }
  .project-modal-body { padding: 1.25rem 1rem; }
  .project-modal-image-side { height: 160px; }
  .project-modal-close { top: 0.6rem; right: 0.6rem; width: 34px; height: 34px; font-size: 0.85rem; }
  .filter-btn { padding: 0.4rem 0.85rem; font-size: 0.825rem; }
}

/* --- Notifications --- */
.custom-notification {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(26, 26, 30, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  padding: 0.875rem 1.5rem;
  border-radius: 99px;
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 10000;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  max-width: calc(100vw - 2rem);
  text-align: center;
}
.custom-notification.success i { color: #10b981; }
.custom-notification.error i { color: #ef4444; }
.custom-notification.show { bottom: 2rem; }

/* --- Project Modal --- */
.project-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-out-smooth), visibility 0.35s;
}
.project-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.project-modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  width: 100%;
  max-width: 920px;
  max-height: 90vh;
  max-height: 90dvh;
  position: relative;
  transform: translateY(24px) scale(0.96);
  transition: all 0.4s var(--ease-out-smooth);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}
.project-modal-overlay.active .project-modal-content {
  transform: translateY(0) scale(1);
}
.project-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(26, 26, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--text-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 30;
  transition: all 0.2s;
}
.project-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}
.project-modal-content.split-layout {
  display: flex;
  flex-direction: row;
  height: min(80vh, 720px);
  overflow: hidden;
}
.project-modal-body {
  flex: 1.1;
  padding: 2.75rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
}
.project-modal-image-side {
  flex: 0.95;
  background: radial-gradient(circle at center, #18181f 0%, #0d0d12 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.project-modal-image-side img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 10px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--text-muted);
  opacity: 0.3;
}
.project-modal-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.project-modal-category {
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
  display: inline-block;
}
.project-modal-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.project-modal-desc p { margin-bottom: 1rem; }
.project-modal-desc h3 { color: var(--text-primary); margin: 1.5rem 0 0.5rem; font-size: 1.2rem; }
.project-modal-desc ul { margin-bottom: 1rem; padding-left: 1.5rem; list-style: disc; }
.project-modal-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- Project Modal (Showcase / Full-Width Mockup Layout) --- */
.project-modal-content.showcase-layout {
  display: flex;
  flex-direction: column;
  max-width: 1080px;
  width: 95vw;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2.75rem;
  border-radius: 24px;
}

/* --- Legal Documents Modal --- */
.legal-modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  width: 100%;
  max-width: 840px;
  max-height: 85vh;
  max-height: 85dvh;
  position: relative;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2.75rem 2.5rem;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8);
}
.legal-modal-content h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.legal-modal-content h3 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.legal-modal-content p, .legal-modal-content li {
  font-size: 0.925rem;
  line-height: 1.7;
  color: var(--text-secondary);
}
.legal-modal-content ul {
  margin-left: 1.25rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .legal-modal-content {
    padding: 1.75rem 1.25rem;
    max-height: 90vh;
    border-radius: 16px;
  }
  .legal-modal-content h2 {
    font-size: 1.35rem;
  }
  .legal-modal-content h3 {
    font-size: 1.05rem;
  }
  .project-modal-content.showcase-layout {
    padding: 1.5rem 1.25rem;
    border-radius: 20px;
  }
  .browser-screen-view {
    min-height: 180px;
    max-height: 380px;
  }
  .browser-address-bar {
    max-width: 200px;
    font-size: 0.725rem;
  }
}

/* Browser Window Mockup */
.browser-mockup {
  background: #0d0d12;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  margin: 1.75rem 0 2rem 0;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.browser-mockup-header {
  background: #14141c;
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.browser-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}
.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.browser-dot.red { background: #ff5f56; }
.browser-dot.yellow { background: #ffbd2e; }
.browser-dot.green { background: #27c93f; }

.browser-address-bar {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0.3rem 0.85rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono, monospace);
  flex: 1;
  max-width: 380px;
}
.browser-address-bar i {
  color: var(--accent-primary);
  font-size: 0.75rem;
}

.browser-tabs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.6rem 1rem;
  background: rgba(18, 18, 24, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.browser-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.825rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: inherit;
}
.browser-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}
.browser-tab-btn.active {
  color: var(--text-primary);
  background: rgba(20, 184, 166, 0.12);
  border-color: rgba(20, 184, 166, 0.35);
  font-weight: 600;
}

.browser-screen-view {
  background: #08080c;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 280px;
  max-height: 560px;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
}
.browser-screen-view img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: contain;
  display: block;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Screen Zoom Hint Overlay */
.screen-zoom-hint {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  background: rgba(17, 17, 23, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.825rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
}
.browser-screen-view:hover .screen-zoom-hint {
  background: rgba(20, 184, 166, 0.9);
  color: #fff;
  border-color: rgba(20, 184, 166, 1);
  transform: translateY(-2px);
}

/* ==========================================================
   Full-Screen Image Lightbox (Tam Ekran Büyüteç Modalı)
   ========================================================== */
.image-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 8, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 9999999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  user-select: none;
}
.image-lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  flex-shrink: 0;
  z-index: 10;
}
.lightbox-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.lightbox-title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}
.lightbox-counter {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-family: var(--font-mono, monospace);
}

.lightbox-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.lightbox-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}
.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: scale(1.05);
}

.lightbox-body {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0.75rem 0;
}
.lightbox-img-wrapper {
  max-width: 94vw;
  max-height: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.lightbox-main-img {
  max-width: 100%;
  max-height: calc(100vh - 195px);
  max-height: calc(100dvh - 195px);
  object-fit: contain;
  display: block;
  border-radius: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(20, 20, 28, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1.1rem;
  z-index: 10;
}
.lightbox-nav-btn:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  transform: translateY(-50%) scale(1.1);
}
.lightbox-nav-btn.prev { left: 1rem; }
.lightbox-nav-btn.next { right: 1rem; }

.lightbox-footer {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  padding-top: 0.35rem;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .lightbox-nav-btn {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }
  .lightbox-nav-btn.prev { left: 0.25rem; }
  .lightbox-nav-btn.next { right: 0.25rem; }
  .screen-zoom-hint {
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    bottom: 0.75rem;
    right: 0.75rem;
  }
}

/* Modal Özel Bilgilendirme ve Galeri Kutucukları */
.project-notice-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1.5rem 0;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.project-notice-box.info {
  background: rgba(20, 184, 166, 0.08);
  border-color: rgba(20, 184, 166, 0.25);
}
.project-notice-icon {
  font-size: 1.25rem;
  color: #f59e0b;
  flex-shrink: 0;
  margin-top: 0.15rem;
}
.project-notice-box.info .project-notice-icon {
  color: var(--accent-primary);
}
.project-notice-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}
.project-notice-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.project-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
  margin: 1.25rem 0 1.75rem 0;
}
.project-feature-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  transition: all 0.2s ease;
}
.project-feature-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.project-feature-item h4 {
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.project-feature-item h4 i {
  color: var(--accent-primary);
  font-size: 0.85rem;
}
.project-feature-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0;
}

.project-gallery-thumbs {
  display: flex;
  gap: 0.65rem;
  margin: 1.25rem 0 1.75rem 0;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.project-gallery-thumb {
  flex-shrink: 0;
  width: 90px;
  height: 58px;
  border-radius: 8px;
  border: 1.5px solid var(--border-subtle);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-surface);
  transition: all 0.2s ease;
  position: relative;
}
.project-gallery-thumb:hover,
.project-gallery-thumb.active {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 0 12px rgba(20, 184, 166, 0.35);
}
.project-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Coming Soon Projects Card --- */
.projects-coming-soon {
  grid-column: 1 / -1;
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  background: radial-gradient(circle at top center, rgba(20, 184, 166, 0.08), rgba(26, 26, 30, 0.55) 65%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-primary);
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.28);
}

.coming-soon-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-primary);
  animation: pulse-green 2s infinite;
}

.coming-soon-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-primary);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.16), rgba(99, 102, 241, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 0.25rem;
}

.coming-soon-title {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  letter-spacing: -0.03em;
  margin: 0;
}

.coming-soon-desc {
  max-width: 460px;
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0;
}

.coming-soon-actions {
  margin-top: 0.75rem;
}

/* --- Project Card Structure & Single-Project Showcase --- */
.single-project-showcase {
  grid-template-columns: 1fr !important;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.card-featured-showcase {
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 2.25rem;
  align-items: center;
  padding: 2rem;
}

.card-featured-showcase .project-card-media {
  width: 100%;
  min-width: 0;
}

.card-featured-showcase .card-mini-gallery {
  margin-bottom: 0;
}

.project-card-info {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}

.project-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.project-category-badge {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 6px;
  font-size: 0.775rem;
  font-weight: 500;
}

.project-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.28);
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
}

.project-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}

.project-card-title {
  margin-bottom: 0.65rem;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  letter-spacing: -0.025em;
}

.project-card-desc {
  margin-bottom: 1.35rem;
  font-size: 0.96rem;
  line-height: 1.65;
}

.project-card-tags {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.project-tech-tag {
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: var(--bg-background);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
}

.project-card-actions {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.15rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.project-action-btn {
  flex: 1 1 180px;
  padding: 0.7rem 1.1rem;
  font-size: 0.9rem;
  justify-content: center;
  font-weight: 600;
}

/* --- Card Image Container & Mini Gallery --- */
.card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border-subtle);
  background: #0b0b0f;
  cursor: pointer;
}
.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.35s var(--ease-out-smooth), opacity 0.25s ease;
}
.card-image-wrap:hover img {
  transform: scale(1.03);
}
.card-gallery-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  background: rgba(14, 14, 20, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  font-size: 0.725rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.card-active-caption {
  position: absolute;
  bottom: 0.65rem;
  left: 0.65rem;
  max-width: calc(100% - 1.3rem);
  background: rgba(14, 14, 20, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.7rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-active-caption i {
  color: var(--accent-primary);
  font-size: 0.72rem;
  flex-shrink: 0;
}
.card-image-overlay-hint {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  gap: 0.5rem;
  z-index: 1;
}
.card-image-wrap:hover .card-image-overlay-hint {
  opacity: 1;
}

.card-mini-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.45rem;
  margin-bottom: 1.15rem;
}
.card-mini-thumb {
  height: 48px;
  border-radius: 7px;
  overflow: hidden;
  border: 1.5px solid var(--border-subtle);
  background: #09090d;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}
.card-mini-thumb:hover,
.card-mini-thumb.active {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 0 10px rgba(20, 184, 166, 0.4);
}
.card-mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Showcase Modal Header & Footer */
.showcase-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding-right: 2.5rem;
}
.showcase-modal-header-info {
  flex: 1 1 360px;
  min-width: 0;
}
.showcase-modal-header-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.showcase-modal-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.showcase-modal-footer-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

/* --- Browser Mockup Thumbnail Bar (Inside Modal) --- */
.browser-thumbs-bar {
  display: flex;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  background: rgba(14, 14, 18, 0.95);
  border-top: 1px solid var(--border-subtle);
  overflow-x: auto;
  align-items: center;
}
.browser-thumb-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.35rem 0.65rem 0.35rem 0.35rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: inherit;
}
.browser-thumb-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.browser-thumb-btn.active {
  background: rgba(20, 184, 166, 0.12);
  border-color: var(--accent-primary);
  color: var(--text-primary);
  font-weight: 600;
}
.browser-thumb-preview {
  width: 44px;
  height: 28px;
  border-radius: 4px;
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
}
.browser-thumb-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Inline Feature Gallery in Modal Content --- */
.modal-feature-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.25rem 0 2rem 0;
}
.modal-feature-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}
.modal-feature-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}
.modal-feature-card-img {
  width: 100%;
  height: 145px;
  overflow: hidden;
  background: #0a0a0f;
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
}
.modal-feature-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.35s ease;
}
.modal-feature-card:hover .modal-feature-card-img img {
  transform: scale(1.04);
}
.modal-feature-card-body {
  padding: 0.85rem 1rem;
}
.modal-feature-card-body h4 {
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.modal-feature-card-body p {
  font-size: 0.775rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

/* --- Lightbox Thumbnails Bar --- */
.lightbox-thumbs-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.65rem 0.85rem;
  max-width: 100%;
  justify-content: safe center;
  flex-shrink: 0;
  z-index: 10;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.lightbox-thumbs-bar::-webkit-scrollbar {
  display: none;
}
.lightbox-thumb-item {
  width: 64px;
  height: 42px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.5;
  transition: all 0.2s ease;
  background: #000;
  flex-shrink: 0;
}
.lightbox-thumb-item:hover {
  opacity: 0.85;
  transform: scale(1.05);
}
.lightbox-thumb-item.active {
  opacity: 1;
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(20, 184, 166, 0.65);
  transform: scale(1.05);
}
.lightbox-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Responsive Overrides (Tablet & Mobile) --- */
@media (max-width: 960px) {
  .single-project-showcase {
    max-width: 720px;
  }
  .card-featured-showcase {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.6rem;
  }
  .modal-feature-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .legal-modal-content {
    padding: 1.75rem 1.25rem;
    max-height: 90vh;
    border-radius: 16px;
  }
  .legal-modal-content h2 {
    font-size: 1.35rem;
  }
  .legal-modal-content h3 {
    font-size: 1.05rem;
  }
  .project-modal-content.showcase-layout {
    padding: 1.35rem 1rem;
    border-radius: 18px;
    width: 98vw;
    max-height: 94vh;
    max-height: 94dvh;
  }
  .showcase-modal-header {
    padding-right: 2.25rem;
    gap: 1rem;
  }
  .showcase-modal-header-actions,
  .showcase-modal-header-actions .btn,
  .showcase-modal-footer-actions,
  .showcase-modal-footer-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .showcase-modal-footer {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .browser-mockup-header {
    padding: 0.6rem 0.75rem;
    gap: 0.5rem;
  }
  .browser-mockup-header > span {
    display: none !important;
  }
  .browser-address-bar {
    max-width: none;
    font-size: 0.725rem;
    padding: 0.25rem 0.6rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .browser-screen-view {
    min-height: 200px !important;
    max-height: 380px !important;
  }
  .browser-screen-view img {
    max-height: 360px !important;
  }
  .browser-tabs {
    padding: 0.45rem 0.6rem;
    gap: 0.3rem;
  }
  .browser-tab-btn {
    padding: 0.35rem 0.65rem;
    font-size: 0.76rem;
  }
  .browser-thumbs-bar {
    padding: 0.5rem 0.65rem;
    gap: 0.4rem;
  }
  .browser-thumb-btn span {
    display: none;
  }
  .browser-thumb-btn {
    padding: 0.25rem;
  }
  .project-feature-grid {
    grid-template-columns: 1fr;
  }
  .project-notice-box {
    flex-direction: column;
    gap: 0.6rem;
    padding: 1rem;
  }
  .lightbox-topbar {
    gap: 0.75rem;
  }
  .lightbox-title {
    font-size: 0.875rem;
  }
  .lightbox-thumb-item {
    width: 48px;
    height: 32px;
  }
  .lightbox-footer {
    font-size: 0.72rem;
  }
}

@media (max-width: 600px) {
  .modal-feature-gallery {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .card-featured-showcase {
    padding: 1.25rem;
    gap: 1.25rem;
  }
  .card-mini-gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
  }
  .card-mini-thumb {
    height: 46px;
  }
  .project-card-actions {
    flex-direction: column;
  }
  .project-action-btn {
    width: 100%;
    flex: none;
  }
  .card-active-caption {
    font-size: 0.7rem;
    padding: 0.2rem 0.55rem;
  }
}
