/* SolidQubit - Corporate AI Company - Clean & Minimal */

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #000000;
  --white: #FFFFFF;
  --accent: #0066FF;
  --accent-light: #3385FF;
  --accent-dark: #0052CC;
  --gray-50: #FAFAFA;
  --gray-100: #F5F5F5;
  --gray-200: #E5E5E5;
  --gray-300: #D4D4D4;
  --gray-400: #A3A3A3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  font-size: 16px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 10000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.header.scrolled {
  background: rgba(0, 0, 0, 0.95);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  padding: 0 3rem;
}

.logo {
  height: 45px;
  width: auto;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.1));
}

.logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.2));
}

.nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-link {
  text-decoration: none;
  color: var(--gray-300);
  font-weight: 500;
  font-size: 14px;
  padding: 0.65rem 1.25rem;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  letter-spacing: 0.02em;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.nav-link:hover::before {
  opacity: 1;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--white), transparent);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.nav-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.nav-link-highlight {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  color: var(--white);
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.nav-link-highlight::before {
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.25) 0%, transparent 70%);
}

.nav-link-highlight:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.15));
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: all 0.3s;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 70px;
}

.particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Video visible en desktop/tablet, oculto en móvil */
.hero-video-desktop {
  display: block;
}

/* Imagen banner para móvil - oculta por defecto */
.hero-banner-mobile {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* En móvil: ocultar video, mostrar imagen */
@media (max-width: 768px) {
  .hero-video-desktop {
    display: none !important;
  }

  .hero-banner-mobile {
    display: block;
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  color: var(--white);
  max-width: 700px;
  margin-left: 6rem;
  margin-right: auto;
  padding-left: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(0, 102, 255, 0.1);
  border: 1px solid rgba(0, 102, 255, 0.3);
  border-radius: 20px;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 1s ease 0.2s forwards;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.badge-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
  opacity: 0;
  animation: slideInRight 1s ease 0.3s forwards;
}

.hero-title br {
  display: block;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 1s ease 0.5s forwards;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 500;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.6;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  opacity: 0;
  animation: fadeInUp 1s ease 0.7s forwards;
}

.vertical-tag {
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  animation: float 3s ease-in-out infinite;
}

.vertical-tag:nth-child(1) {
  animation-delay: 0s;
  background: rgba(0, 102, 255, 0.25);
  border-color: rgba(0, 102, 255, 0.4);
  color: #fff;
}

.vertical-tag:nth-child(2) {
  animation-delay: 0.5s;
}

.vertical-tag:nth-child(3) {
  animation-delay: 1s;
}

.vertical-tag:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.vertical-tag:nth-child(1):hover {
  background: rgba(0, 102, 255, 0.4);
  border-color: rgba(0, 102, 255, 0.6);
  box-shadow: 0 8px 20px rgba(0, 102, 255, 0.3);
}

.hero-description {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 300;
  color: var(--gray-300);
  margin-bottom: 2.5rem;
  line-height: 1.5;
  opacity: 0;
  animation: fadeInUp 1s ease 0.9s forwards;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeInUp 1s ease 1s forwards;
}

.hero-buttons a {
  animation: float 3s ease-in-out infinite;
}

.hero-buttons a:nth-child(1) {
  animation-delay: 1.5s;
}

.hero-buttons a:nth-child(2) {
  animation-delay: 2s;
}

.hero-buttons a:nth-child(3) {
  animation-delay: 2.5s;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  animation: fadeInUp 1s ease 1.3s forwards;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.hero-stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background: var(--white);
  color: var(--black);
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border: 2px solid var(--white);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--black);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

.btn-tertiary {
  display: inline-block;
  background: transparent;
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.btn-tertiary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 102, 255, 0.2);
}

/* Section Styles */
section {
  padding: 12rem 0;
  position: relative;
}

section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-300), transparent);
}

section:last-of-type::after {
  display: none;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
  width: 100%;
  opacity: 0;
  animation: titleReveal 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards, textShimmer 3s ease-in-out 1.5s infinite;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: expandWidth 2s ease-in-out infinite;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--gray-600);
  margin-bottom: 5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: fadeInUp 1s ease 0.5s forwards, subtleFloat 4s ease-in-out 1.5s infinite;
}

/* Intro Section */
.intro-section {
  background: var(--white);
  padding: 10rem 0 !important;
}

.intro-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.intro-quote {
  margin-bottom: 4rem;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}

.quote-icon {
  width: 48px;
  height: 48px;
  color: var(--gray-300);
  margin-bottom: 1.5rem;
}

.intro-quote blockquote {
  margin: 0;
  padding: 0;
}

.intro-quote p {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--black);
  font-style: italic;
}

.intro-text {
  opacity: 0;
  animation: fadeInUp 1s ease 0.3s forwards;
}

.intro-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.intro-text p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--gray-600);
}

/* Globe Section */
.globe-section {
  background: var(--black);
  padding: 0 !important;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.globe-section::after {
  display: none;
}

.globe-container {
  width: 100%;
  height: 100vh;
  position: relative;
}

#globeViz {
  width: 100%;
  height: 100%;
}

/* Global Text Section */
.global-text-section {
  background: var(--black);
  padding: 6rem 0;
  text-align: center;
}

.global-text-section::after {
  display: none;
}

.global-text-section .section-title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--white) 0%, var(--gray-300) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.global-text-section .section-subtitle {
  font-size: 1.5rem;
  color: var(--gray-400);
  max-width: 600px;
  margin: 0 auto;
}

/* Stats Section */
.stats-section {
  background: var(--black);
  padding: 6rem 0 !important;
}

.stats-section::after {
  display: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  text-align: center;
}

