/* ═══════════════════════════════════════════════
   WOOJY MEDIA PRODUCTION — style.css
═══════════════════════════════════════════════ */

/* ── Variables ───────────────────────────────── */
:root {
  --blue:  #00D4FF;
  --red:   #FF2D55;
  --black: #0A0A0F;
  --dark:  #1A1A2E;
}

/* ── Base ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
}

@media (min-width: 1024px) {
  body { cursor: none; }
}

::selection {
  background: rgba(0,212,255,0.3);
  color: #fff;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--blue), var(--red));
  border-radius: 4px;
}

/* ── Loading Screen ──────────────────────────── */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--blue), var(--red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: logoPulse 2s ease-in-out infinite;
}

.loader-bar {
  width: 200px;
  height: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}

.loader-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--red));
  border-radius: 2px;
  animation: loadProgress 0.8s ease-out forwards;
}

@keyframes loadProgress {
  from { width: 0; }
  to   { width: 100%; }
}

@keyframes logoPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

/* ── Custom Cursor ───────────────────────────── */
.custom-cursor {
  display: none;
}

@media (min-width: 1024px) {
  .custom-cursor {
    display: block;
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--blue);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
    mix-blend-mode: difference;
  }

  .custom-cursor.hover {
    width: 50px;
    height: 50px;
    border-color: var(--red);
  }
}

.mouse-glow {
  display: none;
}

@media (min-width: 1024px) {
  .mouse-glow {
    display: block;
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,212,255,0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    transition: left 0.08s linear, top 0.08s linear;
  }
}

/* ── Glassmorphism ───────────────────────────── */
.glass {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.glass-strong {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ── Neon Glow ───────────────────────────────── */
.neon-blue {
  box-shadow: 0 0 20px rgba(0,212,255,0.2), 0 0 40px rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.3) !important;
}

.neon-red {
  box-shadow: 0 0 20px rgba(255,45,85,0.2), 0 0 40px rgba(255,45,85,0.08);
  border: 1px solid rgba(255,45,85,0.3) !important;
}

/* ── Gradient Text ───────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--blue) 0%, var(--red) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}

/* ── Buttons ─────────────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--red));
  box-shadow: 0 4px 24px rgba(0,212,255,0.25);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,212,255,0.4);
  opacity: 0.9;
}

.btn-secondary {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.13);
  border-color: rgba(0,212,255,0.4);
  transform: translateY(-2px);
}

/* ── Navbar ──────────────────────────────────── */
.nav-glass {
  background: rgba(10,10,15,0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: background 0.35s, backdrop-filter 0.35s, border-color 0.35s;
}

.nav-glass.scrolled {
  background: rgba(10,10,15,0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-link {
  color: rgba(255,255,255,0.65);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--blue);
  transition: width 0.3s;
}

.nav-link:hover {
  color: #fff;
}

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

.nav-link-mob {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  display: block;
  padding: 4px 0;
  transition: color 0.2s;
}

.nav-link-mob:hover {
  color: var(--blue);
}

/* ── Language Switcher ───────────────────────── */
.lang-switcher {
  display: flex;
  gap: 2px;
}

.lang-btn {
  padding: 4px 11px;
  border-radius: 50px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}

.lang-btn:hover {
  color: rgba(255,255,255,0.85);
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--blue), var(--red));
  color: #fff;
  box-shadow: 0 2px 12px rgba(0,212,255,0.3);
}

/* ── Hero Video ──────────────────────────────── */
.hero-video-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-video-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,15,0.25) 0%,
    rgba(10,10,15,0.5)  50%,
    rgba(10,10,15,0.92) 100%
  );
  z-index: 1;
}

.hero-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

/* ── Particles ───────────────────────────────── */
.particles-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  border-radius: 50%;
  animation: floatUp linear infinite;
  opacity: 0;
}

@keyframes floatUp {
  0%   { transform: translateY(110vh) scale(0);   opacity: 0; }
  8%   { opacity: 1; }
  88%  { opacity: 0.7; }
  100% { transform: translateY(-15vh) scale(1.3); opacity: 0; }
}

/* ── Service Cards ───────────────────────────── */
.service-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,212,255,0.04), rgba(255,45,85,0.04));
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,212,255,0.28);
  box-shadow: 0 20px 40px rgba(0,212,255,0.08);
}

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

