/* ==========================================================================
   SkillLink — Apple-Inspired Liquid Glass Design System (style.css)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Sky-Blue Palette */
  --bg-sky-start: #e0f2fe;
  --bg-sky-mid: #f0f9ff;
  --bg-sky-end: #dbeafe;
  
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-light: rgba(2, 132, 199, 0.12);
  --accent-blue: #2563eb;
  --accent-emerald: #10b981;
  --accent-purple: #8b5cf6;
  --accent-rose: #f43f5e;

  --text-main: #0c4a6e;
  --text-dark: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;

  /* Liquid Glass Design System (Multi-Tiered Material Levels) */
  /* Level 1: Ultra-Clear Glass (Navbar, Category Pills, Controls) */
  --glass-l1-bg: rgba(255, 255, 255, 0.45);
  --glass-l1-blur: blur(20px) saturate(190%);
  --glass-l1-border: rgba(255, 255, 255, 0.75);
  --glass-l1-shadow: 0 10px 30px -10px rgba(2, 132, 199, 0.12), inset 0 1px 1.5px rgba(255, 255, 255, 0.95);

  /* Level 2: Standard Liquid Glass (Cards, Sections, Form Containers, Sidebars) */
  --glass-l2-bg: rgba(255, 255, 255, 0.58);
  --glass-l2-blur: blur(26px) saturate(200%);
  --glass-l2-border: rgba(255, 255, 255, 0.82);
  --glass-l2-shadow: 0 18px 45px -15px rgba(2, 132, 199, 0.15), inset 0 1px 2px rgba(255, 255, 255, 0.98);

  /* Level 3: Deep Glass (Modals, Toast Notifications, Active Panels, Dropdowns) */
  --glass-l3-bg: rgba(255, 255, 255, 0.78);
  --glass-l3-blur: blur(34px) saturate(210%);
  --glass-l3-border: rgba(255, 255, 255, 0.92);
  --glass-l3-shadow: 0 30px 70px -15px rgba(2, 132, 199, 0.22), inset 0 1px 2px rgba(255, 255, 255, 1);

  /* Fallback aliases for legacy classes */
  --glass-bg: var(--glass-l2-bg);
  --glass-bg-hover: rgba(255, 255, 255, 0.78);
  --glass-bg-active: rgba(255, 255, 255, 0.92);
  --glass-border: var(--glass-l2-border);
  --glass-border-light: rgba(255, 255, 255, 0.5);
  --glass-shadow: var(--glass-l2-shadow);
  --glass-shadow-hover: 0 25px 55px -12px rgba(2, 132, 199, 0.24), inset 0 1px 2px rgba(255, 255, 255, 1);
  --glass-blur: var(--glass-l2-blur);

  /* Layout & Radii */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Reset & Global Elements */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background: radial-gradient(circle at 10% 20%, #e0f2fe 0%, #f0f9ff 45%, #dbeafe 90%);
  color: var(--text-dark);
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

/* 6 Floating Liquid Glass Background Shapes (Clearly Visible & Smooth) */
.bg-shape {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 0 25px rgba(255, 255, 255, 0.9), 0 15px 35px rgba(2, 132, 199, 0.12);
  will-change: transform;
}

.shape-1 {
  width: 480px;
  height: 480px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(186, 230, 253, 0.65) 0%, rgba(125, 211, 252, 0.3) 100%);
  animation: floatLiquid1 12s ease-in-out infinite alternate;
}

.shape-2 {
  width: 320px;
  height: 320px;
  bottom: 5%;
  left: -80px;
  background: radial-gradient(circle, rgba(191, 219, 254, 0.6) 0%, rgba(147, 197, 253, 0.25) 100%);
  animation: floatLiquid2 10s ease-in-out infinite alternate;
}

