
:root {
  --bg-primary: #1f1e1e;
  --bg-secondary: #12121a;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-glass: rgba(255, 255, 255, 0.05);
  
  --text-primary: #f0f0f0;
  --text-secondary: #a0a0b0;
  --text-muted: #606070;
  
  --accent-1: #6c5ce7;
  --accent-2: #00cec9;
  --accent-3: #fd79a8;
  --accent-4: #fdcb6e;
  --accent-5: #e17055;
  --accent-gradient: linear-gradient(135deg, #6c5ce7, #00cec9);
  --accent-gradient-2: linear-gradient(135deg, #fd79a8, #e17055);
  --accent-gradient-3: linear-gradient(135deg, #fdcb6e, #e17055);
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(108, 92, 231, 0.3);
  --shadow-glow-2: 0 0 20px rgba(0, 206, 201, 0.3);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 50px;
  
  --font-main: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  --nav-height: 70px;
  
  --glitch-blue: #00d4ff;
  --glitch-pink: #ff00aa;
  --glitch-green: #00ff88;
}

/* =============================================
   LIGHT THEME
   ============================================= */
[data-theme="light"] {
  --bg-primary: #f5f5f7;
  --bg-secondary: #e8e8ed;
  --bg-card: rgba(0, 0, 0, 0.03);
  --bg-glass: rgba(255, 255, 255, 0.7);
  
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a5a;
  --text-muted: #8a8a9a;
  
  --border-color: rgba(0, 0, 0, 0.1);
  --border-hover: rgba(0, 0, 0, 0.2);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
  
  --shadow-glow: 0 0 20px rgba(108, 92, 231, 0.2);
  --shadow-glow-2: 0 0 20px rgba(0, 206, 201, 0.2);
}

[data-theme="light"] .navbar {
  background: rgba(245, 245, 247, 0.85);
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(245, 245, 247, 0.95);
}

[data-theme="light"] .footer {
  background: rgba(245, 245, 247, 0.85);
}

[data-theme="light"] .cursor-glow {
  background: radial-gradient(circle, rgba(108, 92, 231, 0.08), transparent 70%);
}

[data-theme="light"] .note-box {
  background: rgba(108, 92, 231, 0.08);
  border-color: rgba(108, 92, 231, 0.2);
}

[data-theme="light"] .bg-overlay {
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(108, 92, 231, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 206, 201, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(253, 121, 168, 0.03) 0%, transparent 50%);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

a {
  color: var(--accent-1);
  text-decoration: none;
  transition: var(--transition-normal);
}

a:hover {
  color: var(--accent-2);
}

img {
  max-width: 100%;
  display: block;
}

.background-effects {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(108, 92, 231, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 206, 201, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(253, 121, 168, 0.05) 0%, transparent 50%);
}

.particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: particleFloat linear infinite;
  opacity: 0.3;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.4;
  }
  90% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(-100vh) rotate(720deg);
    opacity: 0;
  }
}

.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.glass-strong {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-2 {
  background: var(--accent-gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-3 {
  background: var(--accent-gradient-3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow {
  box-shadow: var(--shadow-glow);
}

.glow-2 {
  box-shadow: var(--shadow-glow-2);
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.95);
  box-shadow: var(--shadow-md);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 1px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.navbar-logo::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

.navbar-logo:hover::after {
  transform: scaleX(1);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.navbar-links a {
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-normal);
  position: relative;
}

.navbar-links a::before {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
  transition: transform var(--transition-normal);
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.navbar-links a:hover::before,
.navbar-links a.active::before {
  transform: translateX(-50%) scaleX(1);
}

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-normal);
  transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 60px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  animation: heroFadeIn 1s ease forwards;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 30px;
  line-height: 1.7;
  animation: heroFadeIn 1s ease 0.2s forwards;
  opacity: 0;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  animation: heroFadeIn 1s ease 0.4s forwards;
  opacity: 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(108, 92, 231, 0.5);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  color: var(--text-primary);
}

.btn-glow {
  background: var(--accent-gradient-2);
  color: white;
  box-shadow: 0 0 20px rgba(253, 121, 168, 0.3);
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(253, 121, 168, 0.5);
  color: white;
}

/* --- Section Styling --- */
.section {
  position: relative;
  z-index: 2;
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 30px 0;
}

.tech-tag {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: default;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}


.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.05);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-1);
  transition: var(--transition-normal);
}

.card-link:hover {
  color: var(--accent-2);
  gap: 10px;
}

/* --- Quick Links Section --- */
.quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 30px 0;
}

.quick-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-normal);
}

