@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&display=swap');

:root {
  --bg-color: #000000;
  --glass-bg: rgba(10, 15, 30, 0.4);
  --glass-border: rgba(255, 255, 255, 0.1);
  --primary-color: #ffffff;
  --accent-color: #1ea0ff;
  --text-muted: #a0aab2;
  --font-bangla: 'Hind Siliguri', sans-serif;
  --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-bangla);
  background-color: var(--bg-color);
  color: var(--primary-color);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* -------------------------------------
   I AM IN SPACE BACKGROUND (CSS STARS)
-------------------------------------- */
.space-background {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: black;
  z-index: -2;
  overflow: hidden;
}
.stars {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: transparent;
}
.stars::after {
  content: "";
  position: absolute;
  top: -50%; left: -50%; right: -50%; bottom: -50%;
  background-image: 
    radial-gradient(circle, #ffffff 1px, transparent 1px),
    radial-gradient(circle, #ffffff 1.5px, transparent 1.5px);
  background-size: 100px 100px, 200px 200px;
  background-position: 0 0, 50px 50px;
  animation: rotateStars 200s linear infinite;
  opacity: 0.15;
}
@keyframes rotateStars {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

#vortex-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
}

/* Ambient Blue Space Glows */
.ambient-bg {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(30, 160, 255, 0.05), transparent 60%);
}

.container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

/* Utilities */
.text-center { text-align: center; }
.text-accent { color: var(--accent-color); }
.text-muted { color: var(--text-muted); }
.py-4 { padding-top: 8rem; padding-bottom: 8rem; }

h1, h2, h3, h4 {
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(to bottom right, #ffffff, #64748b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 1.2rem 3rem;
  border-radius: 100px;
  font-family: var(--font-bangla);
  font-weight: 600;
  font-size: 1.2rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  transition: var(--transition);
  background: var(--glass-bg);
  color: white;
  backdrop-filter: blur(20px);
}

.btn-primary {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}
.btn-primary:hover {
  background: #e5e5e5;
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(255, 255, 255, 0.25);
}

/* Cosmic Starfield Warp Animation */
.btn-river-fantasy {
  background: #000000 !important;
  color: #ffffff !important;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Starfield Layer 1 */
.btn-river-fantasy::before {
  content: "";
  position: absolute;
  inset: -100%;
  background-image: 
    radial-gradient(1px 1px at 20px 30px, #fff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 40px 70px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 50px 160px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 85px 220px, #fff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 120px 40px, #fff, rgba(0,0,0,0));
  background-size: 200px 200px;
  opacity: 0.3;
  z-index: -1;
  transition: opacity 0.5s, transform 0.8s;
}

/* Cosmic Nebula Glow Layer */
.btn-river-fantasy::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.5s;
}

@keyframes starWarp {
  0% { transform: scale(1) translate(0, 0); opacity: 0.3; }
  50% { opacity: 1; }
  100% { transform: scale(2) translate(10%, 10%); opacity: 0; }
}

.btn-river-fantasy:hover {
  transform: translateY(-8px) scale(1.05);
  border-color: #3b82f6 !important;
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.6), 0 0 60px rgba(139, 92, 246, 0.4);
}

.btn-river-fantasy:hover::before {
  opacity: 1;
  transform: scale(2.5);
  animation: starWarp 1.5s infinite linear;
  background-size: 100px 100px; /* Denser stars */
}

.btn-river-fantasy:hover::after {
  opacity: 1;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Navbar */
header {
  position: fixed;
  top: 0; width: 100%; padding: 1.5rem 0; z-index: 1000; transition: var(--transition);
}
header.scrolled {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 0;
}
.navbar { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.8rem; font-weight: 700; letter-spacing: -1px; }

/* -------------------------------------
   HERO SECTION - BIG AND 3D
-------------------------------------- */
.hero {
  min-height: 110vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  align-items: center;
}

.hero-content {
  z-index: 10;
}

.hero-content h1 {
  font-size: 5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  line-height: 1.1;
  text-shadow: 0 0 40px rgba(255,255,255,0.2);
}

.hero-text-exact {
  font-size: 1.4rem;
  color: #d1d5db;
  margin-bottom: 3rem;
  line-height: 1.8;
}

/* 3D Massive Image Wrapper */
.hero-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero-image-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  z-index: 1;
  border-radius: 30px;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.hero-image-container:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 80px rgba(16, 185, 129, 0.2);
}

/* Background Signal Waves */
.hero-image-container::before {
  content: ""; position: absolute; top: 50%; left: 50%; width: 100px; height: 100px;
  background: transparent; border: 2px solid #10b981; border-radius: 50%;
  transform: translate(-50%, -50%); opacity: 0; z-index: -1; pointer-events: none;
}

@keyframes signalWave {
  0% { width: 100px; height: 100px; opacity: 0.8; border-width: 4px; }
  100% { width: 1200px; height: 1200px; opacity: 0; border-width: 1px; }
}

#hero3D:hover::before { animation: signalWave 2s infinite cubic-bezier(0.1, 0.8, 0.3, 1); }

/* Square Pixels Rising Over Image */
.hero-image-container::after {
  content: ""; position: absolute; inset: 0; border-radius: 30px;
  background-image: linear-gradient(rgba(16, 185, 129, 0.3) 2px, transparent 2px), linear-gradient(90deg, rgba(16, 185, 129, 0.3) 2px, transparent 2px);
  background-size: 30px 30px; opacity: 0; z-index: 5; pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 90%);
  transition: opacity 0.4s;
}

@keyframes pixelRise {
  0% { background-position: 0 0; }
  100% { background-position: 0 -150px; }
}

#hero3D:hover::after { opacity: 1; animation: pixelRise 3s infinite linear; }

/* Google Style Running Border */
.google-border-wrapper {
  position: relative;
  padding: 4px; /* Border thickness */
  border-radius: 34px;
  overflow: hidden;
  z-index: 2;
  box-shadow: 0 30px 50px rgba(0,0,0,0.8);
}
.google-border-wrapper::before {
  content: "";
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(#4285F4 0%, #EA4335 25%, #FBBC05 50%, #34A853 75%, #4285F4 100%);
  animation: spinGoogle 3s linear infinite;
  z-index: 0;
}
@keyframes spinGoogle {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-image-container img {
  width: 100%; display: block;
}

@keyframes pulsePlay {
  0% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: translate(-50%, -50%) scale(1.05); box-shadow: 0 0 0 25px rgba(16, 185, 129, 0); }
  100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

#playPromoBtn {
  animation: pulsePlay 2s infinite;
  transition: all 0.3s ease;
}

#hero3D:hover #playPromoBtn {
  background: #10b981;
  transform: translate(-50%, -50%) scale(1.2) !important;
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.8);
}