.shape-3 {
  width: 220px;
  height: 380px;
  border-radius: 80px;
  top: 30%;
  left: 4%;
  transform: rotate(18deg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(224, 242, 254, 0.35) 100%);
  animation: floatLiquid3 14s ease-in-out infinite alternate;
}

.shape-4 {
  width: 280px;
  height: 280px;
  border-radius: 40px;
  bottom: 20%;
  right: 4%;
  transform: rotate(-25deg);
  background: radial-gradient(circle, rgba(224, 242, 254, 0.7) 0%, rgba(186, 230, 253, 0.3) 100%);
  animation: floatLiquid4 11s ease-in-out infinite alternate;
}

.shape-5 {
  width: 260px;
  height: 260px;
  top: 15%;
  left: 45%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55) 0%, rgba(191, 219, 254, 0.2) 100%);
  animation: floatLiquid5 13s ease-in-out infinite alternate;
}

.shape-6 {
  width: 350px;
  height: 200px;
  border-radius: 100px;
  bottom: 2%;
  left: 35%;
  background: linear-gradient(120deg, rgba(147, 197, 253, 0.4) 0%, rgba(224, 242, 254, 0.5) 100%);
  animation: floatLiquid6 15s ease-in-out infinite alternate;
}

/* Legacy shape compatibility */
.shape-circle-lg { width: 480px; height: 480px; top: -120px; right: -80px; background: radial-gradient(circle, rgba(186, 230, 253, 0.65) 0%, rgba(125, 211, 252, 0.3) 100%); animation: floatLiquid1 12s ease-in-out infinite alternate; }
.shape-circle-sm { width: 320px; height: 320px; bottom: 5%; left: -80px; background: radial-gradient(circle, rgba(191, 219, 254, 0.6) 0%, rgba(147, 197, 253, 0.25) 100%); animation: floatLiquid2 10s ease-in-out infinite alternate; }
.shape-rect-left { width: 220px; height: 380px; border-radius: 80px; top: 30%; left: 4%; transform: rotate(18deg); background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(224, 242, 254, 0.35) 100%); animation: floatLiquid3 14s ease-in-out infinite alternate; }
.shape-rect-right { width: 280px; height: 280px; border-radius: 40px; bottom: 20%; right: 4%; transform: rotate(-25deg); background: radial-gradient(circle, rgba(224, 242, 254, 0.7) 0%, rgba(186, 230, 253, 0.3) 100%); animation: floatLiquid4 11s ease-in-out infinite alternate; }

/* Keyframes for organic independent background motion */
@keyframes floatLiquid1 {
  0% { transform: translateY(0px) scale(1) rotate(0deg); }
  50% { transform: translateY(-40px) scale(1.06) rotate(3deg); }
  100% { transform: translateY(-15px) scale(0.97) rotate(-2deg); }
}

@keyframes floatLiquid2 {
  0% { transform: translateY(0px) scale(1); }
  100% { transform: translateY(-50px) scale(1.1) translateX(25px); }
}

@keyframes floatLiquid3 {
  0% { transform: translateY(0px) rotate(18deg); }
  100% { transform: translateY(-35px) rotate(28deg) scale(1.05); }
}

@keyframes floatLiquid4 {
  0% { transform: translateY(0px) rotate(-25deg); }
  100% { transform: translateY(-45px) rotate(-15deg) scale(1.08); }
}

@keyframes floatLiquid5 {
  0% { transform: translateX(0px) translateY(0px); }
  100% { transform: translateX(-40px) translateY(-30px) scale(1.06); }
}

@keyframes floatLiquid6 {
  0% { transform: translateY(0px) scale(1); }
  100% { transform: translateY(-30px) scale(1.05) translateX(30px); }
}

/* ==========================================================================
   Liquid Glass Intro Animation (Flower Spin & Bloom)
   ========================================================================== */
.flower-intro-container {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(224, 242, 254, 0.95) 0%, rgba(240, 249, 255, 0.98) 100%);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.65s ease;
  visibility: visible;
  opacity: 1;
}

