/* ============================================
   MIND MACHINE FILMS — Design System v2
   Solid Black + Blue Accent Cinematic Theme
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600&family=Lexend:wght@300;400;500;600;700;800;900&display=swap');

/* ---------- Custom Font: Rosnoc (Logo only) ---------- */
@font-face {
  font-family: 'Rosnoc';
  src: url('Rosnoc.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colors — Solid Black + Blue Accent */
  --bg-primary: #00060b;

  /* ---> COR DE FUNDO DAS SEÇÕES (SOBRE, PROJETOS, CONTATO) <--- */
  --bg-primary: transparent;
  --bg-secondary: rgba(4, 10, 20, 0.65); /* Semi-transparent to let gradient show through */
  --bg-card: rgba(10, 13, 31, 0.55);
  --bg-card-hover: rgba(17, 20, 42, 0.75);
  --bg-navbar: rgba(0, 0, 0, 0);
  --bg-navbar-scrolled: rgba(0, 0, 0, 0.7);
  --accent: #326db0;
  --accent-teal: #41c7aa;
  --accent-dim: rgba(74, 158, 255, 0.12);
  --accent-teal-dim: rgba(65, 199, 170, 0.12);
  --accent-glow: rgba(74, 158, 255, 0.3);
  --accent-secondary: #6c5ce7;
  --text-primary: #f0f0f5;
  --text-secondary: rgba(240, 240, 245, 0.6);
  --text-muted: rgba(240, 240, 245, 0.35);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --gradient-accent: linear-gradient(135deg, #4a9eff, #41c7aa);
  --gradient-card: linear-gradient(145deg, rgba(15, 18, 38, 0.65), rgba(8, 10, 24, 0.85));
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 40px rgba(74, 158, 255, 0.12);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-padding: 120px 0;
  --container-width: 1200px;
  --container-padding: 0 24px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #00060c;
  /* Fix for Safari white bars */
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  /* Gradient that spans the whole document and naturally scrolls with the user */
  background: 
    radial-gradient(circle at 10% 5%, rgba(74, 158, 255, 0.15) 0%, transparent 20%),
    radial-gradient(circle at 90% 30%, rgba(65, 199, 170, 0.12) 0%, transparent 20%),
    radial-gradient(circle at 20% 60%, rgba(108, 92, 231, 0.1) 0%, transparent 15%),
    radial-gradient(circle at 80% 90%, rgba(74, 158, 255, 0.15) 0%, transparent 20%),
    #00060b;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  width: 100%;
  -webkit-text-size-adjust: 100%;
}

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

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

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

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* ---------- Scroll Progress Bar ---------- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gradient-accent);
  z-index: 10000;
  transition: none;
  box-shadow: 0 0 10px rgba(74, 158, 255, 0.5);
}

/* ---------- Preloader ---------- */
#preloader {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  text-align: center;
  position: relative;
}

.preloader-logo {
  /* Altere o valor abaixo para mudar o tamanho do logo no preloader */
  width: 40vw;
  max-width: 1000px;
  height: auto;
}

/* Removed preloaderPulse as the GIF handles the animation */

@media (max-width: 768px) {
  .preloader-logo {
    width: 60vw;
    /* 50% increase for mobile */
  }
}

/* ---------- Container ---------- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* ---------- Section ---------- */
.section {
  padding: var(--section-padding);
  position: relative;
  overflow-x: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 16px;
  position: relative;
}

.section-label::before,
.section-label::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 1px;
  background: var(--accent);
  opacity: 0.4;
}

.section-label::before {
  right: calc(100% + 14px);
}

.section-label::after {
  left: calc(100% + 14px);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================
   NAVBAR — Transparent → Glassmorphism on scroll
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: padding 0.4s ease, background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}

.navbar.scrolled {
  padding: 12px 0;
  background: var(--bg-navbar-scrolled);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.navbar-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.navbar-logo img {
  height: 40px;
  transition: var(--transition-base);
}

.navbar.scrolled .navbar-logo img {
  height: 34px;
}

/* ---- Hero Video Background ---- */
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.25;
  pointer-events: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-right: auto;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 1px;
  transition: var(--transition-base);
}

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

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-selector {
  position: relative;
}

.lang-btn {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 6px 14px;
  border: 1px solid var(--border-hover);
  border-radius: 6px;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  cursor: pointer;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-btn::after {
  content: '▼';
  font-size: 0.6rem;
  opacity: 0.5;
}

.lang-selector.active .lang-btn {
  border-color: var(--accent);
  color: var(--accent);
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: rgba(10, 13, 31, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 4px;
  min-width: 60px;
  box-shadow: var(--shadow-lg);
  z-index: 1001;
}

.lang-selector.active .lang-dropdown {
  display: flex;
}

.lang-opt {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: 4px;
  transition: var(--transition-fast);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: center;
}

.lang-opt:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent);
}

