/* =============================================
   PAPER CORE TECH - MAIN STYLESHEET
   papercoretech.com
   ============================================= */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1a3a5c;
  --primary-dark: #0f2340;
  --primary-light: #2a5a8c;
  --accent: #e67e22;
  --accent-dark: #d35400;
  --accent-light: #f39c12;
  --text: #2c3e50;
  --text-light: #5d6d7e;
  --text-muted: #95a5a6;
  --bg: #f8f9fa;
  --bg-dark: #1a2a3a;
  --white: #ffffff;
  --border: #e0e7ef;
  --shadow: 0 4px 24px rgba(26,58,92,0.10);
  --shadow-lg: 0 8px 40px rgba(26,58,92,0.16);
  --radius: 8px;
  --radius-lg: 14px;
  --transition: 0.25s ease;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 15px;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

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

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

ul { list-style: none; }

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

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230,126,34,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.btn-outline-sm {
  padding: 8px 18px;
  font-size: 13px;
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
  border-radius: 6px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
}
.btn-outline-sm:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
  font-weight: 700;
}
.btn-white:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

/* ---- Section Common ---- */
.section { padding: 80px 0; }
.section-tag {
  display: inline-block;
  background: #e8f4fd;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.section-title {
  font-size: 32px;
  color: var(--text);
  margin-bottom: 12px;
}
.section-desc {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}
.section-header {
  margin-bottom: 40px;
}
.section-header.centered {
  text-align: center;
}
.section-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* ============================================
   HEADER
   ============================================ */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.98);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: all var(--transition);
}

#header.scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.header-top {
  background: var(--primary-dark);
  padding: 8px 0;
  font-size: 13px;
}
.header-top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.header-top a { color: rgba(255,255,255,0.9); }
.header-top a:hover { color: var(--accent); }
.header-top-left { display: flex; gap: 24px; }
.header-top-right { display: flex; gap: 12px; }
.header-top-right a { font-size: 14px; }
.header-top-right a i { margin-right: 6px; }

/* Logo */
.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-main {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.logo-sub {
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Nav */
.main-nav { margin-left: auto; }
.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav > ul > li {
  position: relative;
}
.main-nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
  border-radius: 6px;
  transition: all var(--transition);
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.active {
  color: var(--primary);
  background: #e8f4fd;
}
.main-nav > ul > li > a.active {
  font-weight: 700;
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 100;
}
.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown li a {
  display: block;
  padding: 10px 18px;
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  transition: all var(--transition);
  border-bottom: 1px solid var(--border);
}
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover {
  color: var(--primary);
  background: #f0f7ff;
  padding-left: 24px;
}

/* Mega Dropdown */
/* Products Mega Dropdown - Three Column Layout */
.dropdown-mega {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 100;
  min-width: 900px;
}
.has-mega-dropdown:hover .dropdown-mega {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-mega-inner {
  display: flex;
  gap: 0;
  padding: 0;
}
.mega-column {
  flex: 1;
  padding: 16px 20px;
  min-width: 0;
  position: relative;
}
.mega-column:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20px;
  bottom: 20px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, #d1d5db 20%, #d1d5db 80%, transparent);
}
.mega-column-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #3b82f6;
}
.mega-column-header i {
  font-size: 16px;
  color: #3b82f6;
}
.mega-column-header h3 {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Single Machines - Vertical cards with overlay text */
.mega-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  text-align: left;
  border-radius: var(--radius);
  transition: all var(--transition);
  background: transparent;
  overflow: hidden;
  margin-bottom: 8px;
  position: relative;
}
.mega-card:hover {
  background: #f0f7ff;
}
.mega-card-img {
  width: 100%;
  height: 80px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #1a3a5c 0%, #2a5a8c 100%);
  border-radius: 8px;
}
.mega-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.mega-card:hover .mega-card-img img {
  transform: scale(1.08);
}
.mega-card-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #f59e0b;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
/* Overlay text on image */
.mega-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: #fff;
}
.mega-card-overlay h4 {
  font-size: 11px;
  font-weight: 600;
  margin: 0 0 2px;
  color: #fff;
}
.mega-card-overlay p {
  font-size: 9px;
  color: rgba(255,255,255,0.8);
  margin: 0;
  line-height: 1.2;
}

