/* ==========================
   Base Layer - Variables
   ========================== */
:root {
  /* Horizon Web Craft Design System - Futuristic Theme */
  --background: 240 25% 3%;
  --foreground: 210 20% 98%;

  --card: 240 20% 5%;
  --card-foreground: 210 20% 98%;

  --popover: 240 20% 5%;
  --popover-foreground: 210 20% 98%;

  --primary: 259 94% 51%;
  --primary-foreground: 210 20% 98%;

  --secondary: 197 71% 73%;
  --secondary-foreground: 240 25% 3%;

  --muted: 240 15% 11%;
  --muted-foreground: 210 20% 65%;

  --accent: 259 94% 51%;
  --accent-foreground: 210 20% 98%;

  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;

  --border: 240 15% 15%;
  --input: 240 15% 15%;
  --ring: 259 94% 51%;

  --radius: 0.75rem;

  /* Custom Horizon Colors */
  --horizon-deep: 240 25% 3%;
  --horizon-base: 240 20% 8%;
  --horizon-violet: 259 94% 51%;
  --horizon-cyan: 197 71% 73%;
  --horizon-glow: 259 94% 51%;

  /* Gradients */
  --gradient-horizon: linear-gradient(
    135deg,
    hsl(var(--horizon-deep)),
    hsl(var(--horizon-base)),
    hsl(var(--horizon-violet))
  );
  --gradient-hero: linear-gradient(
    135deg,
    hsl(var(--horizon-deep)) 0%,
    hsl(var(--horizon-base)) 35%,
    hsl(var(--horizon-violet)) 100%
  );
  --gradient-accent: linear-gradient(
    90deg,
    hsl(var(--horizon-violet)),
    hsl(var(--horizon-cyan))
  );
  --gradient-glow: radial-gradient(
    circle,
    hsl(var(--horizon-glow) / 0.3) 0%,
    transparent 70%
  );

  /* Shadows & Effects */
  --shadow-glow: 0 0 30px hsl(var(--horizon-violet) / 0.3);
  --shadow-card: 0 10px 40px hsl(var(--horizon-deep) / 0.5);
  --shadow-intense: 0 20px 60px hsl(var(--horizon-violet) / 0.4);

  /* Animations */
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);

  --sidebar-background: 0 0% 98%;
  --sidebar-foreground: 240 5.3% 26.1%;
  --sidebar-primary: 240 5.9% 10%;
  --sidebar-primary-foreground: 0 0% 98%;
  --sidebar-accent: 240 4.8% 95.9%;
  --sidebar-accent-foreground: 240 5.9% 10%;
  --sidebar-border: 220 13% 91%;
  --sidebar-ring: 217.2 91.2% 59.8%;
}

.dark {
  --background: 222.2 84% 4.9%;
  --foreground: 210 40% 98%;

  --card: 222.2 84% 4.9%;
  --card-foreground: 210 40% 98%;

  --popover: 222.2 84% 4.9%;
  --popover-foreground: 210 40% 98%;

  --primary: 210 40% 98%;
  --primary-foreground: 222.2 47.4% 11.2%;

  --secondary: 217.2 32.6% 17.5%;
  --secondary-foreground: 210 40% 98%;

  --muted: 217.2 32.6% 17.5%;
  --muted-foreground: 215 20.2% 65.1%;

  --accent: 217.2 32.6% 17.5%;
  --accent-foreground: 210 40% 98%;

  --destructive: 0 62.8% 30.6%;
  --destructive-foreground: 210 40% 98%;

  --border: 217.2 32.6% 17.5%;
  --input: 217.2 32.6% 17.5%;
  --ring: 212.7 26.8% 83.9%;

  --sidebar-background: 240 5.9% 10%;
  --sidebar-foreground: 240 4.8% 95.9%;
  --sidebar-primary: 224.3 76.3% 48%;
  --sidebar-primary-foreground: 0 0% 100%;
  --sidebar-accent: 240 3.7% 15.9%;
  --sidebar-accent-foreground: 240 4.8% 95.9%;
  --sidebar-border: 240 3.7% 15.9%;
  --sidebar-ring: 217.2 91.2% 59.8%;
}

/* ==========================
   Base Styling
   ========================== */
* {
  border-color: hsl(var(--border));
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-feature-settings: "rlig" 1, "calt" 1;
}

html {
  scroll-behavior: smooth;
}

/* ==========================
   Components
   ========================== */

/* Hero Button */
.btn-hero {
  position: relative;
  overflow: hidden;
  /* padding: 1rem 2rem; */
  font-weight: 600;
  color: hsl(var(--foreground));
  background: var(--gradient-accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-glow);
  transition: var(--transition-smooth);
}

.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-intense);
}

.btn-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    hsl(var(--foreground) / 0.2),
    transparent
  );
  transition: var(--transition-smooth);
}

.btn-hero:hover::before {
  left: 100%;
}

/* Glow Effect */
.glow {
  position: relative;
}

.glow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  opacity: 0;
  transition: var(--transition-smooth);
  border-radius: inherit;
  z-index: -1;
}

.glow:hover::before {
  opacity: 1;
}

/* Fade In */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-smooth);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Floating Animation */
.floating {
  animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* Parallax Background */
.parallax-bg {
  background: var(--gradient-hero);
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

/* Card Hover */
.card-hover {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-intense);
}

/* Gradient Text */
.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


#root {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}
.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.react:hover {
  filter: drop-shadow(0 0 2em #61dafbaa);
}

@keyframes logo-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: no-preference) {
  a:nth-of-type(2) .logo {
    animation: logo-spin infinite 20s linear;
  }
}

.card {
  padding: 2em;
}

.read-the-docs {
  color: #888;
}

.sticky-section {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.line {
  position: absolute;
  width: 8px;
  height: 0;
  background: hsl(var(--primary) / .9);
  left: 50%;
  transform: translateX(-50%);
  top: -2vh;
  border-radius: 5px;
}

.card-1 {
  width: 45%;
  opacity: 0;
  transform: translateX(50px);
  left:0;
  top: 10vh;
}
.card-2 {
  width: 45%;
  opacity: 0;
  transform: translateX(50px);
  right:100px;
  top: 30vh;
}
.card-3 {
  width: 45%;
  opacity: 0;
  transform: translateX(50px);
  left:0;
  top: 50vh;
}
.card-4 {
  width: 45%;
  opacity: 0;
  transform: translateX(50px);
  right:100px;
  top: 70vh;
}

.mobile{
  display: none;
}
.modal{
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-intense);
    transition: var(--transition-smooth);
}
@media (max-width: 1012px) {
  .mobile{
    display: block;
  }
  .desktop{
    display: none;
  }
}