/* ============================================
   HOME PAGE - PREMIUM CORPORATE DESIGN
   Professional · Content-Rich · Conversion-Focused
   Spacing System: 60–90px section padding
============================================ */

:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --primary-light: #eff6ff;
  --secondary: #64748b;
  --dark: #1e293b;
  --light: #f8fafc;
  --lighter: #f1f5f9;
  --border: #e2e8f0;
  --divider: #f0f0f0;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.05);
  --shadow-card-hover: 0 8px 28px rgba(0, 0, 0, 0.1);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   REUSABLE SECTION BASE CLASSES
============================================ */
.section {
  padding: 70px 0;
  background: #fff;
}
.section-white {
  background: #fff;
}
.section-light {
  background: #fafbfc;
}
.section + .section {
  border-top: 1px solid var(--divider);
}

/* ============================================
   HERO CAROUSEL
============================================ */
.home-hero-carousel {
  position: relative;
  width: 100%;
  background: var(--dark);
}

.hero-slides {
  position: relative;
  width: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
}
.hero-slide.active {
  position: relative;
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

.hero-link {
  display: block;
  width: 100%;
}

.hero-slide picture {
  display: block;
  width: 100%;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Desktop hero: cap height and clip overflow */
@media (min-width: 768px) {
  .home-hero-carousel {
    overflow: hidden;
  }
  .hero-image {
    max-height: 85vh;
    object-fit: contain;
  }
}

/* Hero Overlay Content */
.hero-overlay-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  padding: 0 0 60px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    transparent 100%
  );
  pointer-events: none;
}
.hero-overlay-content .container {
  pointer-events: auto;
}

.hero-heading {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.15;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}
.hero-heading span {
  color: #60a5fa;
}

.hero-subheading {
  font-size: clamp(14px, 1.8vw, 20px);
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 28px;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: var(--transition);
  border: 2px solid transparent;
}

.hero-btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.hero-btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

.hero-btn-outline {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
}
.hero-btn-outline:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

/* Hero Controls */
.hero-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.hero-control:hover {
  background: rgba(0, 0, 0, 0.65);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.08);
}
.hero-prev {
  left: 20px;
}
.hero-next {
  right: 20px;
}

.hero-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}
.hero-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: var(--transition);
}
.hero-indicator:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.15);
}
.hero-indicator.active {
  width: 32px;
  border-radius: 5px;
  background: #fff;
  border-color: #fff;
}

/* ============================================
   FEATURES STRIP
============================================ */
.home-features-section {
  background: #fff;
  padding: 0;
  position: relative;
  z-index: 10;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1200px;
  margin: -30px auto 0;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  z-index: 10;
  background: #fff;
}

.feature-item {
  background: #fff;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: var(--transition);
  border-right: 1px solid var(--border);
}
.feature-item:last-child {
  border-right: none;
}
.feature-item:hover {
  background: var(--primary-light);
}

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  flex-shrink: 0;
}
.feature-icon-blue {
  background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
}
.feature-icon-green {
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
}
.feature-icon-orange {
  background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%);
}
.feature-icon-purple {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

.feature-content h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 4px;
}
.feature-content p {
  font-size: 13px;
  color: var(--secondary);
  margin: 0;
  line-height: 1.5;
}

/* ============================================
   SECTION COMMON STYLES
============================================ */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  gap: 20px;
}
.section-header-center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-title-wrapper {
  flex: 1;
}

.section-title {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--secondary);
  margin: 0;
  line-height: 1.6;
  max-width: 560px;
}
.section-header-center .section-subtitle {
  margin: 0 auto;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  white-space: nowrap;
}
.section-link:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

/* ============================================
   SERVICES / SOLUTIONS
============================================ */
.home-services-section {
  padding: 70px 0;
  background: #fff;
  border-top: 1px solid var(--divider);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--divider);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--primary);
}

.service-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--primary);
  transition: var(--transition);
}
.service-card:hover .service-icon {
  background: var(--primary);
  color: #fff;
  transform: scale(1.08);
}

.service-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 10px;
  line-height: 1.3;
}

.service-desc {
  font-size: 14px;
  color: var(--secondary);
  line-height: 1.65;
  margin: 0;
}

/* ============================================
   FEATURED PRODUCTS
============================================ */
.home-products-section {
  padding: 70px 0;
  background: #fff;
  border-top: 1px solid var(--divider);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-item {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--divider);
}
.product-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: transparent;
}

.product-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.product-image-wrapper {
  position: relative;
  padding-top: 75%;
  overflow: hidden;
  background: #fafafa;
}