.lang-opt.active {
  color: #fff;
  background: var(--accent-dim);
}

.btn-nav-cta {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  background: var(--gradient-accent);
  color: #fff;
  transition: var(--transition-base);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(74, 158, 255, 0.25);
}

.btn-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(74, 158, 255, 0.4);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.menu-toggle span {
  width: 26px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-base);
}

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

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

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

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: transparent;
}

/* Ambient orb lights */
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(74, 158, 255, 0.06) 0%, transparent 70%);
  animation: floatOrb 12s ease-in-out infinite;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.04) 0%, transparent 70%);
  animation: floatOrb 15s ease-in-out infinite reverse;
  pointer-events: none;
}

@keyframes floatOrb {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(40px, -60px) scale(1.1);
  }

  66% {
    transform: translate(-30px, 30px) scale(0.95);
  }
}

/* Noise grain overlay */
.hero-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}

.hero-title {
  font-family: 'Rosnoc', var(--font-heading);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: normal;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.hero-subtitle {
  font-family: 'Lexend', sans-serif;
  /* Applied Lexend here */
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  /* 50% larger base size */
  color: var(--text-primary);
  max-width: 800px;
  /* Increased to fit larger text */
  margin: 0 auto 40px;
  line-height: 1.4;
  opacity: 0;
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
  font-weight: 600;
  /* Bold as requested */
}

.typewriter-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  /* Extra Bold */
  border-right: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  filter: drop-shadow(0 0 8px rgba(74, 158, 255, 0.4));
}

.typewriter-cursor {
  color: #4a9eff;
  font-weight: 800;
  animation: blink 1s step-end infinite;
  margin-left: 2px;
  filter: drop-shadow(0 0 8px rgba(74, 158, 255, 0.4));
}

@keyframes blink {

  from,
  to {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 1.2s forwards;
  opacity: 0;
}

.scroll-indicator .mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator .mouse::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateX(-50%) translateY(12px);
    opacity: 0;
  }
}

/* Phone swipe indicator — hidden on desktop */
.phone-swipe {
  display: none;
}

.phone-body {
  width: 22px;
  height: 36px;
  border: 2px solid var(--text-muted);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.swipe-arrow {
  width: 6px;
  height: 6px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateX(-50%) rotate(45deg);
  position: absolute;
  left: 50%;
  top: 7px;
  animation: swipeUpDown 2s ease-in-out infinite;
}

@keyframes swipeUpDown {
  0% {
    top: 7px;
    opacity: 1;
  }

  50% {
    top: 20px;
    opacity: 0.4;
  }

  100% {
    top: 7px;
    opacity: 1;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 16px 36px;
  border-radius: var(--radius-sm);
  transition: var(--transition-base);
  letter-spacing: 0.5px;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(74, 158, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(74, 158, 255, 0.45);
}

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

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(74, 158, 255, 0.05);
  transform: translateY(-3px);
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  background: var(--bg-secondary);
  position: relative;
}



.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.value-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.value-card.visible:hover {
  border-color: var(--accent);
  transform: translateY(-8px) scale(1.08);
  box-shadow: var(--shadow-glow);
}

.value-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  color: var(--accent);
}

.value-icon svg {
  width: 22px;
  height: 22px;
}

.value-card h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.about-visual {
  position: relative;
}

.about-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--gradient-card);
  border: 1px solid var(--border);
}

.about-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.5) 100%);
  pointer-events: none;
}

/* Floating stats */
.about-stat {
  position: absolute;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  box-shadow: var(--shadow-md);
}

.about-stat.stat-1 {
  bottom: -20px;
  right: -20px;
}

.about-stat.stat-2 {
  top: -16px;
  left: -20px;
}

.about-stat .stat-number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-stat .stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  position: relative;
  background: var(--bg-primary);
}



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

.service-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  contain: layout style;
  will-change: transform;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transition: var(--transition-smooth);
  transform-origin: left;
}

.service-card.visible:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  background: var(--bg-card-hover);
}

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

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--accent-dim);
  border: 1px solid rgba(74, 158, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: var(--transition-base);
  color: var(--accent);
}

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

.service-card.visible:hover .service-icon {
  background: rgba(74, 158, 255, 0.18);
  box-shadow: 0 0 20px rgba(74, 158, 255, 0.15);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ============================================
   PROJECTS / PARTNERS
   ============================================ */
.projects {
  background: var(--bg-secondary);
  position: relative;
}



/* Showreel Placeholder */
.showreel-wrapper {
  max-width: 900px;
  margin: 0 auto 72px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--gradient-card);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: var(--transition-base);
}

