/* Home Page Digital Showroom Styles */

/* Hero Section - Refined Premium Design */
.hero {
  position: relative;
  background-color: #F8FAFC;
  /* Premium abstract paper background with lighter overlay to increase visibility */
  background-image:
    linear-gradient(rgba(248, 250, 252, 0.4), rgba(248, 250, 252, 0.6)),
    url('../images/img6.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: 180px;
  /* Space for navbar */
  padding-bottom: 80px;
  /* Standard bottom padding */
  border-bottom: 1px solid rgba(15, 118, 110, 0.1);
  overflow: hidden;
}

/* Print Registration Marks - Subtle */
.registration-mark,
.registration-mark-2 {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(15, 118, 110, 0.15);
  border-radius: 50%;
  z-index: 1;
}

.registration-mark {
  top: 120px;
  left: 5%;
}

.registration-mark-2 {
  bottom: 60px;
  right: 5%;
}

.registration-mark::before,
.registration-mark-2::before {
  content: '';
  position: absolute;
  top: 11px;
  left: -8px;
  right: -8px;
  height: 1px;
  background: rgba(15, 118, 110, 0.15);
}

.registration-mark::after,
.registration-mark-2::after {
  content: '';
  position: absolute;
  left: 11px;
  top: -8px;
  bottom: -8px;
  width: 1px;
  background: rgba(15, 118, 110, 0.15);
}

.hero .container {
  position: relative;
  z-index: 3;
}

.hero-content-centered {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background-color: var(--primary-blue-light);
  color: var(--primary-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 30px;
  margin-bottom: 24px;
  border: 1px solid rgba(15, 118, 110, 0.2);
}

.hero h1 {
  font-size: 58px;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  line-height: 1.15;
  color: var(--text-dark);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero p {
  font-size: 18px;
  margin-bottom: 32px;
  color: var(--text-muted);
  max-width: 580px;
}

.hero-actions-centered {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}

.hero-trust-centered {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 60px;
}

.hero-trust-centered span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.hero-trust-centered .lucide {
  color: var(--primary-blue);
  width: 18px;
  height: 18px;
}

/* Horizontal Premium Product Showcase */
.hero-showcase-horizontal {
  position: relative;
  z-index: 10;
  margin-top: 40px;
  /* Add spacing below the hero section */
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 80px;
}

.sc-img {
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 4px solid white;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), z-index 0s;
  cursor: pointer;
  object-fit: cover;
  background-color: white;
}

.sc-img:hover {
  transform: translateY(-20px) scale(1.05) !important;
  z-index: 20 !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.sc-1,
.sc-2,
.sc-3,
.sc-4,
.sc-5 {
  width: 200px;
  height: 260px;
  margin: 0;
  transform: none;
}

.hero-showcase-horizontal {
  gap: 24px;
  flex-wrap: wrap;
}

/* What We Print */
.products-section {
  padding: 80px 0;
  background-color: #e6f2ef;
  /* More visible, slightly darker mint tint */
  position: relative;
}

.products-grid {
  display: flex;
  overflow-x: auto;
  gap: 32px;
  padding-bottom: 40px;
  /* Space for scrollbar and shadow */
  padding-top: 20px;
  /* Space for hover lift */
  padding-left: 4px;
  padding-right: 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

/* Hide Scrollbar for Products Carousel */
.products-grid::-webkit-scrollbar {
  display: none;
}

.products-grid {
  -ms-overflow-style: none;
  scrollbar-width: none;
  align-items: stretch;
  /* Make cards equal height */
}

.carousel-container {
  position: relative;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: white;
  border: 1px solid rgba(15, 118, 110, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: var(--text-dark);
  transition: all 0.3s ease;
}

.carousel-nav:hover {
  background: var(--primary-blue);
  color: white;
  border-color: var(--primary-blue);
}

.carousel-nav.prev {
  left: 16px;
}

.carousel-nav.next {
  right: 16px;
}

.carousel-actions {
  text-align: center;
  margin-top: 40px;
}

.product-card {
  min-width: 380px;
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 118, 110, 0.08);
  border-top: 5px solid var(--primary-blue);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  height: auto;
}

.product-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(15, 118, 110, 0.12);
}

.product-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-bottom: 1px solid rgba(15, 118, 110, 0.05);
}

.product-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  /* Stretch to fill space */
}

.product-content h3 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-dark);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px dashed rgba(15, 118, 110, 0.15);
}

.product-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
  /* Push anything below it to the bottom */
}

.product-content li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}