.product-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-item:hover .product-image {
  transform: scale(1.08);
}

.product-no-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  color: #cbd5e1;
}

.product-overlay-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.75) 0%,
    rgba(30, 41, 59, 0.85) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.product-item:hover .product-overlay-hover {
  opacity: 1;
}

.product-overlay-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #fff;
  color: var(--dark);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  transform: translateY(16px);
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}
.product-item:hover .product-overlay-btn {
  transform: translateY(0);
}
.product-overlay-btn:hover {
  background: var(--primary);
  color: #fff;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.product-info {
  padding: 18px;
}

.product-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-desc {
  font-size: 13px;
  color: var(--secondary);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================
   WHY CHOOSE US
============================================ */
.home-whychoose-section {
  padding: 70px 0;
  background: #fff;
  border-top: 1px solid var(--divider);
}

.whychoose-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.whychoose-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 36px 24px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--divider);
  position: relative;
  overflow: hidden;
}
.whychoose-card::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.whychoose-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: transparent;
}
.whychoose-card:hover::before {
  transform: scaleX(1);
}

.whychoose-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--primary);
  transition: var(--transition);
}
.whychoose-card:hover .whychoose-icon {
  background: var(--primary);
  color: #fff;
  transform: scale(1.08) rotate(5deg);
}

.whychoose-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 10px;
}

.whychoose-desc {
  font-size: 14px;
  color: var(--secondary);
  line-height: 1.65;
  margin: 0;
}

/* ============================================
   STATISTICS COUNTER
============================================ */
.home-stats-section {
  position: relative;
  padding: 65px 0;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 50%,
    #1e293b 100%
  );
  overflow: hidden;
}

.stats-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
}

.stats-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-block {
  padding: 10px 0;
}

.stat-icon {
  font-size: 32px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
}

.stat-number {
  font-size: 48px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  display: inline;
}
.stat-suffix {
  font-size: 32px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  display: inline;
  margin-left: 2px;
}

.stat-label {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 10px;
  font-weight: 500;
}

/* ============================================
   PROJECT SHOWCASE
============================================ */
.home-projects-section {
  padding: 70px 0;
  background: #fff;
  border-top: 1px solid var(--divider);
}

.projects-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.project-image-wrapper {
  position: relative;
  padding-top: 70%;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.project-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.project-card:hover .project-image {
  transform: scale(1.08);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.1) 50%,
    transparent 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.35s;
}
.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay-content {
  width: 100%;
}

.project-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.3;
}

.project-location {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ============================================
   CATEGORIES
============================================ */
.home-categories-section {
  padding: 70px 0;
  background: #fff;
  border-top: 1px solid var(--divider);
}

.categories-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.category-item {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
  border: 2px solid var(--divider);
  position: relative;
  overflow: hidden;
}
.category-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.5) 100%
  );
  opacity: 0;
  transition: opacity 0.3s;
}
.category-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: currentColor;
}
.category-item:hover::before {
  opacity: 1;
}

.category-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  flex-shrink: 0;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}
.category-item:hover .category-icon-wrapper {
  transform: scale(1.08) rotate(5deg);
}

.category-content {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.category-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 3px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-desc {
  font-size: 13px;
  margin: 0;
  opacity: 0.75;
}

.category-arrow-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.category-item:hover .category-arrow-icon {
  transform: translateX(4px);
}

/* Category Color Themes */
.category-blue {
  color: #2563eb;
}
.category-blue .category-icon-wrapper {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #2563eb;
}
.category-blue .category-arrow-icon {
  background: #eff6ff;
  color: #2563eb;
}

.category-green {
  color: #10b981;
}
.category-green .category-icon-wrapper {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #10b981;
}
.category-green .category-arrow-icon {
  background: #ecfdf5;
  color: #10b981;
}

.category-orange {
  color: #f59e0b;
}
.category-orange .category-icon-wrapper {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #f59e0b;
}
.category-orange .category-arrow-icon {
  background: #fffbeb;
  color: #f59e0b;
}

.category-purple {
  color: #8b5cf6;
}
.category-purple .category-icon-wrapper {
  background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
  color: #8b5cf6;
}
.category-purple .category-arrow-icon {
  background: #f5f3ff;
  color: #8b5cf6;
}

.category-red {
  color: #ef4444;
}
.category-red .category-icon-wrapper {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #ef4444;
}
.category-red .category-arrow-icon {
  background: #fef2f2;
  color: #ef4444;
}

.category-teal {
  color: #14b8a6;
}
.category-teal .category-icon-wrapper {
  background: linear-gradient(135deg, #ccfbf1 0%, #99f6e4 100%);
  color: #14b8a6;
}
.category-teal .category-arrow-icon {
  background: #f0fdfa;
  color: #14b8a6;
}

/* ============================================
   ABOUT SECTION
============================================ */
.home-about-section {
  padding: 70px 0;
  background: #fff;
  border-top: 1px solid var(--divider);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.about-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.about-title {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 18px;
  line-height: 1.25;
}

.about-text {
  font-size: 15px;
  color: var(--secondary);
  line-height: 1.8;
  margin-bottom: 24px;
}

.about-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.about-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--dark);
  font-weight: 500;
  line-height: 1.4;
}
.about-checklist li i {
  color: var(--success);
  font-size: 18px;
  flex-shrink: 0;
}

.about-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.about-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: var(--transition);
}