/* Glass Panels & Cards */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(30px);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  padding: 4rem;
  position: relative;
  overflow: hidden;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 3rem;
  position: relative;
  transition: transform 0.4s ease, border-color 0.4s ease;
  overflow: hidden;
  height: 100%;
}
.glass-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient( 800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 255, 255, 0.08), transparent 40% );
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s;
}
.glass-card:hover::before { opacity: 1; }
.glass-card:hover { border-color: rgba(255, 255, 255, 0.3); transform: translateY(-8px); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.feature-icon {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px; height: 80px;
  background: rgba(255,255,255,0.05);
  border-radius: 20px;
  border: 1px solid var(--glass-border);
}

/* Massive Gallery Images */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.gallery-item {
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--glass-border);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  height: 500px;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-item:hover img { transform: scale(1.08); }

.gallery-overlay {
  position: absolute;
  bottom: 0; left: 0; width: 100%;
  padding: 4rem 2rem 2rem 2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0.4) 60%, transparent);
  color: #fff;
  pointer-events: none;
}
.gallery-overlay h3 { font-size: 1.6rem; margin-bottom: 0.5rem; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }
.gallery-overlay p { font-size: 1.1rem; color: #cbd5e1; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }

/* Responsive Structural Grids */
.specs-panel { padding: 5rem; }
.specs-h2 { margin-bottom: 3rem; font-size: 2.5rem; }
.specs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 3rem; }

.checkout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.pricing-h2 { font-size: 4rem; margin-bottom: 1rem; color: #10b981; display: flex; align-items: baseline; gap: 1rem; }
.pricing-old { font-size: 2rem; color: var(--text-muted); text-decoration: line-through; }
.checkout-header-p { font-size: 1.2rem; margin-bottom: 3rem; color: var(--text-muted); }

.checkout-flex-group { display: flex; gap: 1.5rem; }
.checkout-qty-box { width: 120px; }

@media (max-width: 900px) {
  .specs-panel { padding: 2rem; }
  .specs-h2 { font-size: 2rem; margin-bottom: 2rem; }
  .checkout-grid { grid-template-columns: 1fr; gap: 3rem; }
  .pricing-h2 { font-size: 3rem; justify-content: center; }
  .pricing-old { font-size: 1.5rem; }
  .checkout-header-p { text-align: center; margin-bottom: 2rem; }
  #order .glass-panel { text-align: left; }
}

@media (max-width: 480px) {
  .specs-grid { grid-template-columns: 1fr; }
  .checkout-flex-group { flex-direction: column; gap: 0; }
  .checkout-qty-box { width: 100%; }
  .pricing-h2 { font-size: 2.2rem; flex-wrap: wrap; text-align: center; }
  .pricing-old { font-size: 1.2rem; }
  .payment-methods { flex-direction: column; }
}

/* Form Styles */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-size: 1rem; color: var(--text-muted); margin-bottom: 0.5rem; }
/* 5.1 Form Controls Upgrade (V52) */
.form-control {
  width: 100%; padding: 1.2rem; background: rgba(0,0,0,0.5);
  border: 1px solid var(--glass-border); border-radius: 12px;
  color: #fff; font-family: var(--font-bangla); font-size: 1.1rem; transition: all 0.3s;
  outline: none;
}

