/* ===============================================
   ENGAGE.LAB - PREMIUM CSS
   =============================================== */

/* @font-face Declarations */
@font-face {
  font-family: 'TBJ Interval';
  src: url('../fonts/TBJInterval-Light.ttf') format('truetype');
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: 'TBJ Interval';
  src: url('../fonts/TBJInterval-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'TBJ Interval';
  src: url('../fonts/TBJInterval-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-Light.ttf') format('truetype');
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

/* ===============================================
   CSS VARIABLES
   =============================================== */
:root {
  --color-navy: #193066;
  --color-navy-dark: #0e1d3d;
  --color-light: #EDEFF2;
  --color-red: #FC5E49;
  --color-cyan: #C0FFFF;
  --color-black: #1A1A1A;
  --color-gray: #8892A0;
  
  --font-display: 'TBJ Interval', sans-serif;
  --font-body: 'Poppins', sans-serif;
  
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-cubic: cubic-bezier(0.215, 0.61, 0.355, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===============================================
   RESET & BASE STYLES
   =============================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-black);
  color: var(--color-light);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-navy-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--color-navy);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-red);
}

::selection {
  background: var(--color-red);
  color: var(--color-black);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s var(--ease-in-out);
}

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

/* ===============================================
   MOUSE GLOW EFFECT
   =============================================== */
.mouse-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(252, 94, 73, 0.18) 0%, rgba(192, 255, 255, 0.04) 40%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  filter: blur(80px);
}

.mouse-glow {
  /* Shown via JS pointer tracking */
}

@media (min-width: 769px) {
  .mouse-glow {
    display: block !important;
  }
}

/* ===============================================
   GRID OVERLAY
   =============================================== */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(200, 255, 255, 0.03) 79px, rgba(200, 255, 255, 0.03) 80px),
    repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(200, 255, 255, 0.03) 79px, rgba(200, 255, 255, 0.03) 80px);
  pointer-events: none;
  z-index: 0;
}


/* ===============================================
   AMBIENT BACKGROUND ORBS (global color)
   =============================================== */
.ambient-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}

.ambient-orb-1 {
  width: 700px;
  height: 700px;
  background: var(--color-navy);
  top: -15%;
  left: -10%;
  opacity: 0.5;
  animation: ambient-drift-1 20s ease-in-out infinite;
}

.ambient-orb-2 {
  width: 500px;
  height: 500px;
  background: var(--color-red);
  top: 40%;
  right: -8%;
  opacity: 0.12;
  animation: ambient-drift-2 25s ease-in-out infinite;
}

.ambient-orb-3 {
  width: 600px;
  height: 600px;
  background: var(--color-navy);
  bottom: 10%;
  left: 20%;
  opacity: 0.35;
  animation: ambient-drift-3 22s ease-in-out infinite;
}

.ambient-orb-4 {
  width: 400px;
  height: 400px;
  background: var(--color-cyan);
  top: 60%;
  left: -5%;
  opacity: 0.06;
  animation: ambient-drift-4 18s ease-in-out infinite;
}

@keyframes ambient-drift-1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, 15px); }
}

@keyframes ambient-drift-2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-15px, -20px); }
}

@keyframes ambient-drift-3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(25px, -10px); }
}

@keyframes ambient-drift-4 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-10px, 15px); }
}

/* ===============================================
   NAVIGATION
   =============================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  z-index: 100;
  background: transparent;
  transition: all 0.4s var(--ease-in-out);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(14, 29, 61, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(192, 255, 255, 0.08);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Liquid Glass Effect on Navbar Hover */
.navbar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(192, 255, 255, 0.0) 0%,
    rgba(192, 255, 255, 0.0) 40%,
    rgba(252, 94, 73, 0.0) 60%,
    rgba(252, 94, 73, 0.0) 100%
  );
  opacity: 0;
  transition: opacity 0.6s var(--ease-in-out);
  pointer-events: none;
  z-index: -1;
}

.navbar:hover::before {
  opacity: 1;
  background: linear-gradient(
    135deg,
    rgba(192, 255, 255, 0.04) 0%,
    rgba(25, 48, 102, 0.15) 30%,
    rgba(252, 94, 73, 0.06) 70%,
    rgba(192, 255, 255, 0.03) 100%
  );
}

.navbar:hover {
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  background: rgba(14, 29, 61, 0.6);
  border-bottom: 1px solid rgba(192, 255, 255, 0.06);
}

.navbar:hover .nav-links {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(192, 255, 255, 0.1);
  box-shadow: 0 0 20px rgba(192, 255, 255, 0.05);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}

