/* ═══════════════════════════════════════════
   TANGO UNO — Cinematic Dark Luxury
   Design System & Styles
   ═══════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ── Design Tokens ── */
:root {
  /* Backgrounds */
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.6);
  --bg-elevated: #1a1f35;
  --bg-glass: rgba(10, 14, 26, 0.75);

  /* Brand */
  --accent: #e63946;
  --accent-glow: #ff2d3b;
  --accent-warm: #f4845f;
  --accent-light: rgba(230, 57, 70, 0.15);

  /* Text */
  --text-primary: #f0f2f5;
  --text-secondary: #8892a4;
  --text-muted: #5a6478;
  --text-accent: #e63946;

  /* Effects */
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-border-hover: rgba(255, 255, 255, 0.12);
  --glow-red: 0 0 60px rgba(230, 57, 70, 0.25);
  --glow-red-intense: 0 0 80px rgba(230, 57, 70, 0.4);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-elevated: 0 20px 60px rgba(0, 0, 0, 0.5);

  /* Gradients */
  --gradient-hero: linear-gradient(160deg, #0a0e1a 0%, #140a1e 40%, #0a0e1a 100%);
  --gradient-section: linear-gradient(180deg, #0a0e1a 0%, #0d1220 50%, #0a0e1a 100%);
  --gradient-accent: linear-gradient(135deg, #e63946 0%, #f4845f 100%);
  --gradient-text: linear-gradient(135deg, #f0f2f5 0%, #8892a4 100%);
  --gradient-overlay: linear-gradient(180deg, rgba(10,14,26,0.9) 0%, rgba(10,14,26,0.4) 40%, rgba(10,14,26,0.8) 100%);

  /* Typography */
  --font-display: 'Bebas Neue', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 10rem;

  /* Sizing */
  --max-width: 1280px;
  --nav-height: 72px;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 200ms;
  --duration-normal: 350ms;
  --duration-slow: 600ms;

  /* Z-Index Scale */
  --z-base: 1;
  --z-card: 10;
  --z-sticky: 20;
  --z-nav: 50;
  --z-modal: 100;
  --z-overlay: 200;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

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

/* ── Utility ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.accent-text {
  color: var(--accent);
}

.section-padding {
  padding: var(--space-3xl) 0;
}

/* ── Grain Overlay ── */
body::before {
  content: '';
  position: fixed;
  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='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ═══════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: var(--space-sm) 0;
  transition: all var(--duration-normal) var(--ease-smooth);
}

.navbar.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  z-index: var(--z-nav);
}

.nav-logo img {
  height: 42px;
  width: auto;
  filter: brightness(1.1);
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 3px;
  color: var(--text-primary);
}

.nav-logo-text .accent-text {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--duration-fast) var(--ease-smooth);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--duration-normal) var(--ease-smooth);
}

.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-cta {
  font-family: var(--font-heading) !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  letter-spacing: 2px !important;
  padding: 10px 24px !important;
  background: var(--accent) !important;
  color: var(--text-primary) !important;
  border-radius: 4px;
  transition: all var(--duration-normal) var(--ease-smooth) !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--accent-glow) !important;
  box-shadow: var(--glow-red);
  transform: translateY(-1px);
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  z-index: calc(var(--z-nav) + 1);
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--duration-normal) var(--ease-smooth);
  transform-origin: center;
}

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

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

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

/* Mobile overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: calc(var(--z-nav) - 2);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-smooth);
}

.nav-overlay.active {
  opacity: 1;
}

/* ═══════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  overflow: hidden;
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: blur(2px);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-overlay);
  z-index: 1;
}

/* Animated light streaks */
.hero-lights {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  opacity: 0.5;
}

.hero-lights::before,
.hero-lights::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(100px);
  animation: lightPulse 8s ease-in-out infinite alternate;
}

.hero-lights::before {
  background: rgba(230, 57, 70, 0.15);
  top: 20%;
  left: -10%;
}

.hero-lights::after {
  background: rgba(99, 102, 241, 0.1);
  bottom: 10%;
  right: -5%;
  animation-delay: -4s;
}