.stat-item {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.stat-item:nth-child(1) {
  animation-delay: 0.2s;
}

.stat-item:nth-child(2) {
  animation-delay: 0.4s;
}

.stat-item:nth-child(3) {
  animation-delay: 0.6s;
}

.stat-item:nth-child(4) {
  animation-delay: 0.8s;
}

.stat-item:nth-child(5) {
  animation-delay: 1s;
}

.stat-number {
  font-size: 4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label {
  font-size: 1rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.stat-countries {
  font-size: 1.2rem;
  margin-top: 0.5rem;
  letter-spacing: 0.2em;
}

/* Story Sections - New Dynamic Design */
.story-section-new {
  padding: 0 !important;
  background: var(--white);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.story-section-new::after {
  display: none;
}

.story-innovation {
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
}

.story-technology {
  background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
}

.story-asymmetric-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  max-width: 1600px;
  margin: 0 auto;
  padding: 4rem 3rem;
  position: relative;
  align-items: center;
}

.story-asymmetric-container.reverse {
  grid-template-columns: 0.8fr 1.2fr;
}

/* Floating Elements */
.story-floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.float-circle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.03) 0%, transparent 70%);
}

.circle-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  right: 10%;
  animation: floatDiagonal 15s ease-in-out infinite;
}

.circle-2 {
  width: 200px;
  height: 200px;
  bottom: 20%;
  left: 5%;
  animation: floatDiagonal 12s ease-in-out infinite 2s;
}

.circle-3 {
  width: 150px;
  height: 150px;
  top: 50%;
  right: 30%;
  animation: floatDiagonal 18s ease-in-out infinite 4s;
}

.float-square {
  position: absolute;
  border: 2px solid rgba(0, 0, 0, 0.05);
  transform: rotate(45deg);
}

.square-1 {
  width: 200px;
  height: 200px;
  top: 15%;
  left: 10%;
  animation: rotateFloat 20s linear infinite;
}

.square-2 {
  width: 150px;
  height: 150px;
  bottom: 25%;
  right: 15%;
  animation: rotateFloat 15s linear infinite reverse;
}

.square-3 {
  width: 100px;
  height: 100px;
  top: 60%;
  left: 40%;
  animation: rotateFloat 25s linear infinite;
}

@keyframes floatDiagonal {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(30px, -30px);
  }
}

@keyframes rotateFloat {
  0% {
    transform: rotate(45deg) translateY(0);
  }

  50% {
    transform: rotate(225deg) translateY(-20px);
  }

  100% {
    transform: rotate(405deg) translateY(0);
  }
}

/* Main Content */
.story-main-content {
  position: relative;
  z-index: 1;
  padding: 3rem 0;
}

.story-main-content.right {
  padding-left: 3rem;
}

.story-number {
  position: absolute;
  top: -2rem;
  left: -2rem;
  font-size: 12rem;
  font-weight: 900;
  color: rgba(0, 102, 255, 0.05);
  line-height: 1;
  z-index: 0;
  animation: scaleIn 1s ease forwards;
}

.story-text-wrapper {
  position: relative;
  z-index: 1;
}

.story-tag {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  border-radius: 20px;
  margin-bottom: 2rem;
  opacity: 0;
  animation: slideInFromLeft 0.8s ease 0.2s forwards;
}

.story-heading {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.story-heading .word {
  display: inline-block;
  opacity: 0;
  animation: wordReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.story-heading .word:nth-child(1) {
  animation-delay: 0.3s;
}

.story-heading .word:nth-child(2) {
  animation-delay: 0.5s;
}

.story-heading .word:nth-child(3) {
  animation-delay: 0.7s;
}

@keyframes wordReveal {
  0% {
    opacity: 0;
    transform: translateY(40px) rotateX(-90deg);
  }

  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

.story-description {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--gray-600);
  max-width: 600px;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeInUp 1s ease 0.9s forwards;
}

.story-stats {
  display: flex;
  gap: 3rem;
  opacity: 0;
  animation: fadeInUp 1s ease 1.1s forwards;
}

.stat-item-inline {
  display: flex;
  flex-direction: column;
}

.stat-number-inline {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--black);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label-inline {
  font-size: 0.9rem;
  color: var(--gray-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.story-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  animation: fadeInUp 1s ease 1.1s forwards;
}

.feature-dot {
  font-size: 1rem;
  color: var(--gray-700);
  font-weight: 500;
  transition: all 0.3s ease;
  padding-left: 1rem;
}

.feature-dot:hover {
  color: var(--black);
  padding-left: 1.5rem;
}

/* Visual Dynamic */
.story-visual-dynamic {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.story-visual-dynamic.left {
  grid-column: 1;
  grid-row: 1;
}

.geometric-shape {
  position: absolute;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.02) 100%);
  border-radius: 20px;
  animation: shapeFloat 6s ease-in-out infinite;
}

.shape-1 {
  width: 250px;
  height: 250px;
  top: 10%;
  left: 20%;
  animation-delay: 0s;
}

.shape-2 {
  width: 180px;
  height: 180px;
  bottom: 20%;
  right: 15%;
  border-radius: 50%;
  animation-delay: 2s;
}

.shape-3 {
  width: 120px;
  height: 120px;
  top: 50%;
  left: 50%;
  transform: rotate(45deg);
  animation-delay: 4s;
}

@keyframes shapeFloat {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-30px) rotate(10deg);
  }
}

.code-snippet {
  position: absolute;
  top: 40%;
  left: 30%;
  width: 200px;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  animation: codeReveal 2s ease-in-out infinite;
}

.code-line {
  height: 8px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  margin-bottom: 8px;
  animation: lineType 1.5s ease-in-out infinite;
}

.code-line:nth-child(1) {
  width: 80%;
  animation-delay: 0s;
}

.code-line:nth-child(2) {
  width: 60%;
  animation-delay: 0.3s;
}

.code-line:nth-child(3) {
  width: 90%;
  animation-delay: 0.6s;
}

@keyframes lineType {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
  }
}

@keyframes codeReveal {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  }
}

/* Network Nodes */
.network-nodes {
  position: relative;
  width: 100%;
  height: 100%;
}

.node {
  position: absolute;
  width: 80px;
  height: 80px;
  background: var(--white);
  border-radius: 50%;
  border: 3px solid var(--black);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  animation: nodePulse 3s ease-in-out infinite;
}

.node::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  background: var(--black);
  border-radius: 50%;
}

.node-1 {
  top: 15%;
  left: 15%;
  animation-delay: 0s;
}

.node-2 {
  top: 15%;
  right: 15%;
  animation-delay: 0.5s;
}