.flower-intro-container.flower-intro-done {
  opacity: 0;
  visibility: hidden;
}

.flower-center-hub {
  position: relative;
  width: 260px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: introFlowerSpin 1.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.flower-petal {
  position: absolute;
  width: 140px;
  height: 220px;
  border-radius: 70px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.85) 0%, rgba(186, 230, 253, 0.45) 60%, rgba(59, 130, 246, 0.3) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 15px 35px rgba(2, 132, 199, 0.2), inset 0 0 20px rgba(255, 255, 255, 0.95);
  transform-origin: center bottom;
  bottom: 50%;
  left: calc(50% - 70px);
  animation: introPetalSpread 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.petal-1 { --rot: 0deg; transform: rotate(0deg) scale(0.6); animation-delay: 0.05s; }
.petal-2 { --rot: 60deg; transform: rotate(60deg) scale(0.6); animation-delay: 0.1s; }
.petal-3 { --rot: 120deg; transform: rotate(120deg) scale(0.6); animation-delay: 0.15s; }
.petal-4 { --rot: 180deg; transform: rotate(180deg) scale(0.6); animation-delay: 0.2s; }
.petal-5 { --rot: 240deg; transform: rotate(240deg) scale(0.6); animation-delay: 0.25s; }
.petal-6 { --rot: 300deg; transform: rotate(300deg) scale(0.6); animation-delay: 0.3s; }

.flower-core {
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  box-shadow: 0 0 30px rgba(2, 132, 199, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  animation: introCorePulse 1.2s ease-in-out infinite alternate;
}

.flower-core svg {
  width: 38px;
  height: 38px;
}

@keyframes introFlowerSpin {
  0% {
    transform: rotate(0deg) scale(0.4);
    opacity: 0;
  }
  30% {
    transform: rotate(180deg) scale(1.05);
    opacity: 1;
  }
  70% {
    transform: rotate(360deg) scale(1);
    opacity: 1;
  }
  100% {
    transform: rotate(540deg) scale(1.8);
    opacity: 0;
  }
}

@keyframes introPetalSpread {
  0% {
    transform: rotate(0deg) scale(0.2);
    opacity: 0;
  }
  50% {
    transform: rotate(var(--rot)) scale(1.05);
    opacity: 0.95;
  }
  100% {
    transform: rotate(var(--rot)) translateY(-60px) scale(1.4);
    opacity: 0;
  }
}

@keyframes introCorePulse {
  0% { transform: scale(0.9); box-shadow: 0 0 20px rgba(2, 132, 199, 0.4); }
  100% { transform: scale(1.1); box-shadow: 0 0 45px rgba(37, 99, 235, 0.8); }
}

/* Initial state for background shapes when expanding after bloom */
body.flower-intro-running .bg-shape {
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

body.flower-intro-bloomed .bg-shape {
  opacity: 1;
  transform: scale(1);
}

/* ==========================================================================
   Smooth Scroll Reveal System (Upside Down / Glide-in)
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(36px) scale(0.97);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.from-upside-down {
  transform: translateY(-40px) scale(0.97);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Glass Card System */
.glass-card {
  background: var(--glass-l2-bg);
  backdrop-filter: var(--glass-l2-blur);
  -webkit-backdrop-filter: var(--glass-l2-blur);
  border: 1px solid var(--glass-l2-border);
  box-shadow: var(--glass-l2-shadow);
  border-radius: var(--radius-lg);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, background 0.3s ease;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
}

.glass-card:hover::before {
  left: 100%;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 25px 55px -12px rgba(2, 132, 199, 0.22), inset 0 1px 2px rgba(255, 255, 255, 1);
  transform: translateY(-4px);
}

/* Typography & Badges */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: rgba(2, 132, 199, 0.1);
  color: var(--primary);
  border: 1px solid rgba(2, 132, 199, 0.25);
  backdrop-filter: blur(8px);
}

.badge-success {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.3);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  border-color: rgba(245, 158, 11, 0.3);
}

/* Glass Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #ffffff !important;
  box-shadow: 0 6px 20px -4px rgba(2, 132, 199, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0369a1 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -4px rgba(2, 132, 199, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--glass-l1-border);
  color: var(--text-dark) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.06), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--primary);
  color: var(--primary) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.15);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: var(--text-dark) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04), inset 0 1px 1.5px rgba(255, 255, 255, 0.9);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.75);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.95);
}

.btn-sm {
  padding: 7px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
  font-weight: 700;
}

/* Rich Buttons with Title and Subtitle Description */
.btn-with-desc {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  text-align: left;
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: normal;
}

.btn-with-desc .btn-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-with-desc .btn-text-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.btn-with-desc .btn-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.btn-with-desc .btn-desc {
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0.85;
  line-height: 1.3;
}

/* Glass Inputs & Form System */
input, select, textarea {
  font-family: var(--font-family);
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-dark);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.25s ease;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03), 0 4px 12px rgba(2, 132, 199, 0.03);
}

