/* ============================================
   DAWA HEALTHCARE — FUTURISTIC DESIGN SYSTEM
   Theme: Dark, Glassmorphism, 3D, Minimalist
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ---- Dark (default) ---- */
  --bg:        #040814;
  --bg-card:   #080d1e;
  --bg-glass:  rgba(255,255,255,0.04);
  --border:    rgba(255,255,255,0.08);
  --green:     #98d017;
  --green-dim: rgba(152,208,23,0.15);
  --blue:      #4f46e5;
  --blue-dim:  rgba(79,70,229,0.15);
  --text:      #e2e8f0;
  --text-mid:  #94a3b8;
  --text-dim:  #475569;
  --white:     #ffffff;
  --orb-opacity: 0.18;
  --nav-blur-bg: rgba(4,8,20,0.85);
  --radius:    14px;
  --font:      'Space Grotesk', sans-serif;
  --mono:      'Space Mono', monospace;
  --theme-transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

/* ---- Light Theme ---- */
:root.light {
  --bg:        #f0f4ff;
  --bg-card:   #ffffff;
  --bg-glass:  rgba(255,255,255,0.70);
  --border:    rgba(17,32,139,0.10);
  --green:     #6a9200;
  --green-dim: rgba(106,146,0,0.10);
  --blue:      #4f46e5;
  --blue-dim:  rgba(79,70,229,0.10);
  --text:      #111827;
  --text-mid:  #374151;
  --text-dim:  #6b7280;
  --white:     #ffffff;
  --orb-opacity: 0.08;
  --nav-blur-bg: rgba(240,244,255,0.88);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: var(--theme-transition);
}

/* Apply transition broadly on theme switch */
:root.theme-transitioning *,
:root.theme-transitioning *::before,
:root.theme-transitioning *::after {
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, opacity 0.35s ease !important;
}

/* ---- AMBIENT BACKGROUND ---- */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.18;
  animation: orbFloat 20s infinite alternate ease-in-out;
}
.orb-1 { width: 600px; height: 600px; background: #4f46e5; top: -200px; left: -200px; animation-duration: 22s; opacity: var(--orb-opacity); }
.orb-2 { width: 500px; height: 500px; background: #98d017; bottom: 10%; right: -150px; animation-duration: 18s; animation-delay: -7s; opacity: var(--orb-opacity); }
.orb-3 { width: 400px; height: 400px; background: #ec4899; top: 40%; left: 40%; animation-duration: 25s; animation-delay: -3s; opacity: calc(var(--orb-opacity) * 0.6); }
@keyframes orbFloat {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(60px, 40px) scale(1.08); }
}

/* ---- UTILITY ---- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.gradient-text {
  background: linear-gradient(135deg, var(--green), #4fc3f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section { padding: 96px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid var(--green-dim);
  background: var(--green-dim);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; line-height: 1.2; margin-bottom: 12px; }
.section-sub { color: var(--text-mid); font-size: 1rem; max-width: 540px; margin: 0 auto; }

/* ---- SCROLL ANIMATIONS ---- */
.reveal, .reveal-right {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .65s ease, transform .65s ease;
  transition-delay: var(--delay, 0s);
}
.reveal-right { transform: translateX(40px); }
.reveal.visible, .reveal-right.visible { opacity: 1; transform: translate(0,0); }

/* ---- BUTTONS ---- */
.btn-neon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #060b18;
  font-weight: 700;
  font-size: .88rem;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: box-shadow .25s, transform .2s, background .2s;
  position: relative;
  overflow: hidden;
}
.btn-neon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  transition: opacity .2s;
}
.btn-neon:hover { box-shadow: 0 0 24px rgba(152,208,23,0.55); transform: translateY(-2px); }
.btn-neon:hover::after { opacity: 1; }
.btn-neon.large { font-size: .95rem; padding: 13px 28px; border-radius: 10px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: .88rem;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.05); }
.btn-ghost.large { font-size: .95rem; padding: 13px 28px; border-radius: 10px; }
.btn-ghost.small { font-size: .8rem; padding: 7px 16px; }

.btn-glass {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--text-mid);
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: .84rem;
  font-weight: 500;
  transition: background .2s, color .2s;
}
.btn-glass:hover { background: rgba(255,255,255,.08); color: var(--text); }

