/*
 * Premium Design System for Palak Gen Trade LLP Landing Website
 * Light theme, modern typography, glassmorphism elements, and smooth interactions
 */

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

:root {
  /* Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;

  --accent: #3b2383;
  /* Deep Purple */
  --accent-secondary: #e80a89;
  /* Vibrant Pink */
  --accent-tertiary: #00b4d8;
  /* Bright Blue */

  --accent-gradient: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
  --accent-gradient-alt: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-tertiary) 100%);
  --accent-light: rgba(232, 10, 137, 0.08);
  --accent-light-hover: rgba(232, 10, 137, 0.15);

  --text-primary: #0f172a;
  /* Slate 900 */
  --text-secondary: #475569;
  /* Slate 600 */
  --text-muted: #94a3b8;
  /* Slate 400 */

  --border-color: rgba(226, 232, 240, 0.8);
  --border-focus: rgba(232, 10, 137, 0.4);

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Borders and Shadows */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(59, 35, 131, 0.08), 0 4px 6px -2px rgba(59, 35, 131, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --shadow-premium: 0 25px 50px -12px rgba(59, 35, 131, 0.15);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
}

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

button,
input,
textarea {
  font-family: inherit;
}

/* Layout Utilities */
section {
  padding: 100px 24px;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

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

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* --- NAVBAR --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 24px;
  transition: var(--transition-normal);
}

.navbar.scrolled {
  padding: 16px 24px;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.logo-img {
  height: 60px;
  max-width: 280px;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: var(--transition-normal);
  border-radius: var(--radius-full);
}

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

.nav-cta {
  background: var(--accent-gradient);
  color: #fff;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(232, 10, 137, 0.25);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(232, 10, 137, 0.4);
  color: #fff;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  padding: 4px;
}

/* --- HERO SECTION --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 10% 20%, rgba(232, 10, 137, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0, 180, 216, 0.04) 0%, transparent 40%),
    var(--bg-secondary);
  padding-top: 120px;
  overflow: hidden;
  position: relative;
}

/* Subtle grain texture overlay */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='3' cy='3' r='1' fill='%233b2383' fill-opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  max-width: 640px;
}

.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  background-color: var(--accent-light);
  color: var(--accent);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  border: 1px solid rgba(232, 10, 137, 0.15);
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 20px;
}

.hero-title span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  font-weight: 400;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 14px rgba(232, 10, 137, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(232, 10, 137, 0.4);
}

.btn-secondary {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background-color: var(--bg-secondary);
  border-color: var(--text-muted);
}

/* Lottie Graphic container */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* 3D Cube Scene & Wrapper */
.cube-scene {
  width: 240px;
  height: 240px;
  position: relative;
  perspective: 1200px;
  perspective-origin: 50% 50%;
  z-index: 2;
  margin: 0 auto;
}

.cube-shadow {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%) rotateX(90deg);
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.18) 0%, rgba(15, 23, 42, 0) 70%);
  border-radius: 50%;
  animation: shadowPulse 4s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}

@keyframes shadowPulse {
  0% {
    transform: translateX(-50%) rotateX(90deg) scale(0.9);
    opacity: 0.8;
  }

  100% {
    transform: translateX(-50%) rotateX(90deg) scale(1.1);
    opacity: 0.4;
  }
}

.cube-wrapper {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: cubeBob 4s ease-in-out infinite alternate;
}

@keyframes cubeBob {
  0% {
    transform: translateY(0px);
  }

  100% {
    transform: translateY(-16px);
  }
}

.cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(-15deg) rotateY(45deg) rotateZ(10deg);
  will-change: transform;
}

/* Cube Faces */
.cube-face {
  position: absolute;
  width: 240px;
  height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 0 35px rgba(0, 0, 0, 0.18), 0 5px 15px rgba(15, 23, 42, 0.1);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backface-visibility: hidden;
  transition: all 0.5s ease;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}

.cube-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  color: #ffffff;
  stroke-width: 1.8;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