.showreel-wrapper:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}

.showreel-placeholder {
  text-align: center;
}

.showreel-placeholder .play-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 0 40px rgba(74, 158, 255, 0.3);
  transition: var(--transition-base);
  color: #fff;
}

.showreel-wrapper:hover .play-icon {
  transform: scale(1.1);
  box-shadow: 0 0 60px rgba(74, 158, 255, 0.5);
}

.showreel-placeholder p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Partners – Natural logo colors */
.partners-section {
  text-align: center;
}

.partners-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.partners-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}

.partner-logo {
  height: 80px;
  opacity: 0.7;
  transition: var(--transition-base);
  /* No grayscale filter — keep natural colors */
}

.partner-logo:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* ============================================
   TEAM
   ============================================ */
.team {
  position: relative;
  background: var(--bg-primary);
}



.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.team-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-base);
  contain: layout style;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.team-card.visible:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.team-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
  transition: var(--transition-smooth);
}

.team-card.visible:hover .team-photo {
  transform: scale(1.03);
}

.team-photo-wrapper {
  overflow: hidden;
  position: relative;
}

.team-photo-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  pointer-events: none;
  transition: var(--transition-smooth);
  transform-origin: center bottom;
}

.team-card.visible:hover .team-photo-wrapper::after {
  transform: scale(1.03);
}

.team-info {
  padding: 28px 32px 32px;
}

.team-info h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-role {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 14px;
}

.team-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  margin-top: 16px;
  transition: var(--transition-fast);
  font-weight: 500;
}

.team-social svg {
  transition: transform 0.3s ease, color 0.3s ease;
  color: var(--text-secondary);
}

.team-social:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.team-social:hover svg {
  transform: scale(1.1);
  color: #cc2366;
  /* Vibrant Instagram-brand color for the icon on hover */
}

.team-bio {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  background: var(--bg-secondary);
  position: relative;
}



.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.contact-channel {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition-base);
}

.contact-channel:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateX(6px);
}

.contact-channel-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-channel-text .channel-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-channel-text .channel-value {
  font-size: 0.95rem;
  font-weight: 500;
}

.social-links {
  display: flex;
  gap: 14px;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition-base);
}

.social-link:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
  transform: translateY(-3px);
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-row .form-group {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: var(--transition-fast);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23f0f0f5' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-group select option {
  background: #0a0a0a;
  color: var(--text-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-budget-range {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.budget-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
  cursor: pointer;
}

.budget-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gradient-accent);
  box-shadow: 0 0 12px rgba(74, 158, 255, 0.4);
  cursor: pointer;
  border: 2px solid #fff;
}

.budget-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(74, 158, 255, 0.4);
  cursor: pointer;
  border: 2px solid #fff;
}