.node-3 {
  bottom: 15%;
  left: 35%;
  animation-delay: 1s;
}

.node-4 {
  bottom: 15%;
  right: 25%;
  animation-delay: 1.5s;
}

@keyframes nodePulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  }

  50% {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  }
}

.connection-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.connect-line {
  stroke: var(--black);
  stroke-width: 2;
  stroke-dasharray: 5, 5;
  opacity: 0.2;
  animation: dashMove 2s linear infinite;
}

@keyframes dashMove {
  0% {
    stroke-dashoffset: 0;
  }

  100% {
    stroke-dashoffset: 20;
  }
}

@keyframes scaleIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes expandWidth {

  0%,
  100% {
    width: 60px;
    opacity: 0.6;
  }

  50% {
    width: 100px;
    opacity: 1;
  }
}

@keyframes titleReveal {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    filter: blur(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes textShimmer {

  0%,
  100% {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0);
  }

  50% {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1),
      0 0 30px rgba(255, 255, 255, 0.05);
  }
}

@keyframes subtleFloat {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes slideInFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Services Section */
.services {
  background: var(--white);
  position: relative;
  overflow: hidden;
}

/* Tech Grid Background */
.tech-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  opacity: 0.03;
  pointer-events: none;
}

.grid-line {
  border-right: 1px solid var(--black);
  animation: gridPulse 3s ease-in-out infinite;
}

.grid-line:nth-child(1) {
  animation-delay: 0s;
}

.grid-line:nth-child(2) {
  animation-delay: 0.5s;
}

.grid-line:nth-child(3) {
  animation-delay: 1s;
}

.grid-line:nth-child(4) {
  animation-delay: 1.5s;
  border-right: none;
}

@keyframes gridPulse {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
  }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
}

/* Glassmorphism Card Effect */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.glass-card:hover .card-glow {
  opacity: 1;
}

.service-card {
  background: var(--white);
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid var(--gray-200);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.15);
}

.service-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 2rem;
  color: var(--black);
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
  opacity: 0;
  animation: slideInFromLeft 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.2s;
}

/* Modern Services Grid */
.services-modern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-bottom: 8rem;
  position: relative;
  z-index: 1;
}

.service-modern-card {
  background: var(--white);
  padding: 3rem;
  border-radius: 24px;
  border: 2px solid var(--gray-200);
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.service-modern-card:nth-child(1) {
  animation-delay: 0.2s;
}

.service-modern-card:nth-child(2) {
  animation-delay: 0.4s;
}

.service-modern-card:nth-child(3) {
  animation-delay: 0.6s;
}

.service-modern-card:hover {
  transform: translateY(-12px);
  border-color: var(--black);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.card-border-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg,
      transparent 0deg,
      rgba(0, 0, 0, 0.1) 90deg,
      transparent 180deg,
      rgba(0, 0, 0, 0.1) 270deg,
      transparent 360deg);
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: rotateBorder 4s linear infinite;
  pointer-events: none;
}

.service-modern-card:hover .card-border-glow {
  opacity: 1;
}

