/* Optimized CSS for Fast Loading */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #6366f1;
  --secondary: #8b5cf6;
  --accent: #06b6d4;
  --text: #ffffff;
  --text-dim: #94a3b8;
  --bg: #0f172a;
  --bg-card: #1e293b;
  --border: rgba(148, 163, 184, 0.2);
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Background */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  background: transparent;
}

.particle {
  position: absolute;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #06b6d4 40%, #6366f1 100%);
  border-radius: 50%;
  opacity: 0.25;
  filter: blur(2px) drop-shadow(0 0 16px #6366f1);
  box-shadow: 0 8px 32px 0 #6366f1aa, 0 1.5px 8px 0 #06b6d4aa;
  transition: transform 0.5s cubic-bezier(0.4, 2, 0.6, 1);
  will-change: transform;
}

.particle:nth-child(1) {
  top: 20%;
  left: 20%;
  animation: float1 6s ease-in-out infinite;
}
.particle:nth-child(2) {
  top: 60%;
  left: 80%;
  animation: float2 7s ease-in-out infinite;
}
.particle:nth-child(3) {
  top: 80%;
  left: 40%;
  animation: float3 8s ease-in-out infinite;
}
.particle:nth-child(4) {
  top: 40%;
  left: 60%;
  animation: float4 5s ease-in-out infinite;
}
.particle:nth-child(5) {
  top: 10%;
  left: 90%;
  animation: float1 9s ease-in-out infinite;
}
.particle:nth-child(6) {
  top: 90%;
  left: 10%;
  animation: float2 10s ease-in-out infinite;
}
.particle:nth-child(7) {
  top: 30%;
  left: 30%;
  animation: float3 11s ease-in-out infinite;
}
.particle:nth-child(8) {
  top: 70%;
  left: 70%;
  animation: float4 12s ease-in-out infinite;
}

@keyframes float1 {
  0%,
  100% {
    transform: translateY(0) scale(1.1) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) scale(1.2) rotate(10deg);
  }
}
@keyframes float2 {
  0%,
  100% {
    transform: translateY(0) scale(1.05) rotate(0deg);
  }
  50% {
    transform: translateY(20px) scale(1.15) rotate(-8deg);
  }
}
@keyframes float3 {
  0%,
  100% {
    transform: translateY(0) scale(1.2) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) scale(1.3) rotate(8deg);
  }
}
@keyframes float4 {
  0%,
  100% {
    transform: translateY(0) scale(1.1) rotate(0deg);
  }
  50% {
    transform: translateY(25px) scale(1.25) rotate(-12deg);
  }
}

/* 3D card effect for .terminal-mockup, .feature-card, .download-card */
.terminal-mockup,
.feature-card,
.download-card {
  box-shadow: 0 8px 32px 0 #6366f1aa, 0 1.5px 8px 0 #06b6d4aa;
  transform-style: preserve-3d;
  perspective: 800px;
  transition: transform 0.3s cubic-bezier(0.4, 2, 0.6, 1), box-shadow 0.3s;
}
.terminal-mockup:hover,
.feature-card:hover,
.download-card:hover {
  transform: rotateY(8deg) scale(1.04) translateY(-4px);
  box-shadow: 0 16px 48px 0 #6366f1cc, 0 3px 16px 0 #06b6d4cc;
}

/* Fix for terminal-mockup overflow and responsiveness */
.terminal-mockup {
  max-width: 100%;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: auto;
  word-break: break-word;
  white-space: pre-line;
  min-height: 300px;
  max-height: 70vh;
  background-clip: padding-box;
}

.terminal-mockup .terminal-output {
  max-width: 100%;
  overflow-x: auto;
  word-break: break-word;
  white-space: pre-line;
}

@media (max-width: 768px) {
  .terminal-mockup {
    max-width: 100vw !important;
    width: 100% !important;
    min-width: 0 !important;
    font-size: 0.95rem !important;
    padding: 0.5rem !important;
    max-height: 50vh !important;
  }
}

@media (max-width: 480px) {
  .terminal-mockup {
    font-size: 0.85rem !important;
    padding: 0.3rem !important;
    max-height: 35vh !important;
  }
}

/* Notification override for Tailwind */
.notification {
  /* Tailwind handles most, but keep fade-in/fade-out for JS */
  opacity: 0;
  pointer-events: none;
}
.notification.show {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.3s;
}