.budget-display {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

.btn-submit {
  width: 100%;
  padding: 18px;
  font-size: 1rem;
  margin-top: 8px;
}

/* ============================================
   GLOBAL DYNAMIC BACKGROUND (Grain & Gradient)
   ============================================ */
.global-bg-wrapper {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: #030408;
  /* Extremely dark base */
  overflow: hidden;
  pointer-events: none;
}

.global-gradient {
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;

  /* Use soft radial gradients instead of sharp lines to avoid "buggy" hard edges */
  background-image:
    radial-gradient(circle at 20% 30%, rgba(74, 158, 255, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(65, 199, 170, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(108, 92, 231, 0.05) 0%, transparent 70%);

  /* Parallax movement using CSS variables (handled by JS) */
  transform: translateY(calc(var(--scroll-y, 0) * -0.15px));
  filter: blur(60px);
  will-change: transform;
  backface-visibility: hidden;
}

.global-noise {
  position: absolute;
  inset: 0;
  /* Reduced baseFrequency to make the granular noise physically smaller to the eye */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.022;
  /* Decreased visibility slightly back towards a subtle level */
  z-index: 1;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #000;
  padding: 60px 0 30px;
  border-top: 1px solid var(--border);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.footer-logo img {
  height: 36px;
}

.footer-nav {
  display: flex;
  gap: 32px;
}

.footer-nav a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copyright {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.footer-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS — Enhanced
   ============================================ */

/* Base reveal */
/* Base reveal */
.reveal {
  opacity: 0;
  transform: translateY(50px);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
}

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Ensure hover transition is ready and doesn't wait for reveal delay */
.value-card.visible {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

/* Staggered delays */
.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.25s;
}

.reveal-delay-4 {
  transition-delay: 0.35s;
}

.reveal-delay-5 {
  transition-delay: 0.45s;
}

.reveal-delay-6 {
  transition-delay: 0.55s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.85);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Subtle glow pulse on accent elements */
@keyframes glowPulse {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(74, 158, 255, 0.15);
  }

  50% {
    box-shadow: 0 0 40px rgba(74, 158, 255, 0.3);
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --section-padding: 90px 0;
  }

  .about-grid {
    gap: 48px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --section-padding: 72px 0;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.2rem;
  }

  .menu-toggle {
    display: flex;
  }

  .btn-nav-cta {
    display: none;
  }

  /* Navbar logo: left-aligned on mobile for hamburger space */
  .navbar-logo {
    position: static;
    transform: none;
  }

  .navbar .container {
    justify-content: space-between;
  }

  /* Hero adjustments */
  .hero-title {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .hero-subtitle {
    font-size: clamp(1rem, 4.5vw, 1.3rem);
    max-width: 100%;
    line-height: 1.6;
    padding: 0 4px;
    text-align: center;
  }

  .hero-subtitle span[data-i18n="hero_subtitle_prefix"] {
    display: block;
    margin-bottom: 5px;
  }

  /* Swap mouse for phone swipe on mobile */
  .scroll-indicator .mouse {
    display: none;
  }

  .scroll-indicator .phone-swipe {
    display: block;
  }

  .hero-logo {
    width: 70px;
  }

  /* Disable hover scale on touch — value cards */
  .value-card.visible:hover {
    transform: translateY(-4px);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-values {
    grid-template-columns: 1fr;
  }

  .about-visual {
    order: -1;
  }

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

  .team-grid {
    grid-template-columns: 1fr;
  }

  /* Prevent floating stat cards from overflowing the screen on mobile */
  .about-stat.stat-1 {
    bottom: -15px;
    right: 0px;
  }

  .about-stat.stat-2 {
    top: -15px;
    left: 0px;
  }

  /* Contact channels — prevent email overflow */
  .channel-value {
    word-break: break-all;
    font-size: 0.8rem;
  }

  .contact-channel {
    padding: 12px 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

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

  .contact-form-wrapper {
    padding: 28px 20px;
  }

  /* Disable magnetic button effect on mobile */
  .magnetic {
    transform: none !important;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero-cta-group {
    flex-direction: column;
    gap: 12px;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-subtitle {
    font-size: clamp(0.9rem, 4vw, 1.1rem);
  }

  .section-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .contact-channel-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }

  .team-info {
    padding: 20px 20px 24px;
  }

  .partners-grid {
    gap: 32px;
  }

  .partner-logo {
    height: 60px;
  }
}

/* ============================================
   EXPERIMENTAL FEATURES
   ============================================ */

/* Removed Custom Cursor */

/* 2. Magnetic Buttons */
.magnetic {
  display: inline-flex;
  will-change: transform;
}

/* 3. Section Transitions "Clipped" */
.section-cut {
  position: relative;
  z-index: 5;
  /* Ensure clipped sections overlap the transparent ones correctly */
  border-top: none !important;
  background: var(--bg-secondary) !important;
}

.section-cut::before {
  display: none !important;
}

.about.section-cut {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 3vw));
  padding-bottom: calc(120px + 3vw);
  margin-bottom: -3vw;
}

.projects.section-cut {
  clip-path: polygon(0 3vw, 100% 0, 100% calc(100% - 3vw), 0 100%);
  padding-top: calc(120px + 3vw);
  padding-bottom: calc(120px + 3vw);
  margin-top: -3vw;
  margin-bottom: -3vw;
}

.contact.section-cut {
  clip-path: polygon(0 0, 100% 3vw, 100% 100%, 0 100%);
  padding-top: calc(120px + 3vw);
  margin-top: -3vw;
}

@media (max-width: 768px) {

  /* Restaura o corte diagonal sutil no mobile */
  .about.section-cut {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 4vw));
    padding-bottom: calc(72px + 4vw);
    margin-bottom: -4vw;
  }

  .projects.section-cut {
    clip-path: polygon(0 4vw, 100% 0, 100% calc(100% - 4vw), 0 100%);
    padding-top: calc(72px + 4vw);
    padding-bottom: calc(72px + 4vw);
    margin-top: -4vw;
    margin-bottom: -4vw;
  }

  .contact.section-cut {
    clip-path: polygon(0 0, 100% 4vw, 100% 100%, 0 100%);
    padding-top: calc(72px + 4vw);
    margin-top: -4vw;
  }
}