/* ===================================
   NITSAN CINEMATOGRAPHER - STYLES
   =================================== */

/* --- CSS Variables --- */
:root {
  --color-bg: #0a0a0a;
  --color-bg-alt: #111111;
  --color-bg-card: #161616;
  --color-bg-card-hover: #1a1a1a;
  --color-surface: #1e1e1e;
  --color-border: #2a2a2a;
  --color-border-light: #333333;
  --color-text: #f5f5f5;
  --color-text-muted: #999999;
  --color-text-subtle: #666666;
  --color-accent: #e8a849;
  --color-accent-hover: #f0b85a;
  --color-accent-glow: rgba(232, 168, 73, 0.15);
  --color-accent-subtle: rgba(232, 168, 73, 0.08);
  --color-white: #ffffff;
  --color-overlay: rgba(0, 0, 0, 0.85);

  --font-primary: 'Inter', 'Heebo', sans-serif;
  --font-display: 'Playfair Display', 'Heebo', serif;

  --nav-height: 80px;
  --section-padding: 120px;
  --container-max: 1280px;
  --container-padding: 24px;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
}

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

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

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
  cursor: default;
  line-height: 1.6;
}

/* RTL Support */
[dir="rtl"] body {
  font-family: 'Heebo', 'Inter', sans-serif;
}

[dir="rtl"] .hero-text {
  text-align: right;
}

[dir="rtl"] .about-grid {
  direction: rtl;
}

[dir="rtl"] .contact-grid {
  direction: rtl;
}

[dir="rtl"] .services-card {
  text-align: right;
}

[dir="rtl"] .gear-content {
  direction: rtl;
}

[dir="rtl"] .testimonial-card {
  text-align: right;
}

[dir="rtl"] .form-group label {
  right: 0;
  left: auto;
}

[dir="rtl"] .info-item {
  flex-direction: row-reverse;
  text-align: right;
}

[dir="rtl"] .nav-links {
  direction: rtl;
}

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

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

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

ul, ol {
  list-style: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

::selection {
  background-color: var(--color-accent);
  color: var(--color-bg);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

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

.loader.fade-out {
  opacity: 0;
  visibility: hidden;
}

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

.loader-camera {
  width: 60px;
  height: 44px;
  border: 3px solid var(--color-accent);
  border-radius: 8px;
  position: relative;
  margin: 0 auto 24px;
  animation: loaderPulse 1.5s ease-in-out infinite;
}

.loader-lens {
  width: 24px;
  height: 24px;
  border: 3px solid var(--color-accent);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: loaderSpin 2s linear infinite;
}

.loader-lens::after {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--color-accent);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.loader-text {
  color: var(--color-text-muted);
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

@keyframes loaderPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

@keyframes loaderSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* --- Custom Cursor --- */
.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s;
  mix-blend-mode: difference;
}

.cursor-outline {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--color-accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s var(--ease-out-expo), width 0.3s, height 0.3s, border-color 0.3s;
  transform: translate(-50%, -50%);
  opacity: 0.5;
}

.cursor-outline.hover {
  width: 56px;
  height: 56px;
  border-color: var(--color-accent-hover);
  opacity: 0.8;
}

@media (max-width: 768px) {
  .cursor-dot, .cursor-outline {
    display: none;
  }
}

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--color-border);
}

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

.nav-logo {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 2px;
  z-index: 1001;
}

.logo-bracket {
  color: var(--color-accent);
  font-weight: 300;
  font-size: 28px;
}

.logo-text {
  color: var(--color-white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.5px;
  position: relative;
  transition: color 0.3s;
  text-transform: uppercase;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--color-white);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 1001;
}

.lang-toggle {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
  transition: background 0.3s, color 0.3s;
}

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

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

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

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

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

/* Mobile Nav */
@media (max-width: 900px) {
  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--color-bg);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    font-size: 24px;
  }
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  background: var(--color-bg);
}

[dir="rtl"] .hero-bg img {
  object-position: left center;
  transform: scaleX(-1);
}

.hero-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-content {
  text-align: center;
  color: var(--color-text-muted);
}

.placeholder-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  opacity: 0.4;
}

