/* =========================================================
   ABOUT PAGE CSS (Clean + No Conflicts)
   - Removes duplicate @media blocks
   - Fixes background URL escaping
   - Fixes mobile nav conflict (NO display:none with off-canvas)
========================================================= */

/* Logo images */
.logo-image {
  max-height: 150px;
  width: auto;
  transition: var(--transition);
}

.header.sticky .logo-image {
  max-height: 150px;
}

.footer-logo-image {
  max-height: 150px;
  width: auto;
  margin-bottom: 20px;
}

/* WhatsApp floating button position */
.whatsapp-float {
  left: 30px;
  bottom: 30px;
  right: auto;
}

/* About page: Company history background */
.company-history {
  padding: 60px 0;
  background:
    linear-gradient(rgba(21, 17, 17, 0.95), rgba(35, 32, 32, 0.95)),
    url("HydroDrill-Solutions-favicon.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 40px auto;
  padding: 20px 0;
}

.timeline-content h4 {
  color: var(--primary-color);
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.timeline-item {
  margin-bottom: 50px;
  position: relative;
  width: 50%;
  padding: 20px;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 50px;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 50px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--primary-color);
  border-radius: 50%;
  top: 30px;
}

.timeline-item:nth-child(odd)::before {
  right: -10px;
}

.timeline-item:nth-child(even)::before {
  left: -10px;
}

.timeline-year {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.timeline-content {
  background-color: #fff;
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

/* ===============================
   PREMIUM TEAM SECTION
   =============================== */

.team-grid {
  display: grid;
 grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
 gap: 40px;
  margin-top: 60px;
}

/* Card */
.team-card {
  position: relative;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #f9fafb 100%
  );
  border-radius: 18px;
  overflow: hidden;
  text-align: center;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.6) inset;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Subtle premium accent line */
.team-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  pointer-events: none;
}

/* Hover lift */
.team-card:hover {
  transform: translateY(-12px);
  box-shadow:
    0 25px 55px rgba(0, 0, 0, 0.15),
    0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

/* Image */
.team-image {
  height: 280px;
  position: relative;
  overflow: hidden;
}

/* Dark gradient overlay for luxury depth */
.team-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 0.35) 100%
  );
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.team-card:hover .team-image img {
  transform: scale(1.08);
}

/* Info */
.team-info {
  padding: 30px 25px 35px;
  background: #ffffff;
}

/* Name */
.team-name {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #0f172a; /* Deep executive tone */
}

/* Position */
.team-position {
  font-size: 0.95rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 0;
}

/* Optional subtle divider */
.team-info::before {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin: 0 auto 15px;
  border-radius: 10px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    rgba(0, 0, 0, 0)
  );
}


/* Mission */
.mission-icon {
  font-size: 3rem;
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.mission-card h3 {
  text-align: center;
  color: var(--primary-color);
}

.mission-card p {
  color: rgba(255, 255, 255, 0.85);
}

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.value-card {
  text-align: center;
  padding: 40px 30px;
  background-color: #000;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-10px);
  border-top: 4px solid var(--secondary-color);
}

.value-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(0, 107, 214, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 2rem;
  color: var(--primary-color);
}

.value-card h3 {
  color: var(--primary-color);
}

.value-card p {
  color: rgba(255, 255, 255, 0.83);
}

/* Certifications */
.certifications {
  background-color: var(--light-gray);
  padding: 60px 0;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.cert-card {
  background-color: #fff;
  border-radius: var(--border-radius);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.cert-card:hover {
  transform: translateY(-10px);
}

.cert-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.cert-card h4 {
  color: var(--primary-color);
}

/* Light section override */
.bg-light {
  background-color: #000;
}

/* =====================================
   ABOUT HERO – Simple 60vh Header
===================================== */
.about-hero {
  position: relative;
  height: 60vh;
  min-height: 420px;
  max-height: 680px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

.about-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
    url("image - 2026-01-04T072020.069.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.about-hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.about-hero-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 14px;
  color: var(--primary-color);
}

.about-hero-content p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 60ch;
}

.about-hero-actions {
  margin-top: 22px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* =====================================
   MOBILE (Timeline + WhatsApp + Hero + Nav)
===================================== */
@media (max-width: 768px) {
  /* Timeline to single column */
  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    left: 0;
    padding: 20px 20px 20px 60px;
    text-align: left;
  }

  .timeline-item::before {
    left: 10px;
    right: auto;
  }
  
.timeline-item:nth-child(odd)::before {
  right: -10px;
}

.timeline-item:nth-child(even)::before {
  left: -10px;
}


  /* WhatsApp position */
  .whatsapp-float {
    left: 20px;
    bottom: 20px;
  }

  /* About hero centering */
  .about-hero {
    height: 62svh;
    min-height: 480px;
    align-items: center;
    padding: 32px 0;
  }

  .about-hero-content {
    text-align: center;
    margin: 0 auto;
  }

  .about-hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .about-hero-actions .btn {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  /* MOBILE NAV (off-canvas) */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
  }

  .nav-toggle span {
    width: 26px;
    height: 3px;
    background: #111;
    border-radius: 3px;
    transition: all 0.3s ease;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #fff;
    padding: 100px 24px 24px;
    transition: right 0.35s ease;
    z-index: 1000;
  }

  .nav-menu.active {
    right: 0;
  }

  /* Hamburger → X */
  .nav-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .nav-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
    padding: 0;
  }
}
/* =====================================
   MOBILE – Timeline in ONE vertical line
===================================== */
@media (max-width: 768px) {

  /* Move the main vertical line to the left */
  .timeline::before {
    left: 20px;
    transform: none;
  }

  /* All items full width */
  .timeline-item {
    width: 100%;
    left: 0;
    padding: 20px 20px 20px 60px;
    text-align: left;
  }

  /* All dots aligned on the same line */
  .timeline-item::before {
    left: 10px;
    right: auto;
  }

  /* ❌ Disable odd/even positioning completely */
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    left: 0;
    padding-right: 20px;
    padding-left: 60px;
    text-align: left;
  }

  .timeline-item:nth-child(odd)::before,
  .timeline-item:nth-child(even)::before {
    left: 10px;
    right: auto;
  }
}

/* Optional: Animation for menu toggle */
.nav-toggle.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.header.sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
/* ===========================
   NAV DISPLAY: Desktop vs Mobile
=========================== */



/* Mobile: hide menu until active, show toggle */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #fff;
    padding: 100px 24px 24px;
    transition: right 0.35s ease;
    z-index: 1000;

    /* 👇 Important: keep it visible (not display:none) so slide works */
    display: block;
  }

  .nav-menu.active {
    right: 0;
  }
}
