/* 
================================================================
ELIFORT ENGINEERING LIMITED - MASTER STYLESHEET V2.9
Changes: Multi-Column Project Grid + Non-Stretching Images
================================================================
*/

:root {
  /* YOUR CUSTOM COLORS PRESERVED */
  --primary-blue: #1a2f2a;
  --secondary-blue: #2c3e50;
  --accent-brand: #b85b40;
  --accent-hover: #d46f52;
  --text-main: #333333;
  --text-muted: #636e72;
  --white: #bbc6e2;

  /* Technical Finishes */
  --bg-warm: #adabab;
  --border-soft: #2a0881;
  --glass: rgba(119, 225, 232, 0.9);
  --shadow-ui: 0 15px 35px rgba(221, 16, 16, 0.05);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 1. RESET & GLOBAL STANDARDS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Lato", sans-serif;
  color: var(--text-main);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul {
  list-style: none;
}
a {
  text-decoration: none;
  transition: var(--transition);
}

.section-padding {
  padding: 80px 0;
}
.secondary-bg {
  background-color: var(--bg-warm);
}

/* 2. INTELLIGENCE TOP BAR */
.top-status-bar {
  background: var(--primary-blue);
  color: var(--white);
  font-size: 0.7rem;
  padding: 10px 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-status-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status-clock {
  color: var(--accent-hover);
}

/* 3. MODERN GLASS HEADER */
.header {
  background: var(--glass);
  backdrop-filter: blur(15px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-soft);
}

.main-nav {
  height: 85px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}
.logo img {
  height: 45px;
  width: auto;
}
.logo-text {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-blue);
}
.accent-text {
  color: var(--accent-brand);
}

.nav-links {
  display: flex;
  gap: 30px;
}
.nav-links a {
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 0.9rem;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-brand);
}

/* 4. PAGE HEADERS */
.page-header {
  padding: 120px 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Parallax effect */
  position: relative;
  color: var(--white);
  text-align: center;
}

.about-header {
  background-image: linear-gradient(
      rgba(26, 37, 47, 0.8),
      rgba(47, 26, 26, 0.8)
    ),
    url("../images/background shining structure.png");
}
.services-header {
  background-image: linear-gradient(
      rgba(26, 37, 47, 0.8),
      rgba(26, 37, 47, 0.8)
    ),
    url("../images/beautiful shining house.png");
}
.projects-header {
  background-image: linear-gradient(
      rgba(26, 37, 47, 0.8),
      rgba(26, 37, 47, 0.8)
    ),
    url("../images/white background picture.png");
}
.contact-header {
  background-image: linear-gradient(
      rgba(26, 37, 47, 0.8),
      rgba(26, 37, 47, 0.8)
    ),
    url("../images/projects/engineering-website.jpeg");
}

.glass-header-card {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
}

.glass-header-card h1 {
  color: var(--white);
  font-size: 2.8rem;
  margin-bottom: 10px;
}
.glass-header-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
}

/* 5. CENTERED & ANIMATED HERO SECTION (NEW FIX) */
.hero {
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center; /* Centers all child text */
  position: relative;
  background-color: var(--secondary-blue);
  /* AI-Network Professional Background */
  background-image: linear-gradient(
      rgba(26, 47, 42, 0.7),
      rgba(44, 62, 80, 0.7)
    ),
    url("https://images.pexels.com/photos/373543/pexels-photo-373543.jpeg");
  background-size: cover;
  background-position: center;
  color: #fff;
}

#tsparticles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 10;
  animation: fadeInUp 1.2s ease-out; /* Premium Entrance Animation */
}

.badge {
  display: inline-block;
  background: var(--accent-brand);
  color: #fff;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 25px;
  letter-spacing: 2px;
  box-shadow: 0 4px 15px rgba(184, 91, 64, 0.3);
}