.placeholder-content p {
  font-size: 18px;
  margin-bottom: 8px;
  opacity: 0.6;
}

.placeholder-content span {
  font-size: 13px;
  opacity: 0.4;
  display: block;
  margin-top: 4px;
}

.placeholder-path {
  font-family: monospace;
  background: rgba(255,255,255,0.05);
  padding: 4px 12px;
  border-radius: 4px;
  margin-top: 8px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0.05) 100%
  );
  z-index: 1;
}

[dir="rtl"] .hero-overlay {
  background: linear-gradient(
    to left,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0.05) 100%
  );
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  padding-top: var(--nav-height);
}

.hero-text {
  max-width: 700px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 0, 0, 0.5);
}

.hero-greeting {
  font-size: 18px;
  color: var(--color-accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 12px;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(60px, 10vw, 120px);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 16px;
  color: var(--color-white);
}

[dir="rtl"] .hero-name {
  font-family: 'Heebo', sans-serif;
}

.hero-title {
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 300;
  color: var(--color-text);
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--color-white);
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 40px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 0, 0, 0.7);
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 3;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

.hero-scroll-indicator span {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

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

/* Cinema Bars */
.cinema-bar {
  position: absolute;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--color-bg);
  z-index: 4;
}

.cinema-bar-top {
  top: 0;
}

.cinema-bar-bottom {
  bottom: 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all 0.3s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

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

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--color-accent-glow);
}

.btn-outline {
  border: 1.5px solid var(--color-border-light);
  color: var(--color-text);
}

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}

/* --- Section Base --- */
.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
  position: relative;
}

.section-tag::before,
.section-tag::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40px;
  height: 1px;
  background: var(--color-accent);
  opacity: 0.3;
}

.section-tag::before {
  right: calc(100% + 16px);
}

.section-tag::after {
  left: calc(100% + 16px);
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

[dir="rtl"] .section-heading {
  font-family: 'Heebo', sans-serif;
}

.section-subtitle {
  font-size: 17px;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- About Section --- */
.about {
  background: var(--color-bg-alt);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-md);
  position: relative;
  z-index: 1;
}

.about-image-frame {
  position: absolute;
  inset: -12px;
  border: 1px solid var(--color-accent);
  opacity: 0.2;
  border-radius: var(--radius-lg);
  z-index: 0;
}

.about-image-accent {
  position: absolute;
  width: 200px;
  height: 200px;
  background: var(--color-accent-glow);
  border-radius: 50%;
  bottom: -40px;
  right: -40px;
  filter: blur(80px);
  z-index: 0;
}

.about-desc {
  font-size: 17px;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-desc-2 {
  font-size: 16px;
  color: var(--color-text-subtle);
  line-height: 1.7;
  margin-bottom: 40px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item {
  text-align: center;
  padding: 20px 8px;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: border-color 0.3s, transform 0.3s;
}

.stat-item:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
}

.stat-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-accent);
  display: block;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Showreel Section --- */
.showreel {
  background: var(--color-bg);
}

.showreel-wrapper {
  max-width: 960px;
  margin: 0 auto;
}

.showreel-video {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  cursor: pointer;
  transition: background 0.3s;
}

.video-overlay:hover {
  background: rgba(0, 0, 0, 0.2);
}

.play-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
  box-shadow: 0 0 40px var(--color-accent-glow);
}

.play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 60px var(--color-accent-glow);
}

.play-icon {
  width: 28px;
  height: 28px;
  color: var(--color-bg);
  margin-left: 4px;
}

.video-frame {
  position: absolute;
  inset: 0;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Services Section --- */
.services {
  background: var(--color-bg-alt);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.services-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  transition: transform 0.4s var(--ease-out-expo), border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.services-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out-expo);
}

[dir="rtl"] .services-card::before {
  transform-origin: right;
}

.services-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-border-light);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.services-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--color-accent);
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.service-desc {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* --- Portfolio Section --- */
.portfolio {
  background: var(--color-bg);
}

.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: 50px;
  transition: all 0.3s;
  letter-spacing: 0.5px;
}