/* Production Lines - Grid layout */
.mega-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mega-card-grid .mega-card {
  margin-bottom: 0;
}
.mega-card-grid .mega-card-img {
  height: 60px;
}
.mega-card-grid .mega-card-text {
  padding: 8px;
}
.mega-card-grid .mega-card-text h4 {
  font-size: 10px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 2px;
}
.mega-card-grid .mega-card-text p {
  font-size: 9px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.2;
}

/* Spare Parts - List layout with icons */
.mega-card-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.spare-part-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  transition: all 0.2s;
  text-decoration: none;
  color: var(--text);
}
.spare-part-item:hover {
  background: #f0f7ff;
  color: #3b82f6;
}
.spare-part-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.spare-part-icon i {
  color: #fff;
  font-size: 14px;
}
.spare-part-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.spare-part-info h4 {
  font-size: 11px;
  font-weight: 600;
  margin: 0 0 2px;
  color: inherit;
}
.spare-part-info p {
  font-size: 9px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.2;
}

/* Header contact */
.header-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  padding: 8px 16px;
  background: #e8f4fd;
  border-radius: 6px;
}
.header-contact i { color: var(--accent); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  margin-top: 72px;
  position: relative;
  overflow: hidden;
  height: 580px;
}

.hero-slider { height: 100%; }

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.hero-slide.active { opacity: 1; }

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

.hero-badge {
  display: inline-block;
  background: rgba(230,126,34,0.15);
  color: var(--accent);
  border: 1px solid rgba(230,126,34,0.4);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 48px;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.2;
}
.hero h1 span {
  color: var(--accent);
  display: block;
}

.hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 32px;
  max-width: 560px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero Dots & Arrows */
.hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all var(--transition);
}
.dot.active {
  background: var(--accent);
  transform: scale(1.2);
}
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.hero-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.hero-prev { left: 30px; }
.hero-next { right: 30px; }

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
  background: var(--primary);
  padding: 40px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}
.stat-item {}
.stat-number {
  font-size: 42px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.stat-number span {
  color: var(--accent);
}
.stat-label {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
  background: var(--white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-img-wrap img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}
.about-exp-badge {
  position: absolute;
  bottom: 30px;
  right: 30px;
  background: var(--accent);
  color: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius);
  text-align: center;
}
.exp-num {
  font-size: 36px;
  font-weight: 800;
  display: block;
}
.exp-text {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.about-lead {
  font-size: 18px;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 20px;
}
.about-features {
  display: grid;
  gap: 20px;
  margin: 30px 0;
}
.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: #e8f4fd;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 20px;
  flex-shrink: 0;
}
.feature-text h4 {
  font-size: 16px;
  margin-bottom: 4px;
}
.feature-text p {
  color: var(--text-light);
  font-size: 14px;
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.products-section {
  background: var(--bg);
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.category-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid var(--border);
}
.category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.category-icon-wrap {
  height: 140px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.category-icon-wrap::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  top: -50px;
  right: -50px;
}
.category-icon-wrap::after {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  bottom: -30px;
  left: -30px;
}
.category-icon-wrap i {
  font-size: 56px;
  color: rgba(255,255,255,0.9);
  position: relative;
  z-index: 1;
}
.category-card-content {
  padding: 24px;
}
.category-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
}
.category-subtitle {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px !important;
}
.category-card p {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 12px;
}
.category-apps {
  font-size: 12px !important;
  color: var(--text-muted) !important;
  font-style: italic;
  margin-bottom: 16px !important;
}
.category-card .btn {
  font-size: 13px;
  padding: 8px 16px;
}

/* ===== PRODUCT OVERVIEW CARDS (Homepage) ===== */
.product-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-overview-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all var(--transition);
  text-decoration: none;
}
.product-overview-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.product-overview-img {
  height: 180px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}
.product-overview-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.product-overview-card:hover .product-overview-img img {
  transform: scale(1.08);
}
.product-overview-text {
  padding: 20px;
  text-align: center;
}
.product-overview-text h3 {
  font-size: 18px;
  margin-bottom: 6px;
  color: var(--text);
}
.product-overview-text p {
  font-size: 14px;
  color: var(--text-light);
  margin: 0;
}
@media (max-width: 768px) {
  .product-overview-grid {
    grid-template-columns: 1fr;
  }
}

