/* ==========================================================================
   Design Tokens & Variables
   ========================================================================== */
:root {
  /* Fonts */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Colors */
  --bg-base: #030712;       /* Dark slate-950 */
  --bg-card: rgba(15, 23, 42, 0.55);  /* Glass Slate-900 */
  --bg-card-hover: rgba(30, 41, 59, 0.65);
  
  --primary: #06b6d4;      /* Cyber cyan */
  --primary-hover: #0891b2;
  --primary-glow: rgba(6, 182, 212, 0.25);
  
  --secondary: #8b5cf6;    /* Neon violet */
  --secondary-hover: #7c3aed;
  --secondary-glow: rgba(139, 92, 246, 0.25);
  
  --text-primary: #f9fafb;  /* Gray 50 */
  --text-secondary: #9ca3af;/* Gray 400 */
  --text-muted: #6b7280;    /* Gray 500 */
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(6, 182, 212, 0.5);
  
  /* UI System */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  --container-max: 1200px;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Aligns with header height */
  height: 100%;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* Modern scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}

/* ==========================================================================
   Utilities / Typography Components
   ========================================================================== */
.container {
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-badge {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  color: var(--primary);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.05);
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(6, 182, 212, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(6, 182, 212, 0.05);
}

/* Icons styling */
.icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
  transition: var(--transition-smooth);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5), 0 0 15px rgba(6, 182, 212, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 15px var(--primary-glow);
  transform: translateY(-2px);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  background: rgba(3, 7, 18, 0.65);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: var(--transition-smooth);
}

.header-container {
  width: 90%;
  max-width: var(--container-max);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  position: relative;
  transition: var(--transition-smooth);
}

.hamburger::before, .hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-smooth);
}

.hamburger::before { top: -6px; }
.hamburger::after { bottom: -6px; }

/* Scroll timeline progress bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  z-index: 2000;
  transform-origin: 0% 50%;
  transform: scaleX(0);
}

/* Native CSS Scroll-driven animations configuration */
@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
  #scroll-progress {
    animation: grow-progress auto linear both;
    animation-timeline: scroll(block root);
  }
  
  #main-header {
    animation: shrink-nav auto linear both;
    animation-timeline: scroll(block root);
    animation-range: 0px 100px;
  }
}

@keyframes grow-progress {
  to { transform: scaleX(1); }
}

@keyframes shrink-nav {
  to {
    height: 60px;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 50px;
}

.hero-bg-glow {
  position: absolute;
  top: 10%;
  right: 5%;
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(6, 182, 212, 0.05) 50%, rgba(3, 7, 18, 0) 70%);
  z-index: 1;
  pointer-events: none;
  filter: blur(40px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar-glow-wrapper {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
}

.avatar-glow {
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  filter: blur(25px);
  opacity: 0.45;
  z-index: 1;
  animation: float-glow 8s ease-in-out infinite alternate;
}

.avatar-img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  z-index: 2;
  background: #0d1222;
}

@keyframes float-glow {
  0% {
    transform: translateY(0px) scale(0.98);
    opacity: 0.4;
  }
  100% {
    transform: translateY(-8px) scale(1.03);
    opacity: 0.55;
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.mouse-icon {
  display: block;
  width: 26px;
  height: 42px;
  border: 2px solid var(--text-muted);
  border-radius: 20px;
  position: relative;
}

.mouse-icon .wheel {
  display: block;
  width: 4px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel 1.5s infinite;
}

@keyframes scroll-wheel {
  0% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 15px);
  }
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tagline {
  font-family: var(--font-heading);
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-top: 0.5rem;
}

.section-divider {
  width: 50px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  margin: 1.5rem auto 0;
  border-radius: 10px;
}

/* ==========================================================================
   About & Resume Section
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

.about-text-card {
  padding: 2.5rem;
}

.about-text-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.about-text-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.timeline-wrapper h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid rgba(255, 255, 255, 0.05);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -2.4rem;
  top: 1.5rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-base);
  border: 2px solid var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

.timeline-content {
  padding: 1.8rem;
}

.timeline-date {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-block;
  margin-bottom: 0.5rem;
}

.timeline-role {
  font-size: 1.2rem;
  font-weight: 700;
}

.timeline-company {
  font-size: 0.95rem;
  color: var(--secondary);
  font-weight: 500;
  display: block;
  margin-bottom: 0.75rem;
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Skills Section
   ========================================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.skills-card {
  padding: 2.5rem;
}

.skills-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.skills-icon {
  width: 28px;
  height: 28px;
  color: var(--primary);
  filter: drop-shadow(0 0 5px var(--primary-glow));
}

.skills-card h3 {
  font-size: 1.4rem;
}

.skills-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skill-name {
  font-size: 0.9rem;
  font-weight: 500;
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.progress-bar-wrap {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 10px;
  box-shadow: 0 0 10px var(--primary-glow);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info-card {
  padding: 2.5rem;
}

.contact-info-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.contact-info-card p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-detail-item svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.contact-detail-item span {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.social-links-wrap h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.social-link-btn svg {
  width: 20px;
  height: 20px;
}

.social-link-btn:hover {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
  transform: translateY(-3px);
}

.contact-form-card {
  padding: 3rem 2.5rem;
}

/* Floating labels */
.form-group {
  position: relative;
  margin-bottom: 2rem;
}

.turnstile-group {
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}

.form-group textarea {
  resize: none;
}

.form-group label {
  position: absolute;
  left: 1rem;
  top: 1rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: var(--transition-smooth);
  font-size: 0.95rem;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: rgba(6, 182, 212, 0.02);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.1);
}

/* Floating label trigger */
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  top: -0.65rem;
  left: 0.8rem;
  font-size: 0.8rem;
  color: var(--primary);
  background: #090e1f; /* Matches background card color approx */
  padding: 0 0.5rem;
  font-weight: 600;
  border-radius: 4px;
}

