/* ========================================
   OSVALDO CREATION  PREMIUM FUTURISTIC CSS
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&family=Orbitron:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/*     VARIABLES     */
:root {
  --black:       #050508;
  --black-2:     #0d0d12;
  --black-3:     #12121a;
  --red:         #ff0a27;
  --red-dark:    #c00020;
  --red-glow:    rgba(255, 10, 39, 0.4);
  --red-glass:   rgba(255, 10, 39, 0.08);
  --white:       #ffffff;
  --white-dim:   rgba(255,255,255,0.85);
  --white-muted: rgba(255,255,255,0.5);
  --white-faint: rgba(255,255,255,0.06);
  --gold:        #d4a843;
  --glass-bg:    rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.08);
  --card-bg:     rgba(13,13,18,0.8);

  --font-main:   'Space Grotesk', sans-serif;
  --font-heading:'Orbitron', monospace;
  --font-body:   'Inter', sans-serif;

  --section-pad: 120px 0;
  --transition:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
}

/*     RESET & BASE     */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  cursor: none;
}

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

/*     CUSTOM CURSOR     */
.cursor {
  position: fixed;
  width: 12px; height: 12px;
  background: var(--red);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.3s var(--transition), height 0.3s var(--transition), opacity 0.3s;
  mix-blend-mode: normal;
  box-shadow: 0 0 20px var(--red), 0 0 40px var(--red-glow);
}
.cursor-ring {
  position: fixed;
  width: 40px; height: 40px;
  border: 1px solid rgba(255,10,39,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s var(--ease-out), width 0.4s var(--transition), height 0.4s var(--transition);
}
body:hover .cursor { opacity: 1; }
.cursor.hover { width: 20px; height: 20px; }
.cursor-ring.hover { width: 60px; height: 60px; border-color: var(--red); }

/*     SCROLLBAR     */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--black-2); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 2px; }

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

/*     NAVBAR     */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.5s var(--transition);
}

nav.scrolled {
  background: rgba(5,5,8,0.92);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,10,39,0.15);
  padding: 12px 60px;
  box-shadow: 0 4px 40px rgba(0,0,0,0.5);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 0 12px rgba(255,10,39,0.6));
  transition: filter 0.3s;
}

.nav-logo img:hover {
  filter: drop-shadow(0 0 20px rgba(255,10,39,0.9));
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--white);
  line-height: 1.2;
}

.nav-logo-text span {
  display: block;
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--red);
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--white-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--red);
  transition: width 0.3s var(--transition);
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: all 0.3s var(--transition) !important;
  box-shadow: 0 0 20px rgba(255,10,39,0.35);
}

.nav-cta:hover {
  background: #ff2040 !important;
  box-shadow: 0 0 35px rgba(255,10,39,0.6) !important;
  transform: translateY(-1px);
}

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

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/*     HERO SECTION     */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

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

.hero-video-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero-video-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(255,10,39,0.08) 0%, transparent 70%),
    linear-gradient(to bottom, rgba(5,5,8,0.3) 0%, rgba(5,5,8,0.6) 60%, var(--black) 100%);
}

/* Animated grid lines */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,10,39,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,10,39,0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  animation: gridMove 20s linear infinite;
  z-index: 1;
}

@keyframes gridMove {
  0% { background-position: 0 0; }
  100% { background-position: 80px 80px; }
}

/* Animated particles */
.particles-container {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--red);
  animation: float-particle linear infinite;
  opacity: 0;
}

@keyframes float-particle {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.3; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 160px 60px 100px;
  width: 100%;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,10,39,0.1);
  border: 1px solid rgba(255,10,39,0.25);
  padding: 8px 20px;
  border-radius: 40px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 32px;
  animation: fadeSlideUp 0.8s var(--transition) both;
}

.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,10,39,0.7); }
  50% { box-shadow: 0 0 0 6px rgba(255,10,39,0); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(40px, 6vw, 90px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -1px;
  margin-bottom: 28px;
  animation: fadeSlideUp 0.9s 0.1s var(--transition) both;
}

.hero-title .line-red { color: var(--red); }
.hero-title .line-dim { color: var(--white-dim); }

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--white-muted);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 48px;
  animation: fadeSlideUp 1s 0.2s var(--transition) both;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeSlideUp 1s 0.3s var(--transition) both;
  margin-bottom: 80px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: var(--white);
  padding: 16px 36px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: all 0.4s var(--transition);
  box-shadow: 0 0 30px rgba(255,10,39,0.4), 0 4px 20px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 50px rgba(255,10,39,0.6), 0 8px 30px rgba(0,0,0,0.4);
}

