/* GLOBAL & THEME */
:root {
  --bg-main: #020617;
  --bg-card: #050b18;
  --bg-card-soft: #0b1020;
  --accent-pink: #ff4f9a;
  --accent-yellow: #ffe56c;
  --accent-cyan: #33e1ff;
  --accent-purple: #7b5cff;
  --text-soft: #9ca3af;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow-soft: 0 32px 80px rgba(0, 0, 0, 0.65);
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

body {
  min-height: 100vh;
  background: radial-gradient(circle at top, #0f172a 0, #020617 55%);
  font-family: var(--font-main);
  color: #e5e7eb;
  direction: rtl;
}

/* PRELOADER */
.preloader {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, #111827 0, #020617 60%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: opacity 0.7s ease, visibility 0.7s ease, transform 0.7s ease;
}

.preloader-blob {
  width: 120px;
  height: 120px;
  border-radius: 60% 40% 65% 35% / 45% 70% 30% 55%;
  background: radial-gradient(circle at 20% 0,
    #ffffff 0,
    #7b5cff 40%,
    #33e1ff 65%,
    #ff4f9a 90%);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
  animation: float 2.6s ease-in-out infinite alternate;
  position: relative;
  overflow: hidden;
}

.preloader-blob::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: inherit;
  background: radial-gradient(circle at 0 0,
    rgba(255, 255, 255, 0.9),
    transparent 60%);
  mix-blend-mode: screen;
}

.preloader-text {
  margin-top: 18px;
  text-align: center;
  font-size: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.preloader-text span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-soft);
}

body.loaded .preloader {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-16px);
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom,
    rgba(2, 6, 23, 0.92),
    rgba(2, 6, 23, 0.75),
    transparent);
  padding: 14px 6vw 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-main {
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-sub {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-soft);
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 13px;
}

.nav-links a {
  color: rgba(229, 231, 235, 0.9);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-pink));
  transform: scaleX(0);
  opacity: 0;
  transform-origin: center;
  transition: 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  opacity: 1;
}

/* SECTIONS */
.section {
  padding: 72px 6vw;
  max-width: 1240px;
  margin: 0 auto;
}

.section-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  min-height: calc(100vh - 80px);
}

.section-header {
  margin-bottom: 26px;
}

.section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.section-title {
  font-size: 26px;
}

/* HERO */
.hero-title {
  font-size: 40px;
  line-height: 1.25;
  margin-bottom: 14px;
}

.hero-text {
  font-size: 14px;
  color: var(--text-soft);
  max-width: 520px;
  margin-bottom: 18px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.hero-tags span {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 6px 13px;
  font-size: 11px;
  background: radial-gradient(circle at top left,
    rgba(255, 255, 255, 0.04),
    rgba(15, 23, 42, 0.96));
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-primary,
.btn-outline {
  border-radius: 999px;
  border: none;
  cursor: pointer;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
}

.btn-primary {
  background: linear-gradient(120deg,
    var(--accent-pink),
    #ff6ec7,
    var(--accent-yellow));
  color: #111827;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.7);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
}

.hero-badge {
  margin-top: 22px;
  border-radius: 18px;
  padding: 10px 16px;
  max-width: 320px;
  background: radial-gradient(circle at top left,
    rgba(148, 163, 184, 0.25),
    rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 11px;
  color: var(--text-soft);
}

.hero-badge strong {
  display: block;
  margin-bottom: 4px;
  color: #f9fafb;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}

.blob-3d {
  width: 280px;
  height: 280px;
  border-radius: 60% 40% 65% 35% / 40% 65% 35% 60%;
  background: radial-gradient(circle at 20% 0,
    #ffffff 0,
    var(--accent-purple) 40%,
    var(--accent-cyan) 65%,
    var(--accent-pink) 90%);
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.8);
  position: relative;
  overflow: hidden;
  animation: float 6s ease-in-out infinite alternate;
}

.blob-3d::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: inherit;
  background: radial-gradient(circle at 0 0,
    rgba(255, 255, 255, 0.8),
    transparent 60%);
  mix-blend-mode: screen;
}

.floating-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.floating-dots span {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255, 255, 255, 0.9),
    transparent);
  opacity: 0.8;
  animation: floatDot 6s ease-in-out infinite;
}

.floating-dots span:nth-child(1) {
  top: 10%;
  left: 10%;
}
.floating-dots span:nth-child(2) {
  bottom: 5%;
  right: 15%;
  animation-delay: 1s;
}
.floating-dots span:nth-child(3) {
  top: 50%;
  right: -6%;
  width: 22px;
  height: 22px;
  animation-delay: 2s;
}

/* GRID & CARDS */
.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 26px;
  align-items: flex-start;
}

.card {
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left,
    rgba(255, 255, 255, 0.03),
    rgba(5, 10, 25, 1));
  border: 1px solid rgba(30, 64, 175, 0.7);
  box-shadow: var(--shadow-soft);
  padding: 18px 18px 20px;
}

