/* ============================
   SONAM PACKING CORPORATION
   Premium 3D Website Stylesheet
============================ */

:root {
  --primary: #1a365d;
  --primary-dark: #0f2440;
  --primary-light: #2b6cb0;
  --secondary: #c8963e;
  --accent: #d4a84b;
  --dark: #0a0e1a;
  --dark-2: #131826;
  --gray: #6b7280;
  --light-gray: #f3f4f6;
  --white: #ffffff;
  --gradient-primary: linear-gradient(135deg, #1a365d 0%, #2b6cb0 100%);
  --gradient-dark: linear-gradient(135deg, #0a0e1a 0%, #1a1f35 100%);
  --gradient-accent: linear-gradient(135deg, #2b6cb0 0%, #d4a84b 100%);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(26,54,93,0.25);
  --shadow-3d: 0 30px 80px rgba(0,0,0,0.3);
  --error: #dc2626;
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ========== PRELOADER ========== */
#preloader {
  position: fixed; inset: 0;
  background: var(--gradient-dark);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.loader-3d { text-align: center; color: white; }
.loader-3d p { margin-top: 40px; font-weight: 500; letter-spacing: 1px; opacity: 0.8; }
.cube {
  width: 80px; height: 80px;
  position: relative;
  transform-style: preserve-3d;
  animation: cubeRotate 3s infinite linear;
  margin: 0 auto;
}
.face {
  position: absolute; width: 80px; height: 80px;
  background: var(--gradient-primary);
  border: 2px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: white;
}
.front  { transform: translateZ(40px); }
.back   { transform: rotateY(180deg) translateZ(40px); }
.right  { transform: rotateY(90deg) translateZ(40px); }
.left   { transform: rotateY(-90deg) translateZ(40px); }
.top    { transform: rotateX(90deg) translateZ(40px); }
.bottom { transform: rotateX(-90deg) translateZ(40px); }
@keyframes cubeRotate {
  0% { transform: rotateX(0) rotateY(0); }
  100% { transform: rotateX(360deg) rotateY(360deg); }
}

/* ========== NAVBAR ========== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
}
#navbar.scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: var(--shadow-md);
}
.nav-container {
  max-width: 1280px; margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-img {
  width: 48px; height: 48px;
  object-fit: contain;
  border-radius: 50%;
}
.logo-icon {
  width: 48px; height: 48px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 15px;
  box-shadow: 0 6px 20px rgba(26,54,93,0.4);
  transition: var(--transition);
}
.logo:hover .logo-icon { transform: rotate(360deg) scale(1.05); }
.logo-text h1 {
  font-size: 18px; font-weight: 800;
  color: var(--dark); line-height: 1;
}
.logo-text p {
  font-size: 9px; letter-spacing: 3px;
  color: var(--primary); font-weight: 600;
  margin-top: 2px;
}
.nav-menu { display: flex; align-items: center; gap: 8px; }
.nav-link {
  padding: 10px 16px;
  font-weight: 500; font-size: 14px;
  color: var(--dark);
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}
.nav-link:hover { color: var(--primary); }
.nav-link.active { color: var(--primary); }
.nav-link.active::after {
  content: ''; position: absolute;
  bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 3px;
  background: var(--gradient-primary);
  border-radius: 3px;
}
.btn-quote-nav {
  padding: 10px 22px;
  background: var(--gradient-primary);
  color: white !important;
  border-radius: 50px;
  font-weight: 600; font-size: 14px;
  box-shadow: 0 4px 14px rgba(26,54,93,0.3);
  transition: var(--transition);
}
.btn-quote-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,54,93,0.45);
}
.hamburger {
  display: none; flex-direction: column; gap: 5px;
}
.hamburger span {
  width: 26px; height: 3px;
  background: var(--dark);
  border-radius: 3px;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.dark-toggle {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: var(--dark);
  border-radius: 50%;
  transition: var(--transition);
  margin-left: 4px;
}
.dark-toggle:hover {
  background: rgba(0,0,0,0.05);
  transform: rotate(20deg);
}

/* ========== HERO ========== */
.hero-section {
  min-height: 100vh;
  padding: 110px 24px 60px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f4ff 0%, #fff 50%, #fefce8 100%);
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 8s ease-in-out infinite;
}
.orb1 { width: 400px; height: 400px; background: var(--primary); top: -100px; left: -100px; }
.orb2 { width: 350px; height: 350px; background: var(--secondary); bottom: -80px; right: -80px; animation-delay: -2s; }
.orb3 { width: 300px; height: 300px; background: var(--accent); top: 40%; left: 40%; animation-delay: -4s; opacity: 0.3; }
@keyframes float {
  0%,100% { transform: translate(0,0); }
  50% { transform: translate(40px,-30px); }
}

.hero-container {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 60px; align-items: center;
  position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  background: rgba(26,54,93,0.1);
  color: var(--primary);
  border-radius: 50px;
  font-size: 13px; font-weight: 600;
  margin-bottom: 24px;
}
.hero-badge i { color: var(--accent); }
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900; line-height: 1.1;
  margin-bottom: 24px;
}
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-subtitle {
  font-size: 17px;
  color: var(--gray);
  margin-bottom: 36px;
  max-width: 560px;
}
.hero-stats {
  display: flex; gap: 32px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.stat-item h3 {
  font-size: 36px; font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  line-height: 1;
}
.stat-item h3::after { content: '+'; }
.stat-item.stat-pct h3::after { content: '%'; }
.stat-item p {
  font-size: 13px; color: var(--gray);
  margin-top: 6px;
  text-transform: uppercase; letter-spacing: 1px; font-weight: 500;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600; font-size: 15px;
  transition: var(--transition);
  cursor: pointer;
}
.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 8px 24px rgba(26,54,93,0.35);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(26,54,93,0.45);
}
.btn-secondary {
  background: white;
  color: var(--dark);
  border: 2px solid var(--dark);
}
.btn-secondary:hover {
  background: var(--dark);
  color: white;
  transform: translateY(-3px);
}
.btn-block { width: 100%; justify-content: center; }

/* 3D Gasket */
.hero-3d-wrapper {
  display: flex; align-items: center; justify-content: center;
  perspective: 1200px;
  min-height: 500px;
}
.gasket-wrapper {
  position: relative;
  width: 340px; height: 340px;
}
.gasket-tilt {
  width: 100%; height: 100%;
  transform-style: preserve-3d;
}
.gasket-3d {
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  animation: gasketSpin 20s linear infinite;
}
@keyframes gasketSpin {
  0% { transform: rotateY(0) rotateX(10deg); }
  100% { transform: rotateY(360deg) rotateX(10deg); }
}
.gasket-ring-outer {
  --mask: radial-gradient(circle at center, transparent 171px, #000 171px, #000 177px, transparent 177px);
  position: absolute;
  top: -30px; left: -30px;
  width: calc(100% + 60px);
  height: calc(100% + 60px);
  border-radius: 50%;
  background: conic-gradient(from 0deg, #0f2440, #1a365d, #2b6cb0, #d4a84b, #2b6cb0, #1a365d, #0f2440);
  -webkit-mask: var(--mask);
  mask: var(--mask);
  filter: drop-shadow(0 8px 25px rgba(0,0,0,0.5)) drop-shadow(0 0 40px rgba(26,54,93,0.3));
}
.gasket-ring-outer::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 135deg,
    rgba(255,255,255,0.6) 0deg,
    transparent 80deg,
    transparent 200deg,
    rgba(0,0,0,0.4) 280deg,
    rgba(255,255,255,0.6) 360deg
  );
  -webkit-mask: var(--mask);
  mask: var(--mask);
  pointer-events: none;
}
.gasket-center {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 20px 60px rgba(26,54,93,0.3);
}
.gasket-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scroll-down {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--gray);
  font-size: 12px;
  letter-spacing: 2px; text-transform: uppercase;
}
.scroll-down span {
  display: block;
  width: 24px; height: 40px;
  border: 2px solid var(--gray);
  border-radius: 14px;
  margin: 0 auto 10px;
  position: relative;
}
.scroll-down span::before {
  content: '';
  position: absolute;
  top: 8px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px;
  background: var(--primary);
  border-radius: 2px;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; top: 8px; }
  50% { opacity: 1; }
  100% { opacity: 0; top: 24px; }
}

/* ========== MARQUEE ========== */
.marquee-wrapper {
  background: var(--gradient-dark);
  padding: 18px 0;
  overflow: hidden;
}
.marquee {
  display: flex; gap: 50px;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.marquee span {
  color: white;
  font-weight: 500;
  font-size: 15px;
  display: inline-flex; align-items: center; gap: 10px;
}
.marquee span i { color: var(--accent); }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========== SECTIONS ========== */
section { padding: 100px 0; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-tag {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(26,54,93,0.1);
  color: var(--primary);
  border-radius: 50px;
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 16px;
}
.section-tag.light { background: rgba(255,255,255,0.15); color: white; }
.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}
.section-header p {
  color: var(--gray);
  font-size: 17px;
}

/* ========== ABOUT ========== */
.about-section { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 24px;
  margin-bottom: 60px;
}
.about-card {
  padding: 40px 30px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s ease;
}
.about-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}
.about-card:hover::before { transform: scaleX(1); }
.about-icon {
  width: 70px; height: 70px;
  background: var(--gradient-primary);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 28px;
  margin-bottom: 20px;
  box-shadow: 0 10px 24px rgba(26,54,93,0.3);
}
.about-card h3 {
  font-size: 22px; font-weight: 700;
  margin-bottom: 12px;
}
.about-card p { color: var(--gray); font-size: 15px; }

/* About Story */
.about-story {
  margin-bottom: 50px;
}
.about-story-text {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}
.about-story-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.3;
}
.about-story-text p {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 14px;
}