.btn-primary:hover::before { opacity: 1; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--white);
  padding: 16px 36px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.4s var(--transition);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: var(--red);
  color: var(--red);
  box-shadow: 0 0 20px rgba(255,10,39,0.2);
  transform: translateY(-3px);
}

.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  animation: fadeSlideUp 1s 0.4s var(--transition) both;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

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

.stat-number {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  margin-bottom: 4px;
  text-shadow: 0 0 30px rgba(255,10,39,0.5);
}

.stat-label {
  font-size: 12px;
  color: var(--white-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Hero scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeSlideUp 1s 0.8s var(--transition) both;
}

.scroll-indicator span {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white-muted);
}

.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--red), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.5); opacity: 0.4; }
}

/*     SECTION COMMONS     */
section { position: relative; z-index: 2; }

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 60px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}

.section-tag::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--red);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 58px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--white-muted);
  line-height: 1.7;
  max-width: 600px;
  font-weight: 300;
}

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

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

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

/*     ABOUT SECTION     */
#about {
  background: var(--black-2);
  overflow: hidden;
}

#about::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,10,39,0.06) 0%, transparent 70%);
  pointer-events: none;
}

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

.about-text .section-subtitle { max-width: 100%; margin-bottom: 32px; }

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.about-tag-item {
  padding: 8px 18px;
  background: var(--red-glass);
  border: 1px solid rgba(255,10,39,0.2);
  border-radius: 40px;
  font-size: 13px;
  color: var(--white-dim);
  transition: all 0.3s;
}

.about-tag-item:hover {
  background: rgba(255,10,39,0.15);
  border-color: var(--red);
  color: var(--white);
}

.about-visual {
  position: relative;
}

.about-card-main {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.about-card-main::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.about-floating-card {
  position: absolute;
  background: var(--card-bg);
  border: 1px solid rgba(255,10,39,0.2);
  border-radius: 14px;
  padding: 16px 20px;
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  animation: floatCard 4s ease-in-out infinite;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.about-floating-card:nth-child(2) { top: -20px; right: -20px; animation-delay: 0s; }
.about-floating-card:nth-child(3) { bottom: -20px; left: -20px; animation-delay: 2s; }

.about-floating-card .card-icon {
  width: 36px; height: 36px;
  background: rgba(255,10,39,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

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

.about-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.about-metric {
  text-align: center;
  padding: 20px;
  background: rgba(255,10,39,0.05);
  border: 1px solid rgba(255,10,39,0.1);
  border-radius: 12px;
  transition: all 0.3s;
}

.about-metric:hover {
  background: rgba(255,10,39,0.1);
  border-color: rgba(255,10,39,0.3);
  transform: translateY(-4px);
}

.about-metric .num {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 900;
  color: var(--red);
  display: block;
}

.about-metric .lbl {
  font-size: 12px;
  color: var(--white-muted);
  letter-spacing: 1px;
}

/*     SERVICES SECTION     */
#services {
  background: var(--black);
  position: relative;
}

#services::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(255,10,39,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.services-header {
  text-align: center;
  margin-bottom: 64px;
}

.services-header .section-subtitle {
  margin: 0 auto;
  text-align: center;
}

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

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--transition);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,10,39,0.4), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(255,10,39,0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}

.service-card:hover {
  border-color: rgba(255,10,39,0.35);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 30px rgba(255,10,39,0.1);
}

.service-card:hover::before { opacity: 1; }
.service-card:hover::after  { opacity: 1; }

.service-icon {
  width: 56px; height: 56px;
  background: rgba(255,10,39,0.1);
  border: 1px solid rgba(255,10,39,0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
  transition: all 0.4s var(--transition);
  position: relative;
  z-index: 1;
}

.service-card:hover .service-icon {
  background: rgba(255,10,39,0.2);
  border-color: var(--red);
  box-shadow: 0 0 20px rgba(255,10,39,0.3);
  transform: scale(1.1) rotate(-5deg);
}

.service-name {
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--white);
  position: relative;
  z-index: 1;
  transition: color 0.3s;
}

