/* =========================================================
   Go Media — Digital Production Agency Landing Page
   ========================================================= */

:root {
  --bg-dark: #0a0a12;
  --bg-dark-2: #12121e;
  --bg-card: #171726;
  --gold: #f5c518;
  --gold-2: #ffd75e;
  --neon: #00e5ff;
  --neon-2: #7c4dff;
  --text: #f2f2f7;
  --text-muted: #a7a7bd;
  --wa-green: #25d366;
  --wa-green-dark: #1ebe5b;
  --radius: 16px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --grad-gold: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 60%, #fff3c4 100%);
  --grad-neon: linear-gradient(135deg, var(--neon) 0%, var(--neon-2) 100%);
  --font-body: 'Tajawal', 'Cairo', system-ui, sans-serif;
  --font-head: 'Cairo', 'Tajawal', system-ui, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
  display: block;
}

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

ul {
  list-style: none;
}

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

.gold-gradient {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  border-radius: 60px;
  padding: 14px 30px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  will-change: transform;
}

.btn-whatsapp {
  background: linear-gradient(135deg, var(--wa-green), #128c4b);
  color: #fff;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(37, 211, 102, 0.5);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--gold);
  transform: translateY(-3px);
}

.btn-lg {
  padding: 17px 38px;
  font-size: 1.05rem;
}

.wa-icon {
  font-size: 1.25em;
  line-height: 1;
}

/* ============ Header ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: background var(--transition), padding var(--transition), backdrop-filter var(--transition);
}

.site-header.scrolled {
  background: rgba(10, 10, 18, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 10px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 900;
}

.brand-logo {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--grad-gold);
  color: #0a0a12;
  font-size: 1.3rem;
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(245, 197, 24, 0.35);
}

.brand-name span {
  color: var(--gold);
}

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

.nav-links a {
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  transition: color var(--transition);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--grad-gold);
  transition: width var(--transition);
}

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

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

.btn-nav {
  padding: 10px 22px;
  font-size: 0.92rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 26px;
  height: 2.5px;
  background: var(--text);
  border-radius: 4px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 150px 0 100px;
  overflow: hidden;
  background: radial-gradient(ellipse at 20% 0%, rgba(124, 77, 255, 0.16), transparent 55%),
              radial-gradient(ellipse at 85% 90%, rgba(0, 229, 255, 0.12), transparent 50%),
              var(--bg-dark);
}

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

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  animation: float 12s ease-in-out infinite;
}

.orb-1 {
  width: 460px;
  height: 460px;
  background: rgba(124, 77, 255, 0.5);
  top: -140px;
  right: -120px;
}

.orb-2 {
  width: 420px;
  height: 420px;
  background: rgba(0, 229, 255, 0.4);
  bottom: -150px;
  left: -120px;
  animation-delay: -6s;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

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

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -40px); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 860px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 60px;
  font-size: 0.9rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--gold-2);
  margin-bottom: 26px;
  animation: fadeUp 0.9s ease both;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 6vw, 4.3rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 24px;
  animation: fadeUp 0.9s 0.15s ease both;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 40px;
  animation: fadeUp 0.9s 0.3s ease both;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 0.9s 0.45s ease both;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 6vw, 60px);
  flex-wrap: wrap;
  margin-top: 70px;
  animation: fadeUp 0.9s 0.6s ease both;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-stats strong {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-stats span {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.scroll-down {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.mouse {
  display: block;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  position: relative;
}

.wheel {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: var(--gold);
  animation: scrollHint 2s ease infinite;
}

@keyframes scrollHint {
  0% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 14px); }
}

/* ============ Sections ============ */
.section {
  padding: 110px 0;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 60px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--neon);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4.5vw, 2.9rem);
  font-weight: 900;
  margin-bottom: 16px;
  line-height: 1.35;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ============ Portfolio ============ */
.portfolio {
  background: var(--bg-dark-2);
  position: relative;
}

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

.video-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.video-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: rgba(245, 197, 24, 0.4);
}

.video-frame {
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #101018;
}

.video-info {
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.video-info h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 800;
}

.video-type {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-2);
  background: rgba(245, 197, 24, 0.1);
  border: 1px solid rgba(245, 197, 24, 0.25);
  padding: 5px 12px;
  border-radius: 40px;
}

.portfolio-cta {
  text-align: center;
  margin-top: 50px;
}

/* ============ Services ============ */
.services {
  background: var(--bg-dark);
}

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

.service-card {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-dark-2));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 40px 30px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 3px;
  background: var(--grad-neon);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: rgba(0, 229, 255, 0.35);
}

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

.service-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  margin-bottom: 24px;
  color: var(--gold);
  background: rgba(245, 197, 24, 0.1);
  border: 1px solid rgba(245, 197, 24, 0.25);
}

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

.service-card h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 20px;
}

.service-link {
  display: inline-block;
  font-weight: 700;
  color: var(--neon);
  transition: color var(--transition), letter-spacing var(--transition);
}

.service-link:hover {
  color: var(--gold);
  letter-spacing: 0.5px;
}

/* ============ Process ============ */
.process {
  background: var(--bg-dark-2);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.step {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 32px 26px;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}

.step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.step-num {
  display: block;
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 900;
  background: var(--grad-neon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
  line-height: 1;
}

.step h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ============ CTA Banner ============ */
.cta-banner {
  background: var(--grad-neon);
  position: relative;
  overflow: hidden;
  padding: 90px 0;
  text-align: center;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
}

.cta-banner .container {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 14px;
  color: #0a0a12;
}

.cta-banner p {
  color: rgba(10, 10, 18, 0.8);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 34px;
}

/* ============ Footer ============ */
.site-footer {
  background: #07070d;
  padding: 46px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

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

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--gold);
}

/* ============ Floating WhatsApp ============ */
.wa-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--wa-green);
  color: #fff;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: pulse 2.2s ease infinite;
}

.wa-float svg {
  width: 32px;
  height: 32px;
}

.wa-float:hover {
  transform: scale(1.12);
  box-shadow: 0 14px 40px rgba(37, 211, 102, 0.6);
}

.wa-float-tooltip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: #fff;
  color: #0a0a12;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 10px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  box-shadow: var(--shadow);
}

.wa-float-tooltip::after {
  content: "";
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: #fff;
}

.wa-float:hover .wa-float-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ============ Reveal animations ============ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ============ Responsive ============ */
@media (max-width: 992px) {
  .section {
    padding: 80px 0;
  }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: min(320px, 82%);
    flex-direction: column;
    justify-content: center;
    gap: 34px;
    background: rgba(13, 13, 22, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: right var(--transition);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1.2rem;
    color: var(--text);
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .btn-nav {
    display: none;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 120px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats {
    gap: 18px;
    margin-top: 50px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .portfolio-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
