/* ===== CSS Variables ===== */
:root {
  /* Dark teal laboratory palette */
  --bg-dark: #0d1518;
  --bg-primary: #141e22;
  --bg-secondary: #1a2a30;
  --bg-card: #1e2f36;
  --bg-card-hover: #243a42;
  
  /* Accent colors from the copper/amber tones */
  --accent-primary: #c87533;
  --accent-secondary: #d4915c;
  --accent-glow: rgba(200, 117, 51, 0.3);
  
  /* Teal accents */
  --teal-muted: #3a5a60;
  --teal-bright: #5a8a8a;
  
  /* Text colors */
  --text-primary: #e8eced;
  --text-secondary: #9ab0b5;
  --text-muted: #6a8088;
  
  /* Borders */
  --border-color: #2a3f46;
  --border-accent: rgba(200, 117, 51, 0.4);
  
  /* Typography */
  --font-display: 'Oxanium', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  margin: 0;
  padding: 0;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* ===== Header ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(13, 21, 24, 0.95), rgba(13, 21, 24, 0.8));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo img {
  height: 45px;
  width: auto;
  background: transparent;
}

.logo span {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width 0.3s ease;
}

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

nav a:hover::after {
  width: 100%;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  height: 85vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  margin: 0;
  max-width: none;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(to bottom, 
      rgba(13, 21, 24, 0.3) 0%,
      rgba(13, 21, 24, 0.1) 30%,
      rgba(13, 21, 24, 0.4) 70%,
      rgba(13, 21, 24, 1) 100%
    ),
    linear-gradient(to right,
      rgba(13, 21, 24, 0.5) 0%,
      transparent 30%,
      transparent 70%,
      rgba(13, 21, 24, 0.5) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4rem 2rem;
  max-width: 800px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  margin: 0 0 1rem;
  letter-spacing: 0.03em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin: 0;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.05em;
  max-width: 100%;
  white-space: nowrap;
}

/* ===== Sections ===== */
section {
  padding: 5rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

section h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* ===== Intro Section ===== */
.intro {
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-primary) 100%);
  text-align: center;
}

.intro p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ===== Cards ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--teal-bright));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-5px);
  border-color: var(--border-accent);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 40px var(--accent-glow);
}

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

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  filter: grayscale(20%);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.75rem;
}

.card p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== Examples List ===== */
#examples {
  background: var(--bg-primary);
  border-radius: 20px;
  border: 1px solid var(--border-color);
}

.examples-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.examples-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-secondary);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.examples-list li:hover {
  background: var(--bg-card);
  border-color: var(--teal-muted);
  transform: translateX(10px);
}

.example-icon {
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border-radius: 10px;
  flex-shrink: 0;
}

.examples-list li span:last-child {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ===== Contact Form ===== */
#contact {
  max-width: 600px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

input, textarea {
  padding: 1rem 1.25rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
}

input::placeholder, textarea::placeholder {
  color: var(--text-muted);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: var(--bg-card);
}

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

button[type="submit"] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: var(--bg-dark);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 10px 30px rgba(200, 117, 51, 0.3),
    0 0 20px var(--accent-glow);
}

button[type="submit"] svg {
  transition: transform 0.3s ease;
}

button[type="submit"]:hover svg {
  transform: translateX(4px);
}

#formStatus {
  text-align: center;
  color: var(--teal-bright);
  margin-top: 1rem;
}

/* ===== Footer ===== */
footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-color);
  padding: 3rem 2rem;
  margin-top: 4rem;
}

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

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

footer p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.9rem;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  animation: fadeInUp 1s ease 0.3s both;
}

.card {
  animation: fadeInUp 0.6s ease both;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }

/* ===== Large Screens ===== */
@media (min-width: 1200px) {
  .header-content {
    max-width: 1400px;
    padding: 1.25rem 3rem;
  }
  
  .logo img {
    height: 55px;
  }
  
  .logo span {
    font-size: 1.75rem;
  }
  
  nav {
    gap: 2.5rem;
  }
  
  nav a {
    font-size: 1.25rem;
  }
  
  .hero-content {
    max-width: 1000px;
  }
  
  .hero h1 {
    font-size: 4.5rem;
  }
  
  .hero-tagline {
    font-size: 1.5rem;
  }
  
  section {
    max-width: 1200px;
    padding: 6rem 3rem;
  }
  
  section h2 {
    font-size: 2.5rem;
    margin-bottom: 4rem;
  }
  
  .intro p {
    font-size: 1.35rem;
    max-width: 900px;
  }
  
  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
  
  .card {
    padding: 2.5rem;
  }
  
  .card-icon {
    font-size: 3rem;
  }
  
  .card h3 {
    font-size: 1.4rem;
  }
  
  .card p {
    font-size: 1.05rem;
  }
  
  #examples {
    max-width: 1200px;
  }
  
  .examples-list li {
    padding: 1.5rem 2rem;
  }
  
  .example-icon {
    width: 60px;
    height: 60px;
    font-size: 1.75rem;
  }
  
  .examples-list li span:last-child {
    font-size: 1.2rem;
  }
  
  #contact {
    max-width: 700px;
  }
  
  input, textarea {
    padding: 1.15rem 1.5rem;
    font-size: 1.1rem;
  }
  
  button[type="submit"] {
    padding: 1.15rem 2.5rem;
    font-size: 1.1rem;
  }
  
  .footer-content {
    max-width: 1400px;
  }
  
  .footer-logo {
    font-size: 1.5rem;
  }
  
  footer p {
    font-size: 1rem;
  }
}