.service-card:hover .service-name { color: var(--red); }

.service-desc {
  font-size: 13px;
  color: var(--white-muted);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.service-arrow {
  position: absolute;
  bottom: 20px; right: 20px;
  width: 28px; height: 28px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--white-muted);
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.4s var(--transition);
}

.service-card:hover .service-arrow {
  opacity: 1;
  transform: translateX(0);
  border-color: var(--red);
  color: var(--red);
}

/*     AI SECTION     */
#ai {
  background: var(--black-2);
  overflow: hidden;
  position: relative;
}

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

.ai-bg-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.12;
}

.ai-bg-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(to right, var(--black-2) 30%, transparent 100%),
    linear-gradient(to top, var(--black-2) 0%, transparent 100%);
}

.ai-content {
  position: relative;
  z-index: 2;
}

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

.ai-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}

.ai-feature-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s var(--transition);
  position: relative;
  overflow: hidden;
}

.ai-feature-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,10,39,0.06) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.ai-feature-item:hover {
  border-color: rgba(255,10,39,0.3);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.ai-feature-item:hover::before { opacity: 1; }

.ai-feature-icon {
  font-size: 24px;
  margin-bottom: 10px;
  display: block;
}

.ai-feature-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.ai-feature-desc {
  font-size: 12px;
  color: var(--white-muted);
  line-height: 1.5;
}

/* AI Neural Visual */
.ai-visual-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-neural {
  width: 440px;
  height: 440px;
  position: relative;
}

.ai-center-orb {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(255,10,39,0.8) 0%, rgba(255,10,39,0.2) 50%, transparent 70%);
  border-radius: 50%;
  animation: orbPulse 3s ease-in-out infinite;
  box-shadow: 0 0 40px rgba(255,10,39,0.5), 0 0 80px rgba(255,10,39,0.2);
}

@keyframes orbPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 40px rgba(255,10,39,0.5); }
  50% { transform: translate(-50%, -50%) scale(1.1); box-shadow: 0 0 80px rgba(255,10,39,0.7), 0 0 120px rgba(255,10,39,0.3); }
}

.ai-ring {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(255,10,39,0.3);
  transform: translate(-50%, -50%);
  animation: ringExpand 4s ease-in-out infinite;
}

.ai-ring:nth-child(1) { width: 160px; height: 160px; animation-delay: 0s; }
.ai-ring:nth-child(2) { width: 240px; height: 240px; animation-delay: 0.5s; border-style: dashed; }
.ai-ring:nth-child(3) { width: 320px; height: 320px; animation-delay: 1s; }
.ai-ring:nth-child(4) { width: 400px; height: 400px; animation-delay: 1.5s; border-color: rgba(255,10,39,0.1); }

@keyframes ringExpand {
  0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.ai-node {
  position: absolute;
  width: 12px; height: 12px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(255,10,39,0.8);
  animation: nodeGlow 2s ease-in-out infinite;
}

@keyframes nodeGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(255,10,39,0.6); opacity: 0.8; }
  50% { box-shadow: 0 0 20px rgba(255,10,39,1), 0 0 30px rgba(255,10,39,0.4); opacity: 1; }
}

/*     PORTFOLIO SECTION     */
#portfolio {
  background: var(--black);
}

.portfolio-header {
  text-align: center;
  margin-bottom: 64px;
}

.portfolio-header .section-subtitle { margin: 0 auto; }

.portfolio-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.portfolio-tab {
  padding: 8px 20px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 40px;
  color: var(--white-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--font-body);
}

.portfolio-tab.active,
.portfolio-tab:hover {
  background: rgba(255,10,39,0.1);
  border-color: var(--red);
  color: var(--white);
}

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

.portfolio-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  aspect-ratio: 4/3;
  transition: transform 0.4s var(--transition);
}

.portfolio-item:nth-child(1) { grid-column: span 2; aspect-ratio: 16/9; }

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

.portfolio-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--transition);
}

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

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,5,8,0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.4s;
}

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

.portfolio-item-tag {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}

.portfolio-item-title {
  font-family: var(--font-main);
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
}

/*     RESULTS SECTION     */
#results {
  background: var(--black-2);
  position: relative;
  overflow: hidden;
}

#results::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.results-header {
  text-align: center;
  margin-bottom: 80px;
}

.results-header .section-subtitle { margin: 0 auto; }