.about-btn-primary {
  background: var(--primary);
  color: #fff;
}
.about-btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.about-btn-secondary {
  background: #fff;
  color: var(--dark);
  border: 2px solid var(--border);
}
.about-btn-secondary:hover {
  background: #fff;
  border-color: var(--primary);
  color: var(--primary);
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 420px;
}
.about-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.about-image:hover img {
  transform: scale(1.03);
}

/* Placeholder fallback when real image fails to load */
.about-image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
}
.about-image-placeholder i {
  font-size: 64px;
  opacity: 0.6;
}
.about-image-placeholder span {
  font-size: 18px;
  font-weight: 700;
  opacity: 0.8;
  letter-spacing: 0.5px;
}
.about-image--placeholder img {
  visibility: hidden;
}
.about-image--placeholder .about-image-placeholder {
  display: flex;
}

/* Floating badges */
.about-image-badge {
  position: absolute;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
  z-index: 2;
  transition: var(--transition);
}
.about-image:hover .about-image-badge {
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.45);
}
.about-image-badge--top {
  top: 20px;
  left: 20px;
}
.about-image-badge--bottom {
  bottom: 20px;
  right: 20px;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.about-image:hover .about-image-badge--bottom {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}
.about-image-badge--bottom .about-image-badge-number {
  color: var(--primary);
}
.about-image-badge--bottom .about-image-badge-text {
  color: var(--secondary);
}
.about-image-badge-number {
  display: block;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}
.about-image-badge-text {
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

/* ============================================
   TESTIMONIALS
============================================ */
.home-testimonials-section {
  padding: 70px 0;
  background: #fff;
  border-top: 1px solid var(--divider);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  border: 1px solid var(--divider);
  display: flex;
  flex-direction: column;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: transparent;
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
  color: #f59e0b;
  font-size: 16px;
}

.testimonial-text {
  font-size: 15px;
  color: var(--secondary);
  line-height: 1.75;
  margin: 0 0 20px;
  flex: 1;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.testimonial-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 22px;
  flex-shrink: 0;
}

.testimonial-info {
  display: flex;
  flex-direction: column;
}
.testimonial-info strong {
  font-size: 14px;
  color: var(--dark);
  font-weight: 700;
}
.testimonial-info span {
  font-size: 13px;
  color: var(--secondary);
  margin-top: 2px;
}

/* ============================================
   ARTICLES GRID
============================================ */
.home-articles-section {
  padding: 70px 0;
  background: #fff;
  border-top: 1px solid var(--divider);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--divider);
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: transparent;
}

.article-image {
  position: relative;
  padding-top: 58%;
  overflow: hidden;
  background: #fafafa;
}
.article-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.article-card:hover .article-image img {
  transform: scale(1.06);
}

.article-no-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  color: #cbd5e1;
}

.article-content {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-meta {
  margin-bottom: 12px;
}

.article-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--secondary);
}

.article-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 10px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-summary {
  font-size: 14px;
  color: var(--secondary);
  line-height: 1.65;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.article-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  margin-top: auto;
  transition: var(--transition);
}
.article-card:hover .article-read-more {
  gap: 10px;
}

/* ============================================
   CTA SECTION
============================================ */
.home-cta-section {
  position: relative;
  padding: 75px 0;
  background: linear-gradient(135deg, #4a7ec8 0%, #3968af 100%);
  overflow: hidden;
}

.home-cta-section .cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 16px;
  line-height: 1.2;
}

.cta-text {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: var(--transition);
}

.cta-btn-primary {
  background: #f8fafc;
  color: #3968af;
}
.cta-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  background: #fff;
}