.filter-btn:hover {
  color: var(--color-text);
  border-color: var(--color-border-light);
}

.filter-btn.active {
  background: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16/10;
  cursor: pointer;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s;
}

.portfolio-item:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.portfolio-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.portfolio-item:hover .portfolio-thumbnail {
  transform: scale(1.08);
}

.portfolio-item-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-bg-card) 100%);
  color: var(--color-text-muted);
}

.portfolio-item-placeholder svg {
  width: 32px;
  height: 32px;
  opacity: 0.3;
  margin-bottom: 8px;
}

.portfolio-item-placeholder span {
  font-size: 12px;
  opacity: 0.3;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s;
}

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

.portfolio-item-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.portfolio-item-category {
  font-size: 13px;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.portfolio-item-desc {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.portfolio-play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.3s var(--ease-spring);
}

.portfolio-item:hover .portfolio-play {
  transform: translate(-50%, -50%) scale(1);
}

.portfolio-play svg {
  width: 18px;
  height: 18px;
  color: var(--color-bg);
  margin-left: 2px;
}

@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* --- Gear / 3D Section --- */
.gear {
  background: var(--color-bg-alt);
}

.gear-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  align-items: center;
}

.gear-3d {
  position: relative;
}


.gear-interact-label {
  text-align: center;
  font-size: 13px;
  color: var(--color-text-subtle);
  margin-top: 12px;
  letter-spacing: 0.5px;
}

.gear-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gear-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s, transform 0.3s;
}

.gear-item:hover {
  border-color: var(--color-accent);
  transform: translateX(4px);
}

[dir="rtl"] .gear-item:hover {
  transform: translateX(-4px);
}

.gear-item-name {
  font-size: 15px;
  font-weight: 500;
}

.gear-item-category {
  font-size: 12px;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  background: var(--color-accent-subtle);
  border-radius: 50px;
}

@media (max-width: 768px) {
  .gear-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* --- Testimonials Section --- */
.testimonials {
  background: var(--color-bg);
}

.testimonials-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
}

.testimonial-card {
  min-width: 100%;
  padding: 48px;
  text-align: center;
}

.testimonial-quote {
  font-size: 20px;
  font-style: italic;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 32px;
  position: relative;
}

.testimonial-quote::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 80px;
  color: var(--color-accent);
  opacity: 0.3;
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  line-height: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-avatar svg {
  width: 24px;
  height: 24px;
  opacity: 0.4;
}

.testimonial-info h4 {
  font-size: 16px;
  font-weight: 600;
}

.testimonial-info p {
  font-size: 13px;
  color: var(--color-text-muted);
}

.testimonials-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
}

.testimonial-prev,
.testimonial-next {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: border-color 0.3s, color 0.3s;
}

.testimonial-prev:hover,
.testimonial-next:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

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

.testimonials-dots {
  display: flex;
  gap: 8px;
}

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

.dot.active {
  background: var(--color-accent);
  transform: scale(1.3);
}

/* --- Contact Section --- */
.contact {
  background: var(--color-bg-alt);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group {
  position: relative;
  padding-top: 16px;
}

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 0;
  font-size: 16px;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  transition: border-color 0.3s;
  background: transparent;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: transparent;
}

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

.form-group select {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
}

[dir="rtl"] .form-group select {
  background-position: left 4px center;
  padding-right: 0;
  padding-left: 24px;
}

.form-group select option {
  background: var(--color-bg-card);
  color: var(--color-text);
  padding: 8px;
}

.form-group label {
  position: absolute;
  top: 28px;
  left: 0;
  font-size: 15px;
  color: var(--color-text-muted);
  transition: all 0.3s;
  pointer-events: none;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label,
.form-group select:focus ~ label,
.form-group select:valid ~ label {
  top: 0;
  font-size: 12px;
  color: var(--color-accent);
}

.form-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out-expo);
}

[dir="rtl"] .form-line {
  transform-origin: right;
}

.form-group input:focus ~ .form-line,
.form-group textarea:focus ~ .form-line,
.form-group select:focus ~ .form-line {
  transform: scaleX(1);
}

.btn-submit {
  align-self: flex-start;
  margin-top: 8px;
}