/* 6 Faces Rotations and Transforms */
.cube-face-front {
  background-color: rgba(59, 35, 131, 0.88);
  /* Deep Purple */
  transform: rotateY(0deg) translateZ(120px);
}

.cube-face-back {
  background-color: rgba(232, 10, 137, 0.88);
  /* Vibrant Pink */
  transform: rotateY(180deg) translateZ(120px);
}

.cube-face-right {
  background-color: rgba(0, 180, 216, 0.88);
  /* Bright Blue */
  transform: rotateY(90deg) translateZ(120px);
}

.cube-face-left {
  background-color: rgba(99, 102, 241, 0.88);
  /* Indigo */
  transform: rotateY(-90deg) translateZ(120px);
}

.cube-face-top {
  background-color: rgba(139, 92, 246, 0.88);
  /* Violet */
  transform: rotateX(90deg) translateZ(120px);
}

.cube-face-bottom {
  background-color: rgba(236, 72, 153, 0.88);
  /* Rose Pink */
  transform: rotateX(-90deg) translateZ(120px);
}

/* Hover effects for faces */
.cube:hover .cube-face {
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 0 45px rgba(0, 0, 0, 0.25), 0 8px 25px rgba(15, 23, 42, 0.15);
}

/* CSS Floating Abstract Background Shapes */
.hero-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: var(--radius-full);
  filter: blur(40px);
  opacity: 0.4;
  animation: float 20s infinite alternate ease-in-out;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background-color: rgba(232, 10, 137, 0.12);
  top: -10%;
  right: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 250px;
  height: 250px;
  background-color: rgba(0, 180, 216, 0.12);
  bottom: 10%;
  left: 10%;
  animation-delay: -5s;
}

.shape-3 {
  width: 150px;
  height: 150px;
  background-color: rgba(59, 35, 131, 0.08);
  top: 40%;
  right: 40%;
  animation-delay: -10s;
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
  }

  50% {
    transform: translateY(-40px) rotate(180deg) scale(1.1);
  }

  100% {
    transform: translateY(20px) rotate(360deg) scale(0.9);
  }
}

/* --- ABOUT US --- */
.about {
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-color);
}

.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
  background: var(--bg-primary);
  padding: 50px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.about-text-block h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.about-text-block p {
  font-size: 1.08rem;
  margin-bottom: 20px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.sub-label {
  display: inline-block;
  color: var(--accent-secondary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.about-visual-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.visual-badge {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: var(--transition-normal);
}

.visual-badge:hover {
  transform: translateX(6px);
  border-color: rgba(232, 10, 137, 0.3);
  box-shadow: var(--shadow-md);
}

.visual-badge h3 {
  font-size: 3rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.visual-badge p {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1.05rem;
  line-height: 1.3;
}

/* Timeline component wrapper */
.timeline-container {
  border-top: 1px dashed var(--border-color);
  padding-top: 40px;
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 0;
}

/* Central Static Background Line */
.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--border-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  border-radius: var(--radius-full);
}

/* Animated Drawing Line Over Background */
.timeline-progress-bar {
  position: absolute;
  width: 4px;
  background: var(--accent-gradient);
  top: 0;
  left: 50%;
  margin-left: -2px;
  z-index: 1;
  height: 0;
  /* Animated dynamically in JS */
  border-radius: var(--radius-full);
  transition: height 0.1s ease-out;
}

.timeline-item {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 60px;
  position: relative;
  box-sizing: border-box;
}

.timeline-item.left {
  flex-direction: row;
}

.timeline-item.right {
  flex-direction: row-reverse;
}

/* Timeline Content Card */
.timeline-content {
  width: 45%;
  padding: 30px;
  background-color: var(--bg-secondary);
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  z-index: 2;
}

.timeline-content:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(232, 10, 137, 0.3);
}

/* Timeline Meta (Opposite Column) */
.timeline-meta {
  width: 45%;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
  box-sizing: border-box;
}

.timeline-item.left .timeline-meta {
  align-items: center;
  text-align: left;
}

.timeline-item.right .timeline-meta {
  align-items: flex-end;
  text-align: right;
}

.timeline-year-large {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
  text-shadow: 2px 4px 10px rgba(232, 10, 137, 0.2);
}

.timeline-subtitle {
  font-size: 1.3rem;
  color: var(--text-primary);
  line-height: 1.5;
  font-weight: 500;
}

.timeline-subtitle strong {
  color: var(--accent);
  font-weight: 800;
  font-size: 1.6rem;
  display: block;
  margin-top: 4px;
}

/* Milestone Dots on central line */
.timeline-item::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--bg-primary);
  border: 4px solid var(--border-color);
  border-radius: var(--radius-full);
  z-index: 3;
  transition: border-color var(--transition-normal), background-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.02);
}

