/* ============================
   About Hero Section
============================ */
.about-hero {
  position: relative;
  background: url('../assets/about-hero.jpg') center/cover no-repeat;
  height: 60vh; /* reduced from 80vh */
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  flex-direction: column;
}

.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* semi-transparent overlay */
  z-index: 1;
}

.about-hero h1,
.about-hero p {
  position: relative;
  z-index: 2;
  color: white;
  font-family: 'Roboto', sans-serif;
}

.about-hero h1 {
  font-size: 4rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 1rem 2rem;
  letter-spacing: 1.5px;
}

.about-hero p {
  font-size: 1.5rem;
  font-weight: 400;
  margin-top: 0.5rem;
}

/* ============================
   Main Company Info Section
============================ */
.about-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 4rem 2rem;
  gap: 3rem;
  background-color: #f9f9f9;
}

.about-text {
  flex: 1 1 50%;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}

.about-text h2.highlight-title {
  font-size: 1.8rem;
  color: #0d47a1;
  margin-bottom: 1.5rem;
}

/* ============================
   Responsive Adjustments
============================ */
@media (max-width: 1024px) {
  .about-hero {
    height: 50vh;
    padding: 1rem;
  }

  .about-hero h1 {
    font-size: 3rem;
  }

  .about-hero p {
    font-size: 1.2rem;
  }

  .about-main {
    gap: 2rem;
    padding: 3rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .about-hero {
    height: 40vh;
    padding: 1rem;
  }

  .about-hero h1 {
    font-size: 2.2rem;
    padding: 0.5rem;
  }

  .about-hero p {
    font-size: 1rem;
  }

  .about-main {
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
  }

  .about-text,
  .counters-grid {
    flex: 1 1 100%;
  }

  .counters-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

@media (max-width: 480px) {
  .about-hero {
    height: 30vh;
  }

  .about-hero h1 {
    font-size: 1.8rem;
    letter-spacing: 1px;
  }

  .about-hero p {
    font-size: 0.9rem;
  }
}

/* ============================
   Vision/Mission Section
============================ */
.vision-section {
  padding: 3rem 1.5rem;
  background: #f9fafb;
  text-align: center;
}

.vision-section h2 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 2.5rem;
  color: #111827;
}

.vision-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.vision-box {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
  border-top-width: 5px;
  border-style: solid;
  color: black;
}

.vision-box:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.vision-box h3 {
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: black;
}

.vision-box p {
  color: black;
  font-size: 1.1rem;
  line-height: 1.6;
}

.border-top-blue { border-top-color: #3b82f6; }
.border-top-red { border-top-color: #ef4444; }
.border-top-green { border-top-color: #10b981; }

.icon-circle {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.bg-blue { background-color: #e0f2fe; }
.bg-red { background-color: #fee2e2; }
.bg-green { background-color: #d1fae5; }

.icon-svg { width: 28px; height: 28px; }
.text-blue { color: #2563eb; }
.text-red { color: #dc2626; }
.text-green { color: #059669; }

/* ============================
   Working Fields Section
============================ */
.working-fields {
  padding: 4rem 2rem;
  background-color: #f0f2f5;
  text-align: center;
}

.working-fields h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 2rem;
}

.fields-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 2rem;
}

/* Field Card Backgrounds */
.field-card.civil { background: url('../assets/civil-bg.jpg') center/cover no-repeat; }
.field-card.mechanical { background: url('../assets/mechanical-bg.jpg') center/cover no-repeat; }
.field-card.electrical { background: url('../assets/electrical-bg.jpg') center/cover no-repeat; }
.field-card.electromechanical { background: url('../assets/electromechanical-bg.jpg') center/cover no-repeat; }
.field-card.it { background: url('../assets/it-bg.jpg') center/cover no-repeat; }
.field-card.energy { background: url('../assets/banner-sustainable-energy-1150x650.png') center/cover no-repeat; }

.field-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  animation: fadeInUp 0.6s ease forwards;
  transform: translateY(30px);
  opacity: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.field-card:hover {
  transform: translateY(-8px) scale(1.05);
  filter: brightness(1.15);
}

.field-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
  transition: background 0.3s ease;
}

.field-card:hover .field-overlay {
  background: rgba(0, 0, 0, 0.35);
}

.field-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 1rem;
}

.field-icon {
  font-size: 2.8rem;
  margin-bottom: 0.8rem;
  display: inline-block;
  transition: transform 0.3s ease;
}

.field-card:hover .field-icon {
  transform: scale(1.2) rotate(5deg);
}

.field-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.field-content p {
  font-size: 1rem;
  line-height: 1.5;
}

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

/* Responsive Adjustments */
@media (max-width: 768px) {
  .field-card { height: 200px; }
  .field-content h3 { font-size: 1.2rem; }
  .field-content p { font-size: 0.9rem; }
}

@media (max-width: 480px) {
  .field-card { height: 180px; }
  .field-content h3 { font-size: 1rem; }
  .field-content p { font-size: 0.85rem; }
}