.svc-icon {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.svc-icon.blue {
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.2);
}

.svc-icon.red {
  background: rgba(255,45,85,0.1);
  border: 1px solid rgba(255,45,85,0.2);
}

/* ── Portfolio ───────────────────────────────── */
.portfolio-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.portfolio-item img {
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: brightness(0.8) saturate(0.9);
}

.portfolio-item:hover img {
  transform: scale(1.06);
  filter: brightness(0.55) saturate(1.1);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,10,15,0.9) 0%,
    rgba(10,10,15,0.15) 60%,
    transparent 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.4s;
}

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

/* ══════════════════════════════════════════════
   SHOWREEL SECTION
══════════════════════════════════════════════ */
.showreel-wrapper {
  max-width: 1080px;
  margin: 0 auto;
}

.showreel-frame {
  position: relative;
  border-radius: 18px;
  overflow: visible;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.07),
    0 32px 80px rgba(0,0,0,0.75),
    0 0 80px rgba(0,212,255,0.06),
    0 0 40px rgba(255,45,85,0.04);
}

/* Cinematic corner brackets */
.showreel-corners {
  position: absolute;
  inset: -10px;
  pointer-events: none;
  z-index: 10;
}

.corner {
  position: absolute;
  width: 30px;
  height: 30px;
  border-color: var(--red);
  border-style: solid;
  transition: border-color 0.3s;
}

.showreel-frame:hover .corner {
  border-color: var(--blue);
}

.corner.tl { top: 0; left: 0;  border-width: 2px 0 0 2px; }
.corner.tr { top: 0; right: 0; border-width: 2px 2px 0 0; }
.corner.bl { bottom: 0; left: 0;  border-width: 0 0 2px 2px; }
.corner.br { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

.showreel-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: #000;
  outline: none;
}

/* Spec badges row */
.showreel-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 22px;
}

.spec-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
  transition: color 0.2s, border-color 0.2s;
}

.spec-badge:hover {
  color: rgba(255,255,255,0.9);
  border-color: rgba(0,212,255,0.3);
}

/* Film-strip decorations */
.film-strip {
  position: absolute;
  left: 0;
  right: 0;
  height: 26px;
  background: repeating-linear-gradient(
    to right,
    transparent     0px,
    transparent     8px,
    rgba(255,255,255,0.055) 8px,
    rgba(255,255,255,0.055) 14px,
    transparent     14px,
    transparent     22px
  );
  pointer-events: none;
  z-index: 5;
}

.film-strip-top    { top: 0; }
.film-strip-bottom { bottom: 0; }

/* ── Process Timeline ────────────────────────── */
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(0,212,255,0.45) 20%,
    rgba(255,45,85,0.45) 80%,
    transparent
  );
  transform: translateX(-50%);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--red));
  box-shadow: 0 0 20px rgba(0,212,255,0.55);
  flex-shrink: 0;
  z-index: 2;
}

@media (max-width: 767px) {
  .timeline-line { left: 18px; transform: none; }
  .timeline-dot  { left: 18px; transform: translate(-50%, -50%); }
}

/* ── Stats Counter ───────────────────────────── */
.stat-number {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--blue), var(--red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 5s ease infinite;
}

/* ── Form ────────────────────────────────────── */
.form-input {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  color: #fff;
  font-size: 0.925rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.22s, box-shadow 0.22s;
}

.form-input:focus {
  border-color: rgba(0,212,255,0.5);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.07);
}

.form-input::placeholder {
  color: transparent;
}

/* Floating label */
.floating-label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.38);
  font-size: 0.875rem;
  pointer-events: none;
  transition: top 0.2s, font-size 0.2s, color 0.2s, background 0.2s;
  line-height: 1;
}

/* Textarea label starts at top */
textarea ~ .floating-label,
textarea + .floating-label {
  top: 20px;
  transform: none;
}

/* Label flies up on focus or filled */
.form-input:focus + .floating-label,
.form-input:not(:placeholder-shown) + .floating-label {
  top: -9px;
  transform: translateY(0);
  font-size: 0.7rem;
  color: var(--blue);
  background: #0A0A0F;
  padding: 0 6px;
  border-radius: 4px;
}