input:focus, select:focus, textarea:focus {
  background: rgba(255, 255, 255, 0.88);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2), inset 0 1px 2px rgba(255, 255, 255, 1);
}

input::placeholder, textarea::placeholder {
  color: var(--text-light);
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

/* Glass Floating Navbar Header */
.navbar {
  position: sticky;
  top: 16px;
  margin: 16px auto 0;
  width: calc(100% - 48px);
  max-width: 1200px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px;
  background: var(--glass-l1-bg);
  backdrop-filter: var(--glass-l1-blur);
  -webkit-backdrop-filter: var(--glass-l1-blur);
  border: 1px solid var(--glass-l1-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-l1-shadow);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 40px rgba(2, 132, 199, 0.16), inset 0 1px 2px rgba(255, 255, 255, 1);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-dark);
  text-decoration: none;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.logo-mark-svg {
  width: 34px;
  height: 34px;
  display: inline-block;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

/* Mobile Nav Toggle with Smooth Morphing Hamburger to 'X' */
.mobile-nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 5px;
  padding: 0;
  transition: all 0.25s ease;
}

.mobile-nav-toggle:active {
  transform: scale(0.92);
}

.mobile-nav-toggle span {
  display: block;
  width: 20px;
  height: 2.2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}

.mobile-nav-toggle.active {
  background: rgba(2, 132, 199, 0.12);
  border-color: rgba(2, 132, 199, 0.3);
}

.mobile-nav-toggle.active span:nth-child(1) {
  transform: translateY(7.2px) rotate(45deg);
  background: var(--primary);
}

.mobile-nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-nav-toggle.active span:nth-child(3) {
  transform: translateY(-7.2px) rotate(-45deg);
  background: var(--primary);
}

/* Glass Toast Notifications System */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  background: var(--glass-l3-bg);
  backdrop-filter: var(--glass-l3-blur);
  -webkit-backdrop-filter: var(--glass-l3-blur);
  border: 1px solid var(--glass-l3-border);
  border-radius: var(--radius-md);
  box-shadow: var(--glass-l3-shadow);
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.9rem;
  min-width: 300px;
  animation: slideInRight 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-success { border-left: 4px solid var(--accent-emerald); }
.toast-error { border-left: 4px solid var(--accent-rose); }
.toast-info { border-left: 4px solid var(--primary); }

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast.fade-out {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.toast-close {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Glass Footer */
.footer {
  margin-top: 80px;
  padding: 60px 0 30px;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-l1-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.footer-col a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* SVG Icon Helper Styles */
.svg-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
  vertical-align: middle;
}
.svg-icon-lg {
  width: 28px;
  height: 28px;
}
.svg-icon-xl {
  width: 36px;
  height: 36px;
}

/* ==========================================================================
   Liquid Glass Flower Intro Animation (V2 — Enhanced)
   ========================================================================== */

/* While intro is running, lock viewport */
body.flower-intro-running {
  overflow: hidden;
}

/* Background shapes remain in their exact home positions, invisible until bloomed */
body.flower-intro-running .bg-shape {
  opacity: 0 !important;
  visibility: hidden !important;
  transition: none !important;
}

body.flower-intro-running > *:not(.flower-intro-container):not(.bg-shape) {
  opacity: 0;
}

/* When intro finishes blooming, the background shapes fade in right in place */
body.flower-intro-bloomed .bg-shape {
  opacity: 1 !important;
  visibility: visible !important;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body.flower-intro-bloomed > *:not(.flower-intro-container) {
  opacity: 1;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Intro overlay container */
.flower-intro-container {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: flex;
  flex-direction: column; 
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, #5b73a4 0%, #745eff 100%);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  will-change: opacity;
  contain: strict;
}

.flower-intro-container.flower-intro-done {
  opacity: 0;
  pointer-events: none;
}

/* Animated Glow Rings — optimized GPU layer */
.flower-glow-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.flower-glow-ring.ring-1 {
  width: 320px;
  height: 320px;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 35px rgba(255, 255, 255, 0.15);
  animation: ringExpand 2.8s 0.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.flower-glow-ring.ring-2 {
  width: 520px;
  height: 520px;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 50px rgba(125, 211, 252, 0.12);
  animation: ringExpand 2.9s 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.flower-glow-ring.ring-3 {
  width: 760px;
  height: 760px;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 70px rgba(147, 197, 253, 0.1);
  animation: ringExpand 3s 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes ringExpand {
  0%   { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  40%  { opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.35; }
}

/* Hub that holds the spinning flower cluster */
.flower-center-hub {
  position: relative;
  width: 280px;
  height: 280px;
  z-index: 100001;
  will-change: transform, opacity;
  backface-visibility: hidden;
  animation: hubSpinSpread 2.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Each petal blooms outward in a vibrant glass fan */
.flower-petal {
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 26px;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  will-change: transform, opacity;
  backface-visibility: hidden;
  animation: petalBloomSpread 2.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Petals spread outward toward the page quadrants matching the 6 bg-shapes */
.petal-1 {
  animation-delay: 0.05s;
  --spread-x: 180px;   --spread-y: -180px;  --petal-rot: 45deg;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.7) 0%, rgba(186, 230, 253, 0.45) 100%);
  box-shadow: inset 0 2px 5px rgba(255,255,255,0.7), 0 10px 25px rgba(2, 132, 199, 0.25);
}
.petal-2 {
  animation-delay: 0.10s;
  --spread-x: -180px;  --spread-y: 160px;   --petal-rot: -35deg;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.7) 0%, rgba(191, 219, 254, 0.45) 100%);
  box-shadow: inset 0 2px 5px rgba(255,255,255,0.7), 0 10px 25px rgba(99, 102, 241, 0.25);
}
.petal-3 {
  animation-delay: 0.15s;
  --spread-x: -200px;  --spread-y: -60px;   --petal-rot: 18deg;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.7) 0%, rgba(224, 242, 254, 0.45) 100%);
  box-shadow: inset 0 2px 5px rgba(255,255,255,0.7), 0 10px 25px rgba(56, 189, 248, 0.25);
}
.petal-4 {
  animation-delay: 0.20s;
  --spread-x: 200px;   --spread-y: 120px;   --petal-rot: -25deg;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.7) 0%, rgba(147, 197, 253, 0.45) 100%);
  box-shadow: inset 0 2px 5px rgba(255,255,255,0.7), 0 10px 25px rgba(124, 58, 237, 0.25);
}
.petal-5 {
  animation-delay: 0.25s;
  --spread-x: -30px;   --spread-y: -220px;  --petal-rot: 0deg;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.7) 0%, rgba(186, 230, 253, 0.45) 100%);
  box-shadow: inset 0 2px 5px rgba(255,255,255,0.7), 0 10px 25px rgba(2, 132, 199, 0.25);
}
.petal-6 {
  animation-delay: 0.30s;
  --spread-x: 50px;    --spread-y: 220px;   --petal-rot: 15deg;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.7) 0%, rgba(191, 219, 254, 0.45) 100%);
  box-shadow: inset 0 2px 5px rgba(255,255,255,0.7), 0 10px 25px rgba(99, 102, 241, 0.25);
}
.petal-7 {
  animation-delay: 0.35s;
  --spread-x: -240px;  --spread-y: -180px;  --petal-rot: 270deg;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.7) 0%, rgba(224, 242, 254, 0.45) 100%);
  box-shadow: inset 0 2px 5px rgba(255,255,255,0.7), 0 10px 25px rgba(56, 189, 248, 0.25);
}
.petal-8 {
  animation-delay: 0.40s;
  --spread-x: 240px;   --spread-y: -160px;  --petal-rot: 315deg;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.7) 0%, rgba(147, 197, 253, 0.45) 100%);
  box-shadow: inset 0 2px 5px rgba(255,255,255,0.7), 0 10px 25px rgba(124, 58, 237, 0.25);
}