/* Extra large screens */
@media (min-width: 1600px) {
  .header-content {
    max-width: 1600px;
  }
  
  .logo img {
    height: 60px;
  }
  
  .logo span {
    font-size: 2rem;
  }
  
  nav a {
    font-size: 1.35rem;
  }
  
  .hero h1 {
    font-size: 5rem;
  }
  
  .hero-tagline {
    font-size: 1.65rem;
  }
  
  .hero-content {
    max-width: 1100px;
  }
  
  section {
    max-width: 1400px;
    padding: 7rem 4rem;
  }
  
  section h2 {
    font-size: 2.75rem;
  }
  
  .intro p {
    font-size: 1.45rem;
  }
  
  .cards {
    gap: 3rem;
  }
  
  .card {
    padding: 3rem;
  }
  
  .card h3 {
    font-size: 1.5rem;
  }
  
  .card p {
    font-size: 1.1rem;
    line-height: 1.8;
  }
  
  #examples {
    max-width: 1400px;
  }
  
  .examples-list li span:last-child {
    font-size: 1.3rem;
  }
  
  #contact {
    max-width: 800px;
  }
  
  .modal-content {
    max-width: 1100px;
  }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  /* Header */
  .header-content {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
  }
  
  .logo img {
    height: 35px;
  }
  
  .logo span {
    font-size: 1.2rem;
  }
  
  nav {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  nav a {
    font-size: 1rem;
  }
  
  /* Hero */
  .hero {
    height: auto;
    min-height: 60vh;
  }
  
  .hero h1 {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
    white-space: normal;
  }
  
  .hero-tagline {
    font-size: 1rem;
    white-space: normal;
  }
  
  .hero-content {
    padding: 2rem 1rem;
  }
  
  /* Sections */
  section {
    padding: 2.5rem 1rem;
  }
  
  section h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }
  
  /* Intro */
  .intro p {
    font-size: 1rem;
  }
  
  /* Cards */
  .cards {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .card-icon {
    font-size: 2rem;
  }
  
  .card h3 {
    font-size: 1.1rem;
  }
  
  /* Examples/Expertise list */
  #examples {
    border-radius: 12px;
    padding: 2rem 1rem;
  }
  
  .examples-list li {
    flex-wrap: wrap;
    padding: 1rem;
    gap: 0.75rem;
  }
  
  .examples-list li:hover {
    transform: none;
  }
  
  .example-icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
  
  .examples-list li span:last-child {
    font-size: 0.95rem;
  }
  
  .examples-btn {
    width: 100%;
    margin-top: 0.5rem;
    margin-left: 0;
    padding: 0.6rem 1rem;
  }
  
  /* Contact Form */
  #contact {
    padding: 2rem 1rem;
  }
  
  input, textarea {
    padding: 0.85rem 1rem;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  button[type="submit"] {
    padding: 0.85rem 1.5rem;
  }
  
  /* Footer */
  footer {
    padding: 2rem 1rem;
    margin-top: 2rem;
  }
  
  .footer-logo {
    font-size: 1.1rem;
  }
  
  footer p {
    font-size: 0.85rem;
  }
  
  /* Modal */
  .modal {
    padding: 1rem;
  }
  
  .modal-content {
    padding: 1.5rem 1rem;
    border-radius: 12px;
  }
  
  .modal-content h2 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
  }
  
  .modal-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .modal-item {
    padding: 1rem;
  }
  
  .modal-item h3 {
    font-size: 1.1rem;
  }
  
  .modal-close {
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
  }
  
  .play-button {
    width: 55px;
    height: 55px;
    font-size: 1.4rem;
  }
  
  /* Lightbox */
  .lightbox {
    padding: 0.5rem;
  }
  
  .lightbox-close {
    top: 0.75rem;
    right: 0.75rem;
    width: 40px;
    height: 40px;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .header-content {
    padding: 0.5rem 0.75rem;
  }
  
  .logo img {
    height: 30px;
  }
  
  .logo span {
    font-size: 1rem;
  }
  
  nav a {
    font-size: 0.9rem;
  }
  
  .lang-toggle .flag {
    font-size: 1.25rem;
  }
  
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .hero-tagline {
    font-size: 0.9rem;
  }
  
  section h2 {
    font-size: 1.3rem;
  }
  
  .examples-list li span:last-child {
    font-size: 0.9rem;
  }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--bg-card);
  border-radius: 5px;
  border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--teal-muted);
}