/* Validation Styling using modern :user-invalid */
.form-group input:user-invalid,
.form-group textarea:user-invalid {
  border-color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.02);
}

.form-group input:user-invalid ~ label,
.form-group textarea:user-invalid ~ label {
  color: #ef4444 !important;
}

.error-msg {
  display: none;
  font-size: 0.8rem;
  color: #ef4444;
  margin-top: 0.35rem;
  position: absolute;
  bottom: -1.2rem;
  left: 0.2rem;
}

/* Display error message when invalid */
.form-group input:user-invalid ~ .error-msg,
.form-group textarea:user-invalid ~ .error-msg {
  display: block;
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.main-footer {
  background: #02050c;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-color);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.copyright {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary);
}

/* ==========================================================================
   Scroll Reveal View Timeline animations
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes reveal-up {
      from {
        opacity: 0;
        transform: translateY(40px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* Apply scroll entry animations */
    .timeline-item,
    .skills-card,
    .contact-grid > * {
      animation: reveal-up auto cubic-bezier(0.25, 1, 0.5, 1) both;
      animation-timeline: view();
      animation-range: entry 10% entry 45%;
    }
  }
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

/* Tablet layout */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .hero-content {
    order: 2;
  }
  
  .hero-visual {
    order: 1;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-cta-group {
    justify-content: center;
  }
  
  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile Nav Toggle Styles */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  
  .main-nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: #030712e6;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 2rem;
    transform: translateY(-150%);
    transition: var(--transition-smooth);
    z-index: 999;
  }
  
  .main-nav.active {
    transform: translateY(0);
  }
  
  .main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  
  .header-actions {
    display: none;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-title {
    font-size: 2.4rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
  }
  
  .nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 0;
  }
  
  .nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
  }
}

/* ==========================================================================
   Toast Notification & Spinner
   ========================================================================== */
.success-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 10000;
  background: #0d1e1f;
  border: 1px solid #14b8a6;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(20, 184, 166, 0.15);
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 420px;
  animation: slide-up-toast 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.success-toast-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
}

.success-icon {
  width: 28px;
  height: 28px;
  color: #14b8a6;
  background: rgba(20, 184, 166, 0.1);
  border-radius: 50%;
  padding: 4px;
  flex-shrink: 0;
  margin-top: 2px;
}

.success-toast h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  color: #14b8a6;
  font-weight: 600;
}

.success-toast p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.success-toast.toast-error {
  background: #240d0f;
  border-color: #ef4444;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(239, 68, 68, 0.15);
}

.success-toast.toast-error .success-icon {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.success-toast.toast-error h3 {
  color: #ef4444;
}

.toast-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 0.25rem;
  margin-left: auto;
  align-self: flex-start;
}

.toast-close-btn:hover {
  color: #fff;
}

@keyframes slide-up-toast {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner {
  width: 18px;
  height: 18px;
  animation: spin 1s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

/* ==========================================================================
   JavaScript Animation Reveal Fallbacks
   ========================================================================== */
.reveal-fade {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-fade.revealed {
  opacity: 1;
  transform: translateY(0);
}

