/* Gizmo India - Custom Styles & Animations */

:root {
  /* Brand color tokens from the logo */
  --logo-purple: #4c1d95;
  --logo-magenta: #db2777;
  --logo-orange: #fa5838;
  
  --brand-gradient: linear-gradient(135deg, var(--logo-purple) 0%, var(--logo-magenta) 50%, var(--logo-orange) 100%);
  
  /* Defaults (Dark Theme) */
  --brand-dark: #07080d;
  --brand-surface: #0f111a;
  --brand-surface-2: #181b28;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.08);
  --accent-glow: rgba(219, 39, 119, 0.3);
  --glass-bg: rgba(15, 17, 26, 0.7);
  --card-border: rgba(255, 255, 255, 0.08);
  
  /* Retained for backward compat tags */
  --dell-blue: var(--logo-magenta);
  --lenovo-red: var(--logo-orange);
}


html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--brand-dark);
  color: var(--text-primary);
  overflow-x: clip;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header */
#main-header {
  transition: background-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

#main-header.scrolled {
  background-color: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid var(--card-border);
}

/* Links */
.nav-link {
  position: relative;
}

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

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

/* Buttons */
.btn-primary {
  background: var(--brand-gradient);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--accent-glow);
  filter: brightness(1.08);
}

.btn-secondary {
  border: 1px solid var(--border-color);
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
  color: var(--text-primary);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--logo-magenta);
  background-color: var(--border-color);
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--brand-surface-2);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.theme-toggle-btn:hover {
  border-color: var(--logo-magenta);
  box-shadow: 0 0 12px var(--accent-glow);
}

/* Gradient text */
.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Cards */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  border-color: var(--logo-magenta);
}

/* Service / product cards */
.feature-card {
  background: var(--brand-surface-2);
  border: 1px solid var(--card-border);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: var(--logo-magenta);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger-container .stagger-child {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.stagger-container.stagger-active .stagger-child {
  opacity: 1;
  transform: translateY(0);
}

.stagger-container.stagger-active .stagger-child:nth-child(1) { transition-delay: 0ms; }
.stagger-container.stagger-active .stagger-child:nth-child(2) { transition-delay: 100ms; }
.stagger-container.stagger-active .stagger-child:nth-child(3) { transition-delay: 200ms; }
.stagger-container.stagger-active .stagger-child:nth-child(4) { transition-delay: 300ms; }
.stagger-container.stagger-active .stagger-child:nth-child(5) { transition-delay: 400ms; }
.stagger-container.stagger-active .stagger-child:nth-child(6) { transition-delay: 500ms; }

/* Badges */
.badge-dell {
  background-color: rgba(0, 125, 184, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(0, 125, 184, 0.25);
}

.badge-lenovo {
  background-color: rgba(226, 35, 26, 0.12);
  color: #f87171;
  border: 1px solid rgba(226, 35, 26, 0.25);
}

/* Hero 3D scene: let the transparent WebGL viewport dissolve into the page. */
.hero-visual {
  isolation: isolate;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -18%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 56% 46%, rgba(0, 125, 184, 0.13), transparent 46%),
    radial-gradient(ellipse at 48% 64%, rgba(226, 35, 26, 0.08), transparent 58%);
  filter: blur(24px);
}

#hero-canvas {
  position: absolute;
  inset: -10% -12%;
  width: 124%;
  height: 120%;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 72% 68% at 52% 50%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 68% at 52% 50%, #000 55%, transparent 100%);
}

.hero-visual-grid {
  inset: -12% -18%;
  opacity: 0.62;
  -webkit-mask-image: radial-gradient(ellipse 68% 62% at center, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 68% 62% at center, #000 0%, transparent 78%);
}

@media (max-width: 639px) {
  #hero-canvas {
    inset: -6% -8%;
    width: 116%;
    height: 112%;
  }

  .hero-visual-grid {
    inset: -8% -10%;
  }
}

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

/* Animated background gradient */
.animated-bg {
  background: radial-gradient(circle at 20% 20%, rgba(0, 125, 184, 0.18), transparent 35%),
    radial-gradient(circle at 80% 80%, rgba(226, 35, 26, 0.12), transparent 35%),
    var(--brand-dark);
  background-size: 200% 200%;
  animation: bgShift 12s ease-in-out infinite;
}

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

/* Floating animation */
.float {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

/* Pulse glow */
.pulse-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(0, 125, 184, 0);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 125, 184, 0.25);
  }
}