@keyframes lightPulse {
  0% { transform: scale(1) translate(0, 0); opacity: 0.3; }
  100% { transform: scale(1.3) translate(30px, -20px); opacity: 0.6; }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-xl) var(--space-md);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  padding: 8px 20px;
  border: 1px solid var(--accent-light);
  border-radius: 100px;
  margin-bottom: var(--space-lg);
  background: rgba(230, 57, 70, 0.05);
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 10rem);
  line-height: 0.9;
  letter-spacing: 8px;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.hero-title .outline {
  -webkit-text-stroke: 1px var(--text-primary);
  color: transparent;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto var(--space-xl);
  line-height: 1.8;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 36px;
  background: var(--accent);
  color: var(--text-primary);
  border-radius: 4px;
  transition: all var(--duration-normal) var(--ease-smooth);
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--accent-glow);
  box-shadow: var(--glow-red);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 36px;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--glass-border-hover);
  border-radius: 4px;
  transition: all var(--duration-normal) var(--ease-smooth);
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}

.hero-scroll-indicator .scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--accent) 0%, transparent 100%);
}

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

/* ═══════════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════════ */
.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1;
  letter-spacing: 4px;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.section-desc {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ═══════════════════════════════════════════
   ABOUT / SOMOS
   ═══════════════════════════════════════════ */
.about {
  background: var(--gradient-section);
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-image-wrapper {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.about-image-wrapper img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 8px;
}

.about-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  pointer-events: none;
}

.about-accent-block {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 180px;
  padding: var(--space-md);
  background: var(--accent);
  border-radius: 8px;
  text-align: center;
  box-shadow: var(--glow-red);
}

.about-accent-block .number {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: white;
}

.about-accent-block .label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-top: 4px;
}

.about-text h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: 3px;
  line-height: 1.1;
  margin-bottom: var(--space-md);
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  font-size: 1.05rem;
}

.about-roles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.role-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  transition: all var(--duration-normal) var(--ease-smooth);
}

.role-item:hover {
  border-color: var(--accent);
  color: var(--text-primary);
  background: var(--accent-light);
}

.role-item .role-icon {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

/* Stats Counter Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-2xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--glass-border);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-number .accent {
  color: var(--accent);
}

.stat-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--space-md);
}

.service-card {
  position: relative;
  padding: var(--space-xl) var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  transition: all var(--duration-slow) var(--ease-smooth);
  overflow: hidden;
  cursor: pointer;
}

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

.service-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

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

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  color: var(--accent);
}

.service-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--accent);
  stroke-width: 1.5;
  fill: none;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 3px;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.service-card .service-en {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  display: block;
}

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

/* ═══════════════════════════════════════════
   PORTFOLIO
   ═══════════════════════════════════════════ */
.portfolio {
  background: var(--gradient-section);
  position: relative;
}

.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 24px;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  transition: all var(--duration-normal) var(--ease-smooth);
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--text-primary);
  background: var(--accent);
  border-color: var(--accent);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

.portfolio-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.portfolio-item.tall {
  grid-row: span 2;
  aspect-ratio: auto;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-smooth);
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 14, 26, 0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-md);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-smooth);
}

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

.portfolio-overlay h4 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 2px;
  color: var(--text-primary);
}

.portfolio-overlay span {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
}

/* ═══════════════════════════════════════════
   CLIENTS MARQUEE
   ═══════════════════════════════════════════ */
.clients {
  background: var(--bg-secondary);
  padding: var(--space-2xl) 0;
  overflow: hidden;
  position: relative;
}

.clients .section-header {
  margin-bottom: var(--space-xl);
}

.marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: var(--space-2xl);
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  height: 60px;
  opacity: 0.4;
  filter: grayscale(1) brightness(1.5);
  transition: all var(--duration-normal) var(--ease-smooth);
}

.client-logo:hover {
  opacity: 1;
  filter: grayscale(0) brightness(1);
}

.client-logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 4px;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* ═══════════════════════════════════════════
   MODES (Virtual / Presencial / Hibrido)
   ═══════════════════════════════════════════ */
.modes {
  background: var(--gradient-section);
  position: relative;
}

.modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.mode-card {
  position: relative;
  padding: var(--space-xl) var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  text-align: center;
  transition: all var(--duration-slow) var(--ease-smooth);
  overflow: hidden;
}

.mode-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 0 0 4px 4px;
}

.mode-card:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-elevated);
}

.mode-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: 16px;
  color: var(--accent);
}

.mode-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.mode-card h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 4px;
  margin-bottom: var(--space-xs);
}

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