.nav-logo {
  flex-shrink: 0;
  z-index: 10;
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 100px;
  width: auto;
  filter: brightness(1.1);
  transition: all 0.3s var(--ease-in-out);
}

.nav-logo:hover .nav-logo-img {
  filter: brightness(1.3);
  transform: scale(1.05);
}

@media (min-width: 1200px) {
  .nav-logo-img {
    height: 120px;
  }
}

.nav-menu {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50px;
  padding: 6px 8px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 50px;
  position: relative;
  transition: all 0.3s var(--ease-in-out);
  color: var(--color-gray);
  letter-spacing: 0.3px;
}

.nav-link:hover {
  color: var(--color-light);
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  color: var(--color-black);
  background: var(--color-red);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.nav-cta {
  padding: 10px 24px;
  border-radius: 8px;
  background: var(--color-red);
  color: var(--color-black);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease-in-out);
  border: none;
  box-shadow: 0 0 20px rgba(252, 94, 73, 0.3);
  letter-spacing: 0.3px;
}

.nav-cta:hover {
  box-shadow: 0 0 40px rgba(252, 94, 73, 0.5);
  transform: translateY(-2px);
  color: var(--color-black);
}

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

.toggle-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-light);
  transition: all 0.3s var(--ease-in-out);
  border-radius: 1px;
}

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

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

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

/* ===============================================
   MOBILE MENU
   =============================================== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--color-navy-dark);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-in-out);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-content {
  text-align: center;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-link {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 400;
  text-align: center;
  display: block;
  padding: 8px 0;
}

.mobile-link:hover {
  color: var(--color-red);
}

.mobile-claim {
  font-size: 0.9rem;
  color: var(--color-gray);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 40px;
}

/* ===============================================
   HERO SECTION
   =============================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 60px 80px;
  overflow: hidden;
  perspective: 1000px;
  z-index: 2;
  width: 100%;
  max-width: 100%;
}

.hero-container {
  position: relative;
  z-index: 5;
  max-width: 1200px;
  text-align: center;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* Floating Shapes/Orbs */
.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 3;
  perspective: 1000px;
}

.shape {
  position: absolute;
  opacity: 0.08;
  transform-style: preserve-3d;
}

.shape-cube {
  width: 150px;
  height: 150px;
  top: 10%;
  left: 5%;
  animation: rotate-3d 15s linear infinite;
}

.shape-triangle {
  width: 0;
  height: 0;
  border-left: 50px solid transparent;
  border-right: 50px solid transparent;
  border-bottom: 100px solid var(--color-cyan);
  top: 20%;
  right: 10%;
  animation: float-slow 6s ease-in-out infinite;
}

.shape-orb {
  width: 200px;
  height: 200px;
  bottom: 15%;
  left: 15%;
  border-radius: 50%;
  border: 2px solid var(--color-red);
  animation: pulse-orbit 8s ease-in-out infinite;
}

@keyframes rotate-3d {
  from { transform: rotateX(0) rotateY(0) rotateZ(0); }
  to { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
}

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

@keyframes pulse-orbit {
  0%, 100% { transform: scale(1); opacity: 0.08; }
  50% { transform: scale(1.1); opacity: 0.12; }
}

.shape-1 {
  width: 120px;
  height: 120px;
  top: 12%;
  left: 8%;
  border: 2px solid var(--color-cyan);
  animation: rotate-3d 20s linear infinite;
}

.shape-2 {
  width: 0;
  height: 0;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 70px solid var(--color-red);
  top: 18%;
  right: 12%;
  animation: float-slow 7s ease-in-out infinite;
}

.shape-3 {
  width: 180px;
  height: 180px;
  bottom: 20%;
  left: 5%;
  border-radius: 50%;
  border: 1px solid var(--color-red);
  animation: pulse-orbit 10s ease-in-out infinite;
}

.shape-4 {
  width: 60px;
  height: 60px;
  top: 60%;
  right: 8%;
  border: 2px solid var(--color-cyan);
  border-radius: 8px;
  animation: rotate-3d 12s linear infinite reverse;
}

.shape-5 {
  width: 100px;
  height: 100px;
  bottom: 10%;
  right: 20%;
  border-radius: 50%;
  border: 1px solid rgba(192, 255, 255, 0.3);
  animation: float-slow 9s ease-in-out infinite 2s;
}

/* Particles Container */
.hero-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 2;
}


