/* ==========================================================
   Rodrigo Ferreira – Landing Page & Blog
   Design System – Centralized Styles
   ========================================================== */

/* ── Base ─────────────────────────────────────────────── */
body {
  background-color: #050505;
  color: #ffffff;
  overflow-x: hidden;
}

/* ── Reveal Animations ────────────────────────────────── */
@keyframes fadeInUpBlur {
  0%   { opacity: 0; transform: translateY(24px); filter: blur(8px); }
  100% { opacity: 1; transform: translateY(0);    filter: blur(0);   }
}
.animate-entry {
  animation: fadeInUpBlur 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }

/* ── Typography Gradients ─────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #fed7aa 50%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Button Gradients ─────────────────────────────────── */
.btn-gradient {
  background: linear-gradient(to top, #ea580c, #f97316);
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.3s ease;
}
.btn-gradient::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, #fb923c, #ea580c);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}
.btn-gradient:hover::before {
  opacity: 1;
}

/* ── Ambient Background Elements ──────────────────────── */
.stars-bg {
  background-image:
    radial-gradient(1px 1px at 20px 30px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 50px 160px, rgba(255,255,255,0.8), rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 90px 40px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 150px 120px, rgba(255,255,255,0.6), rgba(0,0,0,0));
  background-size: 250px 250px;
  opacity: 0.15;
}
.ambient-glow-1 {
  position: absolute; top: -10%; left: -5%; width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.08) 0%, transparent 60%);
  border-radius: 50%; filter: blur(60px); pointer-events: none; z-index: 0;
}
.ambient-glow-2 {
  position: absolute; bottom: 10%; right: -10%; width: 40vw; height: 40vw;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.05) 0%, transparent 65%);
  border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 0;
}

/* ── Glassmorphism Components ─────────────────────────── */
.glass-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.glass-card-hover {
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.glass-card-hover:hover {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(249, 115, 22, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px -10px rgba(249, 115, 22, 0.15);
}

/* ── Hero Display Card ────────────────────────────────── */
.electric-frame {
  position: relative;
  background: #111;
  border-radius: 2rem;
  padding: 1px;
  box-shadow: 0 0 40px rgba(249, 115, 22, 0.15), inset 0 0 20px rgba(249, 115, 22, 0.05);
  overflow: hidden;
}
.electric-frame::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: conic-gradient(from 0deg, transparent 0%, transparent 40%, #f97316 50%, transparent 60%, transparent 100%);
  animation: spin 4s linear infinite;
}
@keyframes spin {
  100% { transform: rotate(360deg); }
}
.electric-frame-inner {
  background: #080808;
  border-radius: calc(2rem - 1px);
  height: 100%; width: 100%;
  position: relative; z-index: 10;
  overflow: hidden;
}

/* ── Profile Image Mask ───────────────────────────────── */
.hero-image-mask {
  mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

/* ── Prose / Article Styles ───────────────────────────── */
.prose-custom p {
  margin-bottom: 1.75rem;
}
.prose-custom h2 {
  margin-top: 3rem;
  margin-bottom: 1.25rem;
}
.prose-custom blockquote {
  border-left: 3px solid #f97316;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #a3a3a3;
}