@keyframes petalBloomSpread {
  0% {
    transform: translate(-50%, -50%) scale(0) rotate(0deg);
    opacity: 0;
  }
  30% {
    transform: translate(calc(-50% + (var(--spread-x) * 0.35)), calc(-50% + (var(--spread-y) * 0.35))) scale(0.9) rotate(var(--petal-rot));
    opacity: 0.95;
  }
  60% {
    transform: translate(calc(-50% + (var(--spread-x) * 0.8)), calc(-50% + (var(--spread-y) * 0.8))) scale(1.1) rotate(var(--petal-rot));
    opacity: 1;
  }
  100% {
    transform: translate(calc(-50% + (var(--spread-x) * 1.8)), calc(-50% + (var(--spread-y) * 1.8))) scale(1.5) rotate(calc(var(--petal-rot) + 20deg));
    opacity: 0;
  }
}

@keyframes hubSpinSpread {
  0% {
    transform: rotate(0deg) scale(0.5);
  }
  50% {
    transform: rotate(200deg) scale(1.05);
  }
  100% {
    transform: rotate(380deg) scale(1.35);
    opacity: 0;
  }
}

/* Core logo in center of flower */
.flower-core {
  position: absolute;
  width: 62px;
  height: 62px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #7c3aed 100%);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 25px rgba(255, 255, 255, 0.4),
    0 6px 20px rgba(2, 132, 199, 0.4);
  animation: corePulseSpread 2.8s cubic-bezier(0.25, 1, 0.35, 1) forwards;
  opacity: 0;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.flower-core svg {
  width: 34px;
  height: 34px;
}

@keyframes corePulseSpread {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0); }
  30%  { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
  70%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.35); }
}

/* Brand text below the flower */
.flower-brand-text {
  z-index: 100001;
  margin-top: 36px;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  opacity: 0;
  animation: brandFadeSpread 2.8s 0.2s cubic-bezier(0.25, 1, 0.35, 1) forwards;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.flower-brand-accent {
  background: linear-gradient(135deg, #e0f2fe, #bae6fd, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes brandFadeSpread {
  0%   { opacity: 0; transform: translateY(16px) scale(0.95); }
  30%  { opacity: 1; transform: translateY(0) scale(1); }
  70%  { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-12px) scale(1.05); }
}

/* ==========================================================================
   Scroll Reveal Animation System
   ========================================================================== */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .flower-intro-container {
    display: none !important;
  }

  body.flower-intro-running > * {
    opacity: 1 !important;
  }

  body.flower-intro-running .bg-shape {
    opacity: 1 !important;
    transform: scale(1) !important;
  }
}