/* ==========================================================================
   DURGA INFRASTRUCTURE ENGINEERING PRIVATE LIMITED - Home Specific Styles (home.css)
   ========================================================================== */

/* 1. HERO SECTION - REFINE FOR HEAVY CIVIL CONSTRUCT LOOK */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 140px 0 60px 0;
  /* Dark heavy-industry overlay on top of our new majestic high-voltage substation photo! */
  background: linear-gradient(135deg, rgba(17, 22, 34, 0.9) 0%, rgba(17, 22, 34, 0.8) 50%, rgba(17, 22, 34, 0.93) 100%), 
              url('../../media/hero_bg.png') no-repeat center center;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

/* Diagonal industrial truss lines */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(45deg, rgba(255,255,255,0.015) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,0.015) 25%, transparent 25%);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.7;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-content {
  z-index: 2;
}

.hero-subtitle {
  font-family: var(--font-headings);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent); /* Safety Orange */
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.hero-subtitle::before {
  content: '';
  width: 30px;
  height: 3px;
  background: var(--accent);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  color: #ffffff;
}

.hero-title span {
  color: var(--accent);
}

.hero-description {
  font-size: 1.2rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.5rem;
  max-width: 680px;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
}

/* Translucent Highlights Panel (Right Column) */
.hero-highlights {
  display: flex;
  justify-content: flex-end;
  z-index: 2;
}

.highlights-panel {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  width: 100%;
  max-width: 340px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

/* Curved blue decorative light */
.highlights-panel::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-secondary), var(--accent));
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.highlight-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.highlight-item:hover {
  transform: translateX(5px);
}

.highlight-icon {
  font-size: 1.3rem;
  color: var(--accent);
}

.highlight-text {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.9);
  cursor: default;
}

/* 5-Column Service Showcase Grid */
.hero-showcase-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  width: 100%;
  margin-top: 1rem;
  z-index: 2;
}

.showcase-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.showcase-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.showcase-img {
  height: 140px;
  position: relative;
  overflow: hidden;
}

.showcase-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.showcase-card:hover .showcase-img img {
  transform: scale(1.1);
}

.showcase-badge {
  position: absolute;
  bottom: 0.8rem;
  left: 0.8rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent); /* Safety Amber */
  color: var(--bg-dark);
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  z-index: 3;
}

.showcase-body {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.showcase-body h4 {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.85rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

.showcase-body p {
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0;
}

/* Bottom Dark Blue Trust Ribbon */
.trust-ribbon-section {
  background: #111622;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 25px 0;
  position: relative;
  z-index: 3;
}

.trust-ribbon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  width: 100%;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.trust-icon {
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.trust-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.trust-text strong {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: #ffffff;
}

.trust-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* 2. STATS SECTION */
.stats-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  padding: 60px 0;
  position: relative;
  z-index: 2;
}

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

.stat-card h3 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--accent-secondary); /* Trust corporate blue */
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-card p {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0;
}

/* 3. CEO BLOCK */
.ceo-section {
  position: relative;
  background-color: var(--bg-primary);
}

.ceo-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
  align-items: center;
}

.ceo-image-card {
  position: relative;
}

.ceo-frame {
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  position: relative;
}

.ceo-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 65%, rgba(17, 22, 34, 0.9));
  z-index: 2;
}

.ceo-tag {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 3;
}

.ceo-tag h4 {
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.ceo-tag p {
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0;
}

.ceo-quote {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
  position: relative;
  padding-left: 2rem;
  border-left: 4px solid var(--accent);
}

/* 4. ACTIVE WORK FEED CAROUSEL */
.feed-section {
  background-color: var(--bg-secondary);
}

.slider-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 1rem 0;
}

.slider-track {
  display: flex;
  gap: 2rem;
  transition: var(--transition-slow);
  width: max-content;
}

.slider-card {
  width: 380px;
  flex-shrink: 0;
  border-radius: var(--border-radius);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.slider-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glass-hover);
  box-shadow: 0 15px 35px rgba(0,0,0,0.06);
}

.slider-img {
  height: 240px;
  overflow: hidden;
  position: relative;
}

.slider-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.slider-card:hover .slider-img img {
  transform: scale(1.05);
}

.slider-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--bg-dark);
  padding: 0.35rem 0.8rem;
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}

.slider-body {
  padding: 1.8rem;
}

.slider-body h4 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  color: var(--text-dark);
}

.slider-body p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Slider Controls */
.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.slider-arrow {
  width: 46px;
  height: 46px;
  border-radius: 4px;
  border: 1px solid var(--border-glass);
  background: #ffffff;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-weight: bold;
}

.slider-arrow:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

/* Responsive fixes for Home */
@media (max-width: 1024px) {
  .hero {
    padding: 120px 0 60px 0;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero-subtitle {
    justify-content: center;
  }
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-highlights {
    justify-content: center;
    width: 100%;
  }
  .highlights-panel {
    max-width: 420px;
    margin: 0 auto;
    text-align: left;
  }
  .hero-showcase-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .trust-ribbon-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
  .ceo-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .ceo-image-card {
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .hero-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-ribbon-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .trust-item {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 500px) {
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  .hero-showcase-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .slider-card {
    width: 290px;
  }
  .slider-img {
    height: 180px;
  }
}