[dir="rtl"] .btn-submit {
  align-self: flex-end;
}

.btn-submit svg {
  width: 16px;
  height: 16px;
}

.contact-info-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-bottom: 24px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
}

.info-item + .info-item {
  border-top: 1px solid var(--color-border);
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
}

.info-icon svg {
  width: 20px;
  height: 20px;
}

.info-item h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.info-value {
  font-size: 15px;
  color: var(--color-text);
  transition: color 0.3s;
}

a.info-value:hover {
  color: var(--color-accent);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.social-link:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-subtle);
}

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

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

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* --- Footer --- */
.footer {
  padding: 60px 0;
  border-top: 1px solid var(--color-border);
}

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

.footer-logo {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 15px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.footer-divider {
  width: 60px;
  height: 1px;
  background: var(--color-border);
  margin: 24px auto;
}

.footer-copyright {
  font-size: 13px;
  color: var(--color-text-subtle);
}

/* --- Video Modal --- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--color-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
  backdrop-filter: blur(10px);
}

.video-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 10001;
  transition: border-color 0.3s, transform 0.3s;
}

.modal-close:hover {
  border-color: var(--color-accent);
  transform: rotate(90deg);
}

.modal-close svg {
  width: 24px;
  height: 24px;
}

.modal-content {
  width: 90%;
  max-width: 960px;
}

.modal-video {
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
}

.modal-video iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Reveal Animations --- */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-up.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-text {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.reveal-text.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-text:nth-child(1) { transition-delay: 0.1s; }
.reveal-text:nth-child(2) { transition-delay: 0.2s; }
.reveal-text:nth-child(3) { transition-delay: 0.3s; }
.reveal-text:nth-child(4) { transition-delay: 0.4s; }
.reveal-text:nth-child(5) { transition-delay: 0.5s; }
.reveal-text:nth-child(6) { transition-delay: 0.6s; }

/* Services card stagger */
.services-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo),
              border-color 0.3s, box-shadow 0.3s;
}

.services-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.services-card:nth-child(1) { transition-delay: 0.05s; }
.services-card:nth-child(2) { transition-delay: 0.1s; }
.services-card:nth-child(3) { transition-delay: 0.15s; }
.services-card:nth-child(4) { transition-delay: 0.2s; }
.services-card:nth-child(5) { transition-delay: 0.25s; }
.services-card:nth-child(6) { transition-delay: 0.3s; }

/* Portfolio item stagger */
.portfolio-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo),
              box-shadow 0.4s;
}

.portfolio-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

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

/* Gear item stagger */
.gear-item {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo),
              border-color 0.3s;
}

[dir="rtl"] .gear-item {
  transform: translateX(20px);
}

.gear-item.revealed {
  opacity: 1;
  transform: translateX(0);
}

.gear-item:nth-child(1) { transition-delay: 0.05s; }
.gear-item:nth-child(2) { transition-delay: 0.1s; }
.gear-item:nth-child(3) { transition-delay: 0.15s; }
.gear-item:nth-child(4) { transition-delay: 0.2s; }
.gear-item:nth-child(5) { transition-delay: 0.25s; }
.gear-item:nth-child(6) { transition-delay: 0.3s; }
.gear-item:nth-child(7) { transition-delay: 0.35s; }
.gear-item:nth-child(8) { transition-delay: 0.4s; }

/* --- Utility --- */
.hidden {
  display: none !important;
}

/* Smooth section transitions */
.section::before {
  content: '';
  display: block;
  height: var(--nav-height);
  margin-top: calc(-1 * var(--nav-height));
  visibility: hidden;
  pointer-events: none;
}

/* ===================================
   MOBILE RESPONSIVENESS
   =================================== */