.product-content li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0px;
  color: var(--primary-blue);
  font-weight: bold;
  font-size: 18px;
}

.view-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--primary-blue);
  background: var(--primary-blue-light);
  padding: 10px 20px;
  border-radius: 30px;
  margin-top: 16px;
  align-self: flex-start;
  transition: all 0.3s ease;
}

.view-more:hover {
  gap: 12px;
  background: var(--primary-blue);
  color: white;
}

/* Custom Button */
.custom-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 40px;
  font-size: 18px;
  font-weight: 700;
  border-radius: var(--radius, 8px);
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.2);
}

.custom-view-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15, 118, 110, 0.3);
}

.custom-view-btn i {
  width: 24px;
  height: 24px;
}

/* Title Styling */
.title-with-line {
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
}

.title-with-line::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-blue);
  border-radius: 2px;
}

.text-primary {
  color: var(--primary-blue) !important;
}

/* Industries We Serve */
.industries-section {
  padding: 80px 0;
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.ind-card {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: var(--bg-white);
  border-radius: 12px;
  border: 1px solid rgba(15, 118, 110, 0.08);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.ind-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(15, 118, 110, 0.1);
  border-color: rgba(15, 118, 110, 0.2);
}

.ind-card .lucide {
  color: var(--primary-blue);
  width: 28px;
  height: 28px;
  padding: 12px;
  background: rgba(15, 118, 110, 0.06);
  border-radius: 50%;
  transition: all 0.3s ease;
  box-sizing: content-box;
  flex-shrink: 0;
}

.ind-card:hover .lucide {
  background: var(--primary-blue);
  color: white;
  transform: scale(1.05) rotate(-5deg);
}

.ind-card span {
  font-weight: 700;
  font-size: 17px;
  color: var(--text-dark);
  line-height: 1.3;
}

/* Masonry Gallery */
.gallery-section {
  padding: 80px 0;
  background-color: #f4f7f6;
  /* Soft premium background for the whole section */
}

.masonry-grid {
  column-count: 3;
  column-gap: 24px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 24px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  background-color: #fff;
}

/* Gradient Overlay */
.masonry-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 0) 80%);
  opacity: 1;
  z-index: 1;
  pointer-events: none;
}

.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.masonry-item:hover img {
  transform: scale(1.08);
}

/* Hover Content (Now Always Visible) */
.overlay-content {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 2;
  opacity: 1;
  color: white;
}

.overlay-content h4 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: white;
}

.overlay-content .view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-blue);
  /* Fixed: Ensuring text is visible against white background */
  background-color: white;
  padding: 8px 18px;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.masonry-item:hover .view-btn {
  background-color: var(--primary-blue);
  color: white;
}

.overlay-content .view-btn .lucide {
  width: 16px;
  height: 16px;
}