/* ---- THEME TOGGLE ---- */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 5px 10px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  color: var(--text-mid);
}
.theme-toggle:hover { border-color: var(--green); color: var(--green); }
.theme-icon { display: flex; align-items: center; justify-content: center; }
.theme-track {
  width: 34px;
  height: 18px;
  border-radius: 9px;
  background: var(--border);
  position: relative;
  transition: background .3s;
  border: 1px solid var(--border);
}
:root.light .theme-track { background: var(--green); }
.theme-thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--text-mid);
  transition: transform .3s cubic-bezier(.4,0,.2,1), background .3s;
}
:root.light .theme-thumb { transform: translateX(16px); background: #fff; }

/* Light-mode overrides for hard-coded rgba dark values */
:root.light .chat-bubble {
  background: rgba(255,255,255,0.85);
  border-color: rgba(0,0,0,0.08);
  color: var(--text);
}
:root.light .chat-msg.user .chat-bubble {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
:root.light .chat-header {
  background: linear-gradient(135deg, rgba(79,70,229,0.12), rgba(106,146,0,0.08));
}
:root.light .chat-messages { background: #e8edf8; }
:root.light .chat-typing { background: #e8edf8; }
:root.light .parallax-overlay {
  background: linear-gradient(to right, rgba(240,244,255,0.88) 40%, transparent);
}
:root.light .ticker-wrap { background: var(--green); }
:root.light .ticker-track span { color: #fff; }
:root.light .cat-3d-front { background: rgba(255,255,255,0.75); }
:root.light .hero { background: radial-gradient(ellipse at 30% 60%, rgba(152,208,23,.08), transparent 60%), radial-gradient(ellipse at 70% 20%, rgba(79,70,229,.08), transparent 50%); }
:root.light .hero-stats { background: rgba(255,255,255,0.7); }
:root.light .float-card { background: rgba(255,255,255,0.88); border-color: rgba(0,0,0,.1); }
:root.light .blog-tag-chip { background: rgba(255,255,255,0.85); color: var(--blue); }
:root.light .about-section { background: transparent; }
:root.light .footer { border-top: 1px solid var(--border); background: var(--bg-card); }
:root.light .footer-logo { filter: none; opacity: 1; }
:root.light .footer-brand p { color: var(--text-mid); }
:root.light .footer-bottom { color: var(--text-mid); }
:root.light #particleCanvas { opacity: 0.5; }

/* ======================== NAV ======================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 0;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: var(--nav-blur-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--border);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img { height: 36px; width: auto; filter: brightness(0) invert(1); }
.logo-text {
  font-size: .88rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .05em;
  line-height: 1.1;
}
.logo-text em { display: block; font-style: normal; color: var(--green); font-size: .72rem; letter-spacing: .12em; }
.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  color: var(--text-mid);
  text-decoration: none;
  font-size: .87rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-glass); }
.nav-cta { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.hamburger { display: none; background: none; border: 1px solid var(--border); padding: 8px 10px; border-radius: 8px; cursor: pointer; flex-direction: column; gap: 4px; }
.hamburger span { display: block; width: 18px; height: 2px; background: var(--text-mid); border-radius: 2px; transition: all .3s; }
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px 24px 16px;
  border-top: 1px solid var(--border);
  background: var(--nav-blur-bg);
  backdrop-filter: blur(20px);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--text-mid); text-decoration: none; padding: 10px 0; font-size: .9rem; border-bottom: 1px solid var(--border); transition: color .2s; }
.mobile-menu a:hover { color: var(--green); }

/* ======================== HERO ======================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}
#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .12em;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid rgba(152,208,23,0.25);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.tag-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: blink 2s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

.hero-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: -.02em;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  padding: 18px 24px;
  width: fit-content;
}
.stat-item { text-align: center; padding: 0 22px; }
.stat-item:first-child { padding-left: 0; }
.stat-item:last-child { padding-right: 0; }
.stat-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green);
  font-family: var(--mono);
  line-height: 1;
}
.stat-label { font-size: .72rem; color: var(--text-mid); text-transform: uppercase; letter-spacing: .08em; margin-top: 3px; display: block; }
.stat-divider { width: 1px; height: 36px; background: var(--border); }

/* Hero 3D Visual */
.hero-3d-wrap {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#threeCanvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: var(--radius);
}

.float-card {
  position: absolute;
  background: rgba(8,13,30,0.82);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 160px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  animation: floatY 4s infinite ease-in-out;
  z-index: 3;
}
.card-1 { top: 10%; left: -10px; animation-delay: 0s; }
.card-2 { top: 44%; right: -10px; animation-delay: .9s; }
.card-3 { bottom: 10%; left: 10px; animation-delay: 1.8s; }
@keyframes floatY {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.fc-icon { font-size: 1.4rem; flex-shrink: 0; }
.fc-text { display: flex; flex-direction: column; }
.fc-text strong { font-size: .84rem; color: var(--text); }
.fc-text span { font-size: .72rem; color: var(--text-mid); }

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.scroll-wheel {
  width: 22px; height: 36px;
  border: 2px solid var(--border);
  border-radius: 12px;
  position: relative;
}
.scroll-wheel::after {
  content: '';
  position: absolute;
  top: 5px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px;
  background: var(--green);
  border-radius: 2px;
  animation: scrollWheel 1.8s infinite;
}
@keyframes scrollWheel { 0%{top:5px;opacity:1} 100%{top:18px;opacity:0} }
.scroll-hint span { font-size: .68rem; color: var(--text-dim); letter-spacing: .1em; text-transform: uppercase; font-family: var(--mono); }

/* ======================== PHOTO STRIP ======================== */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 280px;
}
.photo-strip-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.photo-strip-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  display: block;
}
.photo-strip-item:hover img { transform: scale(1.08); }
.ps-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4,8,20,.85) 40%, transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  opacity: 0;
  transition: opacity .3s;
}
.photo-strip-item:hover .ps-overlay { opacity: 1; }
.ps-overlay h3 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 3px; }
.ps-overlay p { color: rgba(255,255,255,.7); font-size: .78rem; }

/* ======================== TICKER ======================== */
.ticker-wrap {
  background: var(--green);
  overflow: hidden;
  padding: 10px 0;
  position: relative;
  z-index: 10;
}
.ticker-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
  width: max-content;
}
.ticker-track span {
  display: inline-block;
  padding: 0 40px;
  font-size: .82rem;
  font-weight: 700;
  color: #060b18;
  font-family: var(--mono);
  letter-spacing: .04em;
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ======================== CATEGORIES ======================== */
.categories-section { padding: 96px 0; }
.categories-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 14px;
  perspective: 1200px;
}
.cat-3d {
  height: 130px;
  perspective: 600px;
  cursor: pointer;
}
.cat-3d-inner {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .55s cubic-bezier(.4,0,.2,1);
  position: relative;
}
.cat-3d:hover .cat-3d-inner { transform: rotateY(180deg); }
.cat-3d-front, .cat-3d-back {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 8px;
  text-align: center;
}
.cat-3d-front {
  background: var(--bg-glass) var(--photo, none) center/cover no-repeat;
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  overflow: hidden;
}
.cat-3d-front:hover { border-color: var(--glow); }
.cat-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 100%, color-mix(in srgb, var(--glow) 30%, transparent), transparent 70%),
              linear-gradient(to bottom, rgba(4,8,20,0.55) 0%, rgba(4,8,20,0.2) 40%, rgba(4,8,20,0.65) 100%);
  pointer-events: none;
}
.cat-emoji { font-size: 1.8rem; line-height: 1; position: relative; z-index: 1; }
.cat-3d-front span { font-size: .72rem; font-weight: 600; color: var(--text-mid); position: relative; z-index: 1; line-height: 1.2; }
.cat-3d-back {
  background: var(--back, #4f46e5);
  border-radius: var(--radius);
  transform: rotateY(180deg);
  color: #fff;
  padding: 14px;
}
.cat-3d-back h4 { font-size: .82rem; font-weight: 700; margin-bottom: 4px; }
.cat-3d-back p { font-size: .7rem; opacity: .85; line-height: 1.3; margin-bottom: 8px; }
.cat-3d-back a { font-size: .72rem; font-weight: 700; color: rgba(255,255,255,.9); text-decoration: none; }

/* ======================== PARALLAX BANNER ======================== */
.parallax-banner {
  position: relative;
  height: 420px;
  overflow: hidden;
  margin: 0;
}
.parallax-img {
  width: 100%;
  height: 140%;
  object-fit: cover;
  object-position: center;
  transform: translateY(0);
  will-change: transform;
  display: block;
}
.parallax-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(4,8,20,0.85) 40%, transparent);
  display: flex;
  align-items: center;
}
.parallax-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}
.parallax-content h2 { font-size: clamp(1.8rem,3vw,2.8rem); font-weight: 700; margin-bottom: 10px; }
.parallax-content p { color: var(--text-mid); margin-bottom: 24px; max-width: 360px; }