/* Product Grid in Category */
.product-list {
  display: grid;
  gap: 20px;
}
.product-item {
  display: flex;
  gap: 24px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.product-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.product-item img {
  width: 200px;
  height: 160px;
  object-fit: cover;
  flex-shrink: 0;
}
.product-item-content {
  padding: 20px;
  flex: 1;
}
.product-item h4 {
  font-size: 16px;
  margin-bottom: 8px;
}
.product-item p {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 12px;
}
.product-item .btn {
  font-size: 12px;
  padding: 6px 14px;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
  background: var(--white);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.service-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.service-card:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-6px);
}
.service-icon {
  width: 64px;
  height: 64px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  color: var(--primary);
}
.service-card:hover .service-icon {
  background: rgba(255,255,255,0.2);
  color: var(--white);
}
.service-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}
.service-card p {
  color: var(--text-light);
  font-size: 14px;
}
.service-card:hover p {
  color: rgba(255,255,255,0.8);
}

/* ============================================
   WHY CHOOSE US
   ============================================ */
.why-section {
  background: var(--primary);
  color: var(--white);
}
.why-section .section-tag {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}
.why-section .section-title {
  color: var(--white);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.why-item {
  text-align: center;
  padding: 30px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
}
.why-icon {
  width: 60px;
  height: 60px;
  background: rgba(230,126,34,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 24px;
  color: var(--accent);
}
.why-item h4 {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 10px;
}
.why-item p {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-section {
  background: var(--bg);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1px solid var(--border);
}
.testimonial-stars {
  color: var(--accent);
  margin-bottom: 16px;
  font-size: 14px;
}
.testimonial-card p {
  color: var(--text-light);
  font-size: 15px;
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.8;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}
.testimonial-info strong {
  display: block;
  font-size: 15px;
}
.testimonial-info span {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================
   CTA SECTION
   ============================================ */
.contact-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 80px 0;
  color: var(--white);
}
.cta-inner {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.cta-inner h2 {
  color: var(--white);
  font-size: 32px;
  margin-bottom: 16px;
}
.cta-inner > p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
  font-size: 16px;
}
.cta-contacts {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.cta-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cta-contact-item i {
  font-size: 24px;
  color: var(--accent);
}
.cta-contact-item span {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
}
.cta-contact-item strong {
  color: var(--white);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-logo {
  margin-bottom: 16px;
}
.footer-logo .logo-main {
  color: var(--white);
  font-size: 24px;
}
.footer-logo .logo-sub {
  color: var(--accent);
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}
.footer-qr-codes {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}
.qr-item {
  text-align: center;
}
.qr-item img {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  background: var(--white);
  object-fit: cover;
  margin-bottom: 6px;
}
.qr-item span {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  display: block;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.footer-social a:hover {
  background: var(--accent);
}
.footer-col h4 {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 20px;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul li a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  transition: all var(--transition);
}
.footer-col ul li a:hover {
  color: var(--accent);
  padding-left: 4px;
}
.footer-contacts li {
  display: flex;
  gap: 10px;
  align-items: flex-start !important;
}
.footer-contacts i {
  color: var(--accent);
  margin-top: 4px;
  width: 16px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}
.footer-bottom a {
  color: rgba(255,255,255,0.6);
}
.footer-bottom a:hover {
  color: var(--accent);
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 999;
  box-shadow: var(--shadow);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: var(--accent);
  transform: translateY(-4px);
}

/* ============================================
   WHATSAPP FLOAT
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 100px;
  right: 30px;
  z-index: 999;
}
.whatsapp-float a {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: var(--white);
  padding: 12px 20px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all var(--transition);
}
.whatsapp-float a:hover {
  background: #128C7E;
  transform: scale(1.05);
}
.whatsapp-float i {
  font-size: 20px;
}

/* ============================================
   INDUSTRY PAGE
   ============================================ */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.industry-card {
  display: flex;
  gap: 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.industry-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.industry-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 26px;
  color: var(--white);
}
.industry-content {
  flex: 1;
}
.industry-content h3 {
  font-size: 20px;
  margin-bottom: 10px;
}
.industry-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.tag {
  display: inline-block;
  background: #e8f4fd;
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
}
.industry-content > p {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.7;
}
.industry-details {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
}
.detail-item i {
  color: var(--accent);
  font-size: 14px;
}
.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}

@media (max-width: 768px) {
  .industry-grid {
    grid-template-columns: 1fr;
  }
  .industry-card {
    flex-direction: column;
    text-align: center;
  }
  .industry-icon {
    margin: 0 auto;
  }
  .industry-tags {
    justify-content: center;
  }
  .industry-details {
    justify-content: center;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .container { max-width: 960px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .dropdown-mega-inner { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .container { max-width: 720px; }
  .hero { height: 480px; }
  .hero h1 { font-size: 36px; }
  .section { padding: 60px 0; }
  .section-title { font-size: 26px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stat-number { font-size: 32px; }
  .category-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .cta-contacts { flex-direction: column; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  
  /* Mobile Nav */
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
  }
  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .main-nav > ul {
    flex-direction: column;
  }
  .main-nav > ul > li > a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .dropdown, .dropdown-mega {
    position: static;
    box-shadow: none;
    border: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding-left: 20px;
    min-width: auto;
  }
  .dropdown-mega-inner {
    grid-template-columns: 1fr 1fr;
    padding: 10px 0;
  }
  .mega-card {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    gap: 12px;
    padding: 12px 0;
  }
  .mega-card-img {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 8px;
  }
  .mega-card-img img {
    height: 100%;
  }
  .mega-card-badge {
    display: none;
  }
  .dropdown li a { padding: 8px 0; }
  .dropdown li a:hover { padding-left: 8px; }
  .header-contact { display: none; }
  .header-top { display: none; }
}

@media (max-width: 480px) {
  .hero { height: 400px; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 15px; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  .stat-number { font-size: 28px; }
}

/* ===== APPLICATION CARDS ===== */
.app-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.app-card img {
  transition: transform 0.3s ease;
}

.app-card:hover img {
  transform: scale(1.08);
}

/* ===== TAB CONTENT STYLES ===== */
/* These must be in external CSS so all tab contents can use them */
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

/* Sidebar Tab Sections */
.sidebar-tab-section {
  display: none;
}
.sidebar-tab-section.active {
  display: block;
}

/* Production Lines Grid */
.production-lines-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.production-line-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  transition: all 0.3s;
}
.production-line-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 16px rgba(59,130,246,0.15);
  transform: translateY(-2px);
}
.production-line-img {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, #1a3a5c 0%, #2a5a8c 100%);
  overflow: hidden;
}
.production-line-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.production-line-info {
  padding: 16px;
}
.production-line-info h4 {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 6px;
}
.production-line-info p {
  font-size: 12px;
  color: #64748b;
  margin: 0 0 12px;
  line-height: 1.4;
}
.production-line-info .btn {
  font-size: 12px;
  padding: 6px 14px;
}

/* Spare Parts Grid */
.spare-parts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.spare-part-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  border: 1px solid #e2e8f0;
  transition: all 0.3s;
}
.spare-part-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 16px rgba(59,130,246,0.15);
  transform: translateY(-2px);
}
.spare-part-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.spare-part-icon i {
  font-size: 24px;
  color: #fff;
}
.spare-part-card h4 {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 4px;
}
.spare-part-card p {
  font-size: 11px;
  color: #64748b;
  margin: 0;
}

/* ===== PRODUCTS PAGE STICKY TABS ===== */
/* Ensure sticky tabs work properly */
.module-tabs-wrapper {
  position: sticky !important;
  position: -webkit-sticky !important;
  top: 72px !important;
  z-index: 200 !important;
  background: #fff !important;
  padding: 16px 24px 0 !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
  margin: 0 !important;
}

.products-section {
  padding-top: 20px !important;
}

@media (max-width: 1000px) {
  .production-lines-grid { grid-template-columns: repeat(2, 1fr); }
  .spare-parts-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .module-tabs-wrapper {
    top: 60px !important;
    padding: 12px 16px 0 !important;
  }
  .production-lines-grid { grid-template-columns: 1fr; }
  .spare-parts-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== INDUSTRY DROPDOWN ===== */
.industry-mega {
  min-width: auto !important;
  max-width: none !important;
  width: 560px !important;
}
.industry-mega .dropdown-mega-inner {
  display: block;
  padding: 16px;
}
.industry-mega .mega-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.industry-mega .mega-card {
  margin-bottom: 0;
}
.industry-mega .mega-card-img {
  height: 56px;
}
.industry-mega .mega-card-text {
  padding: 6px 8px;
}
.industry-mega .mega-card-text h4 {
  font-size: 10px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 2px;
}
.industry-mega .mega-card-text p {
  font-size: 9px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .industry-mega {
    min-width: auto !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .industry-mega .dropdown-mega-inner {
    padding: 10px;
  }
  .industry-mega .mega-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .industry-mega .mega-card-img {
    height: 48px;
  }
  .industry-mega .mega-card-text {
    padding: 4px 6px;
  }
}