@keyframes rotateBorder {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.card-number {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 5rem;
  font-weight: 900;
  color: var(--gray-100);
  line-height: 1;
  z-index: 0;
  transition: all 0.4s ease;
}

.service-modern-card:hover .card-number {
  color: var(--gray-200);
  transform: scale(1.1);
}

.card-icon-wrapper {
  position: relative;
  z-index: 1;
  margin-bottom: 2rem;
}

.icon-circle {
  width: 80px;
  height: 80px;
  background: var(--black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.service-modern-card:hover .icon-circle {
  transform: rotate(360deg) scale(1.1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.card-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.card-description {
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.card-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.tech-tag {
  padding: 0.5rem 1rem;
  background: var(--gray-100);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  transition: all 0.3s ease;
}

.service-modern-card:hover .tech-tag {
  background: var(--black);
  color: var(--white);
  transform: translateY(-2px);
}

/* Blue Highlight Styles for IA Card */
.card-highlight-blue {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.03) 0%, var(--white) 100%);
}

.card-highlight-blue:hover {
  border-color: var(--accent);
  box-shadow: 0 25px 50px rgba(0, 102, 255, 0.2);
}

.icon-blue {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  box-shadow: 0 4px 20px rgba(0, 102, 255, 0.3);
}

.service-modern-card:hover .icon-blue {
  box-shadow: 0 8px 30px rgba(0, 102, 255, 0.4);
}

.card-highlight-blue .card-number {
  color: rgba(0, 102, 255, 0.1);
}

.card-highlight-blue:hover .card-number {
  color: rgba(0, 102, 255, 0.15);
}

.card-highlight-blue:hover .tech-tag {
  background: var(--accent);
  color: var(--white);
}

/* Icon alignment fix */
.card-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-circle svg {
  display: block;
}

/* Projects Showcase */
.projects-showcase {
  margin-top: 6rem;
  position: relative;
  z-index: 1;
}

.projects-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  position: relative;
  height: 280px;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  border: 2px solid var(--gray-200);
  overflow: hidden;
  text-decoration: none;
  color: var(--white);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  cursor: pointer;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.project-card:nth-child(1) {
  animation-delay: 0.1s;
}

.project-card:nth-child(2) {
  animation-delay: 0.2s;
}

.project-card:nth-child(3) {
  animation-delay: 0.3s;
}

.project-card:nth-child(4) {
  animation-delay: 0.4s;
}

.project-card:nth-child(5) {
  animation-delay: 0.5s;
}

.project-card:nth-child(6) {
  animation-delay: 0.6s;
}

.project-card:nth-child(7) {
  animation-delay: 0.7s;
}

.project-card:nth-child(8) {
  animation-delay: 0.8s;
}

.project-card:nth-child(9) {
  animation-delay: 0.9s;
}

.project-card:nth-child(10) {
  animation-delay: 1s;
}

.project-card:nth-child(11) {
  animation-delay: 1.1s;
}

.project-card:nth-child(12) {
  animation-delay: 1.2s;
}

.project-card:nth-child(13) {
  animation-delay: 1.3s;
}

.project-card:nth-child(14) {
  animation-delay: 1.4s;
}

.project-card:nth-child(15) {
  animation-delay: 1.5s;
}

/* Project Card Images */
.project-card:nth-child(1) {
  background-image: url('Portadas/Wiser.png');
}

.project-card:nth-child(2) {
  background-image: url('Portadas/MetroJuego.png');
}

.project-card:nth-child(3) {
  background-image: url('Portadas/Titosupplyapp.png');
}

.project-card:nth-child(4) {
  background-image: url('Portadas/LeRuck.png');
}

.project-card:nth-child(5) {
  background-image: url('Portadas/Bytecold.jpeg');
}

.project-card:nth-child(6) {
  background-image: url('Portadas/AxisTraffic.png');
}

.project-card:nth-child(7) {
  background-image: url('Portadas/Titocustoms.png');
}

.project-card:nth-child(8) {
  background-image: url('Portadas/Telor Agency.png');
}

.project-card:nth-child(9) {
  background-image: url('Portadas/Captura de pantalla 2025-11-04 115652.jpg');
}

.project-card:nth-child(10) {
  background-image: url('Portadas/GrupoAzb.png');
}

.project-card:nth-child(11) {
  background-image: url('Portadas/Nilfit.png');
}

.project-card:nth-child(12) {
  background-image: url('Portadas/DavosProtección.png');
}

.project-card:nth-child(13) {
  background-image: url('Portadas/Gnomo.Ai.png');
}

.project-card:nth-child(14) {
  background-image: url('Portadas/GBAManagement.png');
}

.project-card:nth-child(15) {
  background-image: url('Portadas/Captura de pantalla 2025-11-04 115748.jpg');
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
  transition: opacity 0.4s ease;
  z-index: 1;
}

.project-card:hover::before {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 100%);
}

.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--black);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.project-overlay {
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom-left-radius: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3;
}

.project-card:hover .project-overlay {
  width: 80px;
  height: 80px;
}

.project-arrow {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  transition: transform 0.4s ease;
}

.project-card:hover .project-arrow {
  transform: translate(4px, -4px);
}

.project-info {
  position: relative;
  z-index: 2;
}

.project-info h4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.project-info p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.vertical-subtitle {
  font-size: 0.75rem;
  color: var(--gray-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.4s;
}

/* Staggered animations for service cards */
.service-card:nth-child(1) h3 {
  animation-delay: 0.2s;
}

.service-card:nth-child(1) .vertical-subtitle {
  animation-delay: 0.4s;
}

.service-card:nth-child(2) h3 {
  animation-delay: 0.4s;
}

.service-card:nth-child(2) .vertical-subtitle {
  animation-delay: 0.6s;
}

.service-card:nth-child(3) h3 {
  animation-delay: 0.6s;
}

.service-card:nth-child(3) .vertical-subtitle {
  animation-delay: 0.8s;
}

.vertical-card {
  border-left: none;
  position: relative;
}

.vertical-card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 3rem;
  bottom: 3rem;
  width: 3px;
  background: linear-gradient(180deg, transparent, var(--black), transparent);
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.vertical-card:hover::after {
  opacity: 0.6;
}

.service-card p {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.service-features {
  list-style: none;
  padding: 0;
}

.service-features li {
  color: var(--gray-700);
  font-size: 14px;
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.service-features li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--black);
  font-weight: 600;
}

.service-features-minimal {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
}

.service-features-minimal li {
  color: var(--gray-700);
  font-size: 0.95rem;
  padding: 0.6rem 0;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

.service-features-minimal li:nth-child(1) {
  animation-delay: 0.6s;
}

.service-features-minimal li:nth-child(2) {
  animation-delay: 0.7s;
}

.service-features-minimal li:nth-child(3) {
  animation-delay: 0.8s;
}

.service-features-minimal li:nth-child(4) {
  animation-delay: 0.9s;
}

.service-features-minimal li:last-child {
  border-bottom: none;
}

.service-features-minimal li:hover {
  color: var(--black);
  padding-left: 0.5rem;
  font-weight: 500;
}

.portfolio-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
}

.portfolio-preview img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  transition: all 0.3s;
  cursor: pointer;
}

.portfolio-preview img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Use Cases Section */
.use-cases {
  background: var(--white);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.case-card {
  padding: 2.5rem;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.case-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--black), var(--gray-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.case-card:hover::before {
  transform: scaleX(1);
}

.case-card:hover {
  border-color: var(--gray-400);
  background: var(--gray-50);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.case-card h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
  opacity: 0;
  animation: slideInFromLeft 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.case-card:hover h3 {
  color: var(--black);
}

.case-card p {
  color: var(--gray-600);
  line-height: 1.7;
  font-size: 0.95rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.2s;
}

/* Staggered animations for case cards */
.case-card:nth-child(1) h3 {
  animation-delay: 0.1s;
}

.case-card:nth-child(1) p {
  animation-delay: 0.3s;
}

.case-card:nth-child(2) h3 {
  animation-delay: 0.2s;
}

.case-card:nth-child(2) p {
  animation-delay: 0.4s;
}

.case-card:nth-child(3) h3 {
  animation-delay: 0.3s;
}

.case-card:nth-child(3) p {
  animation-delay: 0.5s;
}

.case-card:nth-child(4) h3 {
  animation-delay: 0.4s;
}

.case-card:nth-child(4) p {
  animation-delay: 0.6s;
}

.case-card:nth-child(5) h3 {
  animation-delay: 0.5s;
}

.case-card:nth-child(5) p {
  animation-delay: 0.7s;
}

.case-card:nth-child(6) h3 {
  animation-delay: 0.6s;
}

.case-card:nth-child(6) p {
  animation-delay: 0.8s;
}

.case-card:nth-child(7) h3 {
  animation-delay: 0.7s;
}

.case-card:nth-child(7) p {
  animation-delay: 0.9s;
}

.case-card:nth-child(8) h3 {
  animation-delay: 0.8s;
}

.case-card:nth-child(8) p {
  animation-delay: 1s;
}

.case-card:nth-child(9) h3 {
  animation-delay: 0.9s;
}

.case-card:nth-child(9) p {
  animation-delay: 1.1s;
}

.case-card:nth-child(10) h3 {
  animation-delay: 1s;
}

.case-card:nth-child(10) p {
  animation-delay: 1.2s;
}

.case-card:nth-child(11) h3 {
  animation-delay: 1.1s;
}

.case-card:nth-child(11) p {
  animation-delay: 1.3s;
}

.case-card:nth-child(12) h3 {
  animation-delay: 1.2s;
}

.case-card:nth-child(12) p {
  animation-delay: 1.4s;
}

/* Clients Section */
.clients {
  background: var(--black);
  padding: 8rem 0;
}

.clients-title {
  color: var(--white);
  margin-bottom: 5rem;
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.clients-carousel-wrapper {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.clients-carousel {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.clients-carousel-top .clients-track {
  animation: scrollLeft 30s linear infinite;
}

.clients-carousel-bottom .clients-track {
  animation: scrollRight 30s linear infinite;
}

.clients-track {
  display: flex;
  gap: 4rem;
  align-items: center;
  width: fit-content;
}

.client-logo {
  flex: 0 0 auto;
  width: 320px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: transparent;
  border-radius: 12px;
  border: 2px solid var(--gray-800);
  transition: all 0.3s ease;
}

.client-logo:hover {
  border-color: var(--accent);
  background: rgba(0, 102, 255, 0.05);
}

.client-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.8);
  opacity: 0.7;
  transition: all 0.3s;
}

.client-logo:hover img {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
}

/* Infinite scroll animations - seamless loop */
@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-33.333%);
  }
}

@keyframes scrollRight {
  0% {
    transform: translateX(-33.333%);
  }

  100% {
    transform: translateX(0);
  }
}

/* Pause animation on hover */
.clients-carousel:hover .clients-track {
  animation-play-state: paused;
}

/* Clients Responsive */
@media (max-width: 968px) {
  .client-logo {
    width: 220px;
    height: 100px;
    padding: 1rem;
  }

  .clients-track {
    gap: 3rem;
  }

  .clients-carousel-top .clients-track {
    animation: scrollLeft 25s linear infinite;
  }

  .clients-carousel-bottom .clients-track {
    animation: scrollRight 25s linear infinite;
  }
}

@media (max-width: 640px) {
  .clients-carousel-wrapper {
    gap: 1.5rem;
  }

  .client-logo {
    width: 180px;
    height: 80px;
    padding: 0.75rem;
  }

  .clients-track {
    gap: 2rem;
  }

  .clients-carousel-top .clients-track {
    animation: scrollLeft 20s linear infinite;
  }

  .clients-carousel-bottom .clients-track {
    animation: scrollRight 20s linear infinite;
  }
}

/* Contact Section */
.contact {
  background: var(--white);
}

.contact-modern {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.contact-header {
  margin-bottom: 3rem;
}

.contact-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--black) 0%, var(--gray-600) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-subtitle {
  color: var(--gray-600);
  font-size: 1.2rem;
}

.contact-buttons {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 2.5rem;
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  min-width: 280px;
}

.contact-btn .btn-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-btn .btn-icon svg {
  width: 28px;
  height: 28px;
}

.contact-btn .btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.contact-btn .btn-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

.contact-btn .btn-number {
  font-size: 1.1rem;
  font-weight: 700;
}

/* WhatsApp Button */
.whatsapp-btn {
  background: #25D366;
  color: var(--white);
}

.whatsapp-btn .btn-icon {
  background: rgba(255, 255, 255, 0.2);
}

.whatsapp-btn:hover {
  background: #128C7E;
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.3);
}

/* Email Button */
.email-btn {
  background: var(--accent);
  color: var(--white);
}

.email-btn .btn-icon {
  background: rgba(255, 255, 255, 0.2);
}

.email-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 102, 255, 0.3);
}