/* Hero Background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero-gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: var(--color-navy);
  top: -10%;
  left: -5%;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: var(--color-red);
  top: 30%;
  right: -10%;
  opacity: 0.15;
}

.hero-orb-3 {
  width: 300px;
  height: 300px;
  background: var(--color-cyan);
  bottom: -5%;
  left: 30%;
  opacity: 0.08;
}

.hero-line {
  display: block;
}


.shape-6 {
  width: 40px;
  height: 40px;
  top: 45%;
  left: 3%;
  border: 1px solid var(--color-red);
  border-radius: 50%;
  animation: float-slow 8s ease-in-out infinite 1s;
}

.shape-7 {
  width: 80px;
  height: 80px;
  top: 75%;
  right: 5%;
  border: 1px solid var(--color-cyan);
  transform-style: preserve-3d;
  animation: rotate-3d 18s linear infinite;
}

.shape-8 {
  width: 0;
  height: 0;
  border-left: 25px solid transparent;
  border-right: 25px solid transparent;
  border-bottom: 45px solid var(--color-cyan);
  bottom: 30%;
  left: 15%;
  animation: float-slow 11s ease-in-out infinite 3s;
}

/* 3D Orbiting Logo */
.orbiting-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 520px;
  height: 520px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.25;
}

.orbit-ring {
  width: 100%;
  height: 100%;
  position: relative;
  animation: orbit-spin 30s linear infinite;
  transform-style: preserve-3d;
}

.orbit-element {
  position: absolute;
  transform-style: preserve-3d;
}

.orbit-el-1 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Main isotipo - large 3D glass bevel style */
.orbit-isotipo {
  width: 280px;
  height: 280px;
  animation: orbit-counter-spin 30s linear infinite;
  filter: drop-shadow(0 0 60px rgba(25, 48, 102, 0.6)) drop-shadow(0 0 120px rgba(25, 48, 102, 0.3)) drop-shadow(0 8px 30px rgba(0,0,0,0.4));
}

/* Glass bevel gradient on isotipo paths */
.orbit-isotipo .iso-main {
  fill: url(#isoGradientMain);
}
.orbit-isotipo .iso-top {
  fill: url(#isoGradientTop);
}
.orbit-isotipo .iso-dot {
  fill: url(#isoGradientDot);
}

/* Companion glass sphere 1 */
.orbit-el-2 {
  bottom: 15%;
  left: 8%;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(192, 255, 255, 0.4), rgba(25, 48, 102, 0.6) 60%, rgba(10, 15, 30, 0.8));
  box-shadow: inset -4px -4px 12px rgba(0,0,0,0.4), inset 4px 4px 12px rgba(192, 255, 255, 0.2), 0 0 40px rgba(25, 48, 102, 0.3);
  animation: glass-float-1 8s ease-in-out infinite;
}

/* Companion glass sphere 2 */
.orbit-el-3 {
  top: 20%;
  right: 5%;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, rgba(252, 94, 73, 0.35), rgba(25, 48, 102, 0.5) 60%, rgba(10, 15, 30, 0.7));
  box-shadow: inset -3px -3px 8px rgba(0,0,0,0.4), inset 3px 3px 8px rgba(252, 94, 73, 0.15), 0 0 25px rgba(252, 94, 73, 0.15);
  animation: glass-float-2 10s ease-in-out infinite;
}

/* Extra glass elements outside orbit */
.glass-element {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.glass-el-1 {
  top: 25%;
  right: 15%;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle at 30% 25%, rgba(192, 255, 255, 0.15), rgba(25, 48, 102, 0.3) 50%, rgba(10, 15, 30, 0.5));
  box-shadow: inset -6px -6px 18px rgba(0,0,0,0.3), inset 6px 6px 18px rgba(192, 255, 255, 0.1), 0 0 60px rgba(25, 48, 102, 0.2);
  animation: glass-float-3 12s ease-in-out infinite;
}

.glass-el-2 {
  bottom: 25%;
  left: 12%;
  width: 35px;
  height: 35px;
  background: radial-gradient(circle at 35% 30%, rgba(252, 94, 73, 0.12), rgba(25, 48, 102, 0.25) 50%, rgba(10, 15, 30, 0.4));
  box-shadow: inset -4px -4px 12px rgba(0,0,0,0.3), inset 4px 4px 12px rgba(252, 94, 73, 0.08), 0 0 40px rgba(252, 94, 73, 0.1);
  animation: glass-float-1 14s ease-in-out infinite reverse;
}

.glass-el-3 {
  top: 70%;
  right: 20%;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle at 30% 30%, rgba(237, 239, 242, 0.15), rgba(25, 48, 102, 0.2) 60%, rgba(10, 15, 30, 0.35));
  box-shadow: inset -2px -2px 6px rgba(0,0,0,0.3), inset 2px 2px 6px rgba(237, 239, 242, 0.1), 0 0 20px rgba(25, 48, 102, 0.15);
  animation: glass-float-2 16s ease-in-out infinite reverse;
}