/* Quality Assurance */
.quality-assurance {
  margin-bottom: 60px;
}
.quality-assurance .section-header {
  margin-bottom: 40px;
}
.qa-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 20px;
}
.qa-step {
  background: white;
  padding: 32px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
  transition: var(--transition);
  text-align: center;
}
.qa-step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.qa-num {
  font-family: 'Playfair Display', serif;
  font-size: 44px;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 14px;
}
.qa-step h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.qa-step p {
  color: var(--gray);
  font-size: 14px;
}

/* Certifications Grid */
.certifications .section-header h2,
.certifications .section-header p {
  color: white;
}
.certifications .section-tag {
  background: rgba(255,255,255,0.15);
  color: white;
}
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 16px;
}

/* Timeline */
.about-timeline {
  margin: 60px 0;
}
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 13px;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 3px;
}
.timeline-item {
  position: relative;
  margin-bottom: 36px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 6px;
  width: 16px;
  height: 16px;
  background: var(--gradient-primary);
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 0 0 3px var(--primary);
}
.timeline-year {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 4px;
}
.timeline-content h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}
.timeline-content p {
  color: var(--gray);
  font-size: 14px;
}

.certifications {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 20px;
  padding: 30px;
  background: var(--gradient-dark);
  border-radius: var(--radius);
}
.cert-card {
  display: flex; align-items: center; gap: 16px;
  color: white;
}
.cert-card i {
  font-size: 36px;
  color: var(--accent);
}
.cert-card h4 { font-size: 17px; font-weight: 700; }
.cert-card p { font-size: 13px; opacity: 0.7; }

