/*
  Global styles for Eduan de Jager portfolio
  - Clean typography (Segoe UI)
  - Gradients, shadows, hover animations
  - Responsive helpers
*/

:root {
  /* Enhanced Brand palette with more vibrant colors */
  --brand-1: #0B1220;
  --brand-2: #0F1B2E;
  --brand-3: #0077b5; /* primary start */
  --brand-4: #00aaff; /* primary end / accent */
  --brand-5: #B8D9F2;
  --brand-6: #4ADE80; /* success green */
  --brand-7: #F59E0B; /* warning amber */
  --brand-8: #EF4444; /* danger red */

  /* Derived tokens with enhanced colors */
  --primary-start: var(--brand-3);
  --primary-end: var(--brand-4);
  --connect-start: #0A0F1A;
  --connect-mid: var(--brand-2);
  --connect-end: #101828;
  --surface: #0B111B;
  --surface-2: #0F1726;
  --surface-3: #1E293B; /* new surface layer */
  --text: #F5F7FA;
  --muted: #DCEAF7;
  --border: rgba(0, 170, 255, 0.18);
  --border-light: rgba(0, 170, 255, 0.08);
  --glow: rgba(0, 170, 255, 0.3);

  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 24px rgba(0, 0, 0, 0.28);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 20px rgba(0, 170, 255, 0.2);
  --nav-link: #DCE7FB;
  --nav-link-active: #FFFFFF;
  --nav-hover: rgba(0, 119, 181, 0.22);
}

html, body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--surface);
  color: var(--text);
}

/* Native smooth scrolling for in-page anchors */
html { scroll-behavior: smooth; }

/* Subtle background pattern */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(1200px 600px at 10% -10%, rgba(46, 90, 172, 0.12), transparent 60%),
              radial-gradient(1000px 500px at 110% 10%, rgba(21, 34, 59, 0.22), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

.bg-hero-gradient { background: linear-gradient(135deg, var(--brand-2), var(--primary-end)); }

/* Hero section sizing and accents */
.hero-section {
  position: relative;
  padding-top: 6rem;
  padding-bottom: 6rem;
  min-height: 72vh;
  overflow: hidden;
}

.hero-section .hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(600px 300px at 15% 20%, rgba(0,170,255,0.18), transparent 60%),
              radial-gradient(800px 400px at 85% 10%, rgba(0,119,181,0.22), transparent 65%);
  filter: blur(0.5px);
}

.hero-section .profile-img {
  width: 180px;
  height: 180px;
}

/* Fix for gradient text clipping in hero section */
.hero-section h1 {
  line-height: 1.1;
  padding-bottom: 4px;
  margin-bottom: 0.5rem;
}

@media (max-width: 576px) {
  .hero-section { min-height: 60vh; padding-top: 4rem; padding-bottom: 4rem; }
  .hero-section .profile-img { width: 140px; height: 140px; }
}

.bg-gradient-primary { background: linear-gradient(135deg, var(--surface-2), var(--brand-2)); }

.bg-connect-gradient { background: linear-gradient(135deg, var(--connect-start), var(--connect-mid), var(--connect-end)); }

/* Light surface (neutral background option for sections/cards if needed) */
.bg-surface-light { background: #0E1524; }

.content-wrapper {
  min-height: 60vh;
}

/* Enhanced Navbar styling */
.navbar {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(15, 23, 46, 0.85);
  border-bottom: 1px solid rgba(0, 170, 255, 0.1);
  transition: all 0.3s ease;
}

.navbar .navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  transition: transform 0.3s ease;
}

.navbar .navbar-brand:hover {
  transform: scale(1.02);
}

.navbar .nav-link {
  color: var(--nav-link);
  font-weight: 500;
  border-radius: 50px;
  padding: 10px 20px;
  margin: 0 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.navbar .nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 170, 255, 0.1), transparent);
  transition: left 0.5s;
}

.navbar .nav-link:hover::before {
  left: 100%;
}

.navbar .nav-link:hover {
  color: var(--nav-link-active);
  background: rgba(0, 170, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 170, 255, 0.2);
}

.navbar .nav-link.active {
  color: var(--nav-link-active);
  background: linear-gradient(135deg, rgba(0, 119, 181, 0.3), rgba(0, 170, 255, 0.2));
  box-shadow: 0 4px 12px rgba(0, 170, 255, 0.3);
}