/* JS-triggered active dot class */
.timeline-item.active-dot::after {
  border-color: var(--accent-secondary);
  background-color: var(--bg-primary);
  box-shadow: 0 0 0 5px rgba(232, 10, 137, 0.2);
  transform: translate(-50%, -50%) scale(1.15);
}

/* Arrow pointers on desktop cards */
.timeline-content::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  z-index: 1;
  border: medium solid var(--border-color);
}

.timeline-item.left .timeline-content::before {
  right: -10px;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent var(--border-color);
}

.timeline-item.right .timeline-content::before {
  left: -10px;
  border-width: 10px 10px 10px 0;
  border-color: transparent var(--border-color) transparent transparent;
}

/* Secondary internal arrow for card filling background */
.timeline-content::after {
  content: " ";
  height: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  z-index: 2;
  border: medium solid var(--bg-secondary);
}

.timeline-item.left .timeline-content::after {
  right: -9px;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent var(--bg-secondary);
}

.timeline-item.right .timeline-content::after {
  left: -9px;
  border-width: 10px 10px 10px 0;
  border-color: transparent var(--bg-secondary) transparent transparent;
}

/* --- WHY CHOOSE US --- */
.why-choose-us {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

/* Stats Metric inside Why Cards */
.stat-number-wrapper {
  margin: 20px 0 10px;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.stat-suffix {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-secondary);
  margin-left: 2px;
  line-height: 1;
}

/* Why Grid */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.why-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.why-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(232, 10, 137, 0.3);
}

.why-card h3 {
  font-size: 1.4rem;
  margin: 12px 0 16px;
  color: var(--text-primary);
}

.why-card p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
}

.why-icon-container {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid rgba(79, 70, 229, 0.08);
}

.why-icon-container i {
  width: 24px;
  height: 24px;
}

.why-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.why-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- PRODUCTS SECTION --- */
.products {
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-color);
}

/* Stacked Catalog Layout */
.isometric-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 650px;
  margin-top: 0;
  position: relative;
  /* Set to relative to contain absolute-positioned stack-prompt */
}

.iso-container {
  width: 30%;
  /* Reclaimed 5% width from the left side */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0;
  /* Removed left padding to optimize space */
  perspective: 1200px;
}

.iso-stack {
  position: relative;
  width: 195px;
  height: 195px;
  transform: rotateX(54.736deg) rotateZ(-45deg);
  transform-style: preserve-3d;
}

/* Static Hitbox: remains in place to prevent cursor glitching */
.iso-hitbox {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateZ(calc(var(--index) * 34px));
  transform-style: preserve-3d;
  cursor: pointer;
}

/* Visual Layer: moves inside the hitbox on hover */
.iso-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}

/* Hover and Active lifts and slides out the layer to prevent label overlap */
.iso-hitbox.active .iso-layer {
  transform: translate3d(-18px, 18px, 12px);
}

/* Face base classes */
.iso-face {
  position: absolute;
  transition: all 0.35s ease;
  box-sizing: border-box;
}

/* TOP face — lies flat on horizontal XY plane */
.iso-top {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.02);
}

/* RIGHT face — depth side on right Y-axis */
.iso-right {
  width: 24px;
  height: 100%;
  right: -24px;
  top: 0;
  transform-origin: left;
  transform: rotateY(90deg);
  background-color: #e2e8f0;
  border: 1px solid #cbd5e1;
  border-left: none;
}