/* ========== PRODUCTS ========== */
.products-section {
  background: linear-gradient(180deg, #fff 0%, #f0f4ff 100%);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
  gap: 24px;
}
.product-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.04);
  cursor: pointer;
  position: relative;
}
.product-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow-lg);
}
.product-visual {
  height: 200px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-dark);
  overflow: hidden;
}
.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}
.product-card:hover .product-img {
  transform: scale(1.1);
  filter: brightness(1.1) contrast(1.1);
}
@keyframes rotate360 {
  100% { transform: rotate(360deg); }
}
.product-info { padding: 24px; }
.product-info h3 {
  font-size: 19px; font-weight: 700;
  margin-bottom: 10px;
}
.product-info p {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 16px;
  min-height: 60px;
}
.product-features {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 18px;
}
.product-features span {
  background: rgba(26,54,93,0.08);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 11px; font-weight: 600;
}
.product-cta {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--primary);
  font-weight: 600; font-size: 14px;
}
.product-cta i { transition: var(--transition); }
.product-card:hover .product-cta i { transform: translateX(5px); }

/* ========== INDUSTRIES ========== */
.industries-section {
  background: var(--gradient-dark);
  color: white;
  position: relative;
  overflow: hidden;
}
.industries-section::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(26,54,93,0.15), transparent 50%);
  animation: rotate360 30s linear infinite;
}
.industries-section .section-header h2,
.industries-section .section-header p { color: white; }
.industries-section .section-header p { opacity: 0.8; }
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
  gap: 20px;
  position: relative;
}
.industry-card {
  padding: 36px 20px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  text-align: center;
  transition: var(--transition);
}
.industry-card:hover {
  background: var(--gradient-primary);
  transform: translateY(-10px);
  border-color: transparent;
  box-shadow: 0 20px 50px rgba(26,54,93,0.4);
}
.industry-card i {
  font-size: 40px;
  color: var(--accent);
  margin-bottom: 14px;
  transition: var(--transition);
}
.industry-card:hover i { color: white; transform: scale(1.2); }
.industry-card h4 { font-size: 15px; font-weight: 600; }

/* ========== FAQ ========== */
.faq-section {
  background: var(--white);
}
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: white;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition);
}
.faq-item:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.faq-item summary {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  transition: var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 22px;
  color: var(--primary);
  font-weight: 700;
  transition: transform 0.3s ease;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item[open] summary {
  color: var(--primary);
}
.faq-item p {
  padding: 0 24px 20px;
  color: var(--gray);
  font-size: 14px;
  line-height: 1.7;
}
.faq-item p a { color: var(--primary); text-decoration: underline; }

/* ========== QUALITY ========== */
.quality-section { background: var(--light-gray); }
.quality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 24px;
}
.quality-item {
  background: white;
  padding: 36px 28px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.quality-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.quality-num {
  font-family: 'Playfair Display', serif;
  font-size: 60px;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  opacity: 0.9;
  margin-bottom: 16px;
}
.quality-item h3 {
  font-size: 20px; font-weight: 700;
  margin-bottom: 10px;
}
.quality-item p { color: var(--gray); font-size: 14px; }

/* ========== QUOTE SECTION ========== */
.quote-section {
  background: var(--gradient-dark);
  color: white;
  position: relative;
  overflow: hidden;
}
.quote-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(26,54,93,0.2), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(200,150,62,0.2), transparent 50%);
}
.quote-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
  position: relative;
}
.quote-info h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
  color: white;
}
.quote-info > p { color: rgba(255,255,255,0.8); margin-bottom: 28px; }
.quote-benefits { list-style: none; margin-bottom: 28px; }
.quote-benefits li {
  padding: 10px 0;
  display: flex; align-items: center; gap: 12px;
  font-size: 15px;
}
.quote-benefits i {
  width: 24px; height: 24px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
}
.quote-contact-quick {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.quote-contact-quick div {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
}
.quote-contact-quick i { color: var(--accent); }

.quote-form-wrapper, .contact-form {
  background: white;
  color: var(--dark);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-3d);
}
.quote-form h3, .contact-form h3 {
  font-size: 24px; font-weight: 700;
  margin-bottom: 24px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px; font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-family: inherit;
  background: var(--light-gray);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  color: var(--dark);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(26,54,93,0.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group .field-error {
  font-size: 12px;
  color: var(--error);
  margin-top: 4px;
  display: none;
}
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: var(--error);
  background: #fef2f2;
}
.form-group.has-error .field-error { display: block; }
.form-note {
  text-align: center;
  font-size: 12px;
  color: var(--gray);
  margin-top: 14px;
}

/* ========== CONTACT ========== */
.contact-section { background: white; }
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}
.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.contact-card {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 24px;
  background: var(--light-gray);
  border-radius: var(--radius);
  transition: var(--transition);
  border-left: 4px solid var(--primary);
}
.contact-card:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
}
.contact-icon {
  width: 50px; height: 50px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 20px;
  flex-shrink: 0;
}
.contact-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.contact-card p { font-size: 14px; color: var(--gray); }
.contact-card a { color: var(--gray); transition: var(--transition); }
.contact-card a:hover { color: var(--primary); }