.navbar .navbar-toggler {
  border: 1px solid rgba(0, 170, 255, 0.3);
  border-radius: 8px;
  padding: 8px 12px;
  transition: all 0.3s ease;
}

.navbar .navbar-toggler:hover {
  background: rgba(0, 170, 255, 0.1);
  border-color: rgba(0, 170, 255, 0.5);
}

.navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 170, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Navbar scroll effects */
.navbar.scrolled {
  background: rgba(15, 23, 46, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Improve contrast of muted/secondary text on dark surfaces */
.text-muted { color: var(--muted) !important; }
small, .small { color: var(--muted) !important; }

.profile-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 250ms ease, box-shadow 250ms ease, filter 250ms ease;
  box-shadow: var(--shadow-md);
  border: 3px solid rgba(122, 184, 255, 0.25);
}

.profile-img:hover {
  transform: translateY(-4px) scale(1.02);
  filter: brightness(1.05) saturate(1.05);
  box-shadow: var(--shadow-lg);
}

.lift {
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
}

/* Project cards */
.project-card {
  background-color: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  height: 100%;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
  backdrop-filter: saturate(120%) blur(4px);
  -webkit-backdrop-filter: saturate(120%) blur(4px);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(122, 184, 255, 0.28);
  box-shadow: 0 16px 32px rgba(0,0,0,0.35);
}

.project-card h5 { color: var(--text); }

.project-card p { color: var(--muted); }

.project-link { text-decoration: none; color: var(--brand-4); }
.project-link:hover { color: var(--primary-end); }

/* Connect button */
.btn-connect {
  background: linear-gradient(135deg, var(--brand-3), var(--primary-end));
  border: none;
  color: #fff;
  padding: 12px 28px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(122, 184, 255, 0.28);
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.btn-connect:hover {
  transform: translateY(-4px);
  filter: brightness(1.05);
  box-shadow: 0 16px 36px rgba(46, 90, 172, 0.45);
}

.signature {
  font-family: 'Segoe Script', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 2rem;
}

/* Skills/Contact badges */
.bg-skill { background: linear-gradient(135deg, var(--brand-3), var(--primary-end)); color: #0b1220; }

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-card { background-color: var(--surface-2); border: 1px solid var(--border); box-shadow: 0 8px 18px rgba(0,0,0,0.25); }

/* Timeline */
.timeline {
  position: relative;
  margin-left: 12px;
  padding-left: 22px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(255,255,255,0.25), rgba(255,255,255,0.05));
}

.timeline-item { position: relative; margin-bottom: 22px; }
.timeline-dot {
  position: absolute;
  left: -6px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
  box-shadow: 0 0 0 3px rgba(255,255,255,0.06);
}

.timeline-content { padding-left: 18px; }

/* Footer */
.footer { background: var(--surface-2); border-top: 1px solid var(--border); }

/* Utilities */
.py-md-6 {
  padding-top: 6rem !important;
  padding-bottom: 6rem !important;
}

@media (max-width: 576px) {
  .profile-img { width: 110px; height: 110px; }
  .signature { font-size: 1.6rem; }
}

/* Gradient text utility */
.text-gradient {
  background: linear-gradient(135deg, var(--brand-3), var(--primary-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 8s ease-in-out infinite alternate;
  line-height: 1.2;
  padding-bottom: 2px;
  display: inline-block;
}

/* Project link labels */
.project-link-label {
  background: linear-gradient(135deg, var(--brand-3), var(--primary-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 8s ease-in-out infinite alternate;
  text-decoration: none !important;
  transition: all 0.3s ease;
  position: relative;
}

.project-link-label::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--brand-3), var(--primary-end));
  transition: width 0.3s ease;
}

.project-link-label:hover::after {
  width: 100%;
}

.project-link-label:hover {
  transform: translateY(-2px);
  text-shadow: 0 0 10px rgba(0, 170, 255, 0.5);
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* Reveal: progressive enhancement — content is always visible; when JS adds .show, animate in */
.reveal {
  opacity: 1;
  transform: none;
}
.js .reveal.show {
  animation: fadeInUp 520ms ease both;
  animation-delay: var(--reveal-delay, 0ms);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

/* Code preview styling */
.code-preview {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text);
  max-height: 220px;
  overflow-y: auto;
  white-space: pre-wrap;
}

.code-preview::-webkit-scrollbar {
  width: 6px;
}

.code-preview::-webkit-scrollbar-track {
  background: var(--surface-2);
  border-radius: 3px;
}

.code-preview::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.code-preview::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 170, 255, 0.3);
}

/* Enhanced Media Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.gallery-item {
  grid-column: span 4;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  background: var(--surface-2);
}

.gallery-item:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(0, 170, 255, 0.4);
  box-shadow: 0 20px 40px rgba(0, 170, 255, 0.2);
}

.gallery-item.hovered {
  transform: translateY(-4px);
  border-color: rgba(0, 170, 255, 0.3);
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Media placeholders for non-image content */
.media-placeholder {
  width: 100%;
  height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
  border: 2px dashed rgba(0, 170, 255, 0.2);
  transition: all 0.3s ease;
}

.gallery-item:hover .media-placeholder {
  border-color: rgba(0, 170, 255, 0.4);
  background: linear-gradient(135deg, var(--surface-3), var(--surface-2));
}

.media-icon-large {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.gallery-item:hover .media-icon-large {
  opacity: 1;
  transform: scale(1.1);
}

.media-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  text-align: center;
}

.media-type {
  font-size: 0.9rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* Media overlay */
.media-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 170, 255, 0.1), rgba(0, 119, 181, 0.05));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.gallery-item:hover .media-overlay {
  opacity: 1;
}

.media-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.media-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(15, 23, 46, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(0, 170, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Lightbox styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  margin: 5vh auto;
  background: var(--surface-2);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: rgba(15, 23, 46, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 170, 255, 0.3);
  border-radius: 50%;
  color: var(--text);
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.lightbox-close:hover {
  background: rgba(0, 170, 255, 0.2);
  border-color: rgba(0, 170, 255, 0.6);
  transform: scale(1.1);
}

.lightbox-media {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  max-height: 60vh;
  overflow: auto;
  background: var(--surface);
}

.lightbox-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-media video,
.lightbox-media audio {
  max-width: 100%;
  border-radius: 8px;
}

.text-content {
  padding: 20px;
  background: var(--surface-2);
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  white-space: pre-wrap;
  max-width: 100%;
  overflow-x: auto;
  color: var(--text);
}

.text-content pre {
  margin: 0;
  background: var(--surface-3);
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow-x: auto;
}

.text-content code {
  font-size: 0.9rem;
  line-height: 1.5;
}

.lightbox-info {
  padding: 20px;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
}

.lightbox-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px 0;
  background: linear-gradient(135deg, var(--brand-4), var(--brand-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lightbox-description {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .gallery-item { grid-column: span 6; }
  .lightbox-content {
    max-width: 95vw;
    margin: 2.5vh auto;
  }
}

@media (max-width: 576px) {
  .gallery-item { grid-column: span 12; }
  .lightbox-content {
    max-width: 98vw;
    margin: 1vh auto;
  }
  .lightbox-media {
    min-height: 200px;
    max-height: 50vh;
  }
  .media-placeholder {
    height: 180px;
  }
  .media-icon-large {
    font-size: 2.5rem;
  }
  .media-title {
    font-size: 1rem;
  }
}

/* Slider */
.slider {
  position: relative;
}

.slider-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(260px, 32vw, 360px);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  /* Hide scrollbar */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.slider-track::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

.slider-card {
  scroll-snap-align: start;
}

.slider .nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(15, 23, 46, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(0, 170, 255, 0.3);
  border-radius: 50%;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 22px;
  font-weight: bold;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  opacity: 0.8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.slider .nav-btn:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
  color: var(--primary-end);
  border-color: rgba(0, 170, 255, 0.6);
  box-shadow: 0 6px 20px rgba(0, 170, 255, 0.3);
}

.slider .nav-btn:active {
  transform: translateY(-50%) scale(0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.slider .nav-btn.prev { left: -30px; }
.slider .nav-btn.next { right: -30px; }

/* Better spacing for mobile */
@media (max-width: 768px) {
  .slider .nav-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .slider .nav-btn.prev { left: -25px; }
  .slider .nav-btn.next { right: -25px; }
}

/* Enhanced Audio player */
.audio-player {
  background: rgba(15, 23, 46, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.audio-player::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 170, 255, 0.05), transparent);
  transition: left 0.6s;
}

.audio-player:hover::before {
  left: 100%;
}

.audio-player:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 170, 255, 0.2);
  border-color: rgba(0, 170, 255, 0.3);
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.audio-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: linear-gradient(135deg, var(--brand-3), var(--primary-end));
  color: #fff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 170, 255, 0.3);
}

.audio-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.audio-btn:hover::before {
  opacity: 1;
}

.audio-btn:hover {
  transform: translateY(-3px) scale(1.08);
  filter: brightness(1.1);
  box-shadow: 0 8px 20px rgba(0, 170, 255, 0.4);
  border-color: rgba(0, 170, 255, 0.5);
}

.audio-btn:active {
  transform: translateY(-1px) scale(1.02);
}

/* Enhanced Waveform Styling */
.waveform {
  background: linear-gradient(180deg, rgba(0, 170, 255, 0.1), rgba(0, 119, 181, 0.05));
  border-radius: 8px;
  border: 1px solid rgba(0, 170, 255, 0.2);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.waveform::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg,
    rgba(0, 170, 255, 0.1) 0%,
    rgba(0, 170, 255, 0.2) 50%,
    rgba(0, 170, 255, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.audio-player:hover .waveform::before {
  opacity: 1;
}

.waveform:hover {
  border-color: rgba(0, 170, 255, 0.4);
  box-shadow: inset 0 0 20px rgba(0, 170, 255, 0.1);
}

/* Progress bar styling */
.audio-player input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: linear-gradient(90deg, var(--brand-3), var(--primary-end));
  border-radius: 3px;
  outline: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.audio-player input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-4), var(--brand-3));
  border: 2px solid rgba(255, 255, 255, 0.9);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 170, 255, 0.3);
  transition: all 0.3s ease;
}

.audio-player input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(0, 170, 255, 0.5);
}

.audio-player input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-4), var(--brand-3));
  border: 2px solid rgba(255, 255, 255, 0.9);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 170, 255, 0.3);
  transition: all 0.3s ease;
}