.contact-location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--gray-500);
  font-size: 1rem;
}

.contact-location svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 768px) {
  .contact-buttons {
    flex-direction: column;
    align-items: center;
  }

  .contact-btn {
    width: 100%;
    max-width: 350px;
    justify-content: center;
  }

  .contact-title {
    font-size: 2.25rem;
  }
}

/* Legacy contact styles - kept for compatibility */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact-info h2 {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--black) 0%, var(--gray-600) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-info p {
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-item strong {
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
}

.contact-item a,
.contact-item span {
  color: var(--black);
  text-decoration: none;
  font-size: 1.1rem;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  transition: all 0.2s;
  background: var(--white);
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.contact-form input:nth-child(1) {
  animation-delay: 0.1s;
}

.contact-form input:nth-child(2) {
  animation-delay: 0.2s;
}

.contact-form textarea {
  animation-delay: 0.3s;
}

.contact-form button {
  animation-delay: 0.4s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  width: 100%;
}

/* Footer */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 5rem 0 2rem;
}

/* Newsletter */
.footer-newsletter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 3rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-radius: 20px;
  margin-bottom: 5rem;
}

.newsletter-content h3 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.newsletter-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  flex: 1;
  max-width: 500px;
}

.newsletter-form input {
  flex: 1;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--white);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.2);
}

.newsletter-form button {
  white-space: nowrap;
}

/* Footer Main */
.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 5rem;
  margin-bottom: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  height: 32px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  margin-bottom: 1.5rem;
}

.footer-tagline {
  color: var(--gray-400);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--white);
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer-column h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  color: var(--white);
  font-weight: 700;
}

