/* ============================================
   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: #ff6a00;
  --accent-purple: #ffd700;
  --accent-gradient: linear-gradient(135deg, #ff6a00, #ffd700);
  --glow-cyan: 0 0 30px rgba(255, 106, 0, 0.25);
  --glow-purple: 0 0 30px rgba(255, 215, 0, 0.25);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(255, 106, 0, 0.2);
  --section-padding: 100px 0;
  --container-width: 1140px;

  /* Elemental Effects */
  --water: #b0b0b0;
  --water-glow: rgba(200, 200, 200, 0.25);
  --fire: #ff6a00;
  --fire-bright: #ffd700;
  --fire-glow: rgba(255, 106, 0, 0.3);
  --blood: #8b0000;
  --blood-bright: #dc2626;
  --blood-glow: rgba(220, 38, 38, 0.4);
  --lightning: #fff;
  --lightning-glow: rgba(255, 255, 255, 0.6);
}

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/vision-bg.png') 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;
}

/* Interactive grid canvas — follows mouse */
#gridCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* --- Animated Background Glow (Water left, Fire right) --- */
.bg-glow {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 80% at 5% 30%, rgba(200, 200, 200, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse 50% 60% at 0% 70%, rgba(180, 180, 180, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse 60% 80% at 95% 30%, rgba(255, 106, 0, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 50% 60% at 100% 70%, rgba(255, 215, 0, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(139, 0, 0, 0.05) 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: 30%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(200, 200, 200, 0.06) 0%, rgba(150, 150, 150, 0.03) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: heroGlowSmoke 6s ease-in-out infinite alternate;
}

.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -15%;
  transform: translate(0, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.1) 0%, rgba(255, 215, 0, 0.06) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: heroGlowFire 6s ease-in-out infinite alternate;
}

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

@keyframes heroGlowFire {
  0% { transform: translate(0, -50%) scale(1); opacity: 0.5; }
  100% { transform: translate(0, -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(255, 106, 0, 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(255, 106, 0, 0.25);
}

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

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

.btn-outline:hover {
  background: rgba(255, 106, 0, 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(--blood-bright);
  border-bottom: 2px solid var(--blood-bright);
  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; filter: drop-shadow(0 0 4px var(--blood-glow)); }
  50% { transform: rotate(45deg) translateY(8px); opacity: 0.8; filter: drop-shadow(0 0 8px var(--blood-glow)); }
}

/* ============================================
   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: border-color 0.4s ease, box-shadow 0.4s ease;
  min-width: 120px;
  animation: heartbeat 1.8s ease-in-out infinite;
  animation-delay: var(--beat-delay, 0s);
}

/* Stagger heartbeat per card */
.social-card:nth-child(1) { --beat-delay: 0s; }
.social-card:nth-child(2) { --beat-delay: 0.3s; }
.social-card:nth-child(3) { --beat-delay: 0.6s; }
.social-card:nth-child(4) { --beat-delay: 0.9s; }
.social-card:nth-child(5) { --beat-delay: 1.2s; }

@keyframes heartbeat {
  0%   { transform: scale(1); box-shadow: 0 0 0 rgba(0,0,0,0); }
  7%   { transform: scale(1.06); box-shadow: 0 0 18px color-mix(in srgb, var(--social-color) 25%, transparent); border-color: color-mix(in srgb, var(--social-color) 40%, transparent); }
  14%  { transform: scale(1); box-shadow: 0 0 5px color-mix(in srgb, var(--social-color) 10%, transparent); }
  21%  { transform: scale(1.04); box-shadow: 0 0 12px color-mix(in srgb, var(--social-color) 20%, transparent); border-color: color-mix(in srgb, var(--social-color) 30%, transparent); }
  28%  { transform: scale(1); box-shadow: 0 0 0 rgba(0,0,0,0); border-color: var(--border-subtle); }
  100% { transform: scale(1); box-shadow: 0 0 0 rgba(0,0,0,0); border-color: var(--border-subtle); }
}

.social-card:hover {
  animation: heartbeatStrong 0.8s ease-in-out infinite;
  border-color: var(--social-color);
  box-shadow: 0 0 25px color-mix(in srgb, var(--social-color) 30%, transparent);
}

@keyframes heartbeatStrong {
  0%   { transform: scale(1); box-shadow: 0 0 15px color-mix(in srgb, var(--social-color) 25%, transparent); }
  12%  { transform: scale(1.12); box-shadow: 0 0 35px color-mix(in srgb, var(--social-color) 50%, transparent); }
  24%  { transform: scale(1); box-shadow: 0 0 15px color-mix(in srgb, var(--social-color) 25%, transparent); }
  36%  { transform: scale(1.08); box-shadow: 0 0 28px color-mix(in srgb, var(--social-color) 40%, transparent); }
  48%  { transform: scale(1); box-shadow: 0 0 15px color-mix(in srgb, var(--social-color) 25%, transparent); }
  100% { transform: scale(1); box-shadow: 0 0 15px color-mix(in srgb, var(--social-color) 25%, 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 {
  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 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(255, 106, 0, 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(255, 106, 0, 0.35);
  color: #fff;
}

::-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: linear-gradient(135deg, var(--blood-bright), var(--blood));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  animation: loaderPulse 1.2s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 var(--blood-glow); }
  50% { transform: scale(1.05); box-shadow: 0 0 30px 10px rgba(220, 38, 38, 0.3); }
}

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

.loader-progress {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--water), var(--blood-bright), var(--fire));
  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;
  perspective: 800px;
}

a.stack-item {
  text-decoration: none;
  color: inherit;
}
.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: border-color 0.4s ease, box-shadow 0.4s ease;
  transform-style: preserve-3d;
  position: relative;
  z-index: 1;
}

.stack-item:hover {
  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);
  animation: coinFlip 0.6s ease-in-out;
}

@keyframes coinFlip {
  0%   { transform: rotateY(0deg); }
  100% { transform: rotateY(1080deg); }
}

.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);
}

/* Auto-cycling glow — one by one */
.stack-item.stack-glow {
  border-color: var(--stack-color);
  box-shadow: 0 0 20px color-mix(in srgb, var(--stack-color) 30%, transparent),
              0 0 50px color-mix(in srgb, var(--stack-color) 12%, transparent);
  animation: coinFlip 0.6s ease-in-out;
}

.stack-item.stack-glow .stack-icon {
  color: var(--stack-color);
  transform: scale(1.1);
}

.stack-item.stack-glow .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(255, 106, 0, 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(255, 106, 0, 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: linear-gradient(90deg, var(--water), var(--blood-bright), var(--fire));
  z-index: 9998;
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
  box-shadow: 0 0 10px var(--blood-glow), 0 0 20px rgba(139, 0, 0, 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); }
}

/* Card info overlay */
.card-info-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
  color: #fff;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 3;
}
.product-card:hover .card-info-overlay {
  opacity: 1;
}

/* "hover for info" hint near status dot */
.info-hint {
  position: absolute;
  top: 10px;
  right: 30px;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.5);
  z-index: 2;
  transition: opacity 0.3s ease;
}
.product-card:hover .info-hint {
  opacity: 0;
}