.audio-player input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(0, 170, 255, 0.5);
}

.audio-time {
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  min-width: 45px;
  text-align: center;
  background: rgba(0, 170, 255, 0.1);
  padding: 4px 8px;
  border-radius: 12px;
  border: 1px solid rgba(0, 170, 255, 0.2);
}

/* Track title styling */
.audio-player h5 {
  color: var(--text);
  font-weight: 600;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--brand-4), var(--brand-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  z-index: 2;
}

/* QR */
.qr-box canvas { background: #fff; }

/* Skills dropdown arrow animation */
.skills-toggle .bi-chevron-down {
  transition: transform 0.3s ease;
  transform: translateY(-50%);
}

.skills-toggle[aria-expanded="true"] .bi-chevron-down {
  transform: translateY(-50%) rotate(180deg);
}

/* Loading screen styles */
#loading-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: #1f2241;
  flex-direction: column;
  color: white;
  font-family: system-ui, sans-serif;
}

/* Spinner wrapper with float/pulse */
.spinner-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floatPulse 3s ease-in-out infinite;
}

@keyframes floatPulse {
  0% {
    transform: translateY(0) scale(1);
  }

  25% {
    transform: translateY(-6px) scale(1.05);
  }

  50% {
    transform: translateY(0) scale(1.1);
  }

  75% {
    transform: translateY(6px) scale(1.05);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

/* Spinner ring (spinning) */
.spinner-ring {
  width: 100px;
  height: 100px;
  border: 8px solid rgba(255, 255, 255, 0.2);
  border-top: 8px solid #f8f9fa;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: absolute;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Static icon in center */
.spinner-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

/* Fade-out effect */
#loading-screen.fade-out {
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

/* Enhanced visual effects and animations */
.glass-effect {
  background: rgba(15, 23, 46, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 170, 255, 0.1);
}

.glow-effect {
  box-shadow: 0 0 30px rgba(0, 170, 255, 0.3);
}

.pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  from {
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.2);
  }
  to {
    box-shadow: 0 0 40px rgba(0, 170, 255, 0.4);
  }
}

.float-animation {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.bounce-in {
  animation: bounceIn 0.8s ease-out;
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

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

/* Enhanced button effects */
.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-glow:hover::before {
  left: 100%;
}

.btn-shine {
  background: linear-gradient(135deg, var(--brand-3), var(--primary-end));
  position: relative;
  overflow: hidden;
}

.btn-shine::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s;
}

.btn-shine:hover::after {
  left: 100%;
}

/* Enhanced card hover effects */
.card-hover-lift {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover-lift:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 170, 255, 0.15);
}

/* Typing animation for text */
.typing-effect {
  border-right: 2px solid var(--brand-4);
  animation: blink 1s infinite;
  white-space: nowrap;
  overflow: hidden;
}

@keyframes blink {
  0%, 50% { border-color: var(--brand-4); }
  51%, 100% { border-color: transparent; }
}

/* Particle effect background */
.particles-bg {
  position: relative;
  overflow: hidden;
}

.particles-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(0, 170, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 119, 181, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(46, 90, 172, 0.05) 0%, transparent 50%);
  animation: particleFloat 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes particleFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.5;
  }
  33% {
    transform: translateY(-20px) rotate(120deg);
    opacity: 0.8;
  }
  66% {
    transform: translateY(10px) rotate(240deg);
    opacity: 0.6;
  }
}

