/* DARK THEME (Default) */
body.dark-theme {
  background-color: #0F172A !important;
  color: #F8FAFC !important;
  transition: all 0.3s ease;
}

body.dark-theme .navbar {
  background-color: #0F172A !important;
}

body.dark-theme .bg-dark {
  background-color: #0F172A !important;
}

body.dark-theme .bg-secondary {
  background-color: #1E293B !important;
}

body.dark-theme .btn-primary {
  background-color: #8B5CF6 !important;
  border-color: #8B5CF6 !important;
}

body.dark-theme .btn-primary:hover {
  background-color: #7C3AED !important;
  border-color: #7C3AED !important;
  transform: translateY(-2px);
}

body.dark-theme .btn-secondary {
  background-color: #EF4444 !important;
  border-color: #EF4444 !important;
}

body.dark-theme .btn-secondary:hover {
  background-color: #DC2626 !important;
  border-color: #DC2626 !important;
  transform: translateY(-2px);
}

body.dark-theme .btn-dark {
  background-color: #1E293B !important;
  border-color: #334155 !important;
  color: #F8FAFC !important;
}

body.dark-theme .btn-dark:hover {
  background-color: #8B5CF6 !important;
  border-color: #8B5CF6 !important;
  color: white !important;
  transform: translateY(-2px);
}

/* LIGHT THEME */
body.light-theme {
  background-color: #FFFFFF !important;
  color: #1E293B !important;
  transition: all 0.3s ease;
}

body.light-theme .navbar {
  background-color: #FFFFFF !important;
  border-bottom: 1px solid #E2E8F0;
}

body.light-theme .navbar-dark .navbar-nav .nav-link {
  color: #1E293B !important;
}

body.light-theme .navbar-dark .navbar-nav .nav-link:hover {
  color: #7C3AED !important;
}

body.light-theme .bg-dark {
  background-color: #FFFFFF !important;
}

body.light-theme .bg-secondary {
  background-color: #F8FAFC !important;
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
}

body.light-theme .btn-primary {
  background-color: #7C3AED !important;
  border-color: #7C3AED !important;
}

body.light-theme .btn-primary:hover {
  background-color: #6D28D9 !important;
  border-color: #6D28D9 !important;
  transform: translateY(-2px);
}

body.light-theme .btn-secondary {
  background-color: #DC2626 !important;
  border-color: #DC2626 !important;
}

body.light-theme .btn-secondary:hover {
  background-color: #B91C1C !important;
  border-color: #B91C1C !important;
  transform: translateY(-2px);
}

body.light-theme .btn-dark {
  background-color: #F8FAFC !important;
  border-color: #E2E8F0 !important;
  color: #1E293B !important;
}

body.light-theme .btn-dark:hover {
  background-color: #7C3AED !important;
  border-color: #7C3AED !important;
  color: white !important;
  transform: translateY(-2px);
}

/* Common Styles */
.glowing-text {
  color: #8B5CF6;
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

body.light-theme .glowing-text {
  color: #7C3AED;
  text-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
}

.hero-gif {
  max-width: 300px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
  animation: float 3s ease-in-out infinite;
}

body.light-theme .hero-gif {
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
}

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

.theme-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: #8B5CF6;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.light-theme .theme-toggle {
  background: #7C3AED;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
  transform: scale(1.1);
  background: #EF4444 !important;
}

/* Mobile tweaks */
@media (max-width: 576px) {
  .hero {
    min-height: 80vh;
    padding: 1rem;
  }
  .display-3 {
    font-size: 2rem;
  }
  .lead {
    font-size: 1rem;
  }
  .hero-gif {
    max-width: 80%;
  }
  .btn-lg {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
  .theme-toggle {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    bottom: 15px;
    right: 15px;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Navbar link transitions */
.navbar-nav .nav-link {
  transition: color 0.3s ease;
}

/* Button transitions */
.btn {
  transition: all 0.3s ease !important;
}

/* Feature Cards */
.feature-card {
  background: rgba(139, 92, 246, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.2);
}

body.light-theme .feature-card {
  background: rgba(124, 58, 237, 0.05);
  border-color: rgba(124, 58, 237, 0.1);
}

/* Command Styling */
.command-group {
  background: rgba(30, 41, 59, 0.5);
  border-radius: 8px;
  padding: 1.5rem;
}

body.light-theme .command-group {
  background: rgba(248, 250, 252, 0.8);
}

.command-item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.command-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.command-name {
  color: #8B5CF6;
  font-weight: bold;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.5rem;
}

body.light-theme .command-name {
  color: #7C3AED;
}

.command-desc {
  color: #94A3B8;
  display: block;
  margin-bottom: 1rem;
}

body.light-theme .command-desc {
  color: #64748B;
}

/* Code blocks */
pre {
  background: #1E293B !important;
  border-radius: 8px;
  padding: 1rem !important;
  border: 1px solid #334155;
}

body.light-theme pre {
  background: #F8FAFC !important;
  border-color: #E2E8F0;
}

code {
  color: #F8FAFC;
}

body.light-theme code {
  color: #1E293B;
}

/* Architecture Cards */
.arch-card {
  background: rgba(139, 92, 246, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(139, 92, 246, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.arch-card:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 92, 246, 0.3);
}

body.light-theme .arch-card {
  background: rgba(124, 58, 237, 0.03);
  border-color: rgba(124, 58, 237, 0.1);
}

.arch-card ul {
  padding-left: 1.5rem;
}

.arch-card li {
  margin-bottom: 0.5rem;
  color: #94A3B8;
}

body.light-theme .arch-card li {
  color: #64748B;
}

/* Quick Start Card */
.quick-start-card {
  background: rgba(30, 41, 59, 0.7);
  border-radius: 12px;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

body.light-theme .quick-start-card {
  background: rgba(248, 250, 252, 0.9);
  border-color: rgba(124, 58, 237, 0.2);
}

/* Download Card */
.download-card {
  background: rgba(139, 92, 246, 0.1);
  border-radius: 12px;
  border: 2px dashed rgba(139, 92, 246, 0.3);
}

body.light-theme .download-card {
  background: rgba(124, 58, 237, 0.05);
  border-color: rgba(124, 58, 237, 0.2);
}

/* Smooth section transitions */
section {
  scroll-margin-top: 80px;
}

/* Better mobile styles */
@media (max-width: 768px) {
  .command-group {
    padding: 1rem;
  }
  
  .feature-card, .arch-card {
    padding: 1.5rem;
  }
  
  pre {
    font-size: 0.8rem;
    padding: 0.75rem !important;
  }
}