/* ============================================
   SECTION DIVIDERS (Animated Gradient)
   ============================================ */
.section-divider {
  height: 2px;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(200, 200, 200, 0.15) 15%,
    rgba(139, 0, 0, 0.6) 35%,
    var(--blood-bright) 50%,
    rgba(139, 0, 0, 0.6) 65%,
    rgba(255, 106, 0, 0.3) 85%,
    transparent 100%
  );
  box-shadow: 0 0 8px var(--blood-glow), 0 0 20px rgba(139, 0, 0, 0.15);
  animation: bloodPulse 3s ease-in-out infinite;
}

@keyframes bloodPulse {
  0%, 100% { opacity: 0.6; box-shadow: 0 0 8px var(--blood-glow); }
  50% { opacity: 1; box-shadow: 0 0 15px var(--blood-glow), 0 0 30px rgba(220, 38, 38, 0.2); }
}

/* ============================================
   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(255, 106, 0, 0.3);
  box-shadow: 0 4px 20px rgba(255, 106, 0, 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;
  }
}

/* ============================================
   DEMON SLAYER — SCREEN FLASH
   ============================================ */
.screen-flash {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: rgba(255, 255, 255, 0.15);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.05s ease;
}

.screen-flash.active {
  opacity: 1;
}

/* ============================================
   DEMON SLAYER — EDGE GLOWS
   ============================================ */
.edge-glow {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 0;
  pointer-events: none;
}

.edge-glow-smoke {
  left: 0;
  background: linear-gradient(90deg,
    rgba(200, 200, 200, 0.05) 0%,
    rgba(150, 150, 150, 0.02) 40%,
    transparent 100%
  );
  animation: edgeGlowSmoke 4s ease-in-out infinite alternate;
}

.edge-glow-fire {
  right: 0;
  background: linear-gradient(-90deg,
    rgba(255, 106, 0, 0.06) 0%,
    rgba(255, 215, 0, 0.03) 40%,
    transparent 100%
  );
  animation: edgeGlowFire 4s ease-in-out infinite alternate;
}

@keyframes edgeGlowSmoke {
  0% { opacity: 0.3; width: 100px; }
  100% { opacity: 0.7; width: 140px; }
}

@keyframes edgeGlowFire {
  0% { opacity: 0.4; width: 100px; }
  100% { opacity: 1; width: 140px; }
}

/* ============================================
   DEMON SLAYER — BLOOD VEINS
   ============================================ */