.results-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

.result-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--transition);
  backdrop-filter: blur(10px);
}

.result-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.result-card:hover {
  border-color: rgba(255,10,39,0.3);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 20px rgba(255,10,39,0.08);
}

.result-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
}

.result-number {
  font-family: var(--font-heading);
  font-size: 52px;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  margin-bottom: 8px;
  display: block;
  text-shadow: 0 0 30px rgba(255,10,39,0.4);
}

.result-label {
  font-size: 14px;
  color: var(--white-muted);
  letter-spacing: 0.5px;
}

/*     TESTIMONIALS SECTION     */
#testimonials {
  background: var(--black);
}

.testimonials-header {
  text-align: center;
  margin-bottom: 64px;
}

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

.testimonial-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  transition: all 0.4s var(--transition);
  backdrop-filter: blur(10px);
}

.testimonial-card:nth-child(2) {
  transform: translateY(-20px);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px; right: 24px;
  font-size: 80px;
  font-family: serif;
  color: rgba(255,10,39,0.15);
  line-height: 1;
}

.testimonial-card:hover {
  border-color: rgba(255,10,39,0.25);
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.testimonial-card:nth-child(2):hover {
  transform: translateY(-28px);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  color: var(--gold);
  font-size: 16px;
}

.testimonial-text {
  font-size: 15px;
  color: var(--white-dim);
  line-height: 1.75;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  border: 2px solid rgba(255,10,39,0.3);
  font-family: var(--font-heading);
}

.testimonial-info strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

.testimonial-info span {
  font-size: 12px;
  color: var(--red);
}

/*     CTA SECTION     */
#cta {
  position: relative;
  overflow: hidden;
  background: var(--black-2);
  text-align: center;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(255,10,39,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(255,10,39,0.06) 0%, transparent 70%);
}

.cta-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,10,39,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,10,39,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,10,39,0.1);
  border: 1px solid rgba(255,10,39,0.3);
  padding: 8px 20px;
  border-radius: 40px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 32px;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.cta-subtitle {
  font-size: 18px;
  color: var(--white-muted);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.7;
  font-weight: 300;
}

.btn-glow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--red);
  color: var(--white);
  padding: 20px 48px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: all 0.4s var(--transition);
  box-shadow: 0 0 40px rgba(255,10,39,0.5), 0 0 80px rgba(255,10,39,0.2), 0 8px 30px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
  animation: btnGlow 3s ease-in-out infinite;
}

@keyframes btnGlow {
  0%, 100% { box-shadow: 0 0 40px rgba(255,10,39,0.5), 0 8px 30px rgba(0,0,0,0.4); }
  50% { box-shadow: 0 0 60px rgba(255,10,39,0.7), 0 0 100px rgba(255,10,39,0.3), 0 8px 30px rgba(0,0,0,0.4); }
}

.btn-glow:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 0 80px rgba(255,10,39,0.8), 0 12px 40px rgba(0,0,0,0.5) !important;
}

.btn-glow::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

/*     FOOTER     */
footer {
  background: var(--black);
  border-top: 1px solid rgba(255,10,39,0.15);
  padding: 80px 60px 40px;
  position: relative;
  z-index: 2;
}

footer::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 400px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  text-decoration: none;
}

.footer-brand .footer-logo img {
  height: 40px;
  filter: drop-shadow(0 0 10px rgba(255,10,39,0.5));
}

.footer-brand .footer-logo-text {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--white);
  line-height: 1.2;
}

.footer-brand .footer-logo-text span {
  display: block;
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--red);
  font-weight: 400;
}

.footer-desc {
  font-size: 14px;
  color: var(--white-muted);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 24px;
}

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

.footer-social {
  width: 40px; height: 40px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  text-decoration: none;
  transition: all 0.3s var(--transition);
}

.footer-social:hover {
  background: rgba(255,10,39,0.15);
  border-color: rgba(255,10,39,0.4);
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(255,10,39,0.2);
}

.footer-col h4 {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}

.footer-links { list-style: none; }

.footer-links li { margin-bottom: 10px; }

.footer-links a {
  color: var(--white-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--white-muted);
}

.footer-contact-item .icon { color: var(--red); font-size: 16px; margin-top: 1px; }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--white-muted);
}

.footer-bottom span { color: var(--red); }