/* Glass ring - thin orbit ring visual */
.glass-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotateX(60deg);
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(192, 255, 255, 0.08);
  box-shadow: 0 0 30px rgba(25, 48, 102, 0.15), inset 0 0 30px rgba(25, 48, 102, 0.1);
  pointer-events: none;
  z-index: 1;
  animation: ring-pulse 8s ease-in-out infinite;
}

@keyframes orbit-spin {
  from { transform: rotateX(60deg) rotateZ(0deg); }
  to { transform: rotateX(60deg) rotateZ(360deg); }
}

@keyframes orbit-counter-spin {
  from { transform: rotateZ(0deg) rotateX(-60deg); }
  to { transform: rotateZ(-360deg) rotateX(-60deg); }
}

@keyframes glass-float-1 {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.7; }
  50% { transform: translateY(-15px) scale(1.08); opacity: 1; }
}

@keyframes glass-float-2 {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.6; }
  33% { transform: translateY(-10px) translateX(5px); opacity: 0.9; }
  66% { transform: translateY(5px) translateX(-8px); opacity: 0.7; }
}

@keyframes glass-float-3 {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; }
  50% { transform: translateY(-20px) scale(1.05); opacity: 0.8; }
}

@keyframes ring-pulse {
  0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) rotateX(60deg) scale(1); }
  50% { opacity: 0.7; transform: translate(-50%, -50%) rotateX(60deg) scale(1.03); }
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border: 1px solid rgba(192, 255, 255, 0.4);
  border-radius: 50px;
  background: rgba(192, 255, 255, 0.05);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
  animation: fade-up 0.8s var(--ease-out-expo) 0.1s both;
}

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

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

/* Hero Title */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 20px 0;
  letter-spacing: -2px;
  animation: fade-up 1s var(--ease-out-expo) 0.2s both;
}

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

.text-stroke {
  -webkit-text-stroke: 1px var(--color-light);
  -webkit-text-fill-color: transparent;
  text-stroke: 1px var(--color-light);
}

.hero-line-accent {
  position: relative;
  display: inline-block;
  color: var(--color-red);
  text-shadow: 0 0 20px rgba(252, 94, 73, 0.5);
}

.hero-glow-word {
  position: relative;
}

.hero-glow-word::before {
  content: attr(data-word);
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-red);
  filter: blur(20px);
  opacity: 0.6;
  z-index: -1;
}

.hero-dot {
  color: var(--color-cyan);
}

/* Hero Subtitle */
.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 300;
  color: rgba(237, 239, 242, 0.7);
  max-width: 660px;
  margin: 0 auto 50px;
  animation: fade-up 1s var(--ease-out-expo) 0.3s both;
  line-height: 2;
  letter-spacing: 0.2px;
}

.hero-subtitle em {
  font-style: normal;
  color: var(--color-cyan);
  font-weight: 400;
}

/* Hero Trust Line */
.hero-trust {
  position: relative;
  margin: 60px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  animation: fade-up 1s var(--ease-out-expo) 0.4s both;
}

.trust-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(252, 94, 73, 0.25), transparent);
  max-width: 120px;
}

.trust-text {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-gray);
  padding: 0 20px;
}

/* Hero CTA Buttons */
.hero-ctas {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fade-up 1s var(--ease-out-expo) 0.5s both;
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ===============================================
   BUTTONS
   =============================================== */
.btn-primary {
  padding: 14px 40px;
  border-radius: 8px;
  background: var(--color-red);
  color: var(--color-black);
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease-in-out);
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(252, 94, 73, 0.4);
}

.btn-glow {
  box-shadow: 0 0 30px rgba(252, 94, 73, 0.4);
  animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 30px rgba(252, 94, 73, 0.4); }
  50% { box-shadow: 0 0 50px rgba(252, 94, 73, 0.6); }
}

.btn-glass {
  padding: 14px 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-light);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.3s var(--ease-in-out);
  display: inline-block;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-red);
  color: var(--color-red);
  transform: translateY(-3px);
}

/* ===============================================
   ENTRY ANIMATIONS
   =============================================== */
.anim-entry {
  opacity: 0;
  transform: translateY(50px);
  animation: fade-up 0.8s var(--ease-out-expo) forwards;
}

.anim-d1 { animation-delay: 0.1s; }
.anim-d2 { animation-delay: 0.2s; }
.anim-d3 { animation-delay: 0.3s; }
.anim-d4 { animation-delay: 0.4s; }
.anim-d5 { animation-delay: 0.5s; }
.anim-d6 { animation-delay: 0.8s; }
.anim-d7 { animation-delay: 1.1s; }
.anim-d8 { animation-delay: 1.5s; }

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