.quick-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.note-box {
  background: rgba(108, 92, 231, 0.1);
  border: 1px solid rgba(108, 92, 231, 0.2);
  border-left: 4px solid var(--accent-1);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 30px auto;
  max-width: 600px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer {
  position: relative;
  z-index: 2;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  padding: 40px 24px 20px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-col {
  flex: 1;
  min-width: 200px;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-col p,
.footer-col a {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
  transition: var(--transition-normal);
}

.footer-col a:hover {
  color: var(--accent-1);
  transform: translateX(4px);
}

.footer-bottom {
  max-width: 1200px;
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition-normal);
  color: var(--text-muted);
}

.social-link:hover {
  background: var(--accent-gradient);
  border-color: transparent;
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-scale.visible {
  opacity: 1;
  transform: scale(1);
}

.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.10s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.20s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.30s; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.35s; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.40s; }
.stagger-children.visible > *:nth-child(9) { transition-delay: 0.45s; }
.stagger-children.visible > *:nth-child(10) { transition-delay: 0.50s; }
.stagger-children.visible > *:nth-child(11) { transition-delay: 0.55s; }
.stagger-children.visible > *:nth-child(12) { transition-delay: 0.60s; }
.stagger-children.visible > *:nth-child(13) { transition-delay: 0.65s; }
.stagger-children.visible > *:nth-child(14) { transition-delay: 0.70s; }
.stagger-children.visible > *:nth-child(15) { transition-delay: 0.75s; }
.stagger-children.visible > *:nth-child(16) { transition-delay: 0.80s; }
.stagger-children.visible > *:nth-child(17) { transition-delay: 0.85s; }
.stagger-children.visible > *:nth-child(18) { transition-delay: 0.90s; }
.stagger-children.visible > *:nth-child(19) { transition-delay: 0.95s; }
.stagger-children.visible > *:nth-child(20) { transition-delay: 1.00s; }
.stagger-children.visible > *:nth-child(21) { transition-delay: 1.05s; }
.stagger-children.visible > *:nth-child(22) { transition-delay: 1.10s; }
.stagger-children.visible > *:nth-child(23) { transition-delay: 1.15s; }
.stagger-children.visible > *:nth-child(24) { transition-delay: 1.20s; }
.stagger-children.visible > *:nth-child(25) { transition-delay: 1.25s; }

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.06), transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
}

@media (max-width: 768px) {
  .navbar-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 80px 24px 24px;
    gap: 8px;
    transition: right var(--transition-normal);
    border-left: 1px solid var(--border-color);
  }

  .navbar-links.open {
    right: 0;
  }

  .navbar-links a {
    font-size: 1.05rem;
    padding: 12px 16px;
    width: 100%;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding: 80px 16px 40px;
  }

  .section {
    padding: 50px 16px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.85rem;
  }

  .tech-tag {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
}

/* =============================================
   THEME TOGGLE BUTTON
   ============================================= */
.theme-toggle {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition-normal);
  color: var(--text-secondary);
  margin-left: 8px;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
  color: var(--text-primary);
  transform: rotate(15deg);
}

[data-theme="light"] .theme-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: var(--border-hover);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* =============================================
   LIVE CLOCK & GREETING
   ============================================= */
.navbar-greeting {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-right: 8px;
  white-space: nowrap;
}

.live-clock {
  font-family: var(--font-mono);
  color: var(--accent-2);
  font-weight: 600;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .navbar-greeting {
    display: none;
  }
}

/* =============================================
   BACK TO TOP BUTTON
   ============================================= */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-gradient);
  border: none;
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  transition: var(--transition-normal);
  box-shadow: var(--shadow-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 30px rgba(108, 92, 231, 0.5);
}

.back-to-top-progress {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  pointer-events: none;
}

.back-to-top svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.back-to-top circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.3);
  stroke-width: 3;
  cx: 24;
  cy: 24;
  r: 21;
  stroke-dasharray: 131.95;
  stroke-dashoffset: 131.95;
  transition: stroke-dashoffset 0.1s ease;
}

/* =============================================
   READING PROGRESS BAR
   ============================================= */
.progress-bar {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  height: 3px;
  background: var(--accent-gradient);
  z-index: 999;
  width: 0%;
  transition: width 0.1s ease;
  border-radius: 0 3px 3px 0;
}

/* =============================================
   TOAST NOTIFICATION SYSTEM
   ============================================= */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: white;
  opacity: 0;
  transform: translateX(100%) scale(0.9);
  transition: all 0.3s ease;
  pointer-events: auto;
  max-width: 320px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