/* Hide old layout, color, and font rules now handled by Tailwind */
body,
.container,
.navbar,
.nav-container,
.nav-logo,
.nav-menu,
.nav-link,
.hamburger,
.hero,
.hero-container,
.hero-badge,
.hero-title,
.gradient-text,
.hero-description,
.hero-buttons,
.btn,
.btn-primary,
.btn-secondary,
.hero-stats,
.stat,
.stat-number,
.stat-label,
.terminal-header,
.terminal-buttons,
.btn-close,
.btn-minimize,
.btn-maximize,
.terminal-title,
.terminal-body,
.terminal-line,
.prompt,
.cursor,
.terminal-output,
.terminal-response,
.features,
.section-header,
.section-title,
.section-description,
.features-grid,
.feature-icon,
.feature-card,
.download,
.download-content,
.download-header,
.version-info,
.version-badge,
.release-date,
.release-notes,
.download-options,
.download-card,
.download-icon,
.btn-download,
.btn-outline,
.footer,
.footer-content,
.footer-logo,
.footer-brand,
.footer-links,
.footer-section,
.footer-bottom {
  all: unset;
}

/* Download Section Cards Fix */
.download-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}
.download-card {
  background: linear-gradient(135deg, #1e293b 80%, #6366f1 100%);
  border: 1.5px solid #6366f1;
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px 0 #6366f1aa, 0 1.5px 8px 0 #06b6d4aa;
  padding: 2rem;
  text-align: center;
  width: 320px;
  min-width: 260px;
  max-width: 100%;
  transition: transform 0.3s cubic-bezier(0.4, 2, 0.6, 1), box-shadow 0.3s;
}
.download-card:hover {
  transform: scale(1.04) translateY(-4px);
  box-shadow: 0 16px 48px 0 #6366f1cc, 0 3px 16px 0 #06b6d4cc;
}
.download-card .download-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #fff;
  background: linear-gradient(135deg, #6366f1 60%, #8b5cf6 100%);
  border-radius: 1rem;
  width: 5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 16px #6366f1aa;
}
.download-card .btn-download {
  margin-top: 1.5rem;
  width: 100%;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 0.75rem;
  padding: 0.75rem 0;
  background: linear-gradient(90deg, #6366f1 60%, #8b5cf6 100%);
  color: #fff;
  box-shadow: 0 2px 8px #6366f1aa;
  border: none;
  transition: background 0.2s, transform 0.2s;
}
.download-card .btn-download:hover {
  background: linear-gradient(90deg, #8b5cf6 60%, #6366f1 100%);
  transform: scale(1.03);
}

/* Footer Social Section */
.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}
.footer-social a {
  color: #1da1f2;
  font-size: 2rem;
  transition: color 0.2s;
}
.footer-social a.linkedin {
  color: #0077b5;
}
.footer-social a.github {
  color: #fff;
}
.footer-social a:hover {
  color: #0f172a;
}

/* Responsive Design for Mobile Devices */
@media (max-width: 768px) {
  .container,
  .max-w-7xl,
  .max-w-4xl {
    max-width: 100vw !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .download-section {
    flex-direction: column !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
    align-items: stretch !important;
  }
  .download-card {
    width: 100% !important;
    min-width: unset !important;
    margin: 0 auto 1rem auto !important;
    padding: 1.2rem !important;
  }
  .features-grid,
  .grid-cols-1.md\:grid-cols-3 {
    grid-template-columns: 1fr !important;
  }
  .hero-title,
  .section-title {
    font-size: 2rem !important;
    line-height: 2.5rem !important;
  }
  .terminal-mockup {
    min-width: 0 !important;
    width: 100% !important;
    font-size: 0.95rem !important;
    padding: 0.5rem !important;
  }
  .footer-social {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  nav .flex {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  .py-24 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  .pt-32 {
    padding-top: 4rem !important;
  }
  .pb-12 {
    padding-bottom: 2rem !important;
  }
}

@media (max-width: 480px) {
  .hero-title,
  .section-title {
    font-size: 1.3rem !important;
    line-height: 1.7rem !important;
  }
  .download-card {
    padding: 0.7rem !important;
  }
  .terminal-mockup {
    font-size: 0.85rem !important;
    padding: 0.3rem !important;
  }
}