.blood-veins {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.blood-vein {
  fill: none;
  stroke: var(--blood-bright);
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: 0;
  filter: drop-shadow(0 0 4px var(--blood-glow));
  animation: veinGrow 2.5s ease-out forwards;
}

@keyframes veinGrow {
  0% {
    stroke-dasharray: 0, 500;
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  60% {
    stroke-dasharray: 200, 500;
    opacity: 0.4;
  }
  100% {
    stroke-dasharray: 200, 500;
    opacity: 0;
  }
}

/* ============================================
   DEMON SLAYER — LIGHTNING BOLTS
   ============================================ */
.divider-bolt {
  position: fixed;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
}

.divider-bolt polyline {
  fill: none;
  stroke: var(--blood-bright);
  stroke-width: 2;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px var(--blood-glow)) drop-shadow(0 0 12px rgba(220, 38, 38, 0.3));
  opacity: 0;
  animation: boltFlash 0.4s ease-out forwards;
}

@keyframes boltFlash {
  0% { opacity: 1; stroke-width: 3; }
  30% { opacity: 0.8; }
  100% { opacity: 0; stroke-width: 1; }
}

/* ============================================
   DEMON SLAYER — BREATHING CIRCLES
   ============================================ */
.breathing-circle {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
}

.breathing-circle.smoke {
  border: 1.5px solid var(--water);
  box-shadow: 0 0 8px var(--water-glow), inset 0 0 8px var(--water-glow);
  animation: breatheSmoke 2s ease-out forwards;
}

.breathing-circle.fire {
  border: 1.5px solid var(--fire);
  box-shadow: 0 0 8px var(--fire-glow), inset 0 0 8px var(--fire-glow);
  animation: breatheFire 2s ease-out forwards;
}

@keyframes breatheSmoke {
  0% { transform: scale(0.3); opacity: 0.5; }
  50% { opacity: 0.3; }
  100% { transform: scale(2.5); opacity: 0; }
}

@keyframes breatheFire {
  0% { transform: scale(0.3); opacity: 0.7; }
  50% { opacity: 0.4; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* ============================================
   DEMON SLAYER — BLOOD CORNERS
   ============================================ */
.blood-corner {
  position: fixed;
  z-index: 1;
  pointer-events: none;
  width: 180px;
  height: 250px;
}

.blood-corner-tl {
  top: 0;
  left: 0;
  background:
    radial-gradient(ellipse 80% 60% at 0% 0%, rgba(139, 0, 0, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 40% 90% at 5% 0%, rgba(220, 38, 38, 0.2) 0%, transparent 50%);
}

.blood-corner-tr {
  top: 0;
  right: 0;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(139, 0, 0, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 40% 90% at 95% 0%, rgba(220, 38, 38, 0.2) 0%, transparent 50%);
}

.blood-corner-bl {
  bottom: 0;
  left: 0;
  background:
    radial-gradient(ellipse 80% 60% at 0% 100%, rgba(139, 0, 0, 0.25) 0%, transparent 60%);
}

.blood-corner-br {
  bottom: 0;
  right: 0;
  background:
    radial-gradient(ellipse 80% 60% at 100% 100%, rgba(139, 0, 0, 0.25) 0%, transparent 60%);
}

/* Blood drip from corners */
.blood-drip {
  position: fixed;
  top: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(180deg, var(--blood-bright), var(--blood), transparent);
  border-radius: 0 0 3px 3px;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 0 4px var(--blood-glow));
  animation: dripFall var(--drip-duration, 3s) ease-in forwards;
}

.blood-drip::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 7px;
  height: 7px;
  background: var(--blood-bright);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--blood-glow);
}

@keyframes dripFall {
  0% { height: 0; opacity: 0.9; }
  20% { height: 40px; opacity: 0.8; }
  60% { height: 100px; opacity: 0.6; }
  85% { height: 140px; opacity: 0.3; }
  100% { height: 160px; opacity: 0; }
}

/* Side blood streaks (flowing down edges) */
.blood-streak {
  position: fixed;
  top: 0;
  width: 2px;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  animation: streakFlow var(--streak-duration, 4s) ease-in-out forwards;
}

.blood-streak::before {
  content: '';
  position: absolute;
  top: var(--streak-start, 0%);
  width: 100%;
  height: 120px;
  background: linear-gradient(180deg, transparent, var(--blood-bright), var(--blood), transparent);
  border-radius: 1px;
  filter: drop-shadow(0 0 3px var(--blood-glow));
}

@keyframes streakFlow {
  0% { opacity: 0; }
  15% { opacity: 0.5; }
  70% { opacity: 0.3; }
  100% { opacity: 0; }
}

/* ============================================
   DEMON SLAYER — RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .edge-glow {
    width: 60px;
  }

  .edge-glow-smoke {
    background: linear-gradient(90deg,
      rgba(200, 200, 200, 0.03) 0%,
      transparent 100%
    );
  }

  .edge-glow-fire {
    background: linear-gradient(-90deg,
      rgba(255, 106, 0, 0.04) 0%,
      transparent 100%
    );
  }

  .blood-corner {
    width: 100px;
    height: 150px;
  }
}

}