/* LEFT face — depth side on front-left X-axis (where readable text goes) */
.iso-left {
  width: 100%;
  height: 24px;
  bottom: -24px;
  left: 0;
  transform-origin: top;
  transform: rotateX(-90deg);
  background-color: #e2e8f0;
  border: 1px solid #cbd5e1;
  border-top: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 16px;
}

/* Label text, un-mirrored and styled */
.iso-label {
  font-weight: 800;
  color: #475569;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s;
  transform: none;
  /* Removed scale(-1, -1) to fix inverted text */
  display: block;
  white-space: nowrap;
  pointer-events: none;
}

/* ---- ACTIVE COLOR SCHEME (Pink/Violet) ---- */
.iso-hitbox.active .iso-top {
  background-color: var(--accent);
  /* Deep Violet */
  border-color: var(--accent);
}

.iso-hitbox.active .iso-left {
  background-color: var(--accent-secondary);
  /* Vibrant Pink */
  border-color: var(--accent-secondary);
}

.iso-hitbox.active .iso-right {
  background-color: #b9056d;
  /* Darker Pink for 3D shadow face */
  border-color: #b9056d;
}

.iso-hitbox.active .iso-label {
  color: #ffffff;
}

/* ---- New Top Stack Indicator ---- */
.stack-prompt {
  position: absolute;
  left: 17.5%;
  /* Positioned vertically and horizontally aligned with new stack top dot */
  top: -10px;
  /* Shifted upwards to align with top index 9 */
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 100;
  pointer-events: none;
}

.stack-prompt-label {
  background: #ffffff;
  border: 2px solid var(--accent-secondary);
  color: var(--accent-secondary);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  box-shadow: 0 4px 10px rgba(232, 10, 137, 0.15);
  white-space: nowrap;
}

.stack-prompt-arrow {
  flex-shrink: 0;
  margin-right: -10px;
  /* pull arrow closer to label */
}

.pulsating-dot {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ffffff;
  /* White background to stand out on both active pink and inactive grey */
  border: 1px solid var(--accent-secondary);
  /* Pink border */
  box-shadow: 0 0 8px var(--accent-secondary);
  z-index: 5;
  animation: pulseDot 1.2s infinite alternate;
}

@keyframes pulseDot {
  0% {
    transform: translateY(-50%) scale(1);
    box-shadow: 0 0 4px var(--accent-secondary);
  }

  100% {
    transform: translateY(-50%) scale(2.0);
    box-shadow: 0 0 12px #ffffff, 0 0 6px var(--accent-secondary);
  }
}