.text-card p + p {
  margin-top: 10px;
}

.stats-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  padding: 10px 8px;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at top,
    rgba(148, 163, 184, 0.35),
    rgba(15, 23, 42, 1));
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 20px;
  font-weight: 700;
}

.stat-label {
  font-size: 11px;
  color: var(--text-soft);
}

/* SHOWREEL */
.video-placeholder {
  position: relative;
  overflow: hidden;
}

.video-gradient {
  border-radius: var(--radius-md);
  height: 220px;
  background: radial-gradient(circle at 20% 0,
    #ffffff 0,
    var(--accent-purple) 35%,
    var(--accent-cyan) 60%,
    var(--accent-pink) 80%);
}

.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  cursor: pointer;
}

.video-play span {
  width: 0;
  height: 0;
  border-left: 20px solid #111827;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  background: white;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  padding: 9px 9px 9px 11px;
}

.video-caption {
  margin-top: 10px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.video-caption span {
  font-size: 11px;
  color: var(--text-soft);
}

/* WORK */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.work-type {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-soft);
  margin-bottom: 4px;
}

.work-title {
  font-size: 16px;
  margin-bottom: 6px;
}

.work-desc {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.work-note {
  font-size: 11px;
  color: #a5b4fc;
}

/* TIMELINE V2 */
.timeline-shell-v2 {
  border-radius: 26px;
  padding: 26px 32px;
  background: radial-gradient(circle at top left,
    rgba(15, 23, 42, 0.95),
    #020617);
  border: 1px solid rgba(37, 99, 235, 0.6);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 30px;
  position: relative;
  overflow: hidden;
}

.timeline-shell-v2::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at top left, rgba(55, 65, 81, 0.7), transparent 55%),
    radial-gradient(circle at bottom right, rgba(15, 23, 42, 0.9), transparent 60%);
  opacity: 0.9;
}

.timeline-left-v2,
.timeline-right-v2 {
  position: relative;
  z-index: 1;
}

.timeline-years-range {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.9);
  margin-bottom: 8px;
}

.timeline-big-year {
  font-size: 64px;
  font-weight: 800;
  color: rgba(226, 232, 240, 0.9);
  margin-bottom: 18px;
}

.timeline-line-v2 {
  position: relative;
  width: 3px;
  height: 220px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 1);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.4);
  overflow: hidden;
}

.timeline-line-fill {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 0%;
  border-radius: inherit;
  background: linear-gradient(180deg,
    #33e1ff,
    #7b5cff,
    #ff4f9a,
    #ffe56c);
  transition: height 0.35s ease-out;
}

.timeline-right-v2 {
  display: grid;
  gap: 18px;
}

.timeline-step-v2 {
  padding: 12px 12px 14px;
  border-radius: 18px;
  background: radial-gradient(circle at top,
    rgba(15, 23, 42, 0.95),
    rgba(15, 23, 42, 1));
  border: 1px solid rgba(30, 64, 175, 0.7);
  font-size: 13px;
  color: var(--text-soft);
  opacity: 0.55;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease,
              border-color 0.35s ease, box-shadow 0.35s ease;
}

.timeline-step-v2 h3 {
  font-size: 15px;
  margin-bottom: 4px;
  color: #e5e7eb;
}

.timeline-step-v2.active {
  opacity: 1;
  transform: translateY(0);
  border-color: rgba(129, 140, 248, 0.95);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

/* CLIENTS */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.client-item {
  text-align: center;
  font-size: 12px;
}

/* CONTACT */
.contact-card p {
  font-size: 13px;
}

.contact-card p + p {
  margin-top: 8px;
}

.contact-card a {
  color: #bfdbfe;
  text-decoration: none;
  border-bottom: 1px dashed rgba(191, 219, 254, 0.7);
}

/* FOOTER */
.site-footer {
  max-width: 1240px;
  margin: 0 auto 30px;
  padding: 10px 6vw 0;
  font-size: 11px;
  color: var(--text-soft);
  display: flex;
  justify-content: space-between;
}

/* REVEAL ANIMATION */
.reveal,
.reveal-item {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible,
.reveal-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* KEYFRAMES */
@keyframes float {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-16px) rotate(4deg); }
}

@keyframes floatDot {
  0% { transform: translateY(0); }
  100% { transform: translateY(-18px); }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .section-hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-visual {
    order: -1;
    margin-bottom: 20px;
  }
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .timeline-shell-v2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .timeline-line-v2 {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .nav-links {
    flex-wrap: wrap;
    gap: 10px;
  }
  .section {
    padding-inline: 5vw;
  }
  .hero-title {
    font-size: 30px;
  }
  .work-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .clients-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-footer {
    flex-direction: column;
    gap: 4px;
  }
}