/* ======================== PRODUCTS ======================== */
.products-section { background: transparent; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.product-glass {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: transform .3s, box-shadow .3s, border-color .3s;
  cursor: pointer;
}
.product-glass:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(152,208,23,0.3);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 30px rgba(152,208,23,0.08);
}
.product-top { position: relative; aspect-ratio: 1; overflow: hidden; }
.product-top img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; display: block; }
.product-glass:hover .product-top img { transform: scale(1.06); }
.product-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 100%, rgba(152,208,23,0.12), transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
}
.product-glass:hover .product-glow { opacity: 1; }
.p-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--green);
  color: #060b18;
  font-size: .68rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 20px;
  font-family: var(--mono);
  z-index: 1;
}
.product-body { padding: 14px; }
.product-brand { font-size: .68rem; color: var(--green); font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; display: block; }
.product-body h3 { font-size: .82rem; color: var(--text); margin-bottom: 8px; line-height: 1.3; font-weight: 600; }
.product-pricing { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.p-price { color: var(--green); font-weight: 700; font-size: .9rem; }
.p-old { color: var(--text-dim); font-size: .75rem; text-decoration: line-through; }
.btn-add {
  width: 100%;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--text-mid);
  padding: 9px;
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background .2s, color .2s, border-color .2s;
  font-family: var(--font);
}
.btn-add:hover { background: var(--green); color: #060b18; border-color: var(--green); }
.center-cta { text-align: center; margin-top: 44px; }

/* ======================== BANNERS GRID ======================== */
.banners-grid-section {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 2px;
}
.banner-grid-item {
  position: relative;
  aspect-ratio: 16/7;
  overflow: hidden;
  cursor: pointer;
}
.banner-grid-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; display: block; }
.banner-grid-item:hover img { transform: scale(1.06); }
.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4,8,20,.85) 40%, transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity .3s;
}
.banner-grid-item:hover .banner-overlay { opacity: 1; }
.banner-overlay h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }

/* ======================== WHY SECTION ======================== */
.why-section {}
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.why-photo-col {}
.why-photo-stack {
  position: relative;
  height: 480px;
}
.why-photo-main {
  width: 80%;
  height: 420px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  position: absolute;
  bottom: 0; left: 0;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
.why-photo-secondary {
  width: 55%;
  height: 240px;
  object-fit: cover;
  border-radius: 16px;
  position: absolute;
  top: 0; right: 0;
  border: 3px solid var(--bg);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.why-photo-badge {
  position: absolute;
  bottom: 24px; right: 0;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  border-radius: 14px;
  padding: 16px 22px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.wpb-num { display: block; font-size: 1.8rem; font-weight: 700; font-family: var(--mono); }
.why-photo-badge span:last-child { font-size: .72rem; color: var(--text-mid); text-transform: uppercase; letter-spacing: .08em; }
.why-text-col {}
.why-features { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; }
.wf-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  transition: border-color .2s, box-shadow .2s;
}
.wf-item:hover { border-color: rgba(152,208,23,.25); box-shadow: 0 4px 20px rgba(0,0,0,.2); }
.wf-icon {
  font-size: 1.3rem;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--green-dim);
  border: 1px solid rgba(152,208,23,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wf-item h4 { font-size: .88rem; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.wf-item p { font-size: .78rem; color: var(--text-mid); line-height: 1.5; }

/* ======================== GALLERY ======================== */
.gallery-section {}
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 220px);
  gap: 12px;
}
.gm-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}
.gm-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  display: block;
}
.gm-item:hover img { transform: scale(1.07); }
.gm-tall { grid-row: span 2; }
.gm-wide { grid-column: span 2; }
.gm-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(4,8,20,.8), transparent);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  padding: 20px 14px 12px;
  transform: translateY(100%);
  transition: transform .3s ease;
  font-family: var(--mono);
  letter-spacing: .06em;
}
.gm-item:hover .gm-label { transform: translateY(0); }