.footer-column a {
  display: block;
  color: var(--gray-400);
  text-decoration: none;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.footer-column a:hover {
  color: var(--white);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-bottom-links a {
  color: var(--gray-500);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: var(--white);
}

.footer-bottom-links span {
  color: var(--gray-700);
}

/* Footer Responsive */
@media (max-width: 968px) {
  .footer-newsletter {
    flex-direction: column;
    align-items: stretch;
    padding: 2.5rem;
  }

  .newsletter-form {
    max-width: 100%;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .footer {
    padding: 3rem 0 1.5rem;
  }

  .footer-newsletter {
    padding: 2rem 1.5rem;
    margin-bottom: 3rem;
  }

  .newsletter-content h3 {
    font-size: 1.5rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form button {
    width: 100%;
  }

  .footer-links-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-social {
    justify-content: center;
  }
}

/* ============================================
   PERFORMANCE & ACCESSIBILITY
   ============================================ */

/* Reduced animations for performance */
.reduced-animations * {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus styles for accessibility */
*:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* Skip to main content link */
.skip-to-main {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--accent);
  color: var(--white);
  padding: 1rem 2rem;
  text-decoration: none;
  z-index: 10001;
  transition: top 0.3s ease;
}

.skip-to-main:focus {
  top: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --gray-600: #404040;
    --gray-500: #505050;
  }

  .btn-secondary {
    border-width: 3px;
  }
}

/* Print styles */
@media print {

  .header,
  .footer,
  .dark-mode-toggle,
  .custom-cursor,
  .cursor-trail,
  .hero-video,
  .particles-canvas {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  a {
    text-decoration: underline;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {

  /* Mobile Navigation Menu - ACTIVE STATE */
  .nav {
    display: none;
  }

  .nav.active {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: 80px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: calc(100vh - 80px) !important;
    max-height: none !important;
    background: rgba(0, 0, 0, 0.99) !important;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    padding: 2rem !important;
    gap: 0.5rem !important;
    z-index: 9999 !important;
    animation: slideDown 0.3s ease;
    border-radius: 0 !important;
    border: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav.active .nav-link {
    padding: 1.25rem 1.5rem;
    font-size: 1.2rem;
    border-radius: 12px;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 0.5rem;
    color: var(--white);
    display: block;
    width: 100%;
  }

  .nav.active .nav-link:hover,
  .nav.active .nav-link:active {
    background: rgba(255, 255, 255, 0.2);
  }

  .nav.active .nav-link-highlight {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    margin-top: 1rem;
    color: var(--white);
  }

  /* Menu Toggle Button */
  .menu-toggle {
    display: flex;
    z-index: 1001;
  }

  .menu-toggle span {
    background: var(--white);
    transition: all 0.3s ease;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  /* Hero Section Mobile */
  .hero {
    height: auto;
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 2rem;
  }

  .hero-content {
    margin-left: 0;
    margin-right: 0;
    padding: 1.5rem;
    text-align: center;
    max-width: 100%;
  }

  .hero-badge {
    justify-content: center;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
    text-align: center;
  }

  .hero-tagline {
    text-align: center;
  }

  .hero-subtitle {
    font-size: 1rem;
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-description {
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .btn-primary,
  .btn-secondary,
  .btn-tertiary {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .hero-stats {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }

  .hero-stat-divider {
    display: none;
  }

  .hero-stat-item {
    text-align: center;
    min-width: 80px;
  }

  .hero-stat-number {
    font-size: 1.5rem;
  }

  .hero-stat-label {
    font-size: 0.75rem;
  }

  /* Video optimization for mobile */
  .hero-video {
    object-fit: cover;
    object-position: center;
  }

  section {
    padding: 4rem 0;
  }

  .intro-section {
    padding: 4rem 0 !important;
  }

  .intro-quote p {
    font-size: 1.3rem;
  }

  .intro-text h3 {
    font-size: 1.2rem;
  }

  .intro-text p {
    font-size: 1rem;
  }

  .story-section-new {
    min-height: auto;
    padding: 4rem 0 !important;
  }

  .story-asymmetric-container,
  .story-asymmetric-container.reverse {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3rem 1.5rem;
  }

  .story-main-content {
    padding: 0 !important;
  }

  .story-main-content.right {
    padding-left: 0 !important;
  }

  .story-number {
    font-size: 6rem;
    top: -1rem;
    left: -1rem;
  }

  .story-heading {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .story-description {
    font-size: 1rem;
  }

  .story-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .stat-number-inline {
    font-size: 2rem;
  }

  .story-visual-dynamic {
    height: 400px;
    grid-column: 1;
    grid-row: 2;
  }

  .story-visual-dynamic.left {
    grid-row: 2;
  }

  .geometric-shape {
    display: none;
  }

  .shape-1,
  .shape-2 {
    display: block;
  }

  .shape-1 {
    width: 150px;
    height: 150px;
  }

  .shape-2 {
    width: 100px;
    height: 100px;
  }

  .code-snippet {
    width: 150px;
    padding: 1rem;
    top: 50%;
    left: 20%;
  }

  .node {
    width: 60px;
    height: 60px;
  }

  .node::before {
    width: 20px;
    height: 20px;
  }

  .float-circle,
  .float-square {
    opacity: 0.3;
  }

  .circle-1 {
    width: 200px;
    height: 200px;
  }

  .circle-2,
  .circle-3 {
    display: none;
  }

  .square-1 {
    width: 150px;
    height: 150px;
  }

  .square-2,
  .square-3 {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .stat-number {
    font-size: 3rem;
  }

  .services-grid,
  .cases-grid {
    grid-template-columns: 1fr;
  }

  .services-modern-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
  }

  .service-modern-card {
    padding: 2rem;
  }

  .card-number {
    font-size: 3.5rem;
    top: 1rem;
    right: 1.5rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-card {
    height: 240px;
    padding: 1.5rem;
  }

  .project-overlay {
    width: 50px;
    height: 50px;
  }

  .project-card:hover .project-overlay {
    width: 60px;
    height: 60px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 2rem;
  }

  .clients-track {
    gap: 4rem;
  }

  .client-logo {
    width: 280px;
    height: 120px;
  }
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  overflow: hidden;
}

.loading-screen::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-content {
  text-align: center;
  animation: fadeInUp 1s ease;
  position: relative;
  z-index: 1;
}

.loading-logo {
  width: 140px;
  height: 140px;
  margin: 0 auto 2rem;
  animation: pulseGlow 2s ease infinite;
  position: relative;
}

.loading-logo::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: pulse 2s ease infinite;
}

.loading-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
  animation: float 3s ease-in-out infinite;
}

.loading-animation {
  margin: 2rem 0;
}

.loading-dots {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.loading-dots span {
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, var(--white), var(--gray-400));
  border-radius: 50%;
  animation: bounceGlow 1.4s ease-in-out infinite;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.loading-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

.loading-text {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-top: 2rem;
  animation: textGlow 2s ease infinite;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--white), var(--gray-400), var(--white));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

@keyframes bounce {

  0%,
  80%,
  100% {
    transform: scale(0);
    opacity: 0.5;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }

  100% {
    background-position: 1000px 0;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes pulseGlow {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

@keyframes bounceGlow {

  0%,
  80%,
  100% {
    transform: scale(0.8) translateY(0);
    opacity: 0.6;
  }

  40% {
    transform: scale(1.2) translateY(-10px);
    opacity: 1;
  }
}

@keyframes textGlow {

  0%,
  100% {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  }

  50% {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Hover Animation Classes */
.animate-on-scroll {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }

  .header .container {
    height: 60px;
  }

  .logo {
    height: 32px;
  }

  .service-card,
  .case-card {
    padding: 1.5rem;
  }

  .loading-logo {
    width: 80px;
    height: 80px;
  }

  .loading-text {
    font-size: 1rem;
  }
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  mix-blend-mode: difference;
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}

.custom-cursor::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

.custom-cursor.cursor-hover {
  width: 50px;
  height: 50px;
  border-color: var(--white);
  background: rgba(0, 102, 255, 0.1);
}

.custom-cursor.cursor-click {
  width: 15px;
  height: 15px;
  transition: width 0.1s ease, height 0.1s ease;
}

.cursor-trail {
  position: fixed;
  width: 10px;
  height: 10px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  will-change: transform;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   ENHANCED HOVER EFFECTS
   ============================================ */
.project-card {
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0) 0%, rgba(0, 102, 255, 0.15) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  border-radius: inherit;
  z-index: 1;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card .project-content {
  position: relative;
  z-index: 2;
}

.service-modern-card {
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-modern-card:hover {
  transform: translateY(-8px);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 102, 255, 0.03) 100%);
}

.service-modern-card:hover .card-number {
  color: var(--accent);
  transform: scale(1.1);
}

.use-case-card {
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.use-case-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--accent);
}

/* ============================================
   GRADIENT ANIMATIONS
   ============================================ */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.gradient-animate {
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

/* Apply to hero section */
.hero {
  position: relative;
  background: linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #000000 100%);
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
}

/* ============================================
   ACCENT COLOR ACCENTS
   ============================================ */
.btn-primary {
  background: var(--accent);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--accent-light);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary span {
  position: relative;
  z-index: 1;
}

.stat-number {
  position: relative;
}

.stat-number::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius: 2px;
}

/* Accent on active nav */
.nav a.active::after {
  background: var(--accent);
}

/* ============================================
   ENHANCED TYPOGRAPHY
   ============================================ */
.text-gradient {
  background: linear-gradient(135deg, var(--black) 0%, var(--gray-600) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 5s ease infinite;
}

.hero-title {
  position: relative;
}

.hero-title::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 0;
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
}

/* Split text animation class */
.split-text {
  display: inline-block;
  overflow: hidden;
}

.split-text .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(100px) rotateX(-90deg);
  animation: charReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes charReveal {
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

/* ============================================
   PROJECT MODALS
   ============================================ */
.project-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.project-modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.modal-container {
  position: relative;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  background: var(--white);
  border-radius: 20px;
  overflow-y: auto;
  z-index: 1;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.project-modal.active .modal-container {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  background: var(--black);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
}

.modal-close:hover {
  transform: rotate(90deg) scale(1.1);
  background: var(--accent);
}

.modal-close svg {
  width: 20px;
  height: 20px;
  stroke: var(--white);
}

.modal-content {
  padding: 3rem;
}

.modal-header {
  margin-bottom: 2rem;
}

.modal-category {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 20px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.modal-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--black);
  line-height: 1.1;
  margin: 0;
}

.modal-image {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 3rem;
  position: relative;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.modal-section {
  padding: 0;
}

.modal-section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 1rem;
}

.section-icon {
  font-size: 1.75rem;
}

.modal-section p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--gray-700);
}

.modal-results {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal-results li {
  font-size: 1.1rem;
  color: var(--gray-700);
  padding-left: 2rem;
  position: relative;
}

.modal-results li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 900;
  font-size: 1.3rem;
}

.modal-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tech-tag {
  padding: 0.5rem 1rem;
  background: var(--gray-100);
  color: var(--gray-800);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.modal-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--gray-200);
  display: flex;
  justify-content: center;
}

.modal-cta {
  min-width: 250px;
  text-align: center;
}

/* Modal responsive */
@media (max-width: 768px) {
  .modal-container {
    width: 95%;
    max-height: 95vh;
  }

  .modal-content {
    padding: 2rem 1.5rem;
  }

  .modal-image {
    height: 250px;
  }

  .modal-title {
    font-size: 1.75rem;
  }

  .modal-section-title {
    font-size: 1.25rem;
  }

  .modal-section p,
  .modal-results li {
    font-size: 1rem;
  }

  .modal-close {
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
  }
}

/* ============================================
   TECH STACK SECTION
   ============================================ */
.tech-stack {
  padding: 8rem 0;
  background: linear-gradient(180deg, #fafafa 0%, #ffffff 50%, #fafafa 100%);
  position: relative;
}

.tech-stack::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
}

.tech-stack-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem;
}

.tech-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

.tech-stack .section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.tech-stack .section-description {
  font-size: 1.2rem;
  color: var(--gray-600);
  line-height: 1.7;
}

.tech-categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.tech-category {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 20px;
  border: 2px solid var(--gray-200);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.tech-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.tech-category:hover::before {
  transform: scaleX(1);
}

.tech-category:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(0, 102, 255, 0.1);
}

.tech-category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--gray-100);
}

.tech-icon {
  width: 40px;
  height: 40px;
  color: var(--black);
  flex-shrink: 0;
}

.tech-category-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--black);
  margin: 0;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--gray-50);
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
}

.tech-item:hover {
  transform: translateY(-5px) scale(1.05);
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 10px 25px rgba(0, 102, 255, 0.2);
}

.tech-item:hover .tech-logo-svg {
  transform: scale(1.2) rotate(5deg);
  stroke: var(--white);
}

.tech-item:hover .tech-logo {
  transform: scale(1.2) rotate(5deg);
}

.tech-item:hover .tech-name {
  color: var(--white);
}

.tech-logo {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  transition: transform 0.3s ease;
}

.tech-logo-svg {
  width: 48px;
  height: 48px;
  color: var(--black);
  stroke: var(--black);
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
}

.tech-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
  transition: color 0.3s ease;
}

/* Tech Stack Responsive */
@media (max-width: 968px) {
  .tech-categories {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .tech-stack {
    padding: 4rem 0;
  }

  .tech-category {
    padding: 2rem 1.5rem;
  }

  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .tech-item {
    padding: 1rem 0.75rem;
  }

  .tech-logo {
    font-size: 1.5rem;
  }

  .tech-name {
    font-size: 0.8rem;
  }

  .tech-category-header h3 {
    font-size: 1.25rem;
  }
}

/* ============================================
   INSIGHTS / BLOG SECTION
   ============================================ */
.insights-section {
  padding: 8rem 0;
  background: var(--white);
}

.insights-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem;
}

.insights-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: var(--accent);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

/* Press Featured Section */
.press-featured {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.press-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem;
  border: 2px solid var(--gray-200);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}

.press-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--accent);
}

.press-highlight {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.05) 0%, var(--white) 100%);
  border-color: var(--accent);
}

.press-source {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-200);
}