.toast.show {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.toast-info {
  background: rgba(108, 92, 231, 0.9);
  border: 1px solid rgba(108, 92, 231, 0.3);
}

.toast-success {
  background: rgba(0, 206, 201, 0.9);
  border: 1px solid rgba(0, 206, 201, 0.3);
}

.toast-error {
  background: rgba(253, 121, 168, 0.9);
  border: 1px solid rgba(253, 121, 168, 0.3);
}

.toast-warning {
  background: rgba(253, 203, 110, 0.9);
  border: 1px solid rgba(253, 203, 110, 0.3);
  color: #1a1a2e;
}

/* =============================================
   KEYBOARD SHORTCUTS MODAL
   ============================================= */
.shortcuts-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.shortcuts-modal-content {
  padding: 32px;
  max-width: 400px;
  width: 90%;
  position: relative;
  animation: scaleIn 0.2s ease;
}

.shortcuts-modal-content h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.shortcuts-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition-normal);
}

.shortcuts-close:hover {
  color: var(--text-primary);
}

.shortcuts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shortcut-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.shortcut-item kbd {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-primary);
  min-width: 32px;
  text-align: center;
}

[data-theme="light"] .shortcut-item kbd {
  background: rgba(0, 0, 0, 0.05);
  border-color: var(--border-color);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* =============================================
   ABOUT SECTION
   ============================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.about-bio p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.about-bio .highlight {
  color: var(--accent-1);
  font-weight: 600;
}

.skills-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.skill-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

[data-theme="light"] .skill-bar {
  background: rgba(0, 0, 0, 0.06);
}

.skill-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--accent-gradient);
  width: 0%;
  transition: width 1s ease;
}

.skills-container.visible .skill-fill {
  width: var(--skill-width);
}