textarea.form-input:focus + .floating-label,
textarea.form-input:not(:placeholder-shown) + .floating-label {
  top: -9px;
  transform: none;
}

/* RTL form labels */
[dir="rtl"] .floating-label {
  left: auto;
  right: 16px;
}

[dir="rtl"] .form-input:focus + .floating-label,
[dir="rtl"] .form-input:not(:placeholder-shown) + .floating-label {
  left: auto;
  right: 16px;
}

/* ── Modal ───────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  transform: scale(0.88);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

.modal.open .modal-content {
  transform: scale(1);
}

/* ── Testimonial track (overflow clip) ───────── */
.testimonial-track {
  will-change: transform;
}

/* ── Showreel Overlay ────────────────────────── */
.sreel-overlay {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(10,10,15,0.72) 0%,
    rgba(10,10,15,0.55) 100%
  );
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  cursor: pointer;
  transition: background 0.3s, opacity 0.35s;
  gap: 18px;
}

.sreel-overlay.sreel-hidden {
  opacity: 0;
  pointer-events: none;
}

.sreel-play-btn {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s, background 0.25s;
  position: relative;
  z-index: 1;
}

.sreel-play-btn svg {
  width: 88px;
  height: 88px;
  filter: drop-shadow(0 0 18px rgba(0,212,255,0.55));
}

.sreel-overlay:hover .sreel-play-btn {
  transform: scale(1.12);
  background: rgba(0,212,255,0.1);
}

.sreel-spinner {
  position: absolute;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--blue);
  border-right-color: rgba(255,45,85,0.5);
  display: none;
  animation: srSpin 0.9s linear infinite;
}

.sreel-spinner.active {
  display: block;
}

@keyframes srSpin {
  to { transform: rotate(360deg); }
}

.sreel-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  pointer-events: none;
}

.sreel-label span {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
}

.sreel-label small {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  opacity: 0.8;
}

/* ── RTL Overrides ───────────────────────────── */
[dir="rtl"] .timeline-line {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}

[dir="rtl"] .timeline-dot {
  left: auto;
  right: 50%;
  transform: translate(50%, -50%);
}

[dir="rtl"] .corner.tl { left: auto;  right: 0; border-width: 2px 2px 0 0; }
[dir="rtl"] .corner.tr { right: auto; left: 0;  border-width: 2px 0 0 2px; }
[dir="rtl"] .corner.bl { left: auto;  right: 0; border-width: 0 2px 2px 0; }
[dir="rtl"] .corner.br { right: auto; left: 0;  border-width: 0 0 2px 2px; }

@media (max-width: 767px) {
  [dir="rtl"] .timeline-line { right: 18px; left: auto; transform: none; }
  [dir="rtl"] .timeline-dot  { right: 18px; left: auto; transform: translate(50%, -50%); }
}

[dir="rtl"] .nav-link::after {
  left: auto;
  right: 0;
}

/* ── Toast Notifications ─────────────────────── */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  background: rgba(16, 16, 28, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  max-width: 340px;
  pointer-events: all;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.42s cubic-bezier(0.34,1.4,0.64,1), opacity 0.3s ease;
  overflow: hidden;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast.success .toast-icon {
  background: rgba(0,212,255,0.15);
  color: var(--blue);
  border: 1px solid rgba(0,212,255,0.25);
}

.toast.error .toast-icon {
  background: rgba(255,45,85,0.15);
  color: var(--red);
  border: 1px solid rgba(255,45,85,0.25);
}

.toast-body { flex: 1; min-width: 0; }

.toast-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
  margin-bottom: 0.2rem;
}

.toast-msg {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.45;
}

.toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.25);
  padding: 0.15rem;
  transition: color 0.2s;
  align-self: flex-start;
  margin-top: 0.1rem;
}

.toast-close:hover { color: rgba(255,255,255,0.7); }

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform-origin: left;
  animation: toastShrink 5s linear forwards;
}

.toast.success .toast-progress { background: linear-gradient(to right, var(--blue), rgba(0,212,255,0.4)); }
.toast.error   .toast-progress { background: linear-gradient(to right, var(--red),  rgba(255,45,85,0.4)); }

@keyframes toastShrink {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

@media (max-width: 480px) {
  .toast-container { left: 1rem; right: 1rem; bottom: 1.5rem; }
  .toast { max-width: 100%; }
}
