/* Custom styles for portfolio - cosmic theme effects */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-dark: #0e091d;
  --bg-card: rgba(30, 26, 49, 0.8);
  --accent-purple: #7E48F8;
  --accent-pink: #e052c9;
  --accent-magenta: #8950f5;
  --text-primary: #ffffff;
  --text-secondary: #e2e8f0;
  --text-muted: #94a3b8;
  --border-glow: rgba(126, 72, 248, 0.4);
}

body {
  font-family: 'Inter', sans-serif;
}

/* Scroll offset for fixed nav */
html { scroll-padding-top: 80px; }

/* Ensure content appears above background overlay */
.starfield-bg > section,
.starfield-bg > footer,
.starfield-bg .project-detail {
  position: relative;
  z-index: 1;
}

/* Smooth theme transition - apply to elements that change */
html {
  transition: background-color 0.6s ease;
}

/* Smooth theme transition - key elements */
.starfield-bg,
.card-glow,
.btn-gradient,
.navbar,
.gradient-text,
.navbar a,
.starfield-bg a,
.starfield-bg h1,
.starfield-bg h2,
.starfield-bg h3,
.starfield-bg p,
.starfield-bg span,
.starfield-bg input,
.starfield-bg textarea,
.starfield-bg footer {
  transition: background 0.6s ease, background-color 0.6s ease, color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease, opacity 0.6s ease;
}

/* Starfield background - animated space theme */
.starfield-bg {
  background: linear-gradient(to bottom, #020617 0%, #1e1b4b 50%, #020617 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: background 0.8s ease;
}

[data-theme="light"] .starfield-bg {
  background: linear-gradient(to bottom, #87CEEB 0%, #B0E0E6 30%, #E0F7FA 60%, #FFF8E7 100%);
}

/* Light mode overlay - smooth crossfade when switching themes */
.light-mode-bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease;
  background: linear-gradient(to bottom, #87CEEB 0%, #B0E0E6 30%, #E0F7FA 60%, #FFF8E7 100%);
}

.light-mode-bg-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    /* Sun with glow */
    radial-gradient(circle 100px at 88% 12%, rgba(255, 255, 200, 0.9) 0%, rgba(255, 220, 100, 0.6) 30%, rgba(255, 200, 50, 0.2) 50%, transparent 70%),
    radial-gradient(circle 60px at 88% 12%, #FFE066 0%, #FFD54F 50%, transparent 70%),
    /* Fluffy clouds - layer 1 */
    radial-gradient(ellipse 120px 50px at 10% 25%, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.7) 40%, transparent 70%),
    radial-gradient(ellipse 80px 40px at 18% 22%, rgba(255,255,255,0.9) 0%, transparent 65%),
    radial-gradient(ellipse 90px 45px at 25% 28%, rgba(255,255,255,0.9) 0%, transparent 65%),
    /* Fluffy clouds - layer 2 */
    radial-gradient(ellipse 100px 45px at 60% 15%, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.6) 50%, transparent 70%),
    radial-gradient(ellipse 70px 35px at 68% 12%, rgba(255,255,255,0.85) 0%, transparent 65%),
    radial-gradient(ellipse 85px 40px at 75% 18%, rgba(255,255,255,0.85) 0%, transparent 65%),
    /* Fluffy clouds - layer 3 */
    radial-gradient(ellipse 110px 55px at 30% 70%, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.6) 45%, transparent 70%),
    radial-gradient(ellipse 75px 38px at 38% 68%, rgba(255,255,255,0.85) 0%, transparent 65%),
    radial-gradient(ellipse 95px 48px at 45% 72%, rgba(255,255,255,0.85) 0%, transparent 65%),
    /* Fluffy clouds - layer 4 */
    radial-gradient(ellipse 90px 42px at 75% 65%, rgba(255,255,255,0.88) 0%, rgba(255,255,255,0.5) 50%, transparent 70%),
    radial-gradient(ellipse 65px 32px at 82% 62%, rgba(255,255,255,0.8) 0%, transparent 65%),
    radial-gradient(ellipse 80px 40px at 88% 68%, rgba(255,255,255,0.8) 0%, transparent 65%);
  background-size: 150% 100%;
  background-position: 0 0;
  animation: clouds-drift 80s linear infinite;
}

