/* Custom CSS for learntodeveloper.com - Dual Light & Dark Theme Support */

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

:root {
  --font-sans: 'Prompt', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --accent-gold: #f59e0b;
}

body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.25s ease, color 0.25s ease;
}

html.dark body {
  background-color: #0b0f19;
  color: #e2e8f0;
}

html.light body, html:not(.dark) body {
  background-color: #f8fafc;
  color: #0f172a;
}

code, pre, .font-mono {
  font-family: var(--font-mono);
}

/* Custom Scrollbar - Adapts to Mode */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
html.dark ::-webkit-scrollbar-track {
  background: #0b0f19;
}
html.dark ::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 6px;
}
html.dark ::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

html.light ::-webkit-scrollbar-track, html:not(.dark) ::-webkit-scrollbar-track {
  background: #f1f5f9;
}
html.light ::-webkit-scrollbar-thumb, html:not(.dark) ::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 6px;
}
html.light ::-webkit-scrollbar-thumb:hover, html:not(.dark) ::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Glassmorphism Navigation */
html.dark .glass-nav {
  background: rgba(11, 15, 25, 0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(30, 41, 59, 0.8);
}
html.light .glass-nav, html:not(.dark) .glass-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

/* Tech Cards with Amber Glow */
html.dark .clean-card {
  background: #111827;
  border: 1px solid #1e293b;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
html.dark .clean-card:hover {
  border-color: #f59e0b;
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -8px rgba(245, 158, 11, 0.2);
}

html.light .clean-card, html:not(.dark) .clean-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
html.light .clean-card:hover, html:not(.dark) .clean-card:hover {
  border-color: #f59e0b;
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -8px rgba(245, 158, 11, 0.15);
}

/* Cyber Amber / Gold Hero Glow */
.hero-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 960px;
  height: 520px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.22) 0%, rgba(251, 191, 36, 0.12) 35%, rgba(11, 15, 25, 0) 70%);
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

/* Vibrant Gold Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Accordion Styles */
.accordion-header {
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
}
.accordion-content.open {
  max-height: 3500px;
  transition: max-height 0.4s ease-in-out;
}
.accordion-chevron {
  transition: transform 0.3s ease;
}
.accordion-header.active .accordion-chevron {
  transform: rotate(180deg);
}

/* Lightbox Modal */
.modal-backdrop {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
}
