/* Voltage Electronics Theme Base CSS - Extended with Animated Hero Carousel & Extended Body Sections */

:root {
  --color-primary: #0b0f19;
  --color-secondary: #111827;
  --color-accent: #00f0ff;
  --color-accent-hover: #38bdf8;
  --color-text: #f8fafc;
  --color-text-muted: #94a3b8;
  --color-border: #1e293b;
  --color-badge-sale: #ef4444;
  --font-family-body: system-ui, -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
  --font-family-heading: system-ui, -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
  --container-width: 1280px;
  --header-height: 72px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --shadow-glow: 0 0 25px rgba(0, 240, 255, 0.15);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.35);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  background-color: var(--color-primary);
  color: var(--color-text);
  font-family: var(--font-family-body);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

button {
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 4.5vw + 1rem, 3.8rem); }
h2 { font-size: clamp(1.6rem, 2.8vw + 1rem, 2.6rem); }
h3 { font-size: clamp(1.25rem, 1.5vw + 0.75rem, 1.75rem); }
h4 { font-size: 1.25rem; }

.section-title-wrap {
  margin-bottom: 2.5rem;
  text-align: center;
}

.section-subtitle {
  color: var(--color-accent);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  display: block;
}

.section-description {
  color: var(--color-text-muted);
  max-width: 650px;
  margin: 0.75rem auto 0;
  font-size: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-smooth);
  text-align: center;
  white-space: nowrap;
  user-select: none;
}

