/* =========================================
   ZERO STUDIO — Main Stylesheet
   ========================================= */

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

:root {
  --orange: #FF5C2B;
  --coral: #FF7F6B;
  --teal: #00D4AA;
  --violet: #8B5CF6;
  --gold: #F5C542;
  --bg: #0A0A0F;
  --bg-warm: #0F0D12;
  --text: #FFFFFF;
  --text-dim: #999999;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --font-arabic: 'Noto Kufi Arabic', sans-serif;
}

html {
  scroll-behavior: auto; /* GSAP handles smooth scroll */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
}

a { color: inherit; text-decoration: none; }
button { cursor: none; background: none; border: none; color: inherit; font-family: inherit; }
img { display: block; max-width: 100%; }

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

/* ---------- LOADING SCREEN ---------- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

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

.loader-logo {
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 2rem;
}

.loader-counter {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
}
.loader-percent {
  color: var(--text-dim);
  font-size: 1.5rem;
  margin-left: 0.25em;
}

.loader-bar-track {
  width: 200px;
  height: 2px;
  background: rgba(255,255,255,0.1);
  margin: 1.5rem auto 0;
  border-radius: 2px;
  overflow: hidden;
}
.loader-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--orange);
  border-radius: 2px;
  transition: width 0.05s linear;
}

/* ---------- CUSTOM CURSOR ---------- */
#cursor-dot, #cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  will-change: transform;
}
#cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--orange);
  transform: translate(-50%, -50%);
}
#cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(255,92,43,0.5);
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
#cursor-ring.hover {
  width: 60px;
  height: 60px;
  border-color: var(--orange);
  background: rgba(255,92,43,0.08);
}

@media (pointer: coarse) {
  #cursor-dot, #cursor-ring { display: none; }
  body { cursor: auto; }
  a, button { cursor: pointer; }
}

/* ---------- SCROLL PROGRESS ---------- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--orange), var(--coral), var(--violet));
  z-index: 9998;
}

/* ---------- NAVIGATION ---------- */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  transition: transform 0.4s ease, background 0.3s ease;
}
#nav.hidden { transform: translateY(-100%); }
#nav.scrolled { background: rgba(10,10,15,0.85); backdrop-filter: blur(20px); }

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.o-mark { color: var(--orange); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.nav-links a {
  position: relative;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.nav-links a:hover { opacity: 1; }

.nav-cta {
  background: var(--orange) !important;
  opacity: 1 !important;
  color: var(--bg) !important;
  padding: 0.6rem 1.6rem;
  border-radius: 100px;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.nav-cta:hover {
  box-shadow: 0 0 30px rgba(255,92,43,0.3);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 28px;
  padding: 4px 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.active span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle.active span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-link {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  opacity: 0.8;
  transition: opacity 0.3s;
}
.mobile-link:hover { opacity: 1; color: var(--orange); }
.mobile-menu-arabic {
  font-family: var(--font-arabic);
  font-size: 8rem;
  font-weight: 900;
  color: rgba(255,92,43,0.04);
  position: absolute;
  bottom: 5%;
  right: 5%;
}

@media (max-width: 768px) {
  #nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- SECTIONS (shared) ---------- */
.section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.section-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--orange);
  margin-bottom: 1.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.section-title-ar {
  font-family: var(--font-arabic);
  font-weight: 800;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: var(--text-dim);
  margin-top: 1rem;
  direction: rtl;
}

.section-bg-arabic {
  position: absolute;
  font-family: var(--font-arabic);
  font-weight: 900;
  font-size: clamp(10rem, 25vw, 22rem);
  color: rgba(255,255,255,0.015);
  pointer-events: none;
  line-height: 1;
  user-select: none;
  z-index: 0;
  direction: rtl;
}

/* ---------- HERO ---------- */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 0 3rem;
}

.hero-bg-arabic {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-arabic);
  font-weight: 900;
  font-size: clamp(8rem, 20vw, 18rem);
  color: rgba(255,92,43,0.03);
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
  direction: rtl;
  z-index: 1;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}
.hero-title em {
  font-style: normal;
  color: var(--orange);
}
.hero-line {
  display: block;
}

.hero-tagline-ar {
  font-family: var(--font-arabic);
  font-weight: 900;
  font-size: clamp(1.5rem, 3.5vw, 2.8rem);
  color: var(--coral);
  margin-top: 1.5rem;
  direction: rtl;
  opacity: 0.9;
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-dim);
  margin-top: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  z-index: 3;
}
.scroll-indicator span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--orange), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ---------- SERVICES ---------- */
.services {
  padding: 10rem 3rem 8rem;
  background: var(--bg-warm);
}
.services .section-bg-arabic {
  top: 10%;
  right: -5%;
}

.services-header {
  max-width: 700px;
  margin-bottom: 5rem;
  position: relative;
  z-index: 1;
}

.services-track-wrapper {
  position: relative;
  z-index: 1;
  overflow: visible;
}

.services-track {
  display: flex;
  gap: 2rem;
  padding-bottom: 2rem;
}

.service-card {
  position: relative;
  flex: 0 0 340px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 2.5rem;
  overflow: hidden;
  transition: border-color 0.4s ease, transform 0.3s ease;
}
.service-card:hover {
  border-color: rgba(255,92,43,0.2);
  transform: translateY(-4px);
}

.card-glow {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,92,43,0.12), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  transform: translate(-50%, -50%);
}
.service-card:hover .card-glow { opacity: 1; }