.press-logo {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.9rem;
}

.press-date {
  font-size: 0.85rem;
  color: var(--gray-500);
}

.press-title {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--black);
}

.press-excerpt {
  color: var(--gray-600);
  line-height: 1.7;
  font-style: italic;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.press-link {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.press-link:hover {
  gap: 0.5rem;
}

/* Game Section - Embedded Playable */
.game-section {
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
  padding: 5rem 0;
}

.game-header {
  text-align: center;
  margin-bottom: 3rem;
}

.game-badge-large {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #e53935 0%, #d32f2f 100%);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 25px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.game-embed-container {
  max-width: 1000px;
  margin: 0 auto;
}

.game-embed-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 aspect ratio */
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
  border: 4px solid var(--gray-200);
  background: var(--black);
}

.game-embed-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.game-overlay-start {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(26, 26, 46, 0.95) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.game-overlay-start.hidden {
  opacity: 0;
  pointer-events: none;
}

.game-start-content {
  text-align: center;
  color: var(--white);
}

.game-start-content .game-logo {
  font-size: 5rem;
  margin-bottom: 1rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

.game-start-content h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.game-start-content p {
  color: var(--gray-400);
  margin-bottom: 2rem;
}

.btn-play {
  background: linear-gradient(135deg, #e53935 0%, #d32f2f 100%);
  color: var(--white);
  border: none;
  padding: 1rem 3rem;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-play:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(229, 57, 53, 0.4);
}

.game-actions {
  text-align: center;
  margin-top: 1.5rem;
}

.game-external-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-600);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.game-external-link svg {
  width: 18px;
  height: 18px;
}

.game-external-link:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  .game-embed-wrapper {
    padding-bottom: 75%;
    /* Taller on mobile */
  }

  .game-start-content .game-logo {
    font-size: 3.5rem;
  }

  .game-start-content h3 {
    font-size: 1.5rem;
  }
}

/* Legacy Game Showcase Section */
.game-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: linear-gradient(135deg, var(--black) 0%, #1a1a2e 100%);
  border-radius: 24px;
  padding: 4rem;
  margin-bottom: 4rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  position: relative;
}

.game-showcase::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.game-content {
  position: relative;
  z-index: 1;
}

.game-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

.game-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.game-description {
  color: var(--gray-400);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.game-btn {
  background: var(--accent);
  color: var(--white);
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
}

.game-btn:hover {
  background: var(--accent-light);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 102, 255, 0.3);
}

.game-visual {
  position: relative;
  z-index: 1;
}

.game-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border: 3px solid rgba(255, 255, 255, 0.1);
}

.game-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.game-frame:hover .play-overlay {
  opacity: 1;
}

.play-button {
  width: 80px;
  height: 80px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
  cursor: pointer;
  transition: all 0.3s ease;
}

.play-button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 40px rgba(0, 102, 255, 0.5);
}