.contact-form { box-shadow: var(--shadow-md); }

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  height: 400px;
  box-shadow: var(--shadow-md);
}
.map-container iframe { width: 100%; height: 100%; border: 0; }

/* ========== FOOTER ========== */
.footer {
  background: var(--dark);
  color: white;
  padding: 70px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-col h4 {
  font-size: 17px; font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 40px; height: 3px;
  background: var(--gradient-primary);
  border-radius: 3px;
}
.footer-col .logo-text h1 { color: white; }
.footer-about {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-top: 20px;
}
.footer-col ul { list-style: none; }
.footer-col ul li {
  margin-bottom: 10px;
  font-size: 14px;
}
.footer-col ul a {
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}
.footer-col ul a:hover { color: var(--primary-light); padding-left: 6px; }
.footer-contact li {
  display: flex; align-items: flex-start; gap: 10px;
  color: rgba(255,255,255,0.7);
}
.footer-contact i { color: var(--primary-light); margin-top: 4px; }
.footer-bottom {
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}
.footer-bottom i { color: var(--primary); }

/* ========== TECHNICAL STANDARDS ========== */
.standards-section {
  margin-top: 60px;
}
.standards-section .section-header {
  margin-bottom: 40px;
}
.standards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 24px;
}
.standard-card {
  background: white;
  padding: 36px 24px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.04);
}
.standard-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.standard-flag {
  width: 64px; height: 64px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 28px;
  margin: 0 auto 16px;
  box-shadow: 0 10px 24px rgba(26,54,93,0.3);
}
.standard-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}
.standard-card p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.8;
}

/* ========== BACK TO TOP ========== */
.back-to-top {
  position: fixed;
  bottom: 100px; right: 28px;
  width: 48px; height: 48px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  box-shadow: 0 6px 20px rgba(26,54,93,0.4);
  z-index: 997;
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  cursor: pointer;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(26,54,93,0.55);
}

/* ========== FLOAT WHATSAPP ========== */
.float-whatsapp {
  position: fixed;
  bottom: 28px; left: 28px;
  width: 56px; height: 56px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  box-shadow: 0 8px 30px rgba(37,211,102,0.5);
  z-index: 998;
  transition: var(--transition);
  animation: pulse-wa 2s ease-in-out infinite;
}
@keyframes pulse-wa {
  0%,100% { box-shadow: 0 8px 30px rgba(37,211,102,0.5), 0 0 0 0 rgba(37,211,102,0.5); }
  50% { box-shadow: 0 8px 30px rgba(37,211,102,0.5), 0 0 0 14px rgba(37,211,102,0); }
}
.float-whatsapp:hover { transform: scale(1.1); }