.scroll-mouse {
  width: 24px;
  height: 40px;
  border: 2px solid var(--color-gray);
  border-radius: 12px;
  padding: 8px 0;
  display: flex;
  justify-content: center;
}

.scroll-icon {
  width: 24px;
  height: 40px;
  border: 2px solid var(--color-gray);
  border-radius: 12px;
  padding: 8px 0;
  display: flex;
  justify-content: center;
}

.scroll-wheel {
  width: 3px;
  height: 6px;
  background: var(--color-gray);
  border-radius: 2px;
  animation: scroll-down 1.5s ease-in-out infinite;
}

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

@keyframes scroll-down {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(10px); }
}

/* ===============================================
   SECTION TRANSITIONS (smooth flow)
   =============================================== */
section + section {
  margin-top: 0;
}

/* Seamless section backgrounds */
.about-section,
.services-section,
.portfolio-section,
.contact-section {
  background: transparent;
}

.about-section::before,
.services-section::before,
.portfolio-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(180deg, transparent, var(--color-black));
  pointer-events: none;
  z-index: -1;
}

/* ===============================================
   GLASS CARD
   =============================================== */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--ease-in-out);
}

.glass-card:hover {
  border-color: rgba(252, 94, 73, 0.2);
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.05);
}

.glass-card .card-glow {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(252, 94, 73, 0.15) 0%, transparent 70%);
  filter: blur(40px);
  opacity: 0;
  transition: opacity 0.3s var(--ease-in-out);
  pointer-events: none;
}

.glass-card:hover .card-glow {
  opacity: 1;
}

/* ===============================================
   SECTIONS LAYOUT
   =============================================== */
section {
  position: relative;
  padding: 120px 0;
  width: 100%;
  max-width: 100%;
}

.section-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-red);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 40px;
  letter-spacing: -1px;
}

/* ===============================================
   ABOUT SECTION
   =============================================== */
.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 60px;
}

.about-left {
  position: sticky;
  top: 120px;
}

.about-right {
  padding-top: 10px;
}

.about-content h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 20px;
  line-height: 1.3;
}

.about-accent-line {
  width: 60px;
  height: 3px;
  background: var(--color-red);
  margin: 30px 0;
}

.about-text {
  color: var(--color-gray);
  line-height: 1.8;
  margin-bottom: 30px;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.value-card {
  position: relative;
}

.value-card .card-glow {
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  opacity: 0;
  transition: all 0.4s var(--ease-out-expo);
  pointer-events: none;
  z-index: 0;
}

.value-card:hover .card-glow {
  opacity: 1;
}

.value-card:hover {
  transform: translateY(-8px) scale(1.04);
  background: transparent;
  border-color: transparent;
  transition: all 0.4s var(--ease-out-expo);
}

.value-card h3,
.value-card p,
.value-card .value-number {
  position: relative;
  z-index: 1;
}

/* Unique gradient per value card - SOLID COLORS */
.value-card:nth-child(1) .card-glow {
  background: linear-gradient(135deg, #193066 0%, #FC5E49 100%);
}
.value-card:nth-child(1):hover {
  border-color: transparent;
  box-shadow: 0 20px 60px rgba(252, 94, 73, 0.4), 0 0 0 1px rgba(252, 94, 73, 0.3);
}

.value-card:nth-child(2) .card-glow {
  background: linear-gradient(135deg, #0e1d3d 0%, #193066 40%, #C0FFFF 100%);
}
.value-card:nth-child(2):hover {
  border-color: transparent;
  box-shadow: 0 20px 60px rgba(192, 255, 255, 0.25), 0 0 0 1px rgba(192, 255, 255, 0.2);
}

.value-card:nth-child(3) .card-glow {
  background: linear-gradient(135deg, #FC5E49 0%, #1A1A1A 50%, #193066 100%);
}
.value-card:nth-child(3):hover {
  border-color: transparent;
  box-shadow: 0 20px 60px rgba(252, 94, 73, 0.35), 0 0 0 1px rgba(25, 48, 102, 0.3);
}

.value-card:nth-child(4) .card-glow {
  background: linear-gradient(135deg, #C0FFFF 0%, #193066 50%, #FC5E49 100%);
}
.value-card:nth-child(4):hover {
  border-color: transparent;
  box-shadow: 0 20px 60px rgba(192, 255, 255, 0.2), 0 0 0 1px rgba(252, 94, 73, 0.15);
}

.value-number {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 300;
  color: rgba(237, 239, 242, 0.05);
  line-height: 1;
  margin-bottom: 10px;
}

.value-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-light);
}

.value-text {
  font-size: 0.85rem;
  color: var(--color-gray);
  margin-top: 8px;
}

/* ===============================================
   SERVICES SECTION
   =============================================== */
.services-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.section-desc {
  font-size: 1.1rem;
  color: var(--color-gray);
  max-width: 500px;
}

.service-item {
  display: grid;
  grid-template-columns: 60px 80px 1fr 50px;
  gap: 20px;
  align-items: center;
  padding: 30px;
  position: relative;
  transition: all 0.3s var(--ease-in-out);
}

.service-item:hover {
  transform: translateX(20px);
  border-color: rgba(252, 94, 73, 0.3);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(252, 94, 73, 0.1);
  border: 1px solid rgba(252, 94, 73, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-red);
  transition: all 0.3s var(--ease-in-out);
  flex-shrink: 0;
}

.service-item:hover .service-icon {
  background: rgba(252, 94, 73, 0.2);
  border-color: rgba(252, 94, 73, 0.4);
  box-shadow: 0 0 20px rgba(252, 94, 73, 0.2);
}

.service-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-red);
  opacity: 0.3;
}

.service-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.service-title {
  font-size: 1.2rem;
  font-weight: 600;
}

.service-description {
  color: var(--color-gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.service-tags li {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 5px 12px;
  border: 1px solid rgba(192, 255, 255, 0.2);
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-cyan);
}

.service-arrow {
  font-size: 1.5rem;
  color: var(--color-red);
  transition: transform 0.3s var(--ease-in-out);
}

.service-item:hover .service-arrow {
  transform: translateX(10px);
}

/* ===============================================
   PORTFOLIO SECTION
   =============================================== */
.portfolio-filters {
  display: flex;
  gap: 15px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  background: transparent;
  color: var(--color-light);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s var(--ease-in-out);
  text-transform: capitalize;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-black);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  grid-auto-rows: 260px;
}

.portfolio-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s var(--ease-out-expo);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: flex-end;
  padding: 0;
  opacity: 1;
}