/* Decorative grid */
.tech-grid {
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at center, black 0%, transparent 75%);
}

/* Forms */
input,
textarea,
select {
  background-color: rgba(17, 24, 39, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--dell-blue);
  box-shadow: 0 0 0 3px rgba(0, 125, 184, 0.2);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--brand-dark);
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Social icons */
.social-icon {
  transition: transform 0.2s ease, color 0.2s ease;
}

.social-icon:hover {
  transform: translateY(-3px);
  color: var(--dell-blue);
}

/* Section divider */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

/* Loading shimmer for images */
.img-shimmer {
  background: linear-gradient(90deg, #1f2937 25%, #374151 50%, #1f2937 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Page Loader Overlay */
#page-loader {
  position: fixed;
  inset: 0;
  background-color: var(--brand-dark);
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  opacity: 1;
  visibility: visible;
}

#page-loader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-glow {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--dell-blue);
  border-bottom-color: var(--lenovo-red);
  animation: spin 1.5s linear infinite;
  position: relative;
}

.loader-glow::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-left-color: #22d3ee;
  border-right-color: #a855f7;
  animation: spin 0.75s linear infinite reverse;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Glowing Border Effect */
.glow-border-box {
  position: relative;
  background: rgba(17, 24, 39, 0.7);
  border-radius: 20px;
  z-index: 1;
}

.glow-border-box::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  padding: 1px;
  background: linear-gradient(135deg, var(--dell-blue), #22d3ee, var(--lenovo-red));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.glow-border-box:hover::before {
  opacity: 1;
}

/* Accordion Transitions */
.faq-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
  opacity: 0;
}

.faq-accordion-content.active {
  max-height: 400px;
  opacity: 1;
}

.faq-accordion-header svg {
  transition: transform 0.3s ease;
}

.faq-accordion-header.active svg {
  transform: rotate(180deg);
  color: var(--dell-blue);
}

/* Interactive Card Selections */
.interactive-card {
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(17, 24, 39, 0.55);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.interactive-card:hover {
  background: rgba(31, 41, 55, 0.5);
  border-color: rgba(255, 255, 255, 0.2);
}

.interactive-card.selected {
  background: rgba(0, 125, 184, 0.1);
  border-color: var(--dell-blue);
  box-shadow: 0 0 20px rgba(0, 125, 184, 0.2);
}

.interactive-card-red.selected {
  background: rgba(226, 35, 26, 0.1);
  border-color: var(--lenovo-red);
  box-shadow: 0 0 20px rgba(226, 35, 26, 0.2);
}

/* PC Component Build Visualization */
.pc-visual-glow {
  filter: drop-shadow(0 0 25px rgba(34, 211, 238, 0.5));
}

.pc-slot-indicator {
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.pc-slot-indicator.active {
  color: #22d3ee;
  text-shadow: 0 0 10px rgba(34, 211, 238, 0.8);
}

/* Testimonials Carousel Slider */
.testimonial-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  min-width: 0;
}

.testimonial-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
}

/* Blog */
.blog-shell {
  width: min(100% - 2rem, 76rem);
  margin-inline: auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.blog-card {
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: 1.25rem;
  background: var(--glass-bg);
}

.blog-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.blog-card-content {
  padding: 1.25rem;
}

.blog-card h2 {
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-size: 1.25rem;
  line-height: 1.35;
}

.blog-card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.article-shell {
  width: min(100% - 2rem, 70rem);
  margin-inline: auto;
}

.article-header,
.article-body {
  width: min(100%, 48rem);
  margin-inline: auto;
}

.article-hero {
  width: 100%;
  margin: 2rem 0;
  border-radius: 1.5rem;
  object-fit: cover;
}

.article-body {
  color: #cbd5e1;
  font-size: 1.0625rem;
  line-height: 1.85;
}

.article-body h2 {
  margin: 3rem 0 1rem;
  color: var(--text-primary);
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.25;
}

.article-body p,
.article-body ul {
  margin-bottom: 1.25rem;
}

.article-body ul {
  padding-left: 1.4rem;
  list-style: disc;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-body figure {
  margin: 2.5rem 0;
}

.article-body figure img {
  width: 100%;
  border-radius: 1rem;
}

.article-cta {
  margin-top: 3rem;
  padding: 1.5rem;
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 1rem;
  background: rgba(30, 41, 59, 0.75);
}

@media (max-width: 767px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-slider-container {
    padding-inline: 2.75rem !important;
  }

  .testimonial-slide {
    padding-inline: 0 !important;
  }

  .carousel-prev {
    left: 0.5rem !important;
  }

  .carousel-next {
    right: 0.5rem !important;
  }
}

.carousel-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28) 0 5px, transparent 6px);
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: radial-gradient(circle, var(--dell-blue) 0 7px, transparent 8px);
  width: 28px;
}

