/* ==========================================================================
   goAmdi.com - Main Stylesheet
   Identity & Design System by AmazonasDigital C.A.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600&display=swap');

:root {
  /* Brand Palette from official goAmdi logo */
  --amdi-magenta: #ff007a;
  --amdi-orange: #ff6a00;
  --amdi-yellow: #ffd000;
  --amdi-green: #00ff66;
  --amdi-cyan: #00e5ff;
  --amdi-blue: #0066ff;

  /* Typography */
  --font-main: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Radii & Spacing */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --max-width: 1240px;
}

/* --------------------------------------------------------------------------
   DARK THEME (Default)
   -------------------------------------------------------------------------- */
[data-theme="dark"],
:root {
  --bg-deep: #050608;
  --bg-dark-1: #090a0f;
  --bg-dark-2: #0f1118;
  --bg-card: rgba(14, 17, 26, 0.78);
  --bg-card-hover: rgba(20, 25, 38, 0.92);
  --bg-card-preview: rgba(7, 8, 12, 0.65);
  --bg-glass: rgba(10, 12, 18, 0.72);
  --bg-chip: rgba(255, 255, 255, 0.05);

  --border-glass: rgba(255, 255, 255, 0.12);
  --border-glass-subtle: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(255, 255, 255, 0.25);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dim: #475569;

  --shadow-dock: 0 20px 50px rgba(0, 0, 0, 0.75);
  --shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.65);
  --shadow-card-hover: 0 35px 70px -10px rgba(0, 0, 0, 0.9);

  --orb-opacity: 0.38;
  --orb-blend: screen;
  --texture-opacity: 0.03;
}

/* --------------------------------------------------------------------------
   LIGHT THEME
   -------------------------------------------------------------------------- */
[data-theme="light"] {
  --bg-deep: #f6f8fc;
  --bg-dark-1: #ffffff;
  --bg-dark-2: #edf2f7;
  --bg-card: rgba(255, 255, 255, 0.82);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --bg-card-preview: rgba(243, 246, 251, 0.9);
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-chip: rgba(0, 0, 0, 0.04);

  --border-glass: rgba(0, 0, 0, 0.09);
  --border-glass-subtle: rgba(0, 0, 0, 0.05);
  --border-glow: rgba(0, 0, 0, 0.15);

  --text-primary: #0a0e17;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --text-dim: #a0aec0;

  --shadow-dock: 0 20px 45px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 20px 45px -10px rgba(0, 0, 0, 0.09);
  --shadow-card-hover: 0 30px 60px -10px rgba(0, 0, 0, 0.15);

  --orb-opacity: 0.22;
  --orb-blend: multiply;
  --texture-opacity: 0.02;
}

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

html {
  font-family: var(--font-main);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 100%;
  background-color: var(--bg-deep);
  overflow-x: hidden;
  position: relative;
  line-height: 1.57;
  transition: background-color 0.35s ease, color 0.35s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--border-glass);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--border-glow);
}

/* Ambient Lighting Background */
.texture-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  pointer-events: none;
  z-index: 1;
  opacity: var(--texture-opacity);
  background-image: radial-gradient(rgba(128, 128, 128, 0.6) 1px, transparent 1px);
  background-size: 30px 30px;
}

.affect-glow-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: var(--orb-opacity);
  mix-blend-mode: var(--orb-blend);
  transform: translate3d(0, 0, 0);
  transition: opacity 0.4s ease;
  will-change: transform;
}

.orb-1-magenta {
  top: -8%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--amdi-magenta) 0%, transparent 70%);
  animation: orbFloatMagenta 18s ease-in-out infinite;
}

.orb-2-cyan {
  top: 15%;
  left: -10%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, var(--amdi-cyan) 0%, transparent 70%);
  animation: orbFloatCyan 22s ease-in-out infinite;
  animation-delay: -4s;
}

.orb-3-blue {
  bottom: 12%;
  right: 5%;
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, var(--amdi-blue) 0%, transparent 70%);
  animation: orbFloatBlue 20s ease-in-out infinite;
  animation-delay: -8s;
}

.orb-4-green {
  bottom: -10%;
  left: 5%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, var(--amdi-green) 0%, transparent 70%);
  animation: orbFloatGreen 24s ease-in-out infinite;
  animation-delay: -12s;
}

.orb-5-orange {
  top: 45%;
  left: 38%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, var(--amdi-orange) 0%, transparent 70%);
  opacity: calc(var(--orb-opacity) * 0.7);
  animation: orbFloatOrange 16s ease-in-out infinite;
  animation-delay: -6s;
}

/* Sutil movimiento orgánico continuo de los orbes de color */
@keyframes orbFloatMagenta {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(-60px, 70px, 0) scale(1.12); }
  66% { transform: translate3d(40px, -40px, 0) scale(0.92); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes orbFloatCyan {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(70px, -50px, 0) scale(1.08); }
  66% { transform: translate3d(-40px, 50px, 0) scale(0.94); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes orbFloatBlue {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(-60px, -60px, 0) scale(1.1); }
  66% { transform: translate3d(50px, 35px, 0) scale(0.93); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes orbFloatGreen {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(60px, -40px, 0) scale(1.14); }
  66% { transform: translate3d(-45px, 55px, 0) scale(0.9); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes orbFloatOrange {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(-40px, 50px, 0) scale(1.1); }
  66% { transform: translate3d(50px, -30px, 0) scale(0.95); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

/* Particles Canvas */
#particle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
}

/* Global Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

/* Typography */
.gradient-text {
  background: linear-gradient(110deg, #ff007a 0%, #ff6a00 25%, #ffd000 50%, #00ff66 75%, #00e5ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

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

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