/* ========================================================================= */
/* CRYPTODOC — MAIN STYLESHEET                                               */
/* ========================================================================= */

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background-color: #000000;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  overflow-x: hidden;
  width: 100%;
}

/* ========================================================================= */
/* BACKGROUNDS & SECTION THEMES                                              */
/* ========================================================================= */

/* Section 1 Gradient Glow (Degradado Radial Blanco/Cian a Negro) */
.hero-glow-bg {
  background: radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.05) 40%, #000000 80%);
}

/* Pure Black Background for Sections 2 to 8 */
.pure-black-bg {
  background-color: #000000;
}

/* ========================================================================= */
/* TYPOGRAPHY                                                                */
/* ========================================================================= */

.main-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1.15;
}

.main-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  color: #d1d5db;
  line-height: 1.5;
}

/* ========================================================================= */
/* SECTION 2: PILLAR CARDS                                                   */
/* ========================================================================= */

.pillar-card-box {
  background-color: transparent;
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.pillar-card-box:hover {
  transform: translateY(-4px);
}

.pillar-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #ffffff;
}

.pillar-desc {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  color: #d1d5db;
  line-height: 1.4;
}

/* ========================================================================= */
/* APP SCREEN IMAGES & HOVER EFFECTS                                         */
/* ========================================================================= */

@keyframes floatingEffect {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
  100% {
    transform: translateY(0px);
  }
}

.app-screen-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  position: relative;
  z-index: 10;
  box-shadow:
    0 25px 60px -12px rgba(0, 0, 0, 0.95),
    0 0 35px rgba(255, 255, 255, 0.08),
    0 0 1px 1px rgba(255, 255, 255, 0.15);
  animation: floatingEffect 5.5s ease-in-out infinite;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-screen-img:hover {
  transform: translateY(-16px) scale(1.015);
  box-shadow:
    0 35px 75px -15px rgba(0, 0, 0, 0.98),
    0 0 55px rgba(255, 255, 255, 0.16),
    0 0 1px 1px rgba(255, 255, 255, 0.3);
}

/* ========================================================================= */
/* FLOATING BADGES (PALABRAS CLAVES FLOTANTES)                              */
/* ========================================================================= */

@keyframes floatBadge1 {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-14px) rotate(1.2deg);
  }
}

@keyframes floatBadge2 {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-18px) rotate(-1.5deg);
  }
}

@keyframes floatBadge3 {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(0.8deg);
  }
}

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

.floating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.25rem;
  background: rgba(10, 10, 14, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 9999px;
  box-shadow:
    0 20px 45px -5px rgba(0, 0, 0, 0.98),
    0 0 30px rgba(255, 255, 255, 0.1),
    inset 0 1px 1px rgba(255, 255, 255, 0.4);
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 50 !important;
  position: relative;
  pointer-events: auto;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.floating-badge:hover {
  transform: scale(1.08) !important;
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow:
    0 28px 55px -5px rgba(0, 0, 0, 1),
    0 0 45px rgba(255, 255, 255, 0.25);
}

.badge-float-left {
  animation: floatBadge1 4.8s ease-in-out infinite;
  z-index: 50 !important;
}

.badge-float-right {
  animation: floatBadge2 5.6s ease-in-out infinite 0.6s;
  z-index: 50 !important;
}

.badge-float-slow {
  animation: floatBadge3 6.2s ease-in-out infinite 1.2s;
  z-index: 50 !important;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  animation: pulseGlow 2.2s ease-in-out infinite;
}

/* ========================================================================= */
/* TRUEFOCUS COMPONENT STYLES                                                */
/* ========================================================================= */

#true-focus-title {
  outline: none;
  user-select: none;
}

.focus-word {
  display: inline-block;
  cursor: pointer;
  user-select: none;
  position: relative;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  transition: filter 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: filter, opacity, transform;
  padding: 0 4px;
}

#true-focus-overlay {
  position: absolute;
  top: 0;
  left: 0;
  box-sizing: border-box;
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
              width 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
              height 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.3s ease;
  will-change: transform, width, height, opacity;
  --border-color: #34d399;
  --glow-color: rgba(52, 211, 153, 0.7);
  z-index: 20;
}

.corner-bracket {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--border-color, #34d399);
  filter: drop-shadow(0 0 6px var(--border-color, #34d399));
}

/* ========================================================================= */
/* TEXTTYPE CURSOR STYLES                                                    */
/* ========================================================================= */

.type-cursor {
  display: inline-block;
  animation: cursorBlink 0.75s step-start infinite;
  color: #34d399;
  text-shadow: 0 0 10px rgba(52, 211, 153, 0.9);
  font-weight: 300;
  margin-left: 2px;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ========================================================================= */
/* ROTATING TEXT COMPONENT                                                  */
/* ========================================================================= */

.rotating-text-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  position: relative;
  text-align: center;
}

.rotating-text-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  vertical-align: middle;
  height: 1.45em;
  line-height: 1.45em;
  text-align: center;
}

.rotating-text-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  white-space: pre-wrap;
  text-align: center;
}

.rotating-text-word {
  display: inline-flex;
  align-items: center;
}

.rotating-text-element {
  display: inline-block;
  will-change: transform, opacity;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
}

.rotating-text-element.entering {
  transform: translateY(100%);
  opacity: 0;
}

.rotating-text-element.active {
  transform: translateY(0%);
  opacity: 1;
}

.rotating-text-element.exiting {
  transform: translateY(-120%);
  opacity: 0;
}

/* ========================================================================= */
/* TECH LOGOS MARQUEE / STRIP                                                */
/* ========================================================================= */

.logo-marquee-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  padding: 0.85rem 0;
  mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}

.logo-marquee-track {
  display: flex;
  width: max-content;
  user-select: none;
  animation: logoScroll 22s linear infinite;
}

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

.logo-marquee-group {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 3.5rem;
  padding-right: 3.5rem;
  flex-shrink: 0;
}

.tech-logo-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease, filter 0.28s ease;
  cursor: pointer;
}

.tech-logo-item img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  transition: transform 0.25s ease;
}

.tech-logo-item:hover {
  opacity: 1;
  transform: scale(1.2);
  filter: drop-shadow(0 0 16px rgba(56, 189, 248, 0.5));
}

@keyframes logoScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