.skill-fill.purple { background: var(--accent-gradient); }
.skill-fill.teal { background: linear-gradient(135deg, #00cec9, #00b894); }
.skill-fill.pink { background: var(--accent-gradient-2); }
.skill-fill.yellow { background: var(--accent-gradient-3); }
.skill-fill.orange { background: linear-gradient(135deg, #e17055, #fdcb6e); }

.github-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 30px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.github-stat {
  text-align: center;
}

.github-stat .stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.github-stat .stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .github-stats {
    grid-template-columns: repeat(3, 1fr);
    padding: 16px;
  }
}

/* =============================================
   QUOTE OF THE DAY
   ============================================= */
.quote-box {
  text-align: center;
  padding: 30px;
  margin: 30px auto;
  max-width: 650px;
  border-left: 3px solid var(--accent-1);
}

.quote-box blockquote {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.6;
}

.quote-box blockquote strong {
  color: var(--accent-2);
  font-style: normal;
}

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact-section {
  padding: 40px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition-normal);
  text-decoration: none;
}

.contact-item:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  transform: translateX(4px);
}

.contact-item .icon {
  font-size: 1.3rem;
  width: 32px;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-normal);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.contact-form textarea {
  min-height: 100px;
  resize: vertical;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   TYPEWRITER CURSOR
   ============================================= */
.typewriter::after {
  content: '|';
  animation: blink 0.8s step-end infinite;
  color: var(--accent-1);
  margin-left: 2px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* =============================================
   PAGE TRANSITIONS
   ============================================= */
body.page-transitioning {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* =============================================
   FOOTER CONTACT LINK
   ============================================= */
.footer-contact {
  margin-top: 16px;
}

/* =============================================
   COMMAND PALETTE
   ============================================= */
.command-palette-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  padding-top: 15vh;
  animation: fadeIn 0.15s ease;
}

.command-palette {
  width: min(600px, 90vw);
  max-height: 400px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: scaleIn 0.15s ease;
}

.command-palette-input {
  width: 100%;
  padding: 18px 20px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-family: var(--font-main);
  outline: none;
  border-bottom: 1px solid var(--border-color);
}

.command-palette-input::placeholder {
  color: var(--text-muted);
}

.command-palette-results {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.command-palette-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition-fast);
  text-decoration: none;
}

.command-palette-item:hover,
.command-palette-item.active {
  background: rgba(108, 92, 231, 0.12);
  color: var(--text-primary);
}

.command-palette-item .cp-icon {
  font-size: 1.2rem;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.command-palette-item .cp-shortcut {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  padding: 2px 8px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

.cp-empty {
  padding: 30px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* =============================================
   POMODORO TIMER WIDGET
   ============================================= */
.pomodoro-toggle {
  position: fixed;
  bottom: 90px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-gradient-2);
  border: none;
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 998;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  transition: var(--transition-normal);
  box-shadow: 0 0 20px rgba(253, 121, 168, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.pomodoro-toggle.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.pomodoro-toggle:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 30px rgba(253, 121, 168, 0.5);
}

.pomodoro-widget {
  position: fixed;
  bottom: 150px;
  right: 30px;
  z-index: 997;
  width: 260px;
  padding: 20px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: none;
  animation: scaleIn 0.2s ease;
}

.pomodoro-widget.open {
  display: block;
}

.pomodoro-widget .pomo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.pomodoro-widget .pomo-header h4 {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.pomodoro-widget .pomo-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
  transition: var(--transition-normal);
}

.pomodoro-widget .pomo-close:hover {
  color: var(--text-primary);
}

.pomodoro-widget .pomo-display {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--font-mono);
  background: var(--accent-gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 8px 0;
  letter-spacing: 3px;
}

.pomodoro-widget .pomo-mode {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.pomodoro-widget .pomo-controls {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.pomodoro-widget .pomo-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--bg-glass);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  font-family: var(--font-main);
}

.pomodoro-widget .pomo-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.pomodoro-widget .pomo-btn.primary {
  background: var(--accent-gradient-2);
  border-color: transparent;
  color: white;
}

.pomodoro-widget .pomo-btn.primary:hover {
  box-shadow: 0 0 20px rgba(253, 121, 168, 0.4);
}

/* =============================================
   LIGHT THEME OVERRIDES — Command palette, pomodoro, weather, and sound
   components inherit theme colors from [data-theme="light"] CSS variables.
   Only overrides needed for hardcoded colors are kept below.
   ============================================= */
[data-theme="light"] .shortcut-item kbd {
  background: rgba(0, 0, 0, 0.05);
  border-color: var(--border-color);
}

[data-theme="light"] .sound-btn.active {
  color: #1a1a2e;
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-1);
  font-size: 0.85rem;
}

.footer-contact a:hover {
  color: var(--accent-2);
  gap: 10px;
}

/* =============================================
   BUILD STATUS BAR (Navbar)
   ============================================= */
.build-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(108, 92, 231, 0.12);
  border: 1px solid rgba(108, 92, 231, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--accent-1);
  margin-right: 8px;
  white-space: nowrap;
  animation: buildPulse 2s ease-in-out infinite;
}

.build-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  animation: dotBlink 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

.build-text {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes dotBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

@keyframes buildPulse {
  0%, 100% { border-color: rgba(108, 92, 231, 0.2); }
  50% { border-color: rgba(0, 206, 201, 0.3); }
}

[data-theme="light"] .build-status {
  background: rgba(108, 92, 231, 0.08);
  border-color: rgba(108, 92, 231, 0.15);
}

@media (max-width: 900px) {
  .build-status {
    display: none;
  }
}

/* =============================================
   STATS DASHBOARD
   ============================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.stat-card {
  text-align: center;
  padding: 24px 16px;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  font-family: var(--font-mono);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.stats-grid.visible .stat-number {
  animation: countReveal 0.6s ease forwards;
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .stat-card {
    padding: 16px 12px;
  }
  .stat-number {
    font-size: 1.8rem;
  }
}

/* =============================================
   AMBIENT SOUND PLAYER
   ============================================= */
.sound-toggle {
  position: fixed;
  bottom: 150px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-gradient-3);
  border: none;
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 998;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  transition: var(--transition-normal);
  box-shadow: 0 0 20px rgba(253, 203, 110, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.sound-toggle.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.sound-toggle:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 30px rgba(253, 203, 110, 0.5);
}

.sound-widget {
  position: fixed;
  bottom: 210px;
  right: 30px;
  z-index: 997;
  width: 260px;
  padding: 20px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: none;
  animation: scaleIn 0.2s ease;
}

.sound-widget.open {
  display: block;
}

.sound-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.sound-header h4 {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.sound-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
  transition: var(--transition-normal);
}

.sound-close:hover {
  color: var(--text-primary);
}

.sound-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.sound-btn {
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-glass);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  font-family: var(--font-main);
  text-align: center;
}

.sound-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.sound-btn.active {
  background: var(--accent-gradient-3);
  border-color: transparent;
  color: #1a1a2e;
  box-shadow: 0 0 15px rgba(253, 203, 110, 0.3);
}

.sound-volume {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.sound-volume label {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.sound-volume input[type="range"] {
  flex: 1;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border-color);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.sound-volume input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-4);
  border: 2px solid var(--bg-primary);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.sound-status {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 6px;
  background: var(--bg-glass);
  border-radius: var(--radius-sm);
}

[data-theme="light"] .sound-btn.active {
  color: #1a1a2e;
}

@media (max-width: 768px) {
  .sound-widget {
    right: 16px;
    width: 220px;
    bottom: 200px;
  }
  .sound-toggle {
    right: 16px;
    bottom: 140px;
  }
}

/* =============================================
   PRODUCTIVITY TOOLS SECTION
   ============================================= */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.tool-card {
  padding: 24px;
  transition: var(--transition-normal);
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.tool-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

/* Weather widget */
.weather-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px;
  text-align: center;
}

.weather-icon {
  font-size: 2.5rem;
}

.weather-temp {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-mono);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.weather-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.weather-loc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* To-Do List */
.todo-widget {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.todo-input-row {
  display: flex;
  gap: 8px;
}

.todo-input-row input {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-normal);
}

.todo-input-row input:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.todo-input-row .btn {
  padding: 10px 16px;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.todo-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}

.todo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: var(--transition-normal);
}

.todo-item:hover {
  border-color: var(--border-hover);
}

.todo-item.done .todo-text {
  text-decoration: line-through;
  color: var(--text-muted);
}

.todo-check {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-1);
  cursor: pointer;
  flex-shrink: 0;
}

.todo-text {
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-primary);
  word-break: break-word;
}

.todo-del {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 4px;
  transition: var(--transition-normal);
  flex-shrink: 0;
}

.todo-del:hover {
  color: var(--accent-3);
}

.todo-empty {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 20px 0;
}

/* Stopwatch */
.stopwatch-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
}