select.form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  background-size: 1.2rem;
  padding-right: 3rem;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

select.form-control option {
  background: #0f172a;
  color: #fff;
}

.form-control:focus {
  border-color: #fff;
  background: rgba(255,255,255,0.05);
  box-shadow: 0 0 15px rgba(255,255,255,0.1);
}

/* 5.2 Order Summary Typography (V52) */
#order-summary-box {
  animation: summaryFadeIn 0.5s ease-out;
}

#summary-prod-price, #summary-qty, #summary-delivery-charge, #summary-grand-total {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
}

#summary-prod-price { font-size: 1.1rem; color: #fff; }
#summary-qty { color: #10b981; }

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

.payment-methods { display: flex; gap: 1rem; margin-top: 0.5rem; }
.payment-label {
  flex: 1; padding: 1.5rem; border: 1px solid var(--glass-border); border-radius: 12px;
  cursor: pointer; text-align: center; background: rgba(0,0,0,0.4);
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem; transition: var(--transition);
}
.payment-label i { font-size: 1.8rem; }
.payment-label:hover { border-color: rgba(255,255,255,0.4); }
.payment-label.selected { border-color: #fff; background: rgba(255,255,255,0.15); box-shadow: 0 0 20px rgba(255,255,255,0.1); }
.payment-label input { display: none; }

/* Scroll Anim */
.reveal {
  opacity: 0; transform: translateY(60px);
  will-change: opacity, transform;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-100 { transition-delay: 150ms; }
.delay-200 { transition-delay: 300ms; }
.delay-300 { transition-delay: 450ms; }

/* Lightbox Modal */
.lightbox {
  display: none; position: fixed; z-index: 3000;
  padding-top: 1rem; left: 0; top: 0; width: 100%; height: 100%;
  overflow: hidden; background-color: rgba(0,0,0,0.95); backdrop-filter: none;
  display: flex !important; align-items: center; justify-content: center; opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.show {
  opacity: 1; pointer-events: auto;
}
.lightbox-content {
  margin: auto; display: block; max-width: 85vw; max-height: 75vh;
  border-radius: 10px; box-shadow: 0 0 50px rgba(0,0,0,0.5); transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  object-fit: contain;
}
.lightbox.show .lightbox-content { transform: scale(1); }
.lightbox-caption {
  text-align: center; margin-top: 1.5rem; opacity: 0; transform: translateY(10px);
  transition: all 0.4s ease 0.1s;
}
.lightbox.show .lightbox-caption {
  opacity: 1; transform: translateY(0);
}
.lightbox-close {
  position: absolute; top: 20px; right: 30px; color: #fff;
  font-size: 3rem; font-weight: 300; cursor: pointer; transition: 0.3s;
  z-index: 3001; text-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.lightbox-close:hover { color: var(--accent-color); text-shadow: 0 0 10px var(--accent-color); }

/* Lightbox Navigation */
.lightbox-nav {
  position: absolute; top: 50%; width: 60px; height: 60px;
  background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.5rem; cursor: pointer;
  transform: translateY(-50%); transition: var(--transition);
  z-index: 3002;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.2); border-color: #fff; transform: translateY(-50%) scale(1.1); }
.prev-btn { left: 40px; }
.next-btn { right: 40px; }

/* Sticky WhatsApp Button */
.sticky-whatsapp {
  position: fixed; bottom: 30px; right: 30px; width: 65px; height: 65px;
  background-color: #25D366; color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 35px; box-shadow: 2px 2px 20px rgba(0,0,0,0.5);
  text-decoration: none; z-index: 2500; transition: var(--transition);
  animation: whatsappPulse 3s infinite;
}
.sticky-whatsapp:hover { transform: scale(1.1); }
@keyframes whatsappPulse {
  0% { box-shadow: 0 0 0 0px rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 25px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0px rgba(37, 211, 102, 0); }
}

@media (max-width: 768px) {
  .lightbox-nav { width: 50px; height: 50px; font-size: 1.2rem; }
  .prev-btn { left: 10px; }
  .next-btn { right: 10px; }
  .sticky-whatsapp { width: 55px; height: 55px; font-size: 28px; bottom: 20px; right: 20px; }
}

/* Desktop Hover Reset Mobile */
@media(max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 4rem; }
  .hero-content h1 { font-size: 3.5rem; }
  .hero-image-container { left: 0; width: 100%; transform: none !important; }
  .hero-image-container img { transform: none !important; }
  .glass-panel { padding: 2rem; }
}

@media(max-width: 768px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item { height: 350px; }
}