/* ---- RIGHT: Detail Pane ---- */
.iso-content {
  width: 66%;
  margin-top: 0;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: var(--shadow-xl);
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.catalog-pane {
  display: none;
  position: relative;
}

.catalog-pane-body {
  max-width: calc(100% - 200px);
}

.catalog-pane.active {
  display: block;
  animation: fadeInRight 0.4s ease forwards;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.catalog-category {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.05em;
  display: inline-block;
  margin-bottom: 8px;
}

.catalog-pane-body h3 {
  font-size: 2.2rem;
  margin-bottom: 16px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.catalog-pane-body p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.catalog-specs {
  background-color: var(--bg-secondary);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 30px;
}

.catalog-specs h5 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  background: var(--bg-primary);
  color: var(--accent);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(59, 35, 131, 0.2);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.pill:hover,
.pill.active {
  background: var(--accent);
  color: #fff;
}

/* Image card fan */
.catalog-pane-visual {
  position: absolute;
  top: -10px;
  right: 10px;
  margin-top: 0;
  width: 200px;
}

.visual-card-stack {
  position: relative;
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-card {
  position: absolute;
  width: 180px;
  height: 120px;
  border-radius: var(--radius-md);
  background: #e2e8f0;
  border: 3px solid #fff;
  box-shadow: var(--shadow-md);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.visual-card-1 {
  transform: rotate(-2deg);
  z-index: 3;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.category-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #ffffff;
  border-radius: calc(var(--radius-md) - 3px);
}

.category-img.fasteners-img {
  padding: 10px;
}

.product-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.product-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 600;
  background-color: var(--bg-primary);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.product-list li:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 10, 137, 0.3);
  background-color: var(--bg-secondary);
  box-shadow: var(--shadow-md);
}

.product-list li i {
  color: var(--accent-secondary);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.visual-card-2 {
  transform: rotate(4deg) translate(12px, 8px);
  z-index: 2;
}

.visual-card-3 {
  transform: rotate(10deg) translate(24px, 16px);
  z-index: 1;
}

.catalog-pane.active .visual-card-1 {
  animation: cardFan1 0.6s 0.1s ease forwards;
}

.catalog-pane.active .visual-card-2 {
  animation: cardFan2 0.6s 0.2s ease forwards;
}

.catalog-pane.active .visual-card-3 {
  animation: cardFan3 0.6s 0.3s ease forwards;
}

@keyframes cardFan1 {
  from {
    transform: rotate(0deg) scale(0.9);
    opacity: 0;
  }

  to {
    transform: rotate(-2deg) scale(1);
    opacity: 1;
  }
}

@keyframes cardFan2 {
  from {
    transform: rotate(0deg) translate(0, 0) scale(0.9);
    opacity: 0;
  }

  to {
    transform: rotate(4deg) translate(12px, 8px) scale(1);
    opacity: 1;
  }
}

@keyframes cardFan3 {
  from {
    transform: rotate(0deg) translate(0, 0) scale(0.9);
    opacity: 0;
  }

  to {
    transform: rotate(10deg) translate(24px, 16px) scale(1);
    opacity: 1;
  }
}



/* --- CONTACT US SECTION --- */
.contact {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 0.8fr;
  gap: 40px;
  align-items: start;
}

/* Left Column: Business Details */
.contact-info-card {
  background-color: var(--bg-primary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 32px;
  height: 100%;
}

.contact-info-card h3 {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-icon {
  width: 44px;
  height: 44px;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  border: 1px solid var(--border-color);
  flex-shrink: 0;
  margin-top: 3px;
  /* Slightly offset down to align center with first text line */
}

.info-details h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.info-details p,
.info-details a {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Middle Column: Formspree Form */
.contact-form-card {
  background-color: var(--bg-primary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.contact-form-card h3 {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition-normal);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--border-focus);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Right Column: WhatsApp CTA */
.whatsapp-card {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
  height: 100%;
  transition: var(--transition-normal);
}

.whatsapp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.35);
}

.whatsapp-icon-bg {
  width: 70px;
  height: 70px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.whatsapp-card h3 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.whatsapp-card p {
  font-size: 0.95rem;
  margin-bottom: 24px;
  opacity: 0.9;
  line-height: 1.5;
}

.btn-whatsapp {
  background-color: #fff;
  color: #128c7e;
  width: 100%;
  padding: 12px 14px;
  font-weight: 700;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: var(--transition-normal);
  font-size: 0.9rem;
}

.btn-whatsapp:hover {
  background-color: var(--bg-secondary);
  color: #0e7064;
  transform: scale(1.02);
}

/* --- FOOTER --- */
.footer {
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 60px 24px 30px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 500px;
}

.footer-brand p {
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: 60px;
}

.footer-col h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.footer-col a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

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

.social-icons {
  display: flex;
  gap: 16px;
}

.social-btn {
  width: 36px;
  height: 36px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-normal);
}

.social-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background-color: var(--accent-light);
  transform: translateY(-2px);
}

/* --- PRODUCT DETAIL MODAL --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  padding: 24px;
}

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

.modal-card {
  background-color: var(--bg-primary);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-premium);
  position: relative;
  transform: scale(0.9);
  transition: transform var(--transition-normal);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}

.modal-overlay.open .modal-card {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  z-index: 10;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.modal-close:hover {
  background-color: var(--bg-tertiary);
  transform: scale(1.05);
}

.modal-visual {
  background-color: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  border-right: 1px solid var(--border-color);
  min-height: 350px;
  padding: 24px;
  text-align: center;
}

.modal-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-category {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.modal-title {
  font-size: 1.75rem;
  margin-bottom: 16px;
  line-height: 1.3;
}

.modal-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.modal-details {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.detail-item h5 {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.detail-item p {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.modal-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* Block body scroll when modal is open */
body.modal-open {
  overflow: hidden;
}

/* --- MOBILE STICKY CONTACT BAR --- */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
  z-index: 999;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

.sticky-bar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition-fast);
}

.sticky-bar-btn.call {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

.sticky-bar-btn.whatsapp {
  background-color: #25d366;
  color: #fff;
}

.sticky-bar-btn.whatsapp:hover {
  background-color: #20ba5a;
}

/* Compensate padding on body for mobile bar */
body {
  padding-bottom: 0;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 60px;
    /* Add padding to prevent page details cut by footer bar */
  }
}

/* --- TABLET RESPONSIVENESS (768px to 1024px) --- */
@media (min-width: 768px) and (max-width: 1024px) {

  /* Scale down spacing and typography to fit layout naturally */
  .container {
    max-width: 100% !important;
    padding: 0 24px !important;
  }

  .nav-menu {
    gap: 18px !important;
  }

  .nav-link {
    font-size: 0.88rem !important;
  }

  .nav-cta {
    padding: 8px 18px !important;
    font-size: 0.85rem !important;
  }

  .logo-img {
    height: 52px !important;
  }

  .hero-title {
    font-size: 2.8rem !important;
  }

  .hero-description {
    font-size: 1.1rem !important;
  }

  .cube-scene {
    transform: scale(0.85) !important;
  }

  .about-intro-grid {
    gap: 30px !important;
    padding: 30px !important;
  }

  .why-grid {
    gap: 16px !important;
  }

  .why-card {
    padding: 24px 16px !important;
  }

  .why-card h3 {
    font-size: 1.1rem !important;
  }

  .why-card p {
    font-size: 0.85rem !important;
  }

  .iso-stack {
    transform: rotateX(54.736deg) rotateZ(-45deg) scale(0.85) !important;
  }

  .contact-grid {
    gap: 20px !important;
  }

  .contact-info-card,
  .contact-form-card,
  .whatsapp-card {
    padding: 24px !important;
  }
}

/* --- MOBILE RESPONSIVENESS (Below 768px) --- */
@media (max-width: 767px) {

  html,
  body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }

  section {
    padding: 60px 16px !important;
  }

  .hero {
    padding-top: 100px !important;
    min-height: auto !important;
  }

  /* Navbar */
  .mobile-toggle {
    display: block !important;
  }

  .nav-menu {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 280px !important;
    height: 100vh !important;
    background-color: var(--bg-primary) !important;
    box-shadow: var(--shadow-xl) !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 100px 40px !important;
    gap: 24px !important;
    transition: var(--transition-normal) !important;
    z-index: 999 !important;
  }

  .nav-menu.open {
    right: 0 !important;
  }

  .nav-cta {
    width: 100% !important;
    text-align: center !important;
  }

  /* Mobile Sticky Bar */
  .mobile-sticky-bar {
    display: grid !important;
  }

  /* Hero: Vertically stacked — Title → Desc → Cube → Buttons (centered) */
  .hero-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 0 !important;
  }

  /* Flatten .hero-content so its children participate in the flex layout */
  .hero-content {
    display: contents !important;
  }

  .hero-title {
    order: 1 !important;
    font-size: 1.65rem !important;
    line-height: 1.25 !important;
    margin-bottom: 10px !important;
    width: 100% !important;
  }

  .hero-tag {
    order: 0 !important;
  }

  .hero-description {
    order: 2 !important;
    font-size: 0.88rem !important;
    margin-bottom: 8px !important;
    line-height: 1.4 !important;
    width: 100% !important;
  }

  .hero-visual {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    order: 3 !important;
    width: 100% !important;
  }

  .hero-actions {
    order: 4 !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .hero-actions .btn {
    padding: 10px 18px !important;
    font-size: 0.82rem !important;
  }

  .cube-scene {
    transform: scale(0.6) !important;
    margin: 10px auto 20px auto !important;
  }

  /* About Intro */
  .about-intro-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
    padding: 24px !important;
  }

  .about-visual-block {
    flex-direction: row !important;
    gap: 12px !important;
  }

  .visual-badge {
    flex: 1 !important;
    padding: 16px !important;
    gap: 10px !important;
  }

  .visual-badge h3 {
    font-size: 2rem !important;
  }

  .visual-badge p {
    font-size: 0.85rem !important;
  }

  /* Timeline (Mobile - Verticalized) */
  .timeline::after {
    left: 20px !important;
  }

  .timeline-progress-bar {
    left: 20px !important;
  }

  .timeline-item {
    width: 100% !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding-left: 50px !important;
    margin-bottom: 30px !important;
  }

  .timeline-content {
    width: 100% !important;
    margin-top: 10px !important;
    padding: 16px !important;
  }

  .timeline-meta {
    width: 100% !important;
    padding: 0 !important;
    align-items: flex-start !important;
    text-align: left !important;
  }

  .timeline-year-large {
    font-size: 2.5rem !important;
    margin-bottom: 4px !important;
  }

  .timeline-subtitle {
    font-size: 1rem !important;
  }

  .timeline-subtitle strong {
    font-size: 1.25rem !important;
  }

  .timeline-item::after {
    left: 20px !important;
    top: 25px !important;
    transform: translate(-50%, -50%) !important;
  }

  .timeline-content::before,
  .timeline-content::after {
    display: none !important;
  }

  /* Fix 1: 2-column Why Choose Us grid with odd child centering */
  .why-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }

  .why-card {
    padding: 20px 12px !important;
  }

  .why-card h3 {
    font-size: 1rem !important;
    margin: 8px 0 !important;
  }

  .why-card p {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
  }

  .why-icon-container {
    width: 44px !important;
    height: 44px !important;
    margin-bottom: 12px !important;
  }

  .why-icon-container i {
    width: 18px !important;
    height: 18px !important;
  }

  .stat-number-wrapper {
    margin: 8px 0 4px !important;
  }

  .stat-number {
    font-size: 2.2rem !important;
  }

  .stat-suffix {
    font-size: 1.4rem !important;
  }

  .why-card:last-child:nth-child(odd) {
    grid-column: span 2 !important;
    max-width: 60% !important;
    margin: 0 auto !important;
  }

  /* Fix 2: Side-by-side stack and detail pane on Mobile — locked overflow */
  .products {
    overflow-x: hidden !important;
  }

  .isometric-layout {
    flex-direction: row !important;
    gap: 6px !important;
    align-items: flex-start !important;
    overflow: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
    padding-top: 30px !important;
    margin-top: 20px !important;
  }

  .iso-container {
    width: 35% !important;
    flex: 0 0 35% !important;
    margin: 0 !important;
    overflow: visible !important;
    padding-top: 130px !important;
  }

  .iso-stack {
    transform: rotateX(54.736deg) rotateZ(-45deg) scale(0.42) !important;
    transform-origin: center center !important;
    margin-left: -50px !important;
    width: 195px !important;
    height: 195px !important;
  }

  .iso-label {
    font-size: 11px !important;
  }

  .iso-hitbox.active .iso-layer {
    transform: translate3d(-6px, 6px, 5px) !important;
  }

  /* Show stack prompt on mobile — label above stack with arrow pointing down */
  .stack-prompt {
    display: flex !important;
    align-items: center !important;
    position: absolute !important;
    left: 35px !important;
    top: -20px !important;
    z-index: 100 !important;
    pointer-events: none !important;
    gap: 0 !important;
  }

  .stack-prompt-arrow {
    display: block !important;
    width: 70px !important;
    height: 40px !important;
    margin-right: -4px !important;
    flex-shrink: 0 !important;
  }

  .stack-prompt-arrow path {
    stroke-width: 2.5 !important;
  }

  .stack-prompt-label {
    font-size: 0.5rem !important;
    padding: 3px 7px !important;
    border-width: 1.5px !important;
    animation: promptPulse 2s ease-in-out infinite !important;
    flex-shrink: 0 !important;
  }

  .iso-content {
    width: 65% !important;
    flex: 0 0 65% !important;
    padding: 12px 8px !important;
    min-height: auto !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    max-width: 65% !important;
  }

  /* Vertical layouts inside the detail pane to fit 52% column */
  .catalog-pane>div {
    flex-direction: column-reverse !important;
    gap: 12px !important;
  }

  .catalog-pane-body {
    max-width: 100% !important;
    width: 100% !important;
  }

  .catalog-pane-body h3 {
    font-size: 1.25rem !important;
    margin-bottom: 8px !important;
  }

  .catalog-category {
    font-size: 0.7rem !important;
    margin-bottom: 4px !important;
  }

  .catalog-pane-body p {
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
    margin-bottom: 12px !important;
  }

  .catalog-specs {
    padding: 12px !important;
    margin-bottom: 16px !important;
  }

  .catalog-specs h5 {
    font-size: 0.85rem !important;
    margin-bottom: 8px !important;
  }

  .product-list {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .product-list li {
    font-size: 0.8rem !important;
    padding: 6px 10px !important;
    gap: 6px !important;
  }

  .product-list li i {
    width: 14px !important;
    height: 14px !important;
  }

  /* Shrunk visual image card frame to fit mobile column */
  .catalog-pane-visual {
    position: relative !important;
    top: 0 !important;
    right: 0 !important;
    margin: 0 auto 12px auto !important;
    width: 100px !important;
    height: 72px !important;
  }

  .visual-card-stack {
    width: 100% !important;
    height: 72px !important;
  }

  .visual-card {
    width: 85px !important;
    height: 58px !important;
  }

  .category-img {
    border-radius: var(--radius-sm) !important;
  }

  .catalog-pane-body .btn {
    width: 100% !important;
    padding: 10px 16px !important;
    font-size: 0.85rem !important;
  }

  /* Default select category state on mobile */
  #cat-default .catalog-pane-body {
    margin-top: 20px !important;
    padding: 0 10px !important;
  }

  #cat-default .catalog-pane-body i {
    width: 32px !important;
    height: 32px !important;
    margin-bottom: 12px !important;
  }

  #cat-default .catalog-pane-body h3 {
    font-size: 1rem !important;
  }

  #cat-default .catalog-pane-body p {
    font-size: 0.75rem !important;
  }

  /* Mobile card animations */
  .catalog-pane.active .visual-card-2 {
    animation: cardFanMobile2 0.6s 0.2s ease forwards !important;
  }

  .catalog-pane.active .visual-card-3 {
    animation: cardFanMobile3 0.6s 0.3s ease forwards !important;
  }

  /* Contact & Footer */
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .whatsapp-card {
    grid-column: span 1 !important;
    height: auto !important;
    padding: 24px !important;
  }

  .modal-card {
    grid-template-columns: 1fr !important;
    max-height: 85vh !important;
  }

  .modal-visual {
    border-right: none !important;
    border-bottom: 1px solid var(--border-color) !important;
    min-height: 200px !important;
    padding: 16px !important;
  }

  .modal-content {
    padding: 20px !important;
  }

  .footer-top {
    flex-direction: column !important;
    gap: 24px !important;
  }

  .footer-links {
    flex-wrap: wrap !important;
    gap: 30px !important;
  }
}

@keyframes cardFanMobile2 {
  from {
    transform: rotate(0deg) translate(0, 0) scale(0.9);
    opacity: 0;
  }

  to {
    transform: rotate(4deg) translate(8px, 6px) scale(1);
    opacity: 1;
  }
}

@keyframes cardFanMobile3 {
  from {
    transform: rotate(0deg) translate(0, 0) scale(0.9);
    opacity: 0;
  }

  to {
    transform: rotate(10deg) translate(16px, 12px) scale(1);
    opacity: 1;
  }
}

@keyframes promptPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}