/* ============================================
   ZamTraveler Landing — Premium Neon Dark
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --- CSS Variables --- */
:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-tertiary: #1a1f35;
  --bg-card: #0f1629;
  --text-primary: #f0f4ff;
  --text-secondary: #8892b0;
  --text-muted: #5a6380;
  --accent-cyan: #06d6d6;
  --accent-purple: #a855f7;
  --accent-gradient: linear-gradient(135deg, #06d6d6, #a855f7);
  --glow-cyan: 0 0 30px rgba(6, 214, 214, 0.25);
  --glow-purple: 0 0 30px rgba(168, 85, 247, 0.25);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(6, 214, 214, 0.2);
  --section-padding: 100px 0;
  --container-width: 1140px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* --- Wallpaper Background (4K, no crop) --- */
.wallpaper-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -2;
  background: url('/photos/vision1.jpg') center center / cover no-repeat;
  transform: translateZ(0);
}

.wallpaper-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(10, 14, 26, 0.75) 0%,
    rgba(10, 14, 26, 0.65) 30%,
    rgba(10, 14, 26, 0.70) 60%,
    rgba(10, 14, 26, 0.85) 100%
  );
  pointer-events: none;
}

/* --- Animated Background Glow --- */
.bg-glow {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 10% 5%, rgba(6, 214, 214, 0.07) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 90% 15%, rgba(168, 85, 247, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 70% 40% at 50% 80%, rgba(6, 214, 214, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse 50% 50% at 80% 60%, rgba(168, 85, 247, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 40% 40% at 20% 50%, rgba(16, 185, 129, 0.04) 0%, transparent 50%);
}

/* --- Section Container --- */
.section-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* --- Section Headers --- */
.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

/* --- Fade-in Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.3s ease;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  z-index: 1001;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--accent-gradient);
  border-radius: 10px;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--bg-primary);
}

.logo-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width 0.3s ease;
  border-radius: 1px;
}

.nav-link:hover {
  color: var(--text-primary);
}

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

/* Burger Menu */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-burger.active span:nth-child(2) {
  opacity: 0;
}

.nav-burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 14, 26, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.mobile-link {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.mobile-link:hover {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6, 214, 214, 0.08) 0%, rgba(168, 85, 247, 0.05) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid var(--border-glow);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-cyan);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 28px;
  background: rgba(6, 214, 214, 0.05);
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -2px;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.white-text {
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--bg-primary);
  box-shadow: 0 4px 20px rgba(6, 214, 214, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 6px 30px rgba(6, 214, 214, 0.4);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background: rgba(6, 214, 214, 0.08);
  border-color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-subtle);
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--accent-cyan);
  border-bottom: 2px solid var(--accent-cyan);
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
  opacity: 0.5;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.3; }
  50% { transform: rotate(45deg) translateY(8px); opacity: 0.7; }
}

/* ============================================
   PRODUCTS
   ============================================ */
.products {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.product-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--card-accent), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.product-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 0%, var(--card-glow) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--card-accent);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 30px var(--card-glow);
}

.product-card:hover::before,
.product-card:hover::after {
  opacity: 1;
}

.product-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  position: relative;
  z-index: 1;
}

.product-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

.product-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.product-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.tag {
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--card-accent);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.product-link:hover {
  gap: 10px;
}

.product-link svg {
  transition: transform 0.3s ease;
}

.product-link:hover svg {
  transform: translate(2px, -2px);
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: center;
}

.photo-frame {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto;
}

.photo-frame::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 24px;
  background: var(--accent-gradient);
  z-index: 0;
}

.photo-frame::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 24px;
  background: var(--accent-gradient);
  z-index: -1;
  filter: blur(20px);
  opacity: 0.4;
}

.photo-placeholder {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: var(--bg-secondary);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  font-weight: 900;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.photo-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
}

.about-text .section-tag {
  display: block;
}

.about-text .section-title {
  margin-bottom: 24px;
}

.about-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.highlight {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.highlight-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  color: var(--h-color);
}

.highlight strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.highlight span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================
   CONTACT / SOCIAL
   ============================================ */
.contact {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
}

.social-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  transition: all 0.4s ease;
  min-width: 120px;
}

.social-card:hover {
  transform: translateY(-6px);
  border-color: var(--social-color);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 25px color-mix(in srgb, var(--social-color) 20%, transparent);
}