/* ===== Language Toggle ===== */
.lang-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.5rem !important;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.lang-toggle:hover {
  background: var(--bg-card);
}

.lang-toggle::after {
  display: none !important;
}

.lang-toggle .flag {
  font-size: 1.5rem;
  line-height: 1;
}

/* ===== RTL Support (Hebrew) ===== */
body.rtl {
  font-family: 'Heebo', var(--font-body), sans-serif;
}

body.rtl .logo {
  flex-direction: row-reverse;
}

body.rtl nav {
  flex-direction: row-reverse;
}

body.rtl #examples .examples-list li {
  flex-direction: row-reverse !important;
  text-align: right;
  justify-content: flex-end;
}

body.rtl #examples .examples-list li .examples-btn {
  margin-left: 0;
  margin-right: 1rem;
}

/* RTL Mobile adjustments */
@media (max-width: 768px) {
  body.rtl .examples-btn {
    margin-right: 0;
  }
  
  body.rtl #examples .examples-list li {
    justify-content: center;
  }
  
  body.rtl .examples-list li:hover {
    transform: none;
  }
}

body.rtl #examples .examples-list li span:last-child {
  text-align: right;
}

body.rtl #examples .example-icon {
  order: 2;
}

body.rtl .examples-list li:hover {
  transform: translateX(-10px);
}

body.rtl button[type="submit"] {
  flex-direction: row-reverse;
}

body.rtl button[type="submit"]:hover svg {
  transform: translateX(-4px);
}

body.rtl .card {
  text-align: right;
}

body.rtl .hero h1,
body.rtl .hero-tagline,
body.rtl section h2,
body.rtl .intro p {
  font-family: 'Heebo', sans-serif;
}

/* ===== Examples Button ===== */
.examples-btn {
  margin-left: auto;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: var(--bg-dark);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.examples-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px var(--accent-glow);
}

body.rtl .examples-btn {
  margin-left: 0;
  margin-right: 0;
  order: -1;
}

/* ===== Modal ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(13, 21, 24, 0.95);
  backdrop-filter: blur(10px);
  overflow-y: auto;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.modal-content {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.modal-close:hover {
  background: var(--accent-primary);
  color: var(--bg-dark);
  border-color: var(--accent-primary);
}

body.rtl .modal-close {
  right: auto;
  left: 1rem;
}

.modal-content h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--text-primary);
  margin: 0 0 2rem;
  text-align: center;
}

.modal-content h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  margin: 1rem auto 0;
  border-radius: 2px;
}

.modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.modal-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.modal-item:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-item h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--accent-secondary);
  margin: 0 0 1rem;
  text-align: center;
}

.modal-media {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
}

.modal-media iframe,
.modal-media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}

.modal-media img {
  object-fit: contain;
  background: var(--bg-dark);
}

/* Video thumbnail with play button */
.video-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
}

.video-link img {
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.video-link:hover img {
  transform: scale(1.05);
  filter: brightness(0.7);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: rgba(200, 117, 51, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--bg-dark);
  transition: all 0.3s ease;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}

.video-link:hover .play-button {
  background: var(--accent-secondary);
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 10px 40px rgba(200, 117, 51, 0.5);
}

/* Clickable images in modal */
.modal-media img:not(.video-link img) {
  cursor: zoom-in;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modal-media img:not(.video-link img):hover {
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(200, 117, 51, 0.3);
}

/* ===== Lightbox ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  padding: 2rem;
  cursor: zoom-out;
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox img {
  max-width: 95%;
  max-height: 95vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: lightboxZoom 0.3s ease;
  cursor: default;
  transform: scale(1.5);
}

@keyframes lightboxZoom {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 50px;
  height: 50px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 2001;
}

.lightbox-close:hover {
  background: var(--accent-primary);
  color: var(--bg-dark);
  border-color: var(--accent-primary);
  transform: rotate(90deg);
}

/* Modal scrollbar */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: var(--teal-muted);
  border-radius: 4px;
}

@media (max-width: 768px) {
  .modal {
    padding: 1rem;
  }
  
  .modal-content {
    padding: 1.5rem;
  }
  
  .modal-grid {
    grid-template-columns: 1fr;
  }
  
  .examples-btn {
    margin-left: 0;
    margin-top: 0.75rem;
    width: 100%;
  }
  
  body.rtl .examples-btn {
    margin-right: 0;
  }
}