/* Vertical Timeline (About Page) */
.timeline-container {
  position: relative;
}

.timeline-line {
  position: absolute;
  left: 19px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--dell-blue) 0%, rgba(34, 211, 238, 0.4) 50%, var(--lenovo-red) 100%);
  z-index: 0;
}

@media (min-width: 768px) {
  .timeline-line {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-node {
  position: relative;
  z-index: 10;
}

.timeline-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-surface);
  border: 3px solid var(--dell-blue);
  box-shadow: 0 0 15px rgba(0, 125, 184, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
}

.timeline-node:hover .timeline-dot {
  transform: scale(1.15);
  border-color: #22d3ee;
  box-shadow: 0 0 25px rgba(34, 211, 238, 0.7);
}

/* Steps / Wizard Styles */
.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  background-color: var(--brand-surface-2);
  border: 2px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.step-dot.active {
  background-color: var(--dell-blue);
  border-color: var(--dell-blue);
  color: white;
  box-shadow: 0 0 15px rgba(0, 125, 184, 0.4);
}

.step-dot.completed {
  background-color: #10b981;
  border-color: #10b981;
  color: white;
}

.wizard-panel {
  display: none;
}

.wizard-panel.active {
  display: block;
  animation: fadeIn 0.4s ease-out forwards;
}

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

/* Custom Interactive Calendar (Contact Booking) */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  max-width: 100%;
}

.calendar-day-btn {
  aspect-ratio: 1;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(31, 41, 55, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
  font-size: 13px;
  font-weight: 500;
  padding: 4px;
  min-width: 0;
}

.calendar-day-btn:hover:not(:disabled) {
  background-color: rgba(0, 125, 184, 0.15);
  border-color: rgba(0, 125, 184, 0.4);
}

.calendar-day-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.calendar-day-btn.selected {
  background-color: var(--dell-blue);
  border-color: var(--dell-blue);
  color: white;
  box-shadow: 0 0 15px rgba(0, 125, 184, 0.4);
}

.calendar-day-btn.today {
  border: 1px solid rgba(34, 211, 238, 0.5);
  color: #22d3ee;
}

/* Modals (Quick View modal on products) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--brand-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 1010;
}

.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}

/* Floating Tech Particles */
.canvas-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* --- High-Contrast Light Theme Overrides --- */
body.light-theme {
  /* Elegant Soft Light Theme Palette with Neon Glows */
  --brand-dark: #f1f5f9; /* Slate 100 base */
  --brand-surface: #ffffff; /* pure white cards */
  --brand-surface-2: #f8fafc; /* Slate 50 inputs */
  --text-primary: #0f172a; /* Slate 900 text */
  --text-secondary: #475569; /* Slate 600 text */
  --border-color: rgba(15, 23, 42, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --card-border: rgba(15, 23, 42, 0.08);
  --accent-glow: rgba(219, 39, 119, 0.15);
}

/* Branch cards active state */
.branch-card {
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.branch-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}
.branch-card.active {
  border-color: var(--logo-magenta) !important;
  box-shadow: 0 0 20px rgba(219, 39, 119, 0.3);
  background: rgba(219, 39, 119, 0.05) !important;
}

/* Accessibility: honor reduced-motion — kill the infinite/animated effects (WCAG 2.3.3) */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .animated-bg {
    animation: none !important;
    background-position: 0 0, 100% 100% !important;
  }
}