.social-card:hover .social-icon {
  color: var(--social-color);
  transform: scale(1.15);
}

.social-icon {
  color: var(--text-secondary);
  transition: all 0.4s ease;
}

.social-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.social-card:hover .social-name {
  color: var(--text-primary);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border-subtle);
  position: relative;
  z-index: 1;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand .logo-icon {
  width: 32px;
  height: 32px;
  font-size: 0.95rem;
  border-radius: 8px;
}

.footer-brand .logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  :root {
    --section-padding: 64px 0;
  }

  .nav-links {
    display: none;
  }

  .nav-burger {
    display: flex;
  }

  .hero-title {
    letter-spacing: -1px;
  }

  .hero-stats {
    gap: 20px;
  }

  .stat-number {
    font-size: 1.4rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-card {
    padding: 24px;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .about-text .section-tag,
  .about-text .section-title {
    text-align: center;
  }

  .about-desc {
    text-align: left;
  }

  .photo-frame {
    width: 220px;
    height: 220px;
  }

  .section-title {
    font-size: 2rem;
  }

  .social-grid {
    gap: 12px;
  }

  .social-card {
    padding: 24px 20px;
    min-width: 100px;
  }

  .footer-top {
    flex-direction: column;
    gap: 20px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 100px 16px 60px;
  }

  .social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .social-card {
    min-width: unset;
  }

  .hero-stats {
    gap: 16px;
  }

  .stat-divider {
    height: 30px;
  }
}

/* ============================================
   3D EFFECTS & DEPTH
   ============================================ */

/* 3D perspective container for cards */
.products-grid {
  perspective: 1200px;
}

.social-grid {
  perspective: 1000px;
}

/* 3D card tilt base */
.product-card,
.social-card {
  transform-style: preserve-3d;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Card backgrounds (solid, no blur for performance) */
.product-card {
  background: rgba(15, 22, 41, 0.92);
}

.social-card {
  background: rgba(15, 22, 41, 0.88);
}

/* 3D hover depth on product cards */
.product-card:hover {
  transform: translateY(-8px) translateZ(30px) rotateX(2deg);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.5),
    0 0 40px var(--card-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* 3D hover depth on social cards */
.social-card:hover {
  transform: translateY(-8px) translateZ(20px);
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.4),
    0 0 25px color-mix(in srgb, var(--social-color) 25%, transparent);
}

/* 3D floating photo frame */
.photo-frame {
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

.about-photo:hover .photo-frame {
  transform: rotateY(5deg) rotateX(-3deg) translateZ(20px);
}

/* 3D depth for hero section */
.hero-content {
  transform-style: preserve-3d;
}

.hero-title {
  transform: translateZ(60px);
  text-shadow: 0 0 80px rgba(6, 214, 214, 0.15);
}

.hero-subtitle {
  transform: translateZ(40px);
}

.hero-badge {
  transform: translateZ(50px);
}

.hero-buttons {
  transform: translateZ(30px);
}

.hero-stats {
  transform: translateZ(20px);
}

/* Parallax speed classes (driven by JS) */
.parallax-slow {
  will-change: transform;
}

.parallax-medium {
  will-change: transform;
}

.parallax-fast {
  will-change: transform;
}

/* Section glass panels */
.products,
.about,
.contact {
  position: relative;
}

.products::before,
.about::before,
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 26, 0.55);
  z-index: 0;
  pointer-events: none;
}

/* Navbar glass over wallpaper */
.navbar.scrolled {
  background: rgba(10, 14, 26, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* Footer */
.footer {
  background: rgba(10, 14, 26, 0.85);
}

/* ============================================
   SELECTION & SCROLLBAR
   ============================================ */
::selection {
  background: rgba(6, 214, 214, 0.3);
  color: var(--text-primary);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ============================================
   LOADING SCREEN
   ============================================ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
}

.loader-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  background: var(--accent-gradient);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  color: var(--bg-primary);
  animation: loaderPulse 1.2s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(6, 214, 214, 0.4); }
  50% { transform: scale(1.05); box-shadow: 0 0 30px 10px rgba(6, 214, 214, 0.2); }
}

.loader-bar {
  width: 180px;
  height: 3px;
  background: var(--border-subtle);
  border-radius: 3px;
  overflow: hidden;
}

.loader-progress {
  height: 100%;
  width: 0;
  background: var(--accent-gradient);
  border-radius: 3px;
  animation: loaderFill 1.5s ease-out forwards;
}

@keyframes loaderFill {
  0% { width: 0; }
  60% { width: 70%; }
  100% { width: 100%; }
}

/* ============================================
   TYPING CURSOR
   ============================================ */
.typing-cursor {
  display: inline-block;
  color: var(--accent-cyan);
  font-weight: 300;
  animation: blink 0.8s step-end infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-subtitle {
  min-height: 1.5em;
}

/* ============================================
   HERO PARTICLES CANVAS
   ============================================ */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ============================================
   TECH STACK
   ============================================ */
.stack {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
}

.stack::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 26, 0.55);
  z-index: 0;
  pointer-events: none;
}