/* ======================== ABOUT ======================== */
.about-section { overflow: hidden; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-left {}
.about-text { color: var(--text-mid); font-size: .97rem; max-width: 500px; margin-bottom: 32px; line-height: 1.8; }
.about-features { display: flex; flex-direction: column; gap: 20px; }
.af-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  transition: border-color .2s;
}
.af-item:hover { border-color: rgba(255,255,255,.15); }
.af-icon {
  font-size: 1.4rem;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--c) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 25%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.af-item h4 { font-size: .9rem; color: var(--text); font-weight: 600; margin-bottom: 3px; }
.af-item p { font-size: .78rem; color: var(--text-mid); line-height: 1.5; }

/* About Visual */
.about-right {}
.about-visual {
  position: relative;
  height: 440px;
  margin: 0 auto;
}
.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  filter: brightness(0.75);
}
.av-card {
  position: absolute;
  background: rgba(6,9,22,0.82);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  border-radius: 12px;
  padding: 14px 18px;
  text-align: center;
  min-width: 90px;
  animation: floatY 4s infinite ease-in-out;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.av-num { display: block; font-size: 1.4rem; font-weight: 700; font-family: var(--mono); }
.av-card span:last-child { font-size: .7rem; color: var(--text-mid); text-transform: uppercase; letter-spacing: .08em; }
.av-c1 { top: 16px; left: -20px; animation-delay: 0s; }
.av-c2 { top: 16px; right: -20px; animation-delay: .6s; }
.av-c3 { bottom: 16px; left: -20px; animation-delay: 1.2s; }
.av-c4 { bottom: 16px; right: -20px; animation-delay: 1.8s; }

/* ======================== PARTNERS ======================== */
.partners-section { padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; }
.partners-label { text-align: center; font-size: .72rem; color: var(--text-dim); letter-spacing: .15em; text-transform: uppercase; font-family: var(--mono); margin-bottom: 20px; }
.partners-scroll {
  display: flex;
  gap: 0;
  animation: partnerScroll 20s linear infinite;
  width: max-content;
}
.partner-item {
  padding: 12px 48px;
  font-weight: 700;
  font-size: .9rem;
  color: var(--text-dim);
  border-right: 1px solid var(--border);
  white-space: nowrap;
  transition: color .2s;
  letter-spacing: .05em;
}
.partner-item:hover { color: var(--text-mid); }
@keyframes partnerScroll { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ======================== BLOG ======================== */
.blog-section { background: transparent; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 20px; }
.blog-glass {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.blog-glass:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}
.blog-img-wrap { position: relative; aspect-ratio: 16/8; overflow: hidden; }
.blog-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; display: block; }
.blog-glass:hover .blog-img-wrap img { transform: scale(1.04); }
.blog-tag-chip {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(4,8,20,0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--green);
  font-size: .68rem;
  font-family: var(--mono);
  letter-spacing: .1em;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}
.blog-body { padding: 18px; }
.blog-body h3 { font-size: .88rem; color: var(--text); font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.blog-body p { font-size: .78rem; color: var(--text-mid); margin-bottom: 12px; line-height: 1.6; }
.blog-link { font-size: .8rem; color: var(--green); font-weight: 700; text-decoration: none; display: flex; align-items: center; gap: 4px; }
.blog-link span { transition: transform .2s; display: inline-block; }
.blog-link:hover span { transform: translateX(4px); }

/* ======================== CONTACT ======================== */
.contact-section {}
.contact-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.contact-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.contact-card:hover {
  border-color: rgba(152,208,23,0.25);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  transform: translateY(-3px);
}
.cc-icon { font-size: 2rem; margin-bottom: 12px; }
.contact-card h4 { font-size: .9rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.contact-card p { font-size: .85rem; color: var(--green); font-weight: 600; margin-bottom: 4px; }
.contact-card span { font-size: .75rem; color: var(--text-dim); }

/* ======================== FOOTER ======================== */
.footer { border-top: 1px solid var(--border); margin-top: 0; padding-top: 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  padding: 56px 24px 40px;
  max-width: 1280px;
  margin: 0 auto;
}
.footer-brand {}
.footer-logo { height: 48px; width: auto; filter: brightness(0) invert(1); margin-bottom: 14px; opacity: .8; }
.footer-brand p { font-size: .82rem; color: var(--text-dim); line-height: 1.6; max-width: 220px; }
.footer-socials { display: flex; gap: 8px; margin-top: 16px; }
.fsocial {
  width: 34px; height: 34px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 800;
  color: var(--text-mid);
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.fsocial:hover { background: var(--green-dim); color: var(--green); border-color: rgba(152,208,23,.3); }
.footer-col h5 { font-size: .8rem; font-weight: 700; color: var(--text); margin-bottom: 14px; text-transform: uppercase; letter-spacing: .1em; font-family: var(--mono); }
.footer-col a { display: block; color: var(--text-dim); text-decoration: none; font-size: .82rem; margin-bottom: 8px; transition: color .2s; }
.footer-col a:hover { color: var(--green); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 1280px;
  margin: 0 auto;
  font-size: .78rem;
  color: var(--text-dim);
}
.demo-note { font-family: var(--mono); font-size: .7rem; color: var(--text-dim); }

/* ======================== WHATSAPP ======================== */
.wa-float {
  position: fixed;
  bottom: 88px; right: 22px;
  width: 46px; height: 46px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 400;
  transition: transform .2s, box-shadow .2s;
}
.wa-float:hover { transform: scale(1.12); box-shadow: 0 6px 28px rgba(37,211,102,0.6); }

/* ======================== CHATBOT ======================== */
.chat-toggle {
  position: fixed;
  bottom: 22px; right: 22px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #EA4B71;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 0 rgba(234,75,113,0.4);
  z-index: 500;
  transition: background .2s, transform .2s;
  animation: chatPulse 3s infinite;
}
.chat-toggle:hover { transform: scale(1.1); background: #c53a5e; }
.chat-toggle.open { background: #ef4444; animation: none; box-shadow: 0 0 20px rgba(239,68,68,0.4); }
@keyframes chatPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(234,75,113,0.4); }
  70% { box-shadow: 0 0 0 14px rgba(234,75,113,0); }
}
.ct-open, .ct-close { display: flex; align-items: center; justify-content: center; }
.ct-badge {
  position: absolute;
  top: -3px; right: -3px;
  background: #ef4444;
  color: #fff;
  font-size: .62rem;
  font-weight: 800;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
  font-family: var(--mono);
  animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge { 0%,100%{transform:scale(1)} 50%{transform:scale(1.25)} }

.chat-panel {
  position: fixed;
  bottom: 88px; right: 22px;
  width: 360px;
  max-height: 580px;
  background: var(--bg-glass);
  border: 1px solid rgba(152,208,23,0.15);
  border-radius: 20px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 499;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity .3s ease, visibility .3s ease, transform .3s ease;
}
.chat-panel.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.chat-header {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(79,70,229,0.2), rgba(152,208,23,0.08));
  flex-shrink: 0;
}
.chat-agent { display: flex; align-items: center; gap: 10px; }
.chat-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(152,208,23,.3);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.chat-avatar img { width: 100%; height: 100%; object-fit: contain; }
.chat-online-dot {
  position: absolute;
  bottom: 1px; right: 1px;
  width: 8px; height: 8px;
  background: #4ade80;
  border-radius: 50%;
  border: 1.5px solid var(--bg);
  animation: blink 2s infinite;
}
.chat-name { display: block; font-size: .88rem; font-weight: 700; color: var(--text); }
.chat-status { display: flex; align-items: center; gap: 5px; font-size: .7rem; color: var(--text-mid); font-family: var(--mono); }
.blink-dot { width: 5px; height: 5px; background: #EA4B71; border-radius: 50%; animation: blink 2s infinite; }
.chat-close-btn {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--text-mid);
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
}
.chat-close-btn:hover { background: rgba(239,68,68,.2); color: #ef4444; border-color: rgba(239,68,68,.3); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 3px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }
.chat-divider {
  text-align: center;
  font-size: .66rem;
  color: var(--text-dim);
  font-family: var(--mono);
  letter-spacing: .08em;
  align-self: center;
  background: rgba(255,255,255,.04);
  padding: 2px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
}
.chat-msg {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 90%;
}
.chat-msg.bot { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.chat-bubble {
  padding: 10px 13px;
  border-radius: 14px 14px 14px 4px;
  font-size: .83rem;
  line-height: 1.5;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
}
.chat-bubble p { margin-bottom: 4px; }
.chat-bubble p:last-child { margin-bottom: 0; }
.chat-bubble ul { padding-left: 6px; list-style: none; margin: 6px 0; }
.chat-bubble ul li { margin-bottom: 4px; font-size: .8rem; color: var(--text-mid); padding-left: 12px; position: relative; }
.chat-bubble ul li::before { content: '•'; position: absolute; left: 0; color: #EA4B71; }
.chat-bubble strong.md-h3 { display: block; font-size: .86rem; margin: 8px 0 4px; color: var(--text); letter-spacing: .02em; }
.chat-bubble strong.md-h2 { display: block; font-size: .9rem; margin: 8px 0 4px; color: var(--text); }
.chat-bubble strong.md-h1 { display: block; font-size: .94rem; margin: 8px 0 4px; color: var(--text); }
.chat-bubble em { font-style: italic; opacity: .85; }
.chat-msg.user .chat-bubble {
  background: #EA4B71;
  color: #fff;
  border-color: #EA4B71;
  border-radius: 14px 14px 4px 14px;
}
.chat-time { font-size: .63rem; color: var(--text-dim); font-family: var(--mono); flex-shrink: 0; }
.chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-self: flex-start;
}
.chat-quick-replies button {
  background: rgba(234,75,113,.08);
  border: 1px solid rgba(234,75,113,.25);
  color: #EA4B71;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s;
  font-family: var(--font);
  white-space: nowrap;
}
.chat-quick-replies button:hover { background: #EA4B71; color: #fff; }

.chat-typing {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 0 16px 10px;
  flex-shrink: 0;
}
.typing-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  overflow: hidden;
  flex-shrink: 0;
}
.typing-avatar img { width: 100%; height: 100%; object-fit: contain; }
.typing-bubble {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 11px 14px;
  display: flex;
  gap: 5px;
  align-items: center;
}
.typing-bubble span {
  width: 6px; height: 6px;
  background: var(--text-mid);
  border-radius: 50%;
  animation: bounce 1.2s infinite;
}
.typing-bubble span:nth-child(2) { animation-delay: .2s; }
.typing-bubble span:nth-child(3) { animation-delay: .4s; }
@keyframes bounce { 0%,60%,100%{transform:translateY(0)} 30%{transform:translateY(-6px)} }

.chat-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}
.chat-input-row input {
  flex: 1;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  padding: 9px 16px;
  font-size: .83rem;
  color: var(--text);
  outline: none;
  font-family: var(--font);
  transition: border-color .2s;
}
.chat-input-row input::placeholder { color: var(--text-dim); }
.chat-input-row input:focus { border-color: rgba(234,75,113,.4); }
.chat-send-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #EA4B71;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s, transform .15s;
}
.chat-send-btn:hover { background: #c53a5e; transform: scale(1.1); }
.chat-note { font-size: .65rem; color: var(--text-dim); text-align: center; padding: 5px 10px 8px; border-top: 1px solid rgba(255,255,255,.05); font-family: var(--mono); }
.chat-note code { background: rgba(255,255,255,.06); padding: 1px 5px; border-radius: 3px; }

/* ======================== RESPONSIVE ======================== */
@media (max-width: 1200px) {
  .categories-grid { grid-template-columns: repeat(6, 1fr); }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: span 2; }
  .why-photo-main { width: 85%; }
}

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-3d-wrap { height: 360px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { height: 300px; }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-photo-stack { height: 340px; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .banners-grid-section { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
  .photo-strip { grid-template-columns: repeat(2, 1fr); height: 400px; }
  .gallery-masonry { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gm-tall { grid-row: span 1; }
  .gm-wide { grid-column: span 1; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .section { padding: 64px 0; }
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .chat-panel { width: calc(100vw - 28px); right: 14px; }
  .hero-title { font-size: 2.6rem; }
  .hero-stats { flex-wrap: wrap; gap: 14px; }
  .stat-divider { display: none; }
  .stat-item { padding: 0 12px; }
  .photo-strip { grid-template-columns: 1fr 1fr; height: 320px; }
  .gallery-masonry { grid-template-columns: 1fr; grid-template-rows: auto; }
  .gm-tall, .gm-wide { grid-row: span 1; grid-column: span 1; }
  .av-c1, .av-c3 { left: 0; }
  .av-c2, .av-c4 { right: 0; }
}

@media (max-width: 480px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: 2.1rem; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .photo-strip { grid-template-columns: 1fr 1fr; height: 280px; }
}
