/* ==========================================================================
   Angelica Moraes Portfolio CSS
   Designed with premium dark/light mode transitions and tech aesthetics.
   ========================================================================== */

/* Custom Typography & Base Transition */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
}

html {
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

/* Smooth transition for theme toggle */
html,
body,
header,
section,
footer,
card,
div,
span,
h1,
h2,
h3,
p,
a,
button,
svg,
input,
textarea {
  transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom Premium Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

.dark ::-webkit-scrollbar-track {
  background: #0b0f19;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 5px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.dark ::-webkit-scrollbar-thumb {
  background: #334155;
  border: 2px solid #0b0f19;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: #475569;
  border: 2px solid #0b0f19;
  background-clip: padding-box;
}

/* Floating Gradient Blobs Animation (Vercel/Stripe style) */
@keyframes float-slow {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

@keyframes float-delayed {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(-40px, 40px) scale(0.9);
  }
  66% {
    transform: translate(30px, -30px) scale(1.15);
  }
}

.animate-float-slow {
  animation: float-slow 15s infinite alternate ease-in-out;
}

.animate-float-delayed {
  animation: float-delayed 18s infinite alternate ease-in-out;
}

/* Glassmorphism Styles */
.glass-panel {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Scroll Reveal Classes */
.reveal-fade,
.reveal-slide-up,
.reveal-scale-up {
  opacity: 0;
  will-change: transform, opacity;
}

.reveal-slide-up {
  transform: translateY(35px);
}

.reveal-scale-up {
  transform: scale(0.92) translateY(10px);
}

/* Active State for Scroll Reveal triggered by JS */
.revealed {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Timeline vertical line transition and dot glows */
.timeline-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.25;
  animation: ping-pulse 2s infinite ease-in-out;
}

@keyframes ping-pulse {
  0% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.6);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-delay: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
  
  .reveal-fade,
  .reveal-slide-up,
  .reveal-scale-up {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Glow gradient text clip helper */
.text-gradient {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