.hero-title {
  font-size: 4.5rem;
  color: #fff; /* Clean white for high visibility */
  line-height: 1.2;
  margin-bottom: 30px;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.2rem;
  max-width: 650px;
  margin: 0 auto 40px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* 6. "WHY PARTNER WITH US?" - CENTERED & JUSTIFIED */
.why-us {
  text-align: center;
}
.why-us h2 {
  margin-bottom: 40px;
}
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  text-align: center;
}
.feature-list li {
  padding: 30px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-ui);
  transition: var(--transition);
}
.feature-list li:hover {
  transform: translateY(-5px);
}
.feature-list i {
  font-size: 2.5rem;
  color: var(--accent-brand);
  margin-bottom: 20px;
  display: block;
}
.feature-list h4 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}
.feature-list p {
  text-align: justify;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* 7. SERVICES & LEADERSHIP */
.service-cluster {
  padding-bottom: 60px;
}
.cluster-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.service-item {
  background: var(--white);
  padding: 40px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  transition: var(--transition);
}
.service-item:hover {
  box-shadow: var(--shadow-ui);
  border-color: var(--accent-brand);
}
.service-item i {
  font-size: 2rem;
  color: var(--accent-brand);
  margin-bottom: 20px;
  display: block;
}
.service-item p {
  text-align: justify;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  justify-content: center;
}
.team-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-ui);
  text-align: center;
}
.member-image {
  width: 100%;
  height: 600px;
  overflow: hidden;
}
.member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.member-info {
  padding: 25px;
}
.role {
  color: var(--accent-brand);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-bottom: 15px;
}

/* 8. FOOTER REFINEMENT */
.footer {
  background: var(--primary-blue);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.brand-col .footer-logo img {
  height: 40px;
  margin-bottom: 20px;
}
.footer-logo span {
  color: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
}
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.social-links a {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.9rem;
}
.social-links a:hover {
  background: var(--accent-brand);
  transform: translateY(-3px);
}

/* 9. BUTTONS */
.btn {
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-block;
}
.btn-primary {
  background: var(--accent-brand);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}
.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.btn-secondary:hover {
  background: #fff;
  color: var(--primary-blue);
}

/* 10. FIXED PROJECT GRID & IMAGES (SECTION FOR YOUR FIX) */
.projects-grid {
  display: grid;
  /* FORCES PROJECTS INTO COLUMNS ON DESKTOP */
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 30px;
}

.project-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-ui);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-10px);
}

.project-image {
  width: 100%;
  height: 280px; /* FIXED HEIGHT TO ENSURE NO STRETCHING */
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* PREVENTS STRETCHING/SCRATCHING */
  transition: transform 0.5s ease;
}

.project-info {
  padding: 25px;
  flex-grow: 1;
}

.project-location {
  font-size: 0.85rem;
  color: var(--accent-brand);
  margin-bottom: 10px;
  display: block;
}

.project-info h3 {
  font-size: 1.25rem;
  margin-bottom: 15px;
}

.project-description {
  text-align: justify; /* CLEAN JUSTIFIED TEXT */
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* 11. ANIMATIONS KEYFRAMES */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 12. RESPONSIVE MOBILE */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .glass-header-card h1 {
    font-size: 2rem;
  }
  .nav-links {
    display: none;
  }
  .feature-list,
  .services-grid,
  .projects-grid {
    grid-template-columns: 1fr; /* STACKS ON MOBILE */
  }
}

/* --- Intelligence Micro-Animations --- */

/* Sonar Radar Ping */
.radar-ping {
  position: fixed;
  width: 2px;
  height: 2px;
  background: rgba(184, 91, 64, 0.5); 
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: sonar 0.8s ease-out forwards;
  z-index: 9999;
}

@keyframes sonar {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
    border: 1px solid var(--accent-brand);
  }
  100% {
    width: 150px;
    height: 150px;
    opacity: 0;
    border: 1px solid transparent;
  }
}

/* Scroll Progress indicator */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: var(--scroll-width, 0%);
  height: 4px;
  background: var(--accent-brand);
  z-index: 10001;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(184, 91, 64, 0.5);
}