/* Mobile Optimizations for Masonry Gallery */
@media (max-width: 768px) {
  .masonry-grid {
    column-count: 2;
    column-gap: 16px;
  }

  .masonry-item {
    margin-bottom: 16px;
    border-radius: 8px;
  }

  .overlay-content {
    bottom: 16px;
    left: 16px;
  }

  .overlay-content h4 {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .overlay-content .view-btn {
    font-size: 11px;
    gap: 4px;
    padding: 6px 12px;
  }

  .overlay-content .view-btn .lucide {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 480px) {
  .masonry-grid {
    column-count: 1;
    /* For very small phones, switch to 1 column so images are visible */
  }

  .industries-grid {
    grid-template-columns: 1fr;
  }

  .overlay-content h4 {
    font-size: 20px;
  }

  .overlay-content .view-btn {
    font-size: 14px;
  }
}

/* Why Choose Us */
.why-us-section {
  padding: 100px 0;
  background-color: #e2e8f0;
  /* Darker slate-grey for extremely visible contrast */
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.why-card {
  padding: 40px 32px;
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(15, 118, 110, 0.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  /* Increased shadow for better separation */
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.why-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(15, 118, 110, 0.1);
  border-color: rgba(15, 118, 110, 0.2);
}

.why-card .lucide {
  color: white;
  width: 36px;
  height: 36px;
  margin-bottom: 24px;
  padding: 14px;
  background-color: var(--primary-blue);
  /* Solid color always on */
  border-radius: 12px;
  transition: all 0.3s ease;
  box-sizing: content-box;
}

.why-card:hover .lucide {
  transform: rotate(-5deg) scale(1.1);
}

.why-card h4 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.why-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Process Timeline */
.process-section {
  padding: 100px 0;
  background-color: #ffffff;
  /* Alternating back to white */
}

.timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 0;
  width: 100%;
  border-top: 2px dashed rgba(15, 118, 110, 0.2);
  z-index: 1;
}

.timeline-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 140px;
}

.step-num {
  width: 72px;
  height: 72px;
  background-color: white;
  border: 3px solid rgba(15, 118, 110, 0.15);
  color: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 24px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.timeline-step:hover .step-num {
  background-color: var(--primary-blue);
  color: white;
  border-color: var(--primary-blue);
  transform: scale(1.1);
  box-shadow: 0 10px 25px rgba(15, 118, 110, 0.2);
}

.timeline-step h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
}

/* Statistics */
.stats-section {
  padding: 100px 0;
  background-image: url('https://images.unsplash.com/photo-1562664377-709f2c337eb2?q=80&w=1920&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 46, 43, 0.85);
  /* Deep dark teal overlay for contrast */
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  position: relative;
  z-index: 2;
}

.stat-item h2 {
  font-size: 56px;
  font-weight: 800;
  color: white;
  display: inline-block;
  margin-bottom: 12px;
}

.stat-item span {
  font-size: 56px;
  font-weight: 800;
  color: var(--accent-orange);
}

.stat-item p {
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.85);
}

/* Testimonials */
.testimonials-section {
  padding: var(--section-padding);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.testimonial-card p {
  font-size: 18px;
  color: var(--text-dark);
  font-weight: 500;
  margin: 24px 0;
  line-height: 1.6;
}

.stars {
  color: var(--accent-orange);
  margin-bottom: 16px;
  display: flex;
  gap: 4px;
}

.stars .lucide {
  width: 20px;
  height: 20px;
}

.test-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.test-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.test-author h5 {
  font-size: 16px;
}

.test-author span {
  font-size: 14px;
  color: var(--text-muted);
}

/* Final CTA */
.final-cta {
  padding: 120px 0;
  background-color: var(--primary-blue);
  text-align: center;
  color: var(--text-light);
  position: relative;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 118, 110, 0.15);
  /* Almost fully transparent */
  z-index: 1;
}

.final-cta .container {
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  color: var(--text-light);
  margin-bottom: 24px;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* Responsive */
@media (max-width: 992px) {
  .hero {
    padding-top: 140px;
    padding-bottom: 60px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-showcase-horizontal {
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 16px;
  }

  .sc-img {
    margin-left: 0 !important;
    transform: none !important;
    width: 160px;
    height: 200px;
  }

  .sc-3 {
    width: 100%;
    max-width: 300px;
    height: 260px;
  }

  /* Highlight main item */

  .hero-inner,
  .why-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .masonry-grid {
    column-count: 2;
  }

  .timeline {
    flex-direction: column;
    gap: 40px;
  }

  .timeline::before {
    left: 30px;
    top: 0;
    width: 2px;
    height: 100%;
  }

  .timeline {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 16px;
    gap: 40px;
  }

  .timeline::before {
    top: 0;
    left: 52px;
    /* 16px padding + 36px center of 72px circle */
    width: 2px;
    height: 100%;
    border-top: none;
    border-left: 2px dashed rgba(15, 118, 110, 0.2);
  }

  .timeline-step {
    flex-direction: row;
    width: 100%;
    gap: 24px;
    text-align: left;
    align-items: center;
  }

  .step-num {
    margin-bottom: 0;
    z-index: 2;
    flex-shrink: 0;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-bottom: 40px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-trust-centered {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 0 8px;
    margin-bottom: 40px;
  }

  .hero-trust-centered span {
    font-size: 13px;
    background-color: white;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(15, 118, 110, 0.05);
  }

  .hero-showcase-horizontal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0 16px;
    margin-bottom: 40px;
    gap: 16px;
  }

  .sc-img {
    width: 100% !important;
    height: 180px !important;
  }

  .sc-3 {
    grid-column: span 2;
    height: 240px !important;
    max-width: 100% !important;
  }

  .industries-grid {
    grid-template-columns: 1fr 1fr;
  }

  .masonry-grid {
    column-count: 1;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions-main {
    flex-direction: column;
  }

  .product-card {
    min-width: 85vw;
  }

  .products-grid {
    gap: 16px;
    padding-bottom: 24px;
  }
}

@media (max-width: 576px) {
  .industries-grid {
    gap: 12px;
  }

  .ind-card {
    padding: 16px 8px;
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .ind-card .lucide {
    width: 24px;
    height: 24px;
    padding: 10px;
  }

  .ind-card span {
    font-size: 13px;
  }
}