/* ==========================================================================
   KVEE TECH ENTERPRISES - HOMEPAGE SPECIFIC STYLES
   ========================================================================== */

/* Hero Section */
.hero-section {
  position: relative;
  background-color: #001a2c;
  color: var(--color-white);
  padding: 120px 0 140px;
  overflow: hidden;
}

.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: brightness(0.92) contrast(1.08);
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 25, 48, 0.5) 0%, rgba(0, 12, 24, 0.62) 100%);
  z-index: 2;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(to top, var(--color-white), transparent);
  pointer-events: none;
  z-index: 2;
}

.hero-content {
  max-width: 840px;
  position: relative;
  z-index: 3;
  min-height: 320px;
}

/* Hero Message Slider */
.hero-slides-wrapper {
  position: relative;
  min-height: 300px;
}

.hero-slide {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transform: translateY(15px);
  transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out, visibility 0.6s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-full);
  color: var(--color-accent-light);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-title {
  color: var(--color-white);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 24px;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.9);
}

.hero-title span,
.hero-title .word-integral {
  color: var(--color-accent);
  background: linear-gradient(45deg, #ff7a28, #ffb366);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.hero-description {
  font-size: 1.18rem;
  color: #ffffff;
  margin-bottom: 35px;
  line-height: 1.7;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85), 0 1px 2px rgba(0, 0, 0, 0.9);
}

.hero-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-slide-dots {
  display: flex;
  gap: 10px;
  margin-top: 35px;
  z-index: 4;
  position: relative;
}

.hero-slide-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-slide-dot.active {
  width: 32px;
  border-radius: 6px;
  background: var(--color-accent);
  border-color: var(--color-accent);
}

/* Clients Carousel Showcase (5 items visible) */
.clients-section {
  padding: 45px 0;
  background-color: var(--color-bg-light);
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

.clients-title {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 25px;
}

.clients-carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.clients-carousel-track-wrapper {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  padding: 8px 4px;
}

.clients-carousel-track {
  display: flex;
  gap: 16px;
  transition: transform 0.4s ease-in-out;
  will-change: transform;
}

.client-logo-item {
  flex: 0 0 calc((100% - (4 * 16px)) / 5);
  min-width: calc((100% - (4 * 16px)) / 5);
  height: 95px;
  background-color: #ffffff;
  border: 1px solid rgba(0, 43, 73, 0.1);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  transition: all 0.3s ease;
  user-select: none;
}

.client-logo-item:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.client-logo-item img {
  max-height: 62px;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(10%) opacity(0.92);
  transition: all 0.3s ease;
}

.client-logo-item:hover img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.06);
}

.carousel-control {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  flex-shrink: 0;
  z-index: 5;
}

.carousel-control:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
  transform: scale(1.08);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #cbd5e1;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  width: 26px;
  border-radius: 6px;
  background-color: var(--color-accent);
}

@media (max-width: 1024px) {
  .client-logo-item {
    flex: 0 0 calc((100% - (3 * 16px)) / 4);
    min-width: calc((100% - (3 * 16px)) / 4);
  }
}

@media (max-width: 768px) {
  .client-logo-item {
    flex: 0 0 calc((100% - (2 * 16px)) / 3);
    min-width: calc((100% - (2 * 16px)) / 3);
    height: 85px;
    padding: 10px 14px;
  }

  .client-logo-item img {
    max-height: 50px;
  }

  .carousel-control {
    display: none;
  }
}

@media (max-width: 480px) {
  .client-logo-item {
    flex: 0 0 calc((100% - 16px) / 2);
    min-width: calc((100% - 16px) / 2);
    height: 80px;
  }
}

/* Industries Section Dynamic Cards with Visual Effects */
.industry-card {
  background-color: var(--color-white);
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 20px rgba(0, 43, 73, 0.06);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.industry-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 35px -5px rgba(0, 43, 73, 0.16), 0 0 15px rgba(243, 112, 33, 0.15);
  border-color: rgba(243, 112, 33, 0.45);
}

.industry-card-img-wrap {
  position: relative;
  height: 180px;
  width: 100%;
  background: linear-gradient(135deg, #001e36 0%, #00365d 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.industry-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px 20px;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
}

.industry-card:hover .industry-card-img {
  transform: scale(1.1) rotate(-1deg);
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.45));
}

.industry-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 30, 54, 0.1) 0%, rgba(0, 30, 54, 0.75) 100%);
  pointer-events: none;
}

.industry-emblem {
  position: absolute;
  bottom: 12px;
  left: 16px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 2px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transition: all 0.35s ease;
  z-index: 2;
}