/* Enhanced gradient backgrounds */
.gradient-bg-animated {
  background: linear-gradient(-45deg, var(--brand-2), var(--brand-3), var(--primary-end), var(--brand-1));
  background-size: 400% 400%;
  animation: gradientFlow 15s ease infinite;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Magnetic hover effect */
.magnetic {
  transition: transform 0.3s ease;
}

.magnetic:hover {
  transform: scale(1.05);
}

/* Staggered animation for lists */
.stagger-item {
  opacity: 0;
  animation: staggerFadeIn 0.6s ease forwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes staggerFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced focus states */
.focus-glow:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 170, 255, 0.3);
}

/* Smooth morphing shapes */
.morph-shape {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.morph-shape:hover {
  border-radius: 50%;
  transform: rotate(5deg) scale(1.1);
}

/* Enhanced loading states */
.loading-shimmer {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Share feedback animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
}

/* Share icon hover effect */
.share-icon-container {
  cursor: pointer;
  display: inline-block;
  animation: shareFloat 4s ease-in-out infinite;
}

.share-icon-container:hover {
  animation: sharePulse 2s ease-in-out infinite;
}

.share-icon {
  transition: all 0.3s ease;
  text-shadow: 0 0 5px rgba(23, 162, 184, 0.3);
  animation: shareGlow 3s ease-in-out infinite alternate;
}

.share-icon-container:hover .share-icon {
  filter: brightness(1.3) drop-shadow(0 0 15px rgba(23, 162, 184, 0.8));
  text-shadow: 0 0 20px rgba(23, 162, 184, 1), 0 0 40px rgba(23, 162, 184, 0.6);
  transform: scale(1.2);
}

/* Share icon animations */
@keyframes shareFloat {
  0%, 100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.05);
  }
}

@keyframes sharePulse {
  0%, 100% {
    transform: translateY(-8px) scale(1.05);
  }
  25% {
    transform: translateY(-12px) scale(1.1);
  }
  50% {
    transform: translateY(-8px) scale(1.15);
  }
  75% {
    transform: translateY(-4px) scale(1.1);
  }
}

@keyframes shareGlow {
  0% {
    text-shadow: 0 0 5px rgba(23, 162, 184, 0.3);
  }
  100% {
    text-shadow: 0 0 10px rgba(23, 162, 184, 0.5), 0 0 20px rgba(23, 162, 184, 0.3);
  }
}

/* Share tooltip/popup */
.share-tooltip {
  position: absolute;
  background: rgba(23, 162, 184, 0.95);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  z-index: 1000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(23, 162, 184, 0.3);
  box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
  opacity: 0;
  transform: translateY(10px) scale(0.9);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.share-tooltip.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.share-tooltip::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(23, 162, 184, 0.95);
}

/* Periodic tooltip animation */
@keyframes tooltipPulse {
  0%, 100% {
    opacity: 0;
    transform: translate(-50%, 10px) scale(0.9);
  }
  10%, 90% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

.share-tooltip.periodic {
  animation: tooltipPulse 4s ease-in-out infinite;
}