.light-mode-bg-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 200px 80px at 5% 40%, rgba(255,255,255,0.7) 0%, transparent 60%),
    radial-gradient(ellipse 180px 70px at 95% 55%, rgba(255,255,255,0.6) 0%, transparent 55%),
    radial-gradient(ellipse 220px 90px at 50% 85%, rgba(255,255,255,0.5) 0%, transparent 50%),
    radial-gradient(ellipse 150px 60px at 20% 90%, rgba(255,255,255,0.4) 0%, transparent 55%),
    radial-gradient(ellipse 160px 65px at 85% 25%, rgba(255,255,255,0.5) 0%, transparent 50%);
  background-size: 120% 100%;
  animation: clouds-drift-slow 100s linear infinite reverse;
}

/* Show overlay in light mode - smooth fade in */
[data-theme="light"] .light-mode-bg-overlay {
  opacity: 1;
}

@keyframes clouds-drift {
  0% { background-position: 0 0; }
  100% { background-position: 1000px 0; }
}

@keyframes clouds-drift-slow {
  0% { background-position: 0 0; }
  100% { background-position: -600px 0; }
}

/* Animated twinkling stars layer */
.starfield-bg::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.3s ease;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.9), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.7), transparent),
    radial-gradient(2px 2px at 50px 160px, rgba(255,255,255,0.8), transparent),
    radial-gradient(2px 2px at 90px 40px, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 60px 120px, rgba(255,255,255,0.8), transparent),
    radial-gradient(2px 2px at 150px 50px, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 200px 180px, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 250px 90px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 300px 200px, rgba(255,255,255,0.7), transparent);
  background-size: 350px 350px;
  pointer-events: none;
  z-index: 0;
  animation: stars-twinkle 4s ease-in-out infinite;
}