.stack-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.stack-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 24px;
  background: rgba(15, 22, 41, 0.88);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  min-width: 110px;
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

.stack-item:hover {
  transform: translateY(-6px);
  border-color: var(--stack-color);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 20px color-mix(in srgb, var(--stack-color) 20%, transparent);
}

.stack-item:hover .stack-icon {
  color: var(--stack-color);
  transform: scale(1.15);
}

.stack-icon {
  color: var(--text-secondary);
  transition: all 0.4s ease;
}

.stack-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.stack-item:hover .stack-name {
  color: var(--text-primary);
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 900;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--border-glow);
  background: rgba(15, 22, 41, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--accent-cyan);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: rgba(6, 214, 214, 0.15);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

/* ============================================
   PWA INSTALL BUTTON
   ============================================ */
.btn-install {
  background: transparent;
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan);
}

.btn-install:hover {
  background: rgba(6, 214, 214, 0.12);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE ADDITIONS
   ============================================ */
@media (max-width: 768px) {
  .stack-grid {
    gap: 12px;
  }

  .stack-item {
    padding: 20px 16px;
    min-width: 90px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 480px) {
  .stack-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .stack-item {
    min-width: unset;
  }
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: var(--accent-gradient);
  z-index: 9998;
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
  box-shadow: 0 0 10px rgba(6, 214, 214, 0.5), 0 0 20px rgba(168, 85, 247, 0.3);
}

/* ============================================
   PRODUCT STATUS BADGE
   ============================================ */
.status-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
  z-index: 2;
  transition: all 0.3s ease;
}

.status-badge.online {
  background: #00ff88;
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.6), 0 0 16px rgba(0, 255, 136, 0.3);
  animation: statusPulse 2s ease-in-out infinite;
}

.status-badge.offline {
  background: #ff2d6f;
  box-shadow: 0 0 8px rgba(255, 45, 111, 0.4);
}

@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(0, 255, 136, 0.6), 0 0 16px rgba(0, 255, 136, 0.3); }
  50% { box-shadow: 0 0 12px rgba(0, 255, 136, 0.8), 0 0 24px rgba(0, 255, 136, 0.4); }
}

/* ============================================
   SECTION DIVIDERS (Animated Gradient)
   ============================================ */
.section-divider {
  height: 1px;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(6, 214, 214, 0.3) 20%,
    rgba(168, 85, 247, 0.4) 50%,
    rgba(6, 214, 214, 0.3) 80%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: gradientSlide 4s ease-in-out infinite;
}

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

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
}

.faq::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 26, 0.55);
  z-index: 0;
  pointer-events: none;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.faq-item {
  background: rgba(15, 22, 41, 0.88);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
  border-color: var(--border-glow);
}

.faq-item.active {
  border-color: rgba(6, 214, 214, 0.3);
  box-shadow: 0 4px 20px rgba(6, 214, 214, 0.08);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--accent-cyan);
}

.faq-chevron {
  color: var(--text-muted);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent-cyan);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 24px 20px;
}

.faq-answer p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   CONFETTI (Easter Egg)
   ============================================ */
.confetti-piece {
  position: fixed;
  z-index: 99999;
  width: 10px;
  height: 10px;
  pointer-events: none;
  animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
  0% {
    opacity: 1;
    transform: translateY(0) rotate(0deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(100vh) rotate(720deg) scale(0.5);
  }
}

/* ============================================
   RESPONSIVE — NEW FEATURES
   ============================================ */
@media (max-width: 768px) {
  .faq-question {
    padding: 16px 20px;
    font-size: 0.95rem;
  }

  .faq-answer {
    padding: 0 20px;
  }

  .faq-item.active .faq-answer {
    padding: 0 20px 16px;
  }
}