/* ═══════════════════════════════════════════
   Flowing Website — Homepage Styles
   ═══════════════════════════════════════════ */

/* ── Keyframe Animations ── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -50px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(20px, 30px) scale(1.03); }
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.6); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── Fade-up on scroll ── */

.fade-up {
  opacity: 0;
  transform: translateY(30px);
}

.fade-up.visible {
  animation: fadeUp 0.7s ease-out forwards;
}

.fade-up-delay-1 { animation-delay: 0.1s; }
.fade-up-delay-2 { animation-delay: 0.2s; }
.fade-up-delay-3 { animation-delay: 0.3s; }
.fade-up-delay-4 { animation-delay: 0.4s; }

/* ── Glowing Orbs ── */

.glow-orb {
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
  animation: blob 8s ease-in-out infinite;
}

.glow-orb-blue {
  background: rgba(59, 130, 246, 0.12);
  filter: blur(100px);
}

.glow-orb-violet {
  background: rgba(139, 92, 246, 0.10);
  filter: blur(80px);
  animation-delay: 2s;
}

.glow-orb-cyan {
  background: rgba(6, 182, 212, 0.08);
  filter: blur(90px);
  animation-delay: 4s;
}

/* ── Dot Texture ── */

.dot-texture {
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 4px 4px;
}

/* ── Pulse Dot ── */

.pulse-dot {
  animation: pulseDot 2s ease-in-out infinite;
}

/* ── Navbar ── */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color 0.3s, backdrop-filter 0.3s;
}

.navbar.scrolled {
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── VS Code Editor Mockup ── */

.editor-mockup {
  background: #1e1e1e;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  max-height: 750px;
}

.editor-titlebar {
  background: #323233;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.editor-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.editor-dot-red { background: #ff5f57; }
.editor-dot-yellow { background: #febc2e; }
.editor-dot-green { background: #28c840; }

.editor-tab {
  margin-left: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-body);
}

.editor-body {
  padding: 20px 24px;
  font-family: var(--font-code);
  font-size: 13px;
  line-height: 1.7;
  overflow-x: auto;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.editor-body::-webkit-scrollbar { width: 6px; }
.editor-body::-webkit-scrollbar-track { background: transparent; }
.editor-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
.editor-body::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }

.editor-glow {
  position: absolute;
  inset: -24px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.1));
  border-radius: 24px;
  filter: blur(40px);
  opacity: 0.5;
  z-index: -1;
}

/* ── Feature Cards ── */

.feature-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 32px;
  transition: background-color 0.3s, border-color 0.3s, transform 0.3s;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 22px;
}

/* ── Shape Gallery ── */

.shape-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: border-color 0.3s, transform 0.2s;
}

.shape-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
}

/* ── Example Tabs ── */

.example-tab {
  padding: 8px 20px;
  border-radius: 9999px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  background: none;
}

.example-tab:hover {
  color: rgba(255, 255, 255, 0.8);
}

.example-tab.active {
  color: white;
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
}

.example-panel {
  display: none;
}

.example-panel.active {
  display: block;
}

/* ── Terminal Mockup ── */

.terminal {
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow: hidden;
}

.terminal-bar {
  background: #161b22;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-body {
  padding: 20px 24px;
  font-family: var(--font-code);
  font-size: 13px;
  line-height: 1.8;
}

/* ── Copy Button ── */

.copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 6px;
  padding: 4px 12px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.10);
  color: white;
}

/* ── Section Spacing ── */

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-subtitle {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 640px;
}

/* ── Gradient Text ── */

.gradient-text {
  background: linear-gradient(135deg, #ffffff, #93c5fd);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Result Image Container ── */

.result-image {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── Footer ── */

.footer {
  background: #0a0a0a;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── Mobile Responsive ── */

@media (max-width: 767px) {
  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .editor-mockup {
    max-height: none;
    max-width: calc(100vw - 32px);
  }

  .editor-body {
    font-size: 11px;
    padding: 12px 14px;
    line-height: 1.6;
  }

  .editor-titlebar {
    padding: 8px 12px;
  }

  .terminal {
    max-width: calc(100vw - 32px);
  }

  .terminal-body {
    padding: 14px 16px;
    font-size: 12px;
  }

  .feature-card {
    padding: 20px;
  }

  .feature-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
  }

  .result-image {
    padding: 12px;
  }

  .copy-btn {
    padding: 3px 8px;
    font-size: 11px;
  }

  .glow-orb {
    opacity: 0.3;
  }
}