/*     WHATSAPP BUTTON     */
.whatsapp-float {
  position: fixed;
  bottom: 30px; right: 30px;
  z-index: 999;
  width: 58px; height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4), 0 0 0 0 rgba(37,211,102,0.4);
  animation: whatsappPulse 2.5s ease-in-out infinite;
  transition: transform 0.3s var(--transition);
}

.whatsapp-float:hover { transform: scale(1.1); }

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4), 0 0 0 0 rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 20px rgba(37,211,102,0.4), 0 0 0 12px rgba(37,211,102,0); }
}

/*     PAGE LOADER     */
#loader {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  transition: opacity 0.8s var(--transition), transform 0.8s var(--transition);
}

#loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-logo {
  width: 80px; height: 80px;
  animation: loaderRotate 2s linear infinite;
}

@keyframes loaderRotate {
  0% { filter: drop-shadow(0 0 10px rgba(255,10,39,0.5)); }
  50% { filter: drop-shadow(0 0 30px rgba(255,10,39,0.9)); }
  100% { filter: drop-shadow(0 0 10px rgba(255,10,39,0.5)); }
}

.loader-bar {
  width: 200px; height: 2px;
  background: var(--black-3);
  border-radius: 2px;
  overflow: hidden;
}

.loader-progress {
  height: 100%;
  background: var(--red);
  border-radius: 2px;
  width: 0%;
  box-shadow: 0 0 10px var(--red);
  transition: width 0.1s linear;
}

.loader-text {
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--white-muted);
}

/*     ANIMATIONS     */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/*     CONTACT FORM STYLES     */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.form-label {
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white-muted);
  transition: color 0.3s;
}

.form-input {
  font-family: var(--font-body);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 14px 18px;
  color: var(--white);
  font-size: 14px;
  outline: none;
  transition: all 0.3s var(--transition);
  backdrop-filter: blur(10px);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.form-input:focus {
  background: rgba(255, 10, 39, 0.02);
  border-color: var(--red);
  box-shadow: 0 0 15px rgba(255, 10, 39, 0.15);
}

.form-group:focus-within .form-label {
  color: var(--red);
}

/* Select Styling */
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 40px;
  cursor: pointer;
}

.form-select option {
  background: var(--black-2);
  color: var(--white);
}

/* Textarea Styling */
.form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* Submit Button */
.form-submit-btn {
  width: 100%;
  padding: 16px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s var(--transition);
  box-shadow: 0 0 20px rgba(255, 10, 39, 0.3);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.form-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 10, 39, 0.5);
  background: #ff2040;
}

.form-submit-btn:active {
  transform: translateY(0);
}

/* Loading state */
.form-submit-btn.loading {
  background: var(--black-3);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: var(--white-muted) !important;
  cursor: not-allowed;
  box-shadow: none !important;
  transform: none !important;
}

.form-submit-btn.loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spinner-loader 0.8s linear infinite;
}

@keyframes spinner-loader {
  to { transform: rotate(360deg); }
}

/* Success animation */
#form-success {
  animation: successFadeIn 0.6s var(--transition) forwards;
}

@keyframes successFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/*     RESPONSIVE     */
@media (max-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .ai-grid { grid-template-columns: 1fr; gap: 40px; }
  .results-metrics { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  nav { padding: 16px 24px; }
  nav.scrolled { padding: 12px 24px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(5,5,8,0.98);
    backdrop-filter: blur(20px);
    padding: 100px 40px 40px;
    gap: 24px;
    border-bottom: 1px solid rgba(255,10,39,0.2);
    height: 100vh;
    z-index: 999;
  }

  .nav-links.mobile-open a {
    font-size: 18px;
    color: var(--white-dim);
  }

  .hero-content { padding: 120px 24px 80px; }
  .hero-stats { gap: 24px; }
  .stat-number { font-size: 32px; }

  .section-container { padding: 80px 24px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-item:nth-child(1) { grid-column: span 1; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonial-card:nth-child(2) { transform: none; }
  .results-metrics { grid-template-columns: repeat(2, 1fr); }
  .ai-features { grid-template-columns: 1fr; }
  .ai-neural { width: 300px; height: 300px; }
  .footer-grid { grid-template-columns: 1fr; }
  footer { padding: 60px 24px 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .cursor, .cursor-ring { display: none; }
  body { cursor: auto; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .results-metrics { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: flex-start; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}