/* Prevent all horizontal overflow */
.hero, .section, .footer, .navbar {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Sketchfab 3D embed */
.gear-3d-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: radial-gradient(ellipse at center, #1a1a2e 0%, var(--color-bg) 100%);
}

.gear-3d-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 768px) {
  /* Global mobile spacing */
  :root {
    --section-padding: 72px;
    --container-padding: 20px;
    --nav-height: 64px;
  }

  /* Nav */
  .nav-logo {
    font-size: 20px;
  }

  .logo-bracket {
    font-size: 24px;
  }

  /* Hero - cover on mobile so it fills the screen */
  .hero-bg img {
    object-fit: cover;
    object-position: center top;
  }

  .hero-name {
    font-size: clamp(44px, 12vw, 70px);
    word-break: break-word;
  }

  .hero-title {
    font-size: clamp(16px, 4.5vw, 24px);
  }

  .hero-greeting {
    font-size: 14px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .hero-cta {
    flex-direction: column;
    gap: 12px;
  }

  .hero-cta .btn {
    text-align: center;
    justify-content: center;
    width: 100%;
  }

  .cinema-bar {
    height: 30px;
  }

  .hero-scroll-indicator {
    bottom: 36px;
  }

  .scroll-line {
    height: 36px;
  }

  /* Section headers */
  .section-heading {
    font-size: clamp(26px, 7vw, 36px);
  }

  .section-subtitle {
    font-size: 15px;
  }

  .section-tag {
    font-size: 12px;
    letter-spacing: 2px;
  }

  .section-tag::before,
  .section-tag::after {
    width: 24px;
  }

  /* About */
  .about-image-frame {
    inset: -8px;
  }

  /* Showreel */
  .play-btn {
    width: 60px;
    height: 60px;
  }

  .play-icon {
    width: 22px;
    height: 22px;
  }

  /* Services - 2 columns on mobile */
  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }

  .services-card {
    padding: 20px 16px;
  }

  .service-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
  }

  .service-icon svg {
    width: 20px;
    height: 20px;
  }

  .service-title {
    font-size: 15px;
    margin-bottom: 8px;
  }

  .service-desc {
    font-size: 12px;
    line-height: 1.5;
  }

  /* Portfolio - 2 columns on mobile */
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }

  .portfolio-filters {
    gap: 6px;
    margin-bottom: 24px;
  }

  .filter-btn {
    padding: 5px 12px;
    font-size: 12px;
  }

  .portfolio-item {
    aspect-ratio: 1/1;
  }

  .portfolio-overlay {
    opacity: 1;
    padding: 10px;
  }

  .portfolio-play {
    transform: translate(-50%, -50%) scale(0.7);
  }

  .portfolio-item .portfolio-play {
    transform: translate(-50%, -50%) scale(0.7);
  }

  .portfolio-item-title {
    font-size: 13px;
  }

  .portfolio-item-category {
    font-size: 10px;
  }

  .portfolio-item-desc {
    display: none;
  }

  /* Gear */
  .gear-3d,
  .gear-3d-embed {
    aspect-ratio: 1/1;
  }

  .gear-item {
    padding: 12px 16px;
  }

  .gear-item-name {
    font-size: 13px;
  }

  .gear-item-category {
    font-size: 10px;
    padding: 3px 8px;
  }

  /* Testimonials */
  .testimonial-card {
    padding: 24px 8px;
  }

  .testimonial-quote {
    font-size: 16px;
  }

  .testimonial-quote::before {
    font-size: 60px;
    top: -20px;
  }

  .testimonial-avatar {
    width: 44px;
    height: 44px;
  }

  .testimonial-info h4 {
    font-size: 14px;
  }

  /* Contact */
  .contact-info-card {
    padding: 24px;
  }

  .info-item {
    padding: 12px 0;
  }

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

  /* Footer */
  .footer {
    padding: 40px 0;
  }

  .footer-logo {
    font-size: 24px;
  }

  /* Buttons */
  .btn {
    padding: 12px 24px;
    font-size: 13px;
  }

  /* Stats */
  .stat-number {
    font-size: 22px;
  }

  .stat-label {
    font-size: 11px;
  }

  .stat-item {
    padding: 14px 6px;
  }

  /* Modal */
  .modal-close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }

  .modal-content {
    width: 95%;
  }
}

/* Small phones */
@media (max-width: 400px) {
  :root {
    --container-padding: 16px;
  }

  .hero-name {
    font-size: 40px;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .gear-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  [dir="rtl"] .gear-item {
    align-items: flex-end;
  }
}