/* Nebula clouds - soft animated blobs */
.starfield-bg::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse 600px 600px at 80% 20%, rgba(147, 51, 234, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 500px 500px at 20% 80%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 400px 400px at 50% 50%, rgba(219, 39, 119, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  animation: nebula-pulse 15s ease-in-out infinite;
}

@keyframes stars-twinkle {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes nebula-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* Hide shooting stars in light mode - they don't fit sunny sky */
[data-theme="light"] .space-bg-layers .shooting-star,
[data-theme="light"] .space-bg-layers .shooting-stars {
  opacity: 0;
  pointer-events: none;
}

/* Light mode - index page content */
[data-theme="light"] .starfield-bg {
  color: #0f172a;
}

[data-theme="light"] .starfield-bg .text-gray-400,
[data-theme="light"] .starfield-bg [class*="text-gray"] {
  color: #334155 !important;
}

[data-theme="light"] .starfield-bg .text-white {
  color: #0f172a !important;
}

[data-theme="light"] .card-glow {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: 0 4px 24px rgba(30, 64, 175, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .card-glow:hover {
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 8px 32px rgba(30, 64, 175, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Light mode - skill tags and tech badges in skills section */
[data-theme="light"] #skills .card-glow span.rounded-lg {
  background: rgba(241, 245, 249, 0.95) !important;
  border-color: rgba(148, 163, 184, 0.35) !important;
  color: #1e293b !important;
}

/* Light mode - borders on secondary elements */
[data-theme="light"] .starfield-bg .border-white\/10 {
  border-color: rgba(148, 163, 184, 0.25) !important;
}

/* Secondary button - Get In Touch, nav links */
[data-theme="light"] .starfield-bg .border-white\/30 {
  border-color: rgba(59, 130, 246, 0.4) !important;
}

[data-theme="light"] .starfield-bg .border-white\/30:hover,
[data-theme="light"] .starfield-bg .hover\:border-white\/60:hover {
  border-color: rgba(59, 130, 246, 0.6) !important;
}


/* Project card tags - light mode */
[data-theme="light"] .starfield-bg .bg-\[\#7E48F8\] {
  background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
  color: white !important;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

/* Experience timeline - light mode */
[data-theme="light"] .starfield-bg .text-purple-300,
[data-theme="light"] .starfield-bg .text-purple-400 {
  color: #2563eb !important;
}

[data-theme="light"] .starfield-bg .bg-\[\#7E48F8\]\/30 {
  background: rgba(59, 130, 246, 0.15) !important;
}

[data-theme="light"] .starfield-bg .text-gray-500 {
  color: #64748b !important;
}

/* Contact form inputs - light mode */
[data-theme="light"] .starfield-bg input,
[data-theme="light"] .starfield-bg textarea {
  background: rgba(248, 250, 252, 0.95) !important;
  border-color: rgba(148, 163, 184, 0.3) !important;
  color: #1e293b !important;
}

[data-theme="light"] .starfield-bg input::placeholder,
[data-theme="light"] .starfield-bg textarea::placeholder {
  color: #94a3b8 !important;
}

[data-theme="light"] .starfield-bg input:focus,
[data-theme="light"] .starfield-bg textarea:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Footer - light mode */
[data-theme="light"] .starfield-bg footer,
[data-theme="light"] footer {
  border-color: rgba(148, 163, 184, 0.2) !important;
}

[data-theme="light"] .starfield-bg footer a,
[data-theme="light"] footer a {
  color: #2563eb !important;
}

[data-theme="light"] .starfield-bg footer a:hover,
[data-theme="light"] footer a:hover {
  color: #1d4ed8 !important;
}

/* Light Switch - Pull string to toggle dark/light mode */
.theme-toggle {
  margin-left: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.theme-toggle-label {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  transition: color 0.2s;
}

.theme-toggle:hover .theme-toggle-label {
  color: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .theme-toggle-label {
  color: rgba(15, 23, 42, 0.5);
}

[data-theme="light"] .theme-toggle:hover .theme-toggle-label {
  color: rgba(15, 23, 42, 0.8);
}

.light-switch-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  transition: transform 0.2s ease;
}

.light-switch-btn:hover {
  transform: scale(1.05);
}

.light-switch-btn .pull-string.pulling {
  animation: pull-cord 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes pull-cord {
  0% { transform: translateY(0) scaleY(1); }
  25% { transform: translateY(14px) scaleY(1.1); }
  50% { transform: translateY(18px) scaleY(0.95); }
  75% { transform: translateY(8px) scaleY(1.02); }
  100% { transform: translateY(0) scaleY(1); }
}

.light-switch-lamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Ceiling mount */
.light-switch-lamp::before {
  content: '';
  width: 20px;
  height: 4px;
  background: linear-gradient(90deg, #64748b, #94a3b8);
  border-radius: 2px;
  margin-bottom: -2px;
}

/* Light bulb - dim when dark (off), bright when light (on) */
.light-bulb {
  width: 22px;
  height: 28px;
  background: linear-gradient(180deg, #78716c 0%, #57534e 40%, #44403c 100%);
  border-radius: 50% 50% 45% 45%;
  box-shadow: 
    inset -2px -4px 8px rgba(255,255,255,0.1),
    inset 1px 1px 4px rgba(0,0,0,0.3);
  position: relative;
  transition: all 0.4s ease;
}

[data-theme="light"] .light-bulb {
  background: linear-gradient(180deg, #fef3c7 0%, #fde68a 40%, #fcd34d 100%);
  box-shadow: 
    inset -3px -5px 10px rgba(255,255,255,0.8),
    inset 2px 2px 6px rgba(251,191,36,0.5),
    0 0 25px rgba(255,235,59,0.8),
    0 0 40px rgba(255,235,59,0.4);
}

/* Cord */
.lamp-cord {
  width: 2px;
  height: 24px;
  background: linear-gradient(180deg, #64748b, #475569);
  margin: -2px 0 0;
}

/* Pull string with ring */
.pull-string {
  position: relative;
  width: 2px;
  height: 20px;
  background: linear-gradient(180deg, #475569, #334155);
  margin: -2px 0 0;
  display: flex;
  justify-content: center;
  transition: transform 0.2s;
}

.pull-ring {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7E48F8, #e879f9);
  border: 2px solid rgba(255,255,255,0.3);
  box-shadow: 0 2px 8px rgba(126, 72, 248, 0.4);
}

.light-switch-btn:hover .pull-ring {
  box-shadow: 0 0 15px rgba(232, 121, 249, 0.6);
}

.light-switch-btn:hover .pull-string:not(.pulling) .pull-ring {
  animation: ring-pulse 1.5s ease-in-out infinite;
}

@keyframes ring-pulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.08); }
}

[data-theme="light"] .pull-ring {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

/* Navbar - light mode glass/blur to fit sunny background */
[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.4) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

/* Experience timeline dot border - matches background */
.timeline-dot {
  border-color: #0e091d;
}
[data-theme="light"] .timeline-dot {
  border-color: #f8fafc;
}

[data-theme="light"] .gradient-text {
  background: linear-gradient(90deg, #1e40af, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .btn-gradient {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

[data-theme="light"] .btn-gradient:hover {
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
}

[data-theme="light"] .circle-showcase {
  border-color: rgba(30, 64, 175, 0.4);
}

/* Shooting stars */
.space-bg-layers {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.shooting-star {
  position: absolute;
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0.95), transparent);
  border-radius: 2px;
  top: 15%;
  left: 0;
  transform: rotate(-40deg);
  transform-origin: left center;
  animation: shooting-star-fall 2.5s ease-out infinite;
  animation-delay: 0s;
}

.shooting-star-2 {
  top: 35%;
  animation-delay: 3.5s;
}

.shooting-star-3 {
  top: 55%;
  animation-delay: 7s;
}

@keyframes shooting-star-fall {
  0% { transform: rotate(-40deg) translateX(-200px); opacity: 0; }
  8% { opacity: 1; }
  85% { opacity: 0.8; }
  100% { transform: rotate(-40deg) translateX(150vw); opacity: 0; }
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(90deg, #e052c9, #8950f5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-pink-purple {
  background: linear-gradient(90deg, #e052c9, #8950f5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Gradient button */
.btn-gradient {
  background: linear-gradient(90deg, #e052c9, #8950f5);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(224, 82, 201, 0.4);
}

/* Card glow border */
.card-glow {
  border: 1px solid rgba(126, 72, 248, 0.2);
  background: rgba(30, 26, 49, 0.6);
  backdrop-filter: blur(10px);
}

.card-glow:hover {
  border-color: rgba(126, 72, 248, 0.5);
  box-shadow: 0 0 30px rgba(126, 72, 248, 0.15);
}

/* Progress bar gradients */
.progress-figma { background: linear-gradient(90deg, #e052c9, #8950f5); }
.progress-adobe { background: linear-gradient(90deg, #ff6b35, #f7931e); }
.progress-canva { background: linear-gradient(90deg, #00d4aa, #7c3aed); }
.progress-html { background: linear-gradient(90deg, #e34c26, #f06529); }
.progress-js { background: linear-gradient(90deg, #f7df1e, #f0db4f); }
.progress-c { background: linear-gradient(90deg, #5b21b6, #7c3aed); }
.progress-sql { background: linear-gradient(90deg, #00d4aa, #3b82f6); }
.progress-db { background: linear-gradient(90deg, #8950f5, #e052c9); }

/* Circular showcase border */
.circle-showcase {
  border: 3px solid transparent;
  background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
              linear-gradient(135deg, #e052c9, #8950f5, #3b82f6) border-box;
  border-radius: 50%;
  overflow: visible;
}

/* Hero profile circle - picture fills the circle, no text */
.hero-profile-circle {
  position: relative;
  width: 320px;
  height: 320px;
}

@media (min-width: 768px) {
  .hero-profile-circle {
    width: 384px;
    height: 384px;
  }
}

.hero-profile-photo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid transparent;
  background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
              linear-gradient(135deg, #e052c9, #8950f5, #3b82f6) border-box;
}

.hero-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero Solar System - orbits around profile picture (outside the circle) */
.hero-solar-system {
  position: absolute;
  inset: -160px;
  pointer-events: none;
}

.hero-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(135, 206, 235, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.hero-orbit-1 { width: 340px; height: 340px; animation: hero-orbit 4s linear infinite; }
.hero-orbit-2 { width: 400px; height: 400px; animation: hero-orbit 5s linear infinite; animation-delay: -0.5s; }
.hero-orbit-3 { width: 460px; height: 460px; animation: hero-orbit 6s linear infinite; animation-delay: -1s; }
.hero-orbit-4 { width: 520px; height: 520px; animation: hero-orbit 7s linear infinite; animation-delay: -1.5s; }
.hero-orbit-5 { width: 580px; height: 580px; animation: hero-orbit 9s linear infinite; animation-delay: -2s; }
.hero-orbit-6 { width: 640px; height: 640px; animation: hero-orbit 11s linear infinite; animation-delay: -2.5s; }

.hero-planet {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 4px currentColor;
}

.hero-planet-mercury { background: #8B4513; }
.hero-planet-venus { background: #FFA500; }
.hero-planet-earth { background: #4169E1; }
.hero-planet-mars { background: #DC143C; }
.hero-planet-jupiter { background: #DAA520; }
.hero-planet-saturn { background: #F4A460; }

@keyframes hero-orbit {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

[data-theme="light"] .hero-orbit {
  border-color: rgba(30, 64, 175, 0.2);
}

/* Scroll indicator animation */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

.animate-bounce-slow {
  animation: bounce 2s ease-in-out infinite;
}

/* Hero intro - catchy typography */
.hero-intro {
  font-family: 'Outfit', 'Inter', sans-serif;
}

.hero-name {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.03em;
  line-height: 1;
  font-size: 3.5rem;
  font-weight: 800;
}

@media (min-width: 768px) {
  .hero-name { font-size: 5.5rem; }
}

@media (min-width: 1024px) {
  .hero-name { font-size: 7.5rem; }
}

.hero-name .hero-greeting {
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #94a3b8;
  font-size: 0.4em;
  vertical-align: baseline;
}

[data-theme="light"] .hero-name .hero-greeting {
  color: #64748b;
}

.hero-typing-wrapper {
  display: flex;
  align-items: center;
  gap: 2px;
}

.hero-typing {
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.02em;
}

.typing-cursor {
  display: inline-block;
  color: var(--accent-purple);
  font-weight: 300;
  animation: typing-blink 0.8s step-end infinite;
}

@keyframes typing-blink {
  50% { opacity: 0; }
}

.hero-social-icons .hero-icon {
  color: var(--text-muted);
}

.hero-social-icons .hero-icon:hover {
  color: var(--text-primary);
}

[data-theme="light"] .hero-social-icons .hero-icon {
  color: #64748b;
}

[data-theme="light"] .hero-social-icons .hero-icon:hover {
  color: #0f172a;
}

[data-theme="light"] .typing-cursor {
  color: #2563eb;
}

/* Back to Top button - icon, beautiful circular design */
#backToTop.back-to-top-btn,
.back-to-top-btn#backToTop {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 52px;
  height: 52px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 26, 49, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(126, 72, 248, 0.4);
  border-radius: 50%;
  color: #e2e8f0;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(126, 72, 248, 0.2);
}

#backToTop.back-to-top-btn.visible,
.back-to-top-btn#backToTop.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

#backToTop.back-to-top-btn:hover,
.back-to-top-btn#backToTop:hover {
  background: linear-gradient(135deg, rgba(126, 72, 248, 0.9), rgba(224, 82, 201, 0.9));
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 30px rgba(126, 72, 248, 0.4), 0 0 40px rgba(126, 72, 248, 0.2);
}

#backToTop.back-to-top-btn:active,
.back-to-top-btn#backToTop:active {
  transform: translateY(-2px) scale(1.02);
}

/* Light mode */
[data-theme="light"] #backToTop.back-to-top-btn,
[data-theme="light"] .back-to-top-btn#backToTop {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(59, 130, 246, 0.4);
  color: #1e293b;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] #backToTop.back-to-top-btn:hover,
[data-theme="light"] .back-to-top-btn#backToTop:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.35);
}

/* Audio Player Widget - matches dashboard design */
.audio-player-widget {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 999;
  width: 340px;
  background: linear-gradient(180deg, #2d1b4e 0%, #1a1b2e 50%, #0f0f1a 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(126, 72, 248, 0.25);
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03);
  padding: 18px;
  transition: all 0.3s ease;
}

.audio-player-widget.collapsed {
  transform: translateY(calc(100% + 40px));
  opacity: 0;
  pointer-events: none;
}

.audio-player-toggle {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 998;
  width: 48px;
  height: 48px;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(30, 26, 49, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(126, 72, 248, 0.4);
  border-radius: 12px;
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.audio-player-toggle:hover {
  background: rgba(126, 72, 248, 0.3);
  color: white;
  transform: scale(1.05);
}

.audio-player-toggle svg {
  width: 22px;
  height: 22px;
}

.audio-player-toggle.visible {
  display: flex;
}

[data-theme="light"] .audio-player-toggle {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(59, 130, 246, 0.4);
  color: #1e293b;
}

.audio-player-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.audio-player-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.audio-album-art {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e879f9 0%, #7E48F8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 15px rgba(126, 72, 248, 0.4);
}

.audio-album-art svg {
  width: 24px;
  height: 24px;
}

.audio-track-info {
  flex: 1;
  min-width: 0;
}

.audio-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audio-artist {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
}

.audio-header-actions {
  display: flex;
  gap: 4px;
}

.audio-icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.2s;
}

.audio-icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.audio-icon-btn svg {
  width: 18px;
  height: 18px;
}

.audio-progress-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.audio-progress-wrap {
  position: relative;
  height: 6px;
}

.audio-progress-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  transform: translateY(-50%);
  overflow: hidden;
}

.audio-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #e879f9, #c084fc);
  border-radius: 2px;
  transition: width 0.05s linear;
}

.audio-progress {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  width: 100%;
  height: 16px;
  margin: -8px 0 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.audio-progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e879f9;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(232, 121, 249, 0.7);
  transition: transform 0.2s;
}

.audio-progress::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.audio-progress::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e879f9;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 10px rgba(232, 121, 249, 0.7);
}

.audio-time {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Volume control */
.audio-volume-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.audio-volume-slider {
  width: 70px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  cursor: pointer;
}

.audio-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.audio-volume-slider::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  border: none;
}

.audio-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding-top: 4px;
}

.audio-play-btn {
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e879f9 0%, #7E48F8 100%);
  border: 2px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 24px rgba(126, 72, 248, 0.6), 0 0 40px rgba(232, 121, 249, 0.25);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.audio-play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 32px rgba(126, 72, 248, 0.7), 0 0 50px rgba(232, 121, 249, 0.35);
}

.audio-play-btn .play-icon,
.audio-play-btn .pause-icon {
  width: 24px;
  height: 24px;
  color: white;
  fill: white;
}

.audio-play-btn .play-icon {
  margin-left: 4px;
  display: block;
}

.audio-play-btn .pause-icon {
  display: none;
}

.audio-play-btn.playing .play-icon {
  display: none;
}

.audio-play-btn.playing .pause-icon {
  display: block;
  margin-left: 0;
}

/* Audio player - light mode */
[data-theme="light"] .audio-player-widget {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.98) 100%);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .audio-title {
  color: #0f172a;
}

[data-theme="light"] .audio-artist {
  color: #64748b;
}

[data-theme="light"] .audio-icon-btn {
  color: #475569;
}

[data-theme="light"] .audio-icon-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #0f172a;
}

[data-theme="light"] .audio-progress-track {
  background: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .audio-progress-fill {
  background: linear-gradient(90deg, #7E48F8, #a78bfa);
}

[data-theme="light"] .audio-progress::-webkit-slider-thumb {
  background: #7E48F8;
}

[data-theme="light"] .audio-progress::-moz-range-thumb {
  background: #7E48F8;
}

[data-theme="light"] .audio-volume-slider {
  background: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .audio-volume-slider::-webkit-slider-thumb {
  background: #475569;
}

[data-theme="light"] .audio-volume-slider::-moz-range-thumb {
  background: #475569;
}

[data-theme="light"] .audio-time {
  color: #64748b;
}

[data-theme="light"] .audio-play-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #7E48F8 100%);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

/* Footer - minimalist style */
.footer-minimal .footer-accent {
  color: #e879f9;
}

[data-theme="light"] .footer-minimal .footer-accent {
  color: #c026d3;
}

/* Gallery tab styles */
.tab-content { display: none; }
.tab-content.active { display: block; }
.sub-tab-content { display: none; }
.sub-tab-content.active { display: block; }
.gallery-tab-content { display: none; }
.gallery-tab-content.active { display: block; }
.gallery-sub-content { display: none; }
.gallery-sub-content.active { display: block; }