.card-icon {
  width: 48px;
  height: 48px;
  color: var(--orange);
  margin-bottom: 1.5rem;
}
.card-icon svg { width: 100%; height: 100%; }

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.card-price {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--orange);
}
.card-price-ar {
  display: block;
  font-family: var(--font-arabic);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dim);
  margin-top: 0.3rem;
  direction: rtl;
}

/* ---------- WORK / PORTFOLIO ---------- */
.work {
  padding: 10rem 0 8rem;
  background: var(--bg);
}
.work .section-bg-arabic {
  bottom: 5%;
  left: -3%;
}

.work-header {
  padding: 0 3rem;
  max-width: 700px;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.work-gallery-wrapper {
  position: relative;
  z-index: 1;
  overflow: hidden;
  cursor: grab;
}
.work-gallery-wrapper:active { cursor: grabbing; }

.work-gallery {
  display: flex;
  gap: 2rem;
  padding: 0 3rem;
  will-change: transform;
}

.work-item {
  flex: 0 0 min(500px, 75vw);
  display: block;
}

.work-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.work-item:hover .work-img { transform: scale(0.97); }

.work-img-label {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.work-info {
  margin-top: 1.25rem;
  padding: 0 0.25rem;
}
.work-info h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
}
.work-info span {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.work-drag-hint {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- PRICING ---------- */
.pricing {
  padding: 10rem 3rem 8rem;
  background: var(--bg-warm);
}
.pricing .section-bg-arabic {
  top: 8%;
  right: -8%;
}

.pricing-header {
  max-width: 700px;
  margin-bottom: 5rem;
  position: relative;
  z-index: 1;
}

.pricing-categories {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  max-width: 900px;
  position: relative;
  z-index: 1;
}

.pricing-cat-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.pricing-cat-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.pricing-cat-title-ar {
  font-family: var(--font-arabic);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dim);
  margin-left: 1rem;
  direction: rtl;
}

.pricing-list {
  display: flex;
  flex-direction: column;
}

.pricing-row {
  display: flex;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s ease;
  border-radius: 4px;
}
.pricing-row:hover {
  background: rgba(255,255,255,0.02);
}

.pricing-name {
  font-size: 1rem;
  font-weight: 400;
  white-space: nowrap;
}
.pricing-dots {
  flex: 1;
  border-bottom: 1px dotted rgba(255,255,255,0.1);
  margin: 0 1rem;
  min-width: 2rem;
  align-self: center;
}
.pricing-amount {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--orange);
  white-space: nowrap;
}

/* ---------- SHOWREEL ---------- */
.showreel {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #060609;
  position: relative;
}

.showreel-bg-arabic {
  position: absolute;
  font-family: var(--font-arabic);
  font-weight: 900;
  font-size: clamp(12rem, 30vw, 28rem);
  color: rgba(255,255,255,0.012);
  pointer-events: none;
  user-select: none;
  direction: rtl;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.showreel-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.showreel-play {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 3rem;
  transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}
.showreel-play svg { width: 40px; height: 40px; }
.showreel-play:hover {
  border-color: var(--orange);
  box-shadow: 0 0 60px rgba(255,92,43,0.2);
  transform: scale(1.08);
}

.showreel-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.showreel-title-ar {
  font-family: var(--font-arabic);
  font-weight: 800;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: var(--text-dim);
  margin-top: 1rem;
  direction: rtl;
}

/* ---------- CONTACT ---------- */
.contact {
  padding: 10rem 3rem 6rem;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact .section-bg-arabic {
  bottom: 0;
  right: -5%;
}

.contact-content {
  max-width: 700px;
  position: relative;
  z-index: 1;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
}

.contact-title-ar {
  font-family: var(--font-arabic);
  font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--coral);
  direction: rtl;
  margin-bottom: 3rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.15rem;
  font-weight: 500;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: border-color 0.3s ease, background 0.3s ease;
  width: fit-content;
}
.contact-link:hover {
  border-color: var(--orange);
  background: rgba(255,92,43,0.05);
}
.contact-link--disabled {
  opacity: 0.4;
  cursor: default;
}

.contact-link-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.contact-link-icon svg { width: 100%; height: 100%; }

/* ---------- FOOTER ---------- */
.footer {
  padding: 4rem 3rem 3rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: var(--bg);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
}
.footer-location {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-terms {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-dim);
  width: 100%;
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* ---------- MAGNETIC BUTTON WRAPPER ---------- */
.magnetic-btn {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .hero { padding: 0 1.5rem; }
  .hero-title { font-size: clamp(2.5rem, 12vw, 4.5rem); }
  .hero-bg-arabic { font-size: clamp(4rem, 18vw, 10rem); }

  .services { padding: 6rem 1.5rem 5rem; }
  .services-header { margin-bottom: 3rem; }
  .service-card { flex: 0 0 280px; padding: 2rem; }

  .work { padding: 6rem 0 5rem; }
  .work-header { padding: 0 1.5rem; }
  .work-gallery { padding: 0 1.5rem; }
  .work-item { flex: 0 0 min(340px, 80vw); }

  .pricing { padding: 6rem 1.5rem 5rem; }
  .pricing-row { flex-wrap: wrap; gap: 0.25rem; }
  .pricing-dots { display: none; }
  .pricing-amount { width: 100%; margin-top: 0.25rem; }

  .contact { padding: 6rem 1.5rem 4rem; }
  .contact-link { font-size: 0.95rem; padding: 0.8rem 1.2rem; }

  .footer { padding: 3rem 1.5rem 2rem; }
  .footer-inner { flex-direction: column; gap: 1.5rem; }
}

/* ---------- SPLIT TEXT PLACEHOLDER ---------- */
.split-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
}