.btn-primary {
  background: var(--color-accent);
  color: #0b0f19;
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 240, 255, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-sale {
  background-color: var(--color-badge-sale);
  color: #ffffff;
}

.badge-tech {
  background: rgba(0, 240, 255, 0.1);
  color: var(--color-accent);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

/* Header */
.announcement-bar {
  background: linear-gradient(90deg, #0b0f19 0%, #1e1b4b 50%, #0b0f19 100%);
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  position: relative;
  z-index: 50;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 15, 25, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header-logo-text {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.header-logo-text span {
  color: var(--color-accent);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(0, 240, 255, 0.05);
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--color-accent);
  color: #0b0f19;
  font-size: 0.75rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn {
  display: none;
}

.section-padding {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

/* ==========================================================================
   ANIMATED SVG HERO CAROUSEL
   ========================================================================== */
.hero-carousel-wrap {
  position: relative;
  min-height: 85vh;
  background: radial-gradient(circle at 70% 30%, rgba(0, 240, 255, 0.12) 0%, rgba(11, 15, 25, 1) 70%);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(0.97);
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-slide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

.hero-slide-svg-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* SVG Animations */
@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.8; filter: drop-shadow(0 0 15px rgba(0,240,255,0.4)); }
  50% { transform: scale(1.05); opacity: 1; filter: drop-shadow(0 0 35px rgba(0,240,255,0.8)); }
}

@keyframes waveFloat {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes dashPulse {
  to { stroke-dashoffset: -100; }
}

.animated-svg-graphic {
  width: 100%;
  max-width: 480px;
  height: auto;
  animation: waveFloat 6s ease-in-out infinite;
}

.glow-circle {
  animation: pulseGlow 4s ease-in-out infinite;
}

.pulse-line {
  stroke-dasharray: 10 5;
  animation: dashPulse 4s linear infinite;
}

/* Carousel Controls */
.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.8);
  border: 1px solid var(--color-border);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.carousel-nav-btn:hover {
  background: var(--color-accent);
  color: #0b0f19;
  border-color: var(--color-accent);
}

.carousel-nav-prev { left: 1.5rem; }
.carousel-nav-next { right: 1.5rem; }

.carousel-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 10;
}

.indicator-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid var(--color-border);
  transition: all var(--transition-smooth);
}

.indicator-dot.active {
  width: 32px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

/* ==========================================================================
   EXTENDED BODY SECTIONS
   ========================================================================== */

/* 1. Tech Ecosystem Bundle Generator */
.ecosystem-container {
  background: var(--color-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}

.bundle-card-selectable {
  background: rgba(0, 0, 0, 0.25);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: all var(--transition-fast);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bundle-card-selectable:hover, .bundle-card-selectable.selected {
  border-color: var(--color-accent);
  background: rgba(0, 240, 255, 0.05);
}

.bundle-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b0f19;
  background: transparent;
  font-weight: 900;
  font-size: 0.8rem;
}

.bundle-card-selectable.selected .bundle-checkbox {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

/* 2. Micro-Architecture Deep Dive Grid */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.arch-card {
  background: var(--color-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth);
}

.arch-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-accent);
}

.arch-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

/* 3. Interactive FAQ Accordion */
.faq-wrap {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-secondary);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

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

.faq-chevron {
  transition: transform var(--transition-fast);
}

/* Trust Bar */
.trust-bar {
  background: var(--color-secondary);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 1.75rem 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
}

.trust-icon {
  color: var(--color-accent);
  flex-shrink: 0;
}

.trust-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.trust-sub {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Product Grid & Card */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.75rem;
}

.product-card {
  background: var(--color-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
  position: relative;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: var(--shadow-glow);
}

.product-card-image-wrap {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background: #07090e;
  overflow: hidden;
}

.product-card-image-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.product-card:hover .product-card-image-wrap img {
  transform: scale(1.05);
}

.product-card-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 2;
}

.product-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card-vendor {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.product-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.product-card-price-row {
  margin-top: auto;
  padding-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.product-price-compare {
  font-size: 0.875rem;
  text-decoration: line-through;
  color: var(--color-text-muted);
  margin-left: 0.4rem;
}

.product-card-add-btn {
  background: rgba(0, 240, 255, 0.1);
  color: var(--color-accent);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.product-card-add-btn:hover {
  background: var(--color-accent);
  color: #0b0f19;
}

/* Spec Comparison Table */
.spec-comparison-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-secondary);
  box-shadow: var(--shadow-card);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 600px;
}

.spec-table th, .spec-table td {
  padding: 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.spec-table th {
  background: rgba(255, 255, 255, 0.02);
  font-weight: 700;
}

.spec-table .spec-name {
  color: var(--color-text-muted);
  font-weight: 600;
  width: 25%;
}

.spec-table .product-header {
  text-align: center;
}

/* Quantity Stepper */
.quantity-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
}

.quantity-stepper button {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 700;
}

.quantity-stepper input {
  width: 36px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Variant Swatches */
.variant-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.swatch-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.swatch-btn:hover, .swatch-btn.selected {
  border-color: var(--color-accent);
  background: rgba(0, 240, 255, 0.1);
  color: var(--color-accent);
}

/* Product Details Drawer & Modal */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.product-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 580px;
  background: var(--color-secondary);
  border-left: 1px solid var(--color-border);
  z-index: 301;
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: -10px 0 40px rgba(0,0,0,0.8);
}

.drawer-overlay.open .product-drawer {
  transform: translateX(0);
}

.drawer-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--color-secondary);
  z-index: 10;
}

.drawer-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.cart-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: var(--color-secondary);
  border-left: 1px solid var(--color-border);
  z-index: 201;
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.cart-drawer-overlay.open .cart-drawer {
  transform: translateX(0);
}

.cart-drawer-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer-body {
  padding: 1.5rem;
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cart-drawer-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
  background: rgba(0, 0, 0, 0.25);
}

/* Tabs inside Drawer */
.drawer-tabs {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(0,0,0,0.2);
}

.drawer-tab-btn {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}

.drawer-tab-btn.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
  background: rgba(0, 240, 255, 0.05);
}

.drawer-tab-pane {
  padding: 1rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  display: none;
}

.drawer-tab-pane.active {
  display: block;
}

/* Footer */
.footer {
  background: #07090e;
  border-top: 1px solid var(--color-border);
  padding-top: 4rem;
  padding-bottom: 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-column-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

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

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

@media (max-width: 900px) {
  .hero-slide-grid { grid-template-columns: 1fr; gap: 2rem; }
  .nav-menu { display: none; }
  .mobile-menu-btn { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .product-drawer { max-width: 100%; }
}