.portfolio-item.hidden {
  display: none;
}

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

.portfolio-item-wide {
  grid-column: span 2;
}

.portfolio-item:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(252, 94, 73, 0.25);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.4);
}

.portfolio-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 2;
  transition: opacity 0.3s var(--ease-in-out);
}

.portfolio-item-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s var(--ease-in-out);
  z-index: 1;
}

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

.portfolio-item-content {
  position: relative;
  z-index: 3;
  width: 100%;
}

.portfolio-item-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 8px;
}

.portfolio-item-category {
  font-size: 0.8rem;
  color: var(--color-cyan);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.portfolio-card {
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  border: none;
  background: transparent;
}

.portfolio-card:hover {
  transform: none;
  border-color: transparent;
  background: transparent;
}

.portfolio-image {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: flex-end;
  transition: transform 0.5s var(--ease-out-expo);
}

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

.portfolio-overlay {
  padding: 24px;
  position: relative;
  z-index: 3;
  width: 100%;
}


.portfolio-card-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.portfolio-view {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-red);
  margin-top: 10px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s var(--ease-out-expo);
}

.portfolio-item:hover .portfolio-view {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-category {
  font-size: 0.75rem;
  color: var(--color-cyan);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 6px;
  display: block;
}

.portfolio-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
}

/* ===============================================
   CONTACT SECTION
   =============================================== */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

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

.contact-left .section-label {
  display: block;
  margin-bottom: 16px;
}

.contact-text {
  color: var(--color-gray);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 40px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: center;
}

.contact-info-item .info-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-gray);
  display: block;
  margin-bottom: 4px;
}

.contact-info-item a,
.contact-info-item span {
  color: var(--color-light);
  font-size: 0.95rem;
}

.contact-info-item a:hover {
  color: var(--color-red);
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 40px;
  line-height: 1.3;
}

.contact-item {
  margin-bottom: 40px;
  display: flex;
  gap: 20px;
}

.info-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(252, 94, 73, 0.15);
  border: 1px solid rgba(252, 94, 73, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-red);
  font-size: 1.3rem;
}

.contact-item-text h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.contact-item-text p {
  color: var(--color-gray);
  font-size: 0.95rem;
}

.contact-item-text a {
  color: var(--color-red);
}

.contact-item-text a:hover {
  text-decoration: underline;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group label {
  font-size: 0.95rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--color-light);
  font-family: var(--font-body);
  font-size: 0.95rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s var(--ease-in-out);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(237, 239, 242, 0.4);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-red);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 20px rgba(252, 94, 73, 0.2);
}

.form-group select {
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--color-light);
  font-family: var(--font-body);
  font-size: 0.95rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s var(--ease-in-out);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238892A0' stroke-width='2'%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;
  cursor: pointer;
}

.form-group select option {
  background: var(--color-navy-dark);
  color: var(--color-light);
}

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

