/* style.css — GJ Library Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* === DARK PALETTE (Primary) === */
  --color-bg-base      : #050814;
  --color-bg-surface   : #0d1117;
  --color-bg-elevated  : #161b22;
  --color-border       : rgba(255,255,255,0.08);

  /* === ACCENT - Electric Blue === */
  --color-accent-1     : #3b82f6; 
  --color-accent-2     : #6366f1; 
  --color-accent-glow  : rgba(59,130,246,0.35);

  /* === GRADIENT ORBS === */
  --orb-1              : rgba(59, 130, 246, 0.18);
  --orb-2              : rgba(99, 102, 241, 0.14);
  --orb-3              : rgba(168, 85, 247, 0.10);

  /* === TYPOGRAPHY === */
  --color-text-primary : #f0f6fc;
  --color-text-secondary: #8b949e;
  --color-text-muted   : #484f58;

  /* === STATUS === */
  --color-success      : #3fb950;
  --color-error        : #f85149;
  --color-warning      : #d29922;
}

body { 
  font-family: 'Inter', sans-serif; 
  background-color: var(--color-bg-base); 
  color: var(--color-text-primary); 
  overflow-x: hidden;
}

/* Display headings */
.text-display-xl { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.1; }
.text-display-lg { font-size: clamp(2rem,  4vw, 3.5rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15;  }
.text-display-md { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -0.015em; }

/* Gradients */
.hero-gradient {
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, var(--orb-1), transparent),
    radial-gradient(ellipse 50% 40% at 80% 20%,  var(--orb-2), transparent),
    radial-gradient(ellipse 40% 30% at 20% 70%,  var(--orb-3), transparent),
    var(--color-bg-base);
  position: relative;
}

.text-gradient {
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Animated orbs */
.orb { position: absolute; border-radius: 50%; filter: blur(80px); animation: float 8s ease-in-out infinite; z-index: 0; }
.orb-1 { width: 600px; height: 600px; background: var(--orb-1); top: -200px; left: 50%; transform: translateX(-50%); }
.orb-2 { width: 400px; height: 400px; background: var(--orb-2); top: 100px; right: -100px; animation-delay: -3s; }
@keyframes float { 
  0%, 100% { transform: translateY(0) scale(1); } 
  50% { transform: translateY(-30px) scale(1.05); } 
}

/* Glassmorphism Cards */
.glass-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}
.glass-card:hover {
  border-color: rgba(59,130,246,0.3);
  background: rgba(59,130,246,0.03);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(59,130,246,0.1) inset;
}

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px;
  background: var(--color-accent-1); color: #fff;
  border-radius: 8px; font-weight: 600; font-size: 0.95rem; border: none; cursor: pointer;
  transition: all 0.2s ease; box-shadow: 0 0 0 0 var(--color-accent-glow);
}
.btn-primary:hover {
  background: #2563eb; transform: translateY(-1px);
  box-shadow: 0 0 30px var(--color-accent-glow);
}
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; background: transparent; color: var(--color-text-primary);
  border-radius: 8px; font-weight: 500; font-size: 0.95rem;
  border: 1px solid var(--color-border); cursor: pointer; transition: all 0.2s ease;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.05); }

/* Navigation */
#main-nav { transition: all 0.3s ease; border-bottom: 1px solid transparent; background: transparent; }
#main-nav.scrolled {
  background: rgba(5,8,20,0.85); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}

/* Scroll Animations */
.animate-on-scroll { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }

/* Marquee */
.marquee-container {
  overflow: hidden; white-space: nowrap; width: 100%; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border);
  background: rgba(255,255,255,0.01); padding: 12px 0;
}
.marquee-content { display: inline-block; animation: marquee 30s linear infinite; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Inputs */
.dark-input {
  background: rgba(255,255,255,0.03); border: 1px solid var(--color-border);
  color: var(--color-text-primary); border-radius: 8px; transition: all 0.2s ease;
  width: 100%; padding: 12px 16px; outline: none;
}
.dark-input:focus { border-color: var(--color-accent-1); box-shadow: 0 0 0 3px var(--color-accent-glow); }
.dark-input::placeholder { color: var(--color-text-muted); }
.input-error { border-color: var(--color-error); }
.error-msg { color: var(--color-error); font-size: 0.85rem; margin-top: 4px; display: none; }
.error-msg.show { display: block; }