.cta-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
}
.cta-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

/* ============================================
   RESPONSIVE — TABLET (768–991px)
============================================ */
@media (max-width: 991.98px) {
  /* Features */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -24px;
    border-radius: var(--radius-md);
  }
  .feature-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 24px 20px;
    gap: 16px;
  }
  .feature-item:nth-child(2n) {
    border-right: none;
  }
  .feature-item:nth-last-child(-n + 2) {
    border-bottom: none;
  }
  .feature-icon {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
  .feature-content h3 {
    font-size: 14px;
  }
  .feature-content p {
    font-size: 12px;
  }

  /* Services */
  .home-services-section {
    padding: 60px 0;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .service-card {
    padding: 28px 22px;
  }

  /* Products */
  .home-products-section {
    padding: 60px 0;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Why Choose Us */
  .home-whychoose-section {
    padding: 60px 0;
  }
  .whychoose-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Stats */
  .home-stats-section {
    padding: 50px 0;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 20px;
  }
  .stat-number {
    font-size: 40px;
  }
  .stat-suffix {
    font-size: 26px;
  }

  /* Projects */
  .home-projects-section {
    padding: 60px 0;
  }
  .projects-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Categories */
  .home-categories-section {
    padding: 60px 0;
  }
  .categories-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* About */
  .home-about-section {
    padding: 60px 0;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .about-image {
    order: -1;
  }
  .about-image {
    min-height: 340px;
  }
  .about-image img {
    height: 360px;
  }
  .about-checklist {
    grid-template-columns: 1fr;
  }

  /* Testimonials */
  .home-testimonials-section {
    padding: 60px 0;
  }
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .testimonials-grid .testimonial-card:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 500px;
    margin: 0 auto;
  }

  /* Articles */
  .home-articles-section {
    padding: 60px 0;
  }
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Section headers */
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 32px;
    gap: 16px;
  }
  .section-header-center {
    align-items: center;
  }
  .section-title {
    font-size: 28px;
  }
  .section-link {
    padding: 10px 20px;
    font-size: 13px;
  }

  /* CTA */
  .home-cta-section {
    padding: 60px 0;
  }
  .cta-title {
    font-size: 32px;
  }
  .cta-text {
    font-size: 15px;
  }

  /* Hero overlay */
  .hero-overlay-content {
    padding-bottom: 50px;
  }
  .hero-heading {
    font-size: 32px;
  }
  .hero-subheading {
    font-size: 15px;
  }
}

/* ============================================
   RESPONSIVE — MOBILE (<768px)
============================================ */
@media (max-width: 767.98px) {
  /* Hero */
  .hero-control {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
  .hero-prev {
    left: 10px;
  }
  .hero-next {
    right: 10px;
  }
  .hero-indicators {
    bottom: 14px;
    gap: 8px;
  }
  .hero-indicator {
    width: 8px;
    height: 8px;
  }
  .hero-indicator.active {
    width: 24px;
  }

  .hero-overlay-content {
    padding-bottom: 40px;
  }
  .hero-heading {
    font-size: 24px;
    margin-bottom: 8px;
  }
  .hero-subheading {
    font-size: 13px;
    margin-bottom: 20px;
  }
  .hero-btn {
    padding: 11px 22px;
    font-size: 13px;
  }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
    margin-top: -20px;
  }
  .feature-item {
    border-right: none;
  }

  /* Services */
  .home-services-section {
    padding: 50px 0;
  }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .service-card {
    padding: 24px 20px;
  }
  .service-icon {
    width: 58px;
    height: 58px;
    font-size: 26px;
    margin-bottom: 16px;
  }
  .service-title {
    font-size: 16px;
  }
  .service-desc {
    font-size: 13px;
  }

  /* Products */
  .home-products-section {
    padding: 50px 0;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .product-item {
    border-radius: var(--radius-sm);
  }
  .product-info {
    padding: 12px;
  }
  .product-name {
    font-size: 14px;
    margin-bottom: 4px;
    font-weight: 600;
  }
  .product-desc {
    font-size: 12px;
  }
  .product-badge {
    top: 8px;
    left: 8px;
    padding: 4px 10px;
    font-size: 10px;
  }
  .product-overlay-btn {
    padding: 8px 14px;
    font-size: 12px;
  }

  /* Why Choose Us */
  .home-whychoose-section {
    padding: 50px 0;
  }
  .whychoose-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .whychoose-card {
    padding: 24px 16px;
  }
  .whychoose-icon {
    width: 54px;
    height: 54px;
    font-size: 24px;
    margin-bottom: 14px;
  }
  .whychoose-title {
    font-size: 14px;
  }
  .whychoose-desc {
    font-size: 13px;
  }

  /* Stats */
  .home-stats-section {
    padding: 45px 0;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 16px;
  }
  .stat-icon {
    font-size: 26px;
    margin-bottom: 8px;
  }
  .stat-number {
    font-size: 36px;
  }
  .stat-suffix {
    font-size: 22px;
  }
  .stat-label {
    font-size: 13px;
    margin-top: 6px;
  }

  /* Projects */
  .home-projects-section {
    padding: 50px 0;
  }
  .projects-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .project-image-wrapper {
    padding-top: 80%;
  }
  .project-overlay {
    padding: 16px;
  }
  .project-title {
    font-size: 14px;
  }
  .project-location {
    font-size: 11px;
  }

  /* Categories */
  .home-categories-section {
    padding: 50px 0;
  }
  .categories-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .category-item {
    padding: 18px;
    gap: 14px;
  }
  .category-icon-wrapper {
    width: 56px;
    height: 56px;
    font-size: 26px;
  }
  .category-title {
    font-size: 15px;
    white-space: normal;
  }
  .category-arrow-icon {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }

  /* About */
  .home-about-section {
    padding: 50px 0;
  }
  .about-grid {
    gap: 28px;
  }
  .about-badge {
    font-size: 11px;
    padding: 5px 12px;
  }
  .about-title {
    font-size: 24px;
  }
  .about-text {
    font-size: 14px;
    margin-bottom: 20px;
  }
  .about-image {
    min-height: 240px;
  }
  .about-image img {
    height: 260px;
  }
  .about-image-badge {
    padding: 10px 14px;
  }
  .about-image-badge--top {
    top: 14px;
    left: 14px;
  }
  .about-image-badge--bottom {
    bottom: 14px;
    right: 14px;
  }
  .about-image-badge-number {
    font-size: 22px;
  }
  .about-image-badge-text {
    font-size: 9px;
  }
  .about-image-placeholder i {
    font-size: 48px;
  }
  .about-image-placeholder span {
    font-size: 15px;
  }
  .about-checklist {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 22px;
  }
  .about-checklist li {
    font-size: 13px;
  }
  .about-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .about-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 22px;
  }

  /* Testimonials */
  .home-testimonials-section {
    padding: 50px 0;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .testimonials-grid .testimonial-card:nth-child(3) {
    grid-column: auto;
    max-width: none;
  }
  .testimonial-card {
    padding: 24px 20px;
  }
  .testimonial-text {
    font-size: 14px;
  }
  .testimonial-avatar {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  /* Articles */
  .home-articles-section {
    padding: 50px 0;
  }
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .article-card {
    border-radius: var(--radius-sm);
  }
  .article-image {
    padding-top: 62%;
  }
  .article-no-image {
    font-size: 34px;
  }
  .article-content {
    padding: 14px;
  }
  .article-meta {
    margin-bottom: 8px;
  }
  .article-date {
    font-size: 11px;
  }
  .article-title {
    font-size: 14px;
    margin-bottom: 6px;
  }
  .article-summary {
    font-size: 12px;
    margin-bottom: 8px;
    -webkit-line-clamp: 2;
  }
  .article-read-more {
    font-size: 12px;
  }

  /* Section headers */
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 24px;
  }
  .section-header-center {
    align-items: center;
  }
  .section-link {
    width: 100%;
    justify-content: center;
  }
  .section-title {
    font-size: 24px;
  }
  .section-subtitle {
    font-size: 14px;
  }

  /* CTA */
  .home-cta-section {
    padding: 50px 0;
  }
  .cta-content {
    padding: 0 8px;
  }
  .cta-title {
    font-size: 24px;
    margin-bottom: 12px;
  }
  .cta-text {
    font-size: 14px;
    margin-bottom: 24px;
  }
  .cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0;
  }
  .cta-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 14px;
  }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE (<480px)
============================================ */
@media (max-width: 479.98px) {
  .hero-heading {
    font-size: 20px;
  }
  .hero-subheading {
    font-size: 12px;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .hero-btn {
    width: 100%;
    justify-content: center;
  }

  .whychoose-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    gap: 10px;
  }
  .product-info {
    padding: 10px;
  }
  .product-name {
    font-size: 13px;
  }

  .stats-grid {
    gap: 20px 12px;
  }
  .stat-number {
    font-size: 30px;
  }
  .stat-suffix {
    font-size: 18px;
  }
}