.form-disclaimer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-gray);
  margin-top: 8px;
}

.form-success {
  text-align: center;
  padding: 40px 20px;
}

.form-success h3 {
  margin-top: 16px;
  font-size: 1.3rem;
}

.form-success p {
  color: var(--color-gray);
  margin-top: 8px;
}

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

.form-submit {
  margin-top: 20px;
}

/* ===============================================
   FOOTER
   =============================================== */
.footer {
  background: var(--color-navy-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0;
}

.footer .container {
  padding-top: 60px;
  padding-bottom: 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo-img {
  height: 180px;
  width: auto;
  opacity: 0.9;
}

@media (min-width: 1200px) {
  .footer-logo-img {
    height: 220px;
  }
}

.footer-brand p {
  color: var(--color-gray);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer-links h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 20px;
  color: var(--color-light);
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--color-gray);
  font-size: 0.9rem;
  transition: all 0.3s var(--ease-in-out);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--color-red);
  transform: translateX(5px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-gray);
  font-size: 0.85rem;
}

/* ===============================================
   BACK TO TOP BUTTON
   =============================================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-red);
  color: var(--color-black);
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: all 0.3s var(--ease-in-out);
  z-index: 90;
  box-shadow: 0 5px 20px rgba(252, 94, 73, 0.3);
}

.back-to-top.show {
  display: flex;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(252, 94, 73, 0.5);
}

/* ===============================================
   SCROLL ANIMATIONS
   =============================================== */
[data-animate] {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.9s var(--ease-out-expo);
  will-change: opacity, transform;
}

[data-animate="fade-left"] {
  transform: translateX(-60px);
}

[data-animate="fade-right"] {
  transform: translateX(60px);
}

[data-animate="fade-up"] {
  transform: translateY(60px);
}