.industry-emblem svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.industry-card:hover .industry-emblem {
  background: var(--color-accent);
  color: #ffffff;
  transform: scale(1.12) rotate(4deg);
  box-shadow: 0 6px 16px rgba(243, 112, 33, 0.45);
}

.industry-badge-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 30, 54, 0.85);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  z-index: 2;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.industry-card:hover .industry-badge-pill {
  background: var(--color-accent);
  border-color: transparent;
}

.industry-card-body {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: left;
}

.industry-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.industry-card:hover h4 {
  color: var(--color-accent);
}

.industry-card p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 18px;
  flex-grow: 1;
}

.industry-link {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: gap 0.2s ease;
}

.industry-card:hover .industry-link {
  color: var(--color-primary);
  gap: 10px;
}

/* Industries Carousel (4 Cards Visible) */
.industries-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin: 10px 0 0;
}

.industries-carousel-viewport {
  overflow: hidden;
  width: 100%;
  padding: 15px 4px 25px;
  margin: -15px -4px -25px;
}

.industries-carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.industry-carousel-slide {
  flex: 0 0 calc((100% - (3 * 24px)) / 4);
  min-width: calc((100% - (3 * 24px)) / 4);
  display: flex;
  box-sizing: border-box;
}

.industry-carousel-slide .industry-card {
  width: 100%;
}

.industries-prev {
  position: absolute;
  left: -20px;
  z-index: 10;
}

.industries-next {
  position: absolute;
  right: -20px;
  z-index: 10;
}

@media (max-width: 1200px) {
  .industry-carousel-slide {
    flex: 0 0 calc((100% - (2 * 20px)) / 3);
    min-width: calc((100% - (2 * 20px)) / 3);
  }

  .industries-carousel-track {
    gap: 20px;
  }
}

@media (max-width: 860px) {
  .industry-carousel-slide {
    flex: 0 0 calc((100% - 16px) / 2);
    min-width: calc((100% - 16px) / 2);
  }

  .industries-carousel-track {
    gap: 16px;
  }

  .industries-prev {
    left: -10px;
  }

  .industries-next {
    right: -10px;
  }
}

@media (max-width: 560px) {
  .industry-carousel-slide {
    flex: 0 0 100%;
    min-width: 100%;
  }

  .industries-prev,
  .industries-next {
    display: none;
  }
}


/* Benefits / Why Us Grid */
.benefit-card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 20px;
  transition: all var(--transition-normal);
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.benefit-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(243, 112, 33, 0.1);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.benefit-info h4 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.benefit-info p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* What We Do Split Layout */
.what-we-do-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.what-we-do-img {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.what-we-do-img img {
  width: 100%;
  height: auto;
  transition: transform var(--transition-slow);
}

.what-we-do-img:hover img {
  transform: scale(1.03);
}

.what-we-do-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 16px 22px;
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}

.what-we-do-badge strong {
  display: block;
  font-size: 1.3rem;
  font-family: var(--font-heading);
  color: var(--color-accent);
}

/* Featured Products Section */
.product-card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-img-wrap {
  position: relative;
  background-color: var(--color-bg-light);
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.product-img-wrap img {
  max-height: 190px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.06);
}

.product-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card-body h4 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.product-card-body p {
  font-size: 0.9rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 15px;
  border-top: 1px solid var(--color-border);
}

/* Stats Section */
.stats-section {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: var(--color-white);
  padding: 70px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item {
  padding: 20px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #c2d1e0;
}

/* Mission, Vision, Values Tabs */
.tabs-container {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-bg-light);
}

.tab-btn {
  flex: 1;
  padding: 18px 24px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  background: none;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-fast);
  border-bottom: 3px solid transparent;
}

.tab-btn:hover {
  background-color: rgba(243, 112, 33, 0.05);
  color: var(--color-accent);
}

.tab-btn.active {
  background-color: var(--color-white);
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.tab-content {
  padding: 35px 30px;
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

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

.tab-content h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--color-primary);
}

.tab-content p {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 0;
}

/* CTA Banner Section */
.cta-banner {
  background: linear-gradient(135deg, rgb(68, 78, 100) 0%, rgba(15, 23, 42, 0.55) 100%), url('../images/industrial_electrical2.jpg') center/cover no-repeat;
  color: var(--color-white);
  padding: 65px 30px;
  text-align: center;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.cta-banner h2 {
  color: var(--color-white);
  font-size: 2.2rem;
  margin-bottom: 15px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
}

.cta-banner p {
  color: #ffffff;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 30px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* Responsive Homepage Styles */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .what-we-do-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .hero-section {
    padding: 70px 0 90px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .tabs-nav {
    flex-direction: column;
  }
}