@media (max-width: 968px) {
  .press-featured {
    grid-template-columns: 1fr;
  }

  .game-showcase {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2.5rem;
  }

  .game-title {
    font-size: 2rem;
  }
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  max-width: 1400px;
  margin: 0 auto 4rem;
}

.insight-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--gray-200);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
}

.insight-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.insight-featured {
  grid-column: 1 / -1;
  flex-direction: row;
}

.insight-featured .insight-image {
  flex: 1;
  height: auto;
}

.insight-featured .insight-content {
  flex: 1;
  padding: 3rem;
}

.insight-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.insight-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.insight-card:hover .insight-image img {
  transform: scale(1.1);
}

.insight-tag {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 20px;
  text-transform: uppercase;
}

.insight-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.insight-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--gray-500);
}

.insight-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.insight-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 1rem;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.insight-featured .insight-title {
  font-size: 2rem;
}

.insight-card:hover .insight-title {
  color: var(--accent);
}

.insight-excerpt {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  flex: 1;
}

.insight-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: all 0.3s ease;
}

.insight-link:hover {
  gap: 1rem;
}

.insight-link svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.insight-link:hover svg {
  transform: translateX(5px);
}

.insights-cta {
  text-align: center;
}

.insights-cta .btn-primary {
  min-width: 250px;
}

/* Insights Responsive */
@media (max-width: 968px) {
  .insights-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .insight-featured {
    grid-column: 1;
    flex-direction: column;
  }

  .insight-featured .insight-image {
    height: 300px;
  }

  .insight-featured .insight-content {
    padding: 2rem;
  }

  .insight-featured .insight-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 640px) {
  .insights-section {
    padding: 4rem 0;
  }

  .insights-header {
    margin-bottom: 3rem;
  }

  .insight-image {
    height: 200px;
  }

  .insight-content {
    padding: 1.5rem;
  }

  .insight-title {
    font-size: 1.25rem;
  }

  .insight-excerpt {
    font-size: 0.95rem;
  }
}