/* ═══════════════════════════════════════════
   PUBLICATIONS / MEDIA
   ═══════════════════════════════════════════ */
.publications {
  background: var(--bg-secondary);
  position: relative;
}

.pub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: stretch;
}

.pub-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--duration-slow) var(--ease-smooth);
}

.pub-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

.pub-card-visual {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--bg-elevated);
  overflow: hidden;
}

.pub-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pub-card-visual .play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 14, 26, 0.4);
  opacity: 0;
  transition: opacity var(--duration-normal);
}

.pub-card:hover .play-icon {
  opacity: 1;
}

.play-icon svg {
  width: 60px;
  height: 60px;
  fill: var(--accent);
  filter: drop-shadow(0 0 20px rgba(230, 57, 70, 0.5));
}

.pub-card-body {
  padding: var(--space-lg);
}

.pub-card-body .pub-tag {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-xs);
  display: block;
}

.pub-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 2px;
  margin-bottom: var(--space-sm);
}

.pub-card-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.pub-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  transition: gap var(--duration-normal) var(--ease-smooth);
}

.pub-link:hover {
  gap: 14px;
}

.pub-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* ═══════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════ */
.contact {
  background: var(--gradient-section);
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: 3px;
  line-height: 1.1;
  margin-bottom: var(--space-md);
}

.contact-info p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: var(--space-xl);
  line-height: 1.8;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--glass-border);
}

.contact-detail-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: 12px;
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  stroke-width: 1.5;
  fill: none;
}

.contact-detail-text .detail-label {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
  display: block;
}

.contact-detail-text a,
.contact-detail-text span {
  font-size: 1rem;
  color: var(--text-primary);
  transition: color var(--duration-fast);
}

.contact-detail-text a:hover {
  color: var(--accent);
}

.contact-social {
  margin-top: 2rem;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: var(--space-xl);
  backdrop-filter: blur(10px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--duration-fast) var(--ease-smooth);
  outline: none;
}

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

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

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238892a4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.btn-submit {
  width: 100%;
  padding: 16px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-smooth);
}

.btn-submit:hover {
  background: var(--accent-glow);
  box-shadow: var(--glow-red);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .nav-logo {
  margin-bottom: var(--space-md);
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 6px 0;
  transition: color var(--duration-fast);
}

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

.footer-social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-secondary);
  transition: all var(--duration-normal) var(--ease-smooth);
}

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

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--glass-border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   LIGHTBOX
   ═══════════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
  padding: 0;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.95);
}

.lightbox:not([open]) {
  display: none;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all var(--duration-fast);
}

.lightbox-close:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* ═══════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   Elements are VISIBLE by default.
   JS adds .reveal → hidden state (opacity 0, translateY)
   IntersectionObserver adds .revealed → animated entrance
   If JS fails, elements stay visible. Zero bugs.
   ═══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: opacity, transform;
}

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

/* Slide from left for visual/info elements */
.about-visual.reveal {
  transform: translateX(-40px) translateY(0);
}
.about-visual.reveal.revealed {
  transform: translateX(0) translateY(0);
}

.about-text.reveal {
  transform: translateX(40px) translateY(0);
}
.about-text.reveal.revealed {
  transform: translateX(0) translateY(0);
}

.contact-info.reveal {
  transform: translateX(-30px) translateY(0);
}
.contact-info.reveal.revealed {
  transform: translateX(0) translateY(0);
}

.contact-form.reveal {
  transform: translateX(30px) translateY(0);
}
.contact-form.reveal.revealed {
  transform: translateX(0) translateY(0);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .about-accent-block { right: 20px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pub-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root {
    --space-3xl: 6rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: var(--bg-primary);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-lg);
    padding: var(--space-xl);
    border-left: 1px solid var(--glass-border);
    transition: right var(--duration-slow) var(--ease-smooth);
    z-index: calc(var(--z-nav) - 1);
  }

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

  .nav-toggle {
    display: flex;
  }

  .hero-title {
    letter-spacing: 4px;
  }

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

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

  .portfolio-item.tall {
    grid-row: span 1;
    aspect-ratio: 4/3;
  }

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

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .portfolio-filters {
    gap: 6px;
  }

  .filter-btn {
    font-size: 0.65rem;
    padding: 8px 14px;
    letter-spacing: 1px;
  }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
}
