/* ===== Vyral Agency — Thème bleu, inspiré House of Shafaq ===== */
:root {
  /* Bleu (remplace rouge/orange) */
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --primary-light: #38bdf8;
  --accent: #06b6d4;
  --accent-dark: #0891b2;
  /* Neutres */
  --bg: #0a0a0f;
  --bg-card: #111118;
  --bg-elevated: #16161f;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.08);
  /* Typo */
  --font-display: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;
  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

/* ----- Header ----- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  transition: background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.header.scrolled {
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.9;
  transition: opacity 0.2s, color 0.2s;
}

.nav a:hover {
  opacity: 1;
  color: var(--primary-light);
}

.nav-cta {
  padding: 0.5rem 1rem;
  border: 1px solid var(--primary);
  border-radius: 6px;
  color: var(--primary-light) !important;
}

.nav-cta:hover {
  background: rgba(14, 165, 233, 0.15);
}

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

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--bg-elevated);
  padding: 2rem;
  flex-direction: column;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s var(--ease-out);
}

.nav-mobile.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-mobile a {
  font-size: 1.1rem;
  padding: 0.5rem 0;
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .nav-mobile {
    display: flex;
  }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.3s var(--ease-out), color 0.3s, transform 0.2s, box-shadow 0.3s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--accent-dark));
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary-light);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background: rgba(14, 165, 233, 0.12);
}

.btn-large {
  padding: 1rem 2.25rem;
  font-size: 1rem;
}

/* ----- Hero ----- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  position: relative;
}

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

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 20%, rgba(14, 165, 233, 0.15) 0%, transparent 55%),
              radial-gradient(ellipse 60% 40% at 80% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0);
  background-size: 40px 40px;
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-title .line {
  display: block;
  overflow: hidden;
}

.hero-title .line span {
  display: inline-block;
  animation: revealLine 1s var(--ease-out) forwards;
}

.hero-title .line:nth-child(2) span {
  animation-delay: 0.15s;
  animation-fill-mode: both;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) 0.4s forwards;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) 0.6s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  opacity: 0;
  animation: fadeIn 1s 1.2s forwards;
}

.scroll-indicator {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  border-radius: 1px;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes revealLine {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

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

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

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

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

.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

/* ----- Section titles ----- */
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 3rem;
}

/* ----- Showreel ----- */
.showreel {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.showreel-label {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 1rem;
}

.showreel-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 2.5rem;
  letter-spacing: -0.02em;
}

.showreel-video-wrap {
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.showreel-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(6, 182, 212, 0.05));
  color: var(--text-muted);
  font-size: 1rem;
}

/* ----- Services main (3 cards) ----- */
.services-main {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.services-main .btn {
  display: block;
  margin: 3rem auto 0;
}

.services-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.4s var(--ease-out), border-color 0.3s, box-shadow 0.4s;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 165, 233, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-card h4 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text);
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  line-height: 1.65;
}

.link-arrow {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary-light);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.2s, color 0.2s;
}

.link-arrow:hover {
  gap: 0.6rem;
  color: var(--primary);
}

/* ----- Video types grid ----- */
.video-types {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.video-types .btn {
  display: block;
  margin: 3rem auto 0;
}

.video-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.video-type-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.4s var(--ease-out), border-color 0.3s, box-shadow 0.4s;
}

.video-type-card:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 165, 233, 0.25);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
}

.video-type-card h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.video-type-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* ----- About ----- */
.about {
  padding: 6rem 2rem;
  position: relative;
}

.about-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(14, 165, 233, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.about-content {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  text-align: center;
}

.about-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.about-text {
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.75;
}

.about .btn {
  margin-top: 0.5rem;
}

/* ----- Testimonials ----- */
.testimonials {
  padding: 6rem 2rem;
  position: relative;
}

.testimonials-bg {
  position: absolute;
  inset: 0;
  background: var(--bg-card);
  opacity: 0.5;
  pointer-events: none;
}

.testimonials .section-title {
  margin-bottom: 2.5rem;
  position: relative;
}

.testimonials-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonials-track-wrap {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.testimonials-slider .testimonials-track {
  flex: 1;
  min-width: 0;
}

.slider-btn {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.slider-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.testimonials-track {
  flex: 1;
  overflow: visible;
  min-width: 0;
}

.testimonial-card {
  padding: 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.testimonial-card blockquote {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-style: normal;
}

.testimonial-card cite {
  font-size: 0.9rem;
  color: var(--primary-light);
  font-style: normal;
}

.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

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

.testimonials-dots .dot.active {
  background: var(--primary);
  transform: scale(1.2);
}

/* ----- Footer CTA ----- */
.footer-cta {
  padding: 5rem 2rem;
  text-align: center;
  background: linear-gradient(180deg, transparent 0%, rgba(14, 165, 233, 0.06) 100%);
}

.footer-tagline {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary-light);
  margin-bottom: 0.75rem;
}

.footer-cta h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.footer-services-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  margin-top: 2.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ----- Footer ----- */
.footer {
  padding: 4rem 2rem 2rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-brand strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.footer-contact p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.footer-links h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.footer-links a {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-legal a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

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