/* ========== AI ASSISTANT ========== */
.ai-assistant {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 999;
}
.ai-toggle {
  width: 64px; height: 64px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  box-shadow: 0 10px 30px rgba(26,54,93,0.5);
  position: relative;
  transition: var(--transition);
}
.ai-toggle:hover { transform: scale(1.1) rotate(10deg); }
.ai-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--primary);
  animation: aiPulse 2s ease-in-out infinite;
}
@keyframes aiPulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.ai-chat {
  position: absolute;
  bottom: 80px; right: 0;
  width: 380px;
  max-height: 560px;
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow-3d);
  display: flex; flex-direction: column;
  overflow: hidden;
  transform: scale(0) translateY(20px);
  transform-origin: bottom right;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
}
.ai-chat.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}
.ai-header {
  background: var(--gradient-primary);
  color: white;
  padding: 18px;
  display: flex; align-items: center; gap: 12px;
}
.ai-avatar {
  width: 42px; height: 42px;
  background: white;
  color: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.ai-header h4 { font-size: 15px; font-weight: 700; }
.ai-header p { font-size: 12px; opacity: 0.85; display: flex; align-items: center; gap: 6px; }
.online-dot {
  width: 8px; height: 8px;
  background: #00ff7f;
  border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.ai-close {
  margin-left: auto;
  color: white;
  font-size: 16px;
  opacity: 0.8;
  transition: var(--transition);
}
.ai-close:hover { opacity: 1; transform: rotate(90deg); }

.ai-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: #f9fafb;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 280px;
  max-height: 340px;
}
.ai-msg {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  animation: msgIn 0.3s ease;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.ai-msg.bot {
  background: white;
  color: var(--dark);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
  align-self: flex-start;
}
.ai-msg.user {
  background: var(--gradient-primary);
  color: white;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
.ai-msg.typing {
  background: white;
  display: flex; gap: 4px;
  padding: 14px 18px;
  align-self: flex-start;
  box-shadow: var(--shadow-sm);
  border-bottom-left-radius: 4px;
}
.ai-msg.typing span {
  width: 8px; height: 8px;
  background: var(--gray);
  border-radius: 50%;
  animation: typingDot 1.4s ease-in-out infinite;
}
.ai-msg.typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-msg.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
  0%,60%,100% { transform: scale(0.8); opacity: 0.4; }
  30% { transform: scale(1.2); opacity: 1; }
}

.ai-quick-replies {
  padding: 10px 16px;
  display: flex; flex-wrap: wrap; gap: 6px;
  background: #f9fafb;
  border-top: 1px solid rgba(0,0,0,0.05);
}
.ai-quick-replies button {
  padding: 6px 12px;
  font-size: 12px;
  background: white;
  border: 1px solid rgba(26,54,93,0.2);
  color: var(--primary);
  border-radius: 50px;
  font-weight: 500;
  transition: var(--transition);
}
.ai-quick-replies button:hover {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
}

.ai-input-wrapper {
  display: flex; gap: 8px;
  padding: 12px;
  background: white;
  border-top: 1px solid rgba(0,0,0,0.05);
}
.ai-input-wrapper input {
  flex: 1;
  padding: 12px 16px;
  font-size: 14px;
  background: var(--light-gray);
  border: none;
  border-radius: 50px;
  font-family: inherit;
}
.ai-input-wrapper input:focus { outline: none; background: white; box-shadow: 0 0 0 2px var(--primary); }
.ai-input-wrapper button {
  width: 44px; height: 44px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}

/* ========== TOAST ========== */
.toast {
  position: fixed;
  top: 100px; right: 24px;
  padding: 16px 24px;
  background: var(--dark);
  color: white;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 9998;
  transform: translateX(400px);
  transition: transform 0.4s ease;
  display: flex; align-items: center; gap: 10px;
  max-width: 380px;
}
.toast.show { transform: translateX(0); }
.toast.success { background: #10b981; }
.toast.error { background: var(--primary); }

/* ========== MODAL ========== */
.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center; justify-content: center;
  z-index: 10000;
  padding: 20px;
}
.modal.open { display: flex; }
.modal-content {
  background: white;
  border-radius: var(--radius);
  max-width: 600px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  padding: 40px;
  position: relative;
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  background: var(--light-gray);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  transition: var(--transition);
}
.modal-close:hover { background: var(--primary); color: white; transform: rotate(90deg); }

/* ========== RESPONSIVE ========== */

/* Tablet landscape & down */
@media (max-width: 968px) {
  .hero-container, .quote-wrapper, .contact-wrapper { grid-template-columns: 1fr; gap: 40px; }
  .gasket-wrapper { width: 220px; height: 220px; }
  .gasket-ring-outer {
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    top: -20px; left: -20px;
    --mask: radial-gradient(circle at center, transparent 111px, #000 111px, #000 117px, transparent 117px);
  }
  .hero-3d-wrapper { min-height: 300px; }
  .hero-container { text-align: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .quote-info { text-align: center; }
  .quote-benefits { display: inline-block; text-align: left; }
}

/* Tablet portrait & down */
@media (max-width: 768px) {
  section { padding: 60px 0; }
  .container { padding: 0 20px; }
  .section-header { margin-bottom: 40px; }
  .section-header h2 { font-size: clamp(1.5rem, 5vw, 2rem); }

  /* Navbar */
  .nav-menu {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: white;
    flex-direction: column;
    padding: 20px 24px 24px;
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
    gap: 2px;
    z-index: 999;
    border-radius: 0 0 20px 20px;
    max-height: 85vh;
    overflow-y: auto;
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-link { width: 100%; padding: 14px 16px; border-radius: 10px; font-size: 15px; }
  .nav-link:hover { background: rgba(26,54,93,0.06); }
  .nav-link.active { background: rgba(26,54,93,0.08); }
  .nav-link.active::after { display: none; }
  .btn-quote-nav { width: 100%; text-align: center; margin-top: 6px; padding: 14px 22px; }
  .hamburger { display: flex; }

  /* Hero */
  .hero-section { padding: 90px 20px 50px; min-height: auto; }
  .hero-title { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .hero-subtitle { font-size: 15px; margin-bottom: 28px; }
  .hero-stats { gap: 16px; justify-content: center; flex-wrap: wrap; }
  .stat-item h3 { font-size: 26px; }
  .stat-item p { font-size: 11px; }
  .hero-buttons { flex-direction: column; align-items: stretch; gap: 10px; }
  .btn-primary, .btn-secondary { justify-content: center; padding: 13px 24px; font-size: 14px; }
  .hero-badge { font-size: 11px; padding: 6px 14px; }
  .scroll-down { display: none; }

  /* 3D Gasket on mobile */
  .gasket-wrapper { width: 180px; height: 180px; }
  .gasket-ring-outer {
    width: calc(100% + 30px);
    height: calc(100% + 30px);
    top: -15px; left: -15px;
    --mask: radial-gradient(circle at center, transparent 91px, #000 91px, #000 97px, transparent 97px);
  }
  .hero-3d-wrapper { min-height: 250px; }

  /* About */
  .about-grid, .qa-steps { grid-template-columns: 1fr; gap: 16px; }
  .about-card { padding: 28px 24px; }
  .about-story-text p { font-size: 14px; }
  .cert-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cert-card { padding: 16px; gap: 12px; }
  .cert-card i { font-size: 28px; }
  .cert-card h4 { font-size: 14px; }
  .cert-card p { font-size: 12px; }
  .certifications { padding: 20px; }

  /* Timeline */
  .timeline { padding-left: 32px; }
  .timeline-item::before { left: -25px; width: 14px; height: 14px; }
  .timeline-year { font-size: 18px; }
  .timeline-content h4 { font-size: 15px; }

  /* Products */
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 16px; }
  .product-visual { height: 170px; }
  .product-info { padding: 18px; }
  .product-info h3 { font-size: 16px; }
  .product-info p { font-size: 13px; min-height: auto; }

  /* Industries */
  .industries-grid { grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 12px; }
  .industry-card { padding: 24px 14px; }
  .industry-card i { font-size: 30px; }
  .industry-card h4 { font-size: 13px; }

  /* Quality */
  .quality-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .quality-item { padding: 24px 20px; }
  .quality-num { font-size: 40px; }
  .quality-item h3 { font-size: 16px; }

  /* Standards */
  .standards-grid { grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 14px; }

  /* Forms */
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .quote-form-wrapper, .contact-form { padding: 24px 20px; }
  .quote-form h3, .contact-form h3 { font-size: 20px; }
  .quote-benefits li { font-size: 14px; }

  /* Contact */
  .contact-wrapper { gap: 28px; }
  .contact-card { padding: 18px; }
  .contact-icon { width: 42px; height: 42px; font-size: 16px; }
  .contact-card h4 { font-size: 15px; }
  .contact-card p { font-size: 13px; }
  .map-container { height: 280px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer { padding: 50px 0 0; }
  .footer-col h4 { font-size: 15px; }
  .footer-col ul li { font-size: 13px; }

  /* AI Chat */
  .ai-chat { width: calc(100vw - 32px); right: -10px; max-height: 480px; }
  .ai-messages { max-height: 260px; min-height: 220px; }

  /* Back to top */
  .back-to-top { bottom: 90px; right: 20px; width: 42px; height: 42px; font-size: 15px; }

  /* Modal */
  .modal { padding: 16px; }
  .modal-content { padding: 28px 24px; }
  .modal-content h2 { font-size: 20px; }

  /* Float whatsapp */
  .float-whatsapp { width: 50px; height: 50px; font-size: 24px; bottom: 100px; left: 20px; }
}

/* Small phones */
@media (max-width: 480px) {
  section { padding: 50px 0; }
  .container { padding: 0 16px; }
  .section-header { margin-bottom: 32px; }
  .section-header h2 { font-size: clamp(1.3rem, 5.5vw, 1.6rem); }
  .section-header p { font-size: 14px; }
  .section-tag { font-size: 11px; padding: 5px 14px; }

  /* Navbar */
  .logo-img { width: 38px; height: 38px; }
  .logo-text h1 { font-size: 15px; }
  .logo-text p { font-size: 8px; letter-spacing: 2px; }
  .nav-container { padding: 10px 16px; }
  .nav-menu { top: 60px; padding: 16px; }
  .dark-toggle { width: 36px; height: 36px; font-size: 15px; }

  /* Hero */
  .hero-section { padding: 75px 16px 40px; }
  .hero-title { font-size: clamp(1.3rem, 6vw, 1.6rem); }
  .hero-subtitle { font-size: 14px; margin-bottom: 20px; }
  .hero-stats { gap: 12px; }
  .stat-item h3 { font-size: 22px; }
  .stat-item p { font-size: 10px; }
  .hero-buttons { gap: 8px; }
  .btn-primary, .btn-secondary { padding: 12px 20px; font-size: 13px; }

  /* 3D Gasket */
  .gasket-wrapper { width: 140px; height: 140px; }
  .gasket-ring-outer {
    width: calc(100% + 24px);
    height: calc(100% + 24px);
    top: -12px; left: -12px;
    --mask: radial-gradient(circle at center, transparent 71px, #000 71px, #000 77px, transparent 77px);
  }
  .hero-3d-wrapper { min-height: 200px; }

  /* Marquee */
  .marquee-wrapper { padding: 12px 0; }
  .marquee span { font-size: 12px; }
  .marquee { gap: 30px; }

  /* About */
  .about-card { padding: 24px 20px; }
  .about-card h3 { font-size: 18px; }
  .about-icon { width: 56px; height: 56px; font-size: 22px; }
  .about-story-text h3 { font-size: 1.2rem; }
  .qa-step { padding: 24px 18px; }
  .qa-num { font-size: 32px; }
  .qa-step h4 { font-size: 15px; }

  /* Certifications */
  .cert-grid { grid-template-columns: 1fr; }
  .cert-card { padding: 14px; }
  .cert-card i { font-size: 24px; }

  /* Timeline */
  .timeline { padding-left: 28px; }
  .timeline-item { margin-bottom: 24px; }
  .timeline-item::before { left: -22px; width: 12px; height: 12px; border-width: 3px; }
  .timeline-year { font-size: 16px; }
  .timeline-content h4 { font-size: 14px; }
  .timeline-content p { font-size: 13px; }
  .about-timeline { margin: 40px 0; }

  /* Products */
  .products-grid { grid-template-columns: 1fr; gap: 14px; }
  .product-visual { height: 190px; }
  .product-info { padding: 16px; }
  .product-info h3 { font-size: 15px; }
  .product-info p { font-size: 13px; }
  .product-features span { font-size: 10px; padding: 3px 8px; }

  /* Industries */
  .industries-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .industry-card { padding: 20px 12px; }
  .industry-card i { font-size: 26px; margin-bottom: 10px; }
  .industry-card h4 { font-size: 12px; }

  /* Quality */
  .quality-grid { grid-template-columns: 1fr; gap: 12px; }
  .quality-item { padding: 20px 18px; }
  .quality-num { font-size: 34px; margin-bottom: 10px; }
  .quality-item h3 { font-size: 15px; }
  .quality-item p { font-size: 13px; }

  /* FAQ */
  .faq-item summary { padding: 16px 18px; font-size: 14px; }
  .faq-item p { padding: 0 18px 16px; font-size: 13px; }
  .faq-item summary::after { font-size: 18px; }

  /* Forms */
  .quote-form-wrapper, .contact-form { padding: 20px 16px; }
  .quote-form h3, .contact-form h3 { font-size: 18px; margin-bottom: 18px; }
  .form-group { margin-bottom: 12px; }
  .form-group label { font-size: 12px; }
  .form-group input,
  .form-group select,
  .form-group textarea { padding: 10px 14px; font-size: 13px; }
  .form-group textarea { min-height: 80px; }
  .quote-benefits { margin-bottom: 20px; }
  .quote-contact-quick div { font-size: 13px; }
  .form-note { font-size: 11px; }

  /* Contact */
  .contact-card { padding: 16px; }
  .contact-icon { width: 36px; height: 36px; font-size: 14px; }
  .contact-card h4 { font-size: 14px; }
  .contact-card p { font-size: 12px; }
  .contact-wrapper { gap: 24px; }
  .map-container { height: 220px; }

  /* Footer */
  .footer { padding: 40px 0 0; }
  .footer-grid { gap: 24px; }
  .footer-col h4 { font-size: 14px; margin-bottom: 14px; }
  .footer-about { font-size: 13px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 6px; font-size: 12px; padding: 18px 0; }
  .footer .logo-img { width: 36px; height: 36px; }

  /* AI Chat */
  .ai-toggle { width: 52px; height: 52px; font-size: 22px; }
  .ai-chat { max-height: 440px; }
  .ai-messages { max-height: 220px; min-height: 180px; }
  .ai-header { padding: 14px; }
  .ai-header h4 { font-size: 14px; }
  .ai-msg { font-size: 13px; padding: 10px 14px; max-width: 85%; }
  .ai-quick-replies { padding: 8px 12px; }
  .ai-quick-replies button { font-size: 11px; padding: 5px 10px; }
  .ai-input-wrapper { padding: 10px; }
  .ai-input-wrapper input { padding: 10px 14px; font-size: 13px; }
  .ai-input-wrapper button { width: 38px; height: 38px; font-size: 12px; }
  .ai-assistant { bottom: 20px; right: 16px; }

  /* Float WhatsApp */
  .float-whatsapp { width: 46px; height: 46px; font-size: 20px; bottom: 80px; left: 16px; }

  /* Back to top */
  .back-to-top { width: 38px; height: 38px; font-size: 13px; bottom: 80px; right: 16px; }

  /* Modal */
  .modal-content { padding: 24px 18px; }
  .modal-content h2 { font-size: 18px; }
  .modal-content .btn-block { padding: 12px 20px; font-size: 13px; }

  /* Toast */
  .toast { top: 80px; right: 16px; left: 16px; max-width: none; padding: 14px 18px; font-size: 13px; }
}

/* Very small phones (under 380px) */
@media (max-width: 380px) {
  .container { padding: 0 12px; }
  section { padding: 40px 0; }
  .hero-section { padding: 70px 12px 30px; }
  .gasket-wrapper { width: 110px; height: 110px; }
  .gasket-ring-outer {
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    top: -10px; left: -10px;
    --mask: radial-gradient(circle at center, transparent 56px, #000 56px, #000 62px, transparent 62px);
  }
  .hero-3d-wrapper { min-height: 160px; }
  .hero-title { font-size: clamp(1.1rem, 5.5vw, 1.3rem); }
  .hero-subtitle { font-size: 13px; }
  .stat-item h3 { font-size: 18px; }
  .stat-item p { font-size: 9px; letter-spacing: 0.5px; }
  .hero-stats { gap: 8px; }
  .nav-link { font-size: 14px; padding: 12px 14px; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .industry-card { padding: 16px 8px; }
  .industry-card i { font-size: 22px; }
  .industry-card h4 { font-size: 11px; }
  .product-visual { height: 160px; }
  .quality-grid { gap: 10px; }
  .quality-item { padding: 16px 14px; }
  .cert-grid { gap: 8px; }
  .standards-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .standard-card { padding: 24px 14px; }
  .standard-flag { width: 48px; height: 48px; font-size: 20px; }
  .standard-card h3 { font-size: 14px; }
  .footer-bottom { font-size: 11px; }
}

/* ========== ENHANCED ANIMATIONS ========== */

/* Glow pulse on section tags */
.section-tag {
  animation: tagPulse 3s ease-in-out infinite;
}
@keyframes tagPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(26,54,93,0.3); }
  50% { box-shadow: 0 0 20px 4px rgba(26,54,93,0.15); }
}

/* 3D card hover lift */
.about-card, .qa-step, .standard-card, .industry-card, .quality-item {
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.4s ease !important;
}

/* Shimmer effect on hero badge */
.hero-badge {
  position: relative;
  overflow: hidden;
}
.hero-badge::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.3) 50%, transparent 60%);
  animation: shimmer 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shimmer {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

/* Floating animation for cert icons */
.cert-card i {
  animation: certFloat 3s ease-in-out infinite;
}
.cert-card:nth-child(2) i { animation-delay: 0.4s; }
.cert-card:nth-child(3) i { animation-delay: 0.8s; }
.cert-card:nth-child(4) i { animation-delay: 1.2s; }
@keyframes certFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Timeline fade-slide */
.timeline-item {
  opacity: 0;
  animation: timelineSlide 0.8s ease forwards;
}
.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.25s; }
.timeline-item:nth-child(3) { animation-delay: 0.4s; }
.timeline-item:nth-child(4) { animation-delay: 0.55s; }
.timeline-item:nth-child(5) { animation-delay: 0.7s; }
@keyframes timelineSlide {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Count-up number glow */
.stat-item h3 {
  display: inline-block;
  text-shadow: 0 0 30px rgba(26,54,93,0.35);
}

/* Product card 3D perspective base */
.product-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ========== DARK MODE ========== */
[data-theme="dark"] {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-light: #60a5fa;
  --secondary: #d4a84b;
  --accent: #eab308;
  --dark: #ffffff;
  --dark-2: #1a1f35;
  --gray: #9ca3af;
  --light-gray: #1e2337;
  --white: #0a0e1a;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
  --shadow-3d: 0 30px 80px rgba(0,0,0,0.5);
  --error: #ef4444;
}
[data-theme="dark"] body { background: #0a0e1a; color: #e5e7eb; }
[data-theme="dark"] #navbar { background: rgba(10,14,26,0.9); border-color: rgba(255,255,255,0.05); }
[data-theme="dark"] #navbar.scrolled { background: rgba(10,14,26,0.98); }
[data-theme="dark"] .logo-text h1 { color: white; }
[data-theme="dark"] .nav-link { color: #d1d5db; }
[data-theme="dark"] .nav-menu { background: #131826; }
[data-theme="dark"] .nav-link:hover { background: rgba(255,255,255,0.06); }
[data-theme="dark"] .nav-link.active { background: rgba(255,255,255,0.1); color: var(--primary-light); }
[data-theme="dark"] .hamburger span { background: #d1d5db; }
[data-theme="dark"] .dark-toggle { color: #d1d5db; }
[data-theme="dark"] .dark-toggle:hover { background: rgba(255,255,255,0.1); }
[data-theme="dark"] .hero-section { background: linear-gradient(135deg, #0a0e1a 0%, #131826 50%, #1a1f35 100%); }
[data-theme="dark"] .hero-subtitle { color: #9ca3af; }
[data-theme="dark"] .btn-secondary { background: transparent; color: white; border-color: rgba(255,255,255,0.3); }
[data-theme="dark"] .btn-secondary:hover { background: white; color: #0a0e1a; }
[data-theme="dark"] .section-header p { color: #9ca3af; }
[data-theme="dark"] .about-section { background: #0a0e1a; }
[data-theme="dark"] .about-card { background: #131826; border-color: rgba(255,255,255,0.05); color: #e5e7eb; }
[data-theme="dark"] .about-card p { color: #9ca3af; }
[data-theme="dark"] .about-story-text p { color: #9ca3af; }
[data-theme="dark"] .qa-step { background: #131826; border-color: rgba(255,255,255,0.05); }
[data-theme="dark"] .qa-step p { color: #9ca3af; }
[data-theme="dark"] .products-section { background: linear-gradient(180deg, #0a0e1a 0%, #131826 100%); }
[data-theme="dark"] .product-card { background: #131826; border-color: rgba(255,255,255,0.05); }
[data-theme="dark"] .product-info p { color: #9ca3af; }
[data-theme="dark"] .quality-section { background: #0f1422; }
[data-theme="dark"] .quality-item { background: #131826; }
[data-theme="dark"] .quality-item p { color: #9ca3af; }
[data-theme="dark"] .faq-item { background: #131826; border-color: rgba(255,255,255,0.05); }
[data-theme="dark"] .faq-item p { color: #9ca3af; }
[data-theme="dark"] .faq-section { background: #0a0e1a; }
[data-theme="dark"] .quote-form-wrapper, [data-theme="dark"] .contact-form { background: #131826; }
[data-theme="dark"] .quote-form h3, [data-theme="dark"] .contact-form h3 { color: white; }
[data-theme="dark"] .form-group label { color: #d1d5db; }
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea { background: #1e2337; color: white; }
[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group select:focus,
[data-theme="dark"] .form-group textarea:focus { background: #131826; }
[data-theme="dark"] .form-group.has-error input,
[data-theme="dark"] .form-group.has-error select,
[data-theme="dark"] .form-group.has-error textarea { background: #2d1a1a; }
[data-theme="dark"] .contact-section { background: #0a0e1a; }
[data-theme="dark"] .contact-card { background: #131826; }
[data-theme="dark"] .contact-card p { color: #9ca3af; }
[data-theme="dark"] .standard-card { background: #131826; border-color: rgba(255,255,255,0.05); }
[data-theme="dark"] .standard-card p { color: #9ca3af; }
[data-theme="dark"] .modal-content { background: #131826; }
[data-theme="dark"] .modal-close { background: #1e2337; color: white; }
[data-theme="dark"] .ai-chat { background: #131826; }
[data-theme="dark"] .ai-messages { background: #0f1422; }
[data-theme="dark"] .ai-msg.bot { background: #1e2337; color: white; }
[data-theme="dark"] .ai-header h4, [data-theme="dark"] .ai-header p { color: white; }
[data-theme="dark"] .ai-input-wrapper input { background: #1e2337; color: white; }
[data-theme="dark"] .ai-quick-replies { background: #0f1422; }
[data-theme="dark"] .ai-quick-replies button { background: #1e2337; color: white; border-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .footer { background: #050812; }
[data-theme="dark"] .footer-about,
[data-theme="dark"] .footer-col ul a,
[data-theme="dark"] .footer-contact li,
[data-theme="dark"] .footer-bottom { color: rgba(255,255,255,0.7); }
[data-theme="dark"] .footer-col .logo-text h1 { color: white; }
[data-theme="dark"] .footer-col ul a:hover { color: var(--primary-light); }