[data-animate].animated {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

/* Exit animations - scrolling DOWN (elements go up and out) */
[data-animate].animate-out-up {
  opacity: 0;
  transform: translateY(-40px) scale(0.97);
  transition: all 0.5s var(--ease-in-out);
}

[data-animate="fade-left"].animate-out-up {
  transform: translateX(-40px) scale(0.97);
  opacity: 0;
}

[data-animate="fade-right"].animate-out-up {
  transform: translateX(40px) scale(0.97);
  opacity: 0;
}

/* Exit animations - scrolling UP (elements go down and out) */
[data-animate].animate-out-down {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  transition: all 0.5s var(--ease-in-out);
}

[data-animate="fade-left"].animate-out-down {
  transform: translateX(40px) scale(0.97);
  opacity: 0;
}

[data-animate="fade-right"].animate-out-down {
  transform: translateX(-40px) scale(0.97);
  opacity: 0;
}

/* ===============================================
   RESPONSIVE DESIGN
   =============================================== */
@media (max-width: 1024px) {
  .values-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    auto-rows: 250px;
  }
  
  .portfolio-item-wide {
    grid-column: span 1;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

@media (max-width: 900px) {
  .nav-menu {
    display: none;
  }
  
  .nav-cta {
    display: none;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  section {
    padding: 80px 0;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .about-left {
    position: static;
  }
  
  .service-item {
    grid-template-columns: 50px 1fr;
  }
  
  .service-icon {
    display: none;
  }
  
  .service-arrow {
    display: none;
  }
  
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 20px;
    height: 80px;
  }

  .nav-logo-img {
    height: 70px;
  }

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

  .orbiting-logo {
    width: 400px;
    height: 400px;
  }

  .orbit-isotipo {
    width: 200px;
    height: 200px;
  }

  .glass-ring {
    width: 300px;
    height: 300px;
  }

  .glass-el-1 {
    width: 50px;
    height: 50px;
  }

  .glass-el-2, .glass-el-3 {
    display: none;
  }
  
  .hero-section {
    padding: 80px 20px 60px;
  }
  
  .hero-ctas {
    gap: 15px;
  }
  
  .btn-primary,
  .btn-glass {
    padding: 12px 30px;
    font-size: 0.9rem;
  }
  
  .section-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  
  .about-accent-line {
    width: 40px;
  }
  
  .services-list {
    gap: 12px;
  }
  
  .service-item {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 20px;
  }
  
  .service-number {
    font-size: 1.5rem;
  }
  
  .service-number {
    font-size: 2rem;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
    auto-rows: 250px;
  }
  
  .contact-form {
    gap: 15px;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 0 15px;
  }
  
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  .hero-section {
    padding: 60px 15px 40px;
    min-height: 80vh;
  }
  
  .hero-title {
    font-size: clamp(2.5rem, 7vw, 3.5rem);
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-badge {
    font-size: 0.75rem;
    padding: 8px 16px;
  }
  
  section {
    padding: 60px 0;
  }

  .container {
    padding: 0 20px;
  }
  
  .section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }
  
  .hero-trust {
    gap: 10px;
    margin: 40px 0;
  }
  
  .trust-text {
    font-size: 0.7rem;
    padding: 0 10px;
  }
  
  .value-card {
    padding: 20px;
  }
  
  .value-number {
    font-size: 2.5rem;
  }
  
  .contact-item {
    gap: 15px;
    margin-bottom: 30px;
  }
  
  .info-icon-wrap {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  
  .back-to-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
    font-size: 1.1rem;
  }
}


/* ===============================================
   HERO MOBILE FIXES
   =============================================== */
@media (max-width: 768px) {
  .hero-section {
    padding: 100px 20px 60px;
    text-align: center;
    overflow: hidden;
  }

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

  .hero-title {
    font-size: clamp(2.8rem, 10vw, 4rem);
    text-align: center;
  }

  .hero-line {
    display: block;
    text-align: center;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: center;
    padding: 0 10px;
    max-width: 100%;
  }

  .hero-subtitle br {
    display: none;
  }

  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero-badge {
    margin: 0 auto;
  }

  .hero-trust {
    justify-content: center;
  }

  /* Isotipo - smaller and behind content on mobile */
  .orbiting-logo {
    width: 280px;
    height: 280px;
    opacity: 0.3;
    z-index: 1;
  }

  .orbit-isotipo {
    width: 150px;
    height: 150px;
  }

  .glass-ring {
    width: 220px;
    height: 220px;
    opacity: 0.3;
  }

  .glass-element {
    display: none;
  }

  /* Floating shapes - hide most on mobile */
  .shape {
    opacity: 0.15;
    transform: scale(0.6);
  }

  .shape-3, .shape-4, .shape-5 {
    display: none;
  }

  /* Contact section */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-left {
    text-align: center;
  }

  .contact-item {
    justify-content: flex-start;
    text-align: left;
  }

  .contact-form {
    padding: 25px 20px;
  }

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

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-brand {
    text-align: center;
    align-items: center;
  }

  .footer-logo-img {
    height: 100px;
    margin: 0 auto;
    display: block;
  }

  .footer-links h4 {
    text-align: center;
  }

  .footer-links ul {
    text-align: center;
  }

  /* Nav logo */
  .nav-logo-img {
    height: 60px;
  }

  /* Container padding */
  .container {
    padding: 0 20px;
    max-width: 100%;
    overflow: hidden;
  }

  /* Values cards */
  .values-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .value-card {
    padding: 20px 15px;
  }

  .value-title {
    font-size: 1rem;
  }

  .value-desc {
    font-size: 0.85rem;
  }

  .value-number {
    font-size: 2rem;
  }

  /* Portfolio grid */
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Section titles */
  .section-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    text-align: center;
  }

  .section-label {
    text-align: center;
    display: block;
  }

  /* About section */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-left {
    text-align: center;
  }

  .about-accent-line {
    margin: 0 auto;
  }

  .about-right p {
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.8;
  }
}

@media (max-width: 400px) {
  .hero-title {
    font-size: clamp(2.2rem, 9vw, 3rem);
  }

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

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary, .btn-glass {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .nav-logo-img {
    height: 50px;
  }

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


/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(237, 239, 242, 0.5);
  font-size: 0.85rem;
  letter-spacing: 1px;
  z-index: 10;
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(237, 239, 242, 0.5);
  border-radius: 12px;
  position: relative;
}

.scroll-dot {
  width: 4px;
  height: 8px;
  background: rgba(252, 94, 73, 0.8);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-dot-move 2s ease-in-out infinite;
}

.scroll-text {
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(237, 239, 242, 0.5);
  font-family: var(--font-body);
}

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

@keyframes scroll-dot-move {
  0%, 100% { top: 6px; opacity: 1; }
  50% { top: 20px; opacity: 0.3; }
}

@media (max-width: 768px) {
  .hero-scroll-indicator {
    bottom: 20px;
  }
}

/* ===============================================
   UTILITY CLASSES
   =============================================== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
}

@media (min-width: 1600px) {
  .container {
    max-width: 1500px;
    padding: 0 80px;
  }
}

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

.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 60px; }

.hidden {
  display: none !important;
}


/* Performance: reduce motion on mobile */
@media (max-width: 768px) {
  .hero-gradient-orb,
  .ambient-orb {
    animation-duration: 30s;
  }

  .mouse-glow,
  .custom-cursor-dot,
  .custom-cursor-ring {
    display: none !important;
  }

  .grid-overlay {
    opacity: 0.3;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