.stopwatch-display {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--font-mono);
  background: var(--accent-gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 3px;
}

.stopwatch-controls {
  display: flex;
  gap: 10px;
}

.stopwatch-controls .btn {
  padding: 10px 22px;
  font-size: 0.85rem;
}

/* Random game button */
.random-game-btn {
  padding: 12px 28px;
  border-radius: var(--radius-full);
  background: var(--accent-gradient-3);
  border: none;
  color: #1a1a2e;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
  transition: var(--transition-normal);
  box-shadow: 0 0 20px rgba(253, 203, 110, 0.3);
}

.random-game-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(253, 203, 110, 0.5);
}

@media (max-width: 600px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .stopwatch-display {
    font-size: 2rem;
  }
}

/* =============================================
   REDUCED MOTION SUPPORT
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =============================================
   WEATHER WIDGET
   ============================================= */
.weather-widget {
  max-width: 240px;
  margin: 30px auto;
  padding: 24px;
  text-align: center;
  border-radius: var(--radius-lg);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.weather-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.weather-icon {
  font-size: 3rem;
  line-height: 1;
}

.weather-temp {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-mono);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.weather-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: capitalize;
}

.weather-loc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* =============================================
   TO-DO LIST WIDGET
   ============================================= */
.todo-widget {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.todo-input-row {
  display: flex;
  gap: 8px;
}

.todo-input-row input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-normal);
}

.todo-input-row input:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.todo-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
}

.todo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: var(--transition-normal);
}

.todo-item:hover {
  border-color: var(--border-hover);
}

.todo-item.done .todo-text {
  text-decoration: line-through;
  opacity: 0.5;
}

.todo-check {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-1);
  cursor: pointer;
  flex-shrink: 0;
}

.todo-text {
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.todo-del {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 4px;
  transition: var(--transition-normal);
  flex-shrink: 0;
}

.todo-del:hover {
  color: var(--accent-3);
}

.todo-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 20px;
}

/* =============================================
   STOPWATCH WIDGET
   ============================================= */
.stopwatch-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.stopwatch-display {
  font-size: 2.6rem;
  font-weight: 800;
  font-family: var(--font-mono);
  background: var(--accent-gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 3px;
}

.stopwatch-controls {
  display: flex;
  gap: 10px;
}

/* =============================================
   TOOLS GRID (Productivity widgets)
   ============================================= */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.tool-card {
  padding: 24px;
}

.tool-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 600px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   RANDOM GAME BUTTON
   ============================================= */
.random-game-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
  background: var(--accent-gradient-3);
  color: white;
  box-shadow: 0 0 20px rgba(253, 203, 110, 0.3);
}

.random-game-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(253, 203, 110, 0.5);
}

/* =============================================
   REDUCED MOTION ACCESSIBILITY
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}



