.jetbrains-mono-global {
  font-family: "JetBrains Mono", monospace;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

:root {
  --radius: 0.5rem;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --background: 183 30% 97%;
  --foreground: 183 30% 5%;
  --card: 183 30% 97%;
  --card-foreground: 183 30% 5%;
  --popover: 183 30% 97%;
  --popover-foreground: 183 30% 5%;
  --primary: 174.97 57.43% 40%;
  --primary-foreground: 0 0% 100%;
  --secondary: 303 70% 40%;
  --secondary-foreground: 0 0% 100%;
  --muted: 183 20% 90%;
  --muted-foreground: 183 30% 20%;
  --accent: 63 80% 40%;
  --accent-foreground: 0 0% 0%;
  --destructive: 20 82% 40%;
  --destructive-foreground: 0 0% 100%;
  --border: 183 30% 85%;
  --input: 183 30% 85%;
  --ring: 174.97 57.43% 40%;
  --chart-1: 183 100% 40%;
  --chart-2: 303 100% 40%;
  --chart-3: 63 100% 40%;
  --chart-4: 303 100% 40%;
  --chart-5: 183 103% 40%;
  --sidebar: 183 30% 95%;
  --sidebar-foreground: 183 30% 20%;
  --sidebar-primary: 183 30% 10%;
  --sidebar-primary-foreground: 183 30% 97%;
  --sidebar-accent: 183 20% 90%;
  --sidebar-accent-foreground: 183 30% 10%;
  --sidebar-border: 183 30% 85%;
  --sidebar-ring: 183 100% 40%;
}

.dark {
  --background: 183 30% 3%;
  --foreground: 183 21% 98%;
  --muted: 303 34% 11%;
  --muted-foreground: 303 9% 66%;
  --popover: 183 30% 3%;
  --popover-foreground: 183 21% 98%;
  --card: 183 30% 3%;
  --card-foreground: 183 21% 98%;
  --border: 183 7% 12%;
  --input: 183 7% 12%;
  --primary: 174.97 57.43% 51.18%;
  --primary-foreground: 183 100% 13%;
  --secondary: 303 100% 53%;
  --secondary-foreground: 0 0% 100%;
  --accent: 63 100% 53%;
  --accent-foreground: 63 100% 13%;
  --destructive: 20 82% 60%;
  --destructive-foreground: 20 82% 0%;
  --ring: 183 100% 53%;
  --chart-1: 183 100% 53%;
  --chart-2: 303 100% 53%;
  --chart-3: 63 100% 53%;
  --chart-4: 303 100% 56%;
  --chart-5: 183 103% 53%;
  --sidebar: 183 30% 5%;
  --sidebar-foreground: 183 21% 90%;
  --sidebar-primary: 183 21% 98%;
  --sidebar-primary-foreground: 183 30% 3%;
  --sidebar-accent: 183 20% 10%;
  --sidebar-accent-foreground: 183 21% 90%;
  --sidebar-border: 183 20% 10%;
  --sidebar-ring: 183 100% 53%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  scroll-behavior: auto;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

.animated-bg {
  z-index: -1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
  background-color: hsl(174.97, 57.43%, 45%);
}

.btn-outline {
  border: 1px solid hsl(var(--primary));
  color: hsl(var(--primary));
  background-color: transparent;
}

.btn-outline:hover {
  background-color: hsla(var(--primary), 0.1);
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1.125rem;
}

.theme-toggle {
  width: 3rem;
  height: 1.5rem;
  border-radius: 9999px;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.theme-toggle.dark {
  background-color: hsl(183, 7%, 12%);
  justify-content: flex-start;
}

.theme-toggle.light {
  background-color: hsla(174.97, 57.43%, 51.18%, 0.3);
  justify-content: flex-end;
}

.theme-toggle-handle {
  width: 1rem;
  height: 1rem;
  border-radius: 9999px;
  background-color: hsl(174.97, 57.43%, 51.18%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(183, 100%, 13%);
  font-size: 0.75rem;
}

/* Animated background */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: hsla(174.97, 57.43%, 51.18%, 0.3); /* was 0.1 */
  animation: float 6s infinite ease-in-out;
}

/* Code example styling */
.code-window {
  background-color: hsl(183, 30%, 5%);
  border: 1px solid hsl(183, 7%, 12%);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.code-header {
  background-color: hsl(183, 30%, 2%);
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.window-controls {
  display: flex;
  gap: 0.5rem;
}

.control {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
}

.control-red {
  background-color: hsl(20, 82%, 60%);
}
.control-yellow {
  background-color: hsl(63, 100%, 53%);
}
.control-green {
  background-color: hsl(120, 70%, 45%);
}

.code-content {
  padding: 1rem;
  font-family: monospace;
  color: hsl(183, 21%, 98%);
  white-space: pre-wrap;
  font-size: 0.875rem;
}

.code-keyword {
  color: hsl(303, 100%, 53%);
}
.code-string {
  color: hsl(63, 100%, 53%);
}
.code-comment {
  color: hsl(303, 9%, 66%);
}
.code-function {
  color: hsl(174.97, 57.43%, 51.18%);
}
.code-variable {
  color: hsl(303, 100%, 53%);
}
.code-property {
  color: hsl(183, 100%, 53%);
}

/* Carousel Styles */
.carousel {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.carousel-inner {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
}

.carousel-item {
  min-width: 100%;
  position: relative;
  cursor: pointer;
}

.carousel-item img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid hsl(183, 7%, 12%);
  transition: opacity 0.3s ease;
}

.carousel-item:hover img {
  opacity: 0.9;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: hsla(183, 30%, 3%, 0.8);
  color: hsl(183, 21%, 98%);
  padding: 1rem;
  text-align: center;
}

.carousel-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 10;
}

.carousel-control {
  background-color: hsla(183, 30%, 3%, 0.7);
  color: hsl(183, 21%, 98%);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0 10px;
  transition: background-color 0.3s ease;
}

.carousel-control:hover {
  background-color: hsla(174.97, 57.43%, 51.18%, 0.7);
}

.carousel-indicators-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 10;
}

.carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: hsla(183, 21%, 98%, 0.5);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.carousel-indicator.active {
  background-color: hsl(174.97, 57.43%, 51.18%);
}

/* Lightbox Styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: hsla(183, 30%, 3%, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  display: block;
  border: 1px solid hsl(183, 7%, 12%);
}

.lightbox-caption {
  position: absolute;
  bottom: -40px;
  left: 0;
  right: 0;
  color: hsl(183, 21%, 98%);
  text-align: center;
  padding: 1rem;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: hsl(183, 21%, 98%);
  font-size: 2rem;
  cursor: pointer;
  z-index: 1001;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.lightbox-nav-btn {
  background-color: hsla(183, 30%, 3%, 0.7);
  color: hsl(183, 21%, 98%);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0 20px;
  transition: background-color 0.3s ease;
}

.lightbox-nav-btn:hover {
  background-color: hsla(174.97, 57.43%, 51.18%, 0.7);
}

.feature-section {
  padding: 4rem 0;
  border-bottom: 1px solid hsl(var(--border));
}

.feature-section:last-child {
  border-bottom: none;
}

.feature-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .feature-content {
    flex-direction: row;
    align-items: center;
  }

  .feature-content.reverse {
    flex-direction: row-reverse;
  }
}

.feature-cta-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--primary-foreground));
  background: hsla(var(--primary), 0.75);
  font-weight: 600;
  font-size: 1.1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  border-radius: var(--radius-lg);
  z-index: 2;
}

.feature-image:hover .feature-cta-overlay,
.feature-image:focus-within .feature-cta-overlay {
  opacity: 1;
  pointer-events: auto;
}

.feature-image {
  flex: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  border: 1px solid hsl(var(--border));
  position: relative;
}

.feature-image img {
  width: 100%;
  height: auto;
  display: block;
}

.feature-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: hsla(var(--primary), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--primary));
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: hsl(var(--primary));
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

html {
  scroll-behavior: smooth;
}
