/* ---------- Hero (unchanged) ---------- */
.services-hero {
  height: 60vh;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url("img/new/services_p.png");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.services-hero h1 {
  font-size: 4.5rem;
  text-transform: uppercase;
  letter-spacing: 8px;
  color: #fff;
  animation: fadeInUp 1s ease;
}

.services-intro {
  padding: 80px 10%;
  text-align: center;
}/* ---------- Hero (unchanged) ---------- */
.services-hero {
  height: 60vh;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url("img/new/services_p.png");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.services-hero h1 {
  font-size: 4.5rem;
  text-transform: uppercase;
  letter-spacing: 8px;
  color: #fff;
  animation: fadeInUp 1s ease;
}

.services-intro {
  padding: 80px 10%;
  text-align: center;
}

.services-intro h2 {
  font-size: 2.8rem;
  color: #281f60;
  text-align: center;
}

.services-intro p {
  color: #1e72b8;
}

.intro-image-container img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 40px;
}

/* ---------- Section Headers ---------- */
.section-header {
  text-align: center;
  margin: 2rem 0 2.5rem 0;
}

.section-header2 {
  text-align: center;
  margin: -60px 0 2.5rem 0;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0f2b3d;
  letter-spacing: -0.5px;
}

.section-header2 h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #281f60;
  letter-spacing: -0.5px;
}

.section-header2 p {
  color: #1e72b8;
  font-size: 1.1rem;
  max-width: 680px;
  margin: 1rem auto 0;
}

.section-header .accent-line {
  width: 70px;
  height: 4px;
  background: #1e72b8;
  margin: 0.8rem auto 0;
  border-radius: 4px;
}

.section-subhead {
  color: #2c3e66;
  font-size: 1.1rem;
  max-width: 680px;
  margin: 1rem auto 0;
}

/* ---------- Services Grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  padding-left: 100px;
  padding-right: 100px;
  margin: 2rem 0 4rem 0;
}

.service-card {
  background: #ffffff;
  border-radius: 15px;
  padding: 2rem 1.8rem 2rem 1.8rem;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  box-shadow: 0 15px 35px -12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 102, 255, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 40px -16px rgba(0, 102, 255, 0.2);
  border-color: rgba(0, 102, 255, 0.25);
}

.card-icon {
  font-size: 2.8rem;
  color: #1e72b8;
  margin-bottom: 1.2rem;
  background: #eef4ff;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  transition: all 0.25s;
}

.service-card:hover .card-icon {
  background: #1e72b8;
  color: white;
  transform: scale(0.98);
}

.service-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f2b3d;
  letter-spacing: -0.3px;
}

.service-features {
  list-style: none;
  margin: 1rem 0 0 0;
  flex: 1;
}

.service-features li {
  margin-bottom: 0.7rem;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.95rem;
  color: #2c3e50;
  font-weight: 500;
  line-height: 1.4;
}

.service-features li i {
  color: #1e72b8;
  font-size: 0.9rem;
  margin-top: 0.2rem;
  min-width: 18px;
}

.card-divider-light {
  height: 2px;
  background: #1e72b8;
  width: 300px;
  margin: 1rem 0 1rem 0;
  border-radius: 2px;
}

.card-link {
  margin-top: 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #1e72b8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.card-link i {
  font-size: 0.8rem;
  transition: transform 0.2s;
}

.card-link:hover {
  gap: 10px;
}

/* ---------- Projects CTA ---------- */
.projects-cta {
  position: relative;
  height: 400px;
  background: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=2340&auto=format&fit=crop') center/cover no-repeat fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(75deg, rgba(7, 10, 15, 0.9) 0%, rgba(7, 10, 15, 0.4) 100%);
  display: flex;
  align-items: center;
  padding: 0 10%;
}

.cta-content {
  max-width: 600px;
  color: #fff;
  z-index: 2;
}

.cta-sub {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.85rem;
  color: #6366f1;
  font-weight: 700;
  margin-bottom: 1rem;
  display: block;
}

.cta-content h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.cta-content p {
  font-size: 1.1rem;
  color: #cbd5e1;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.btn-projects {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 50px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.btn-projects:hover {
  background: #fff;
  color: #070a0f;
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.btn-projects svg {
  transition: transform 0.3s ease;
}

.btn-projects:hover svg {
  transform: translateX(5px);
}

.btn-gallery {
  display: inline-block;
  margin-top: 20px;
  padding: 15px 40px;
  background: #281f60;
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.btn-gallery:hover {
  background: #1e72b8;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .projects-cta {
    height: auto;
    padding: 80px 20px;
  }
  .cta-content h2 {
    font-size: 2.2rem;
  }
}

/* Hide the toggle button on desktop */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
  gap: 5px;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: white;
  transition: all 0.3s ease;
}

/* --- Mobile Responsiveness (nav + hero reduction) --- */
@media (max-width: 768px) {
  /* Show the toggle button */
  .menu-toggle {
    display: flex;
  }

  /* Hide the nav links by default and stack them */
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    text-align: center;
    background-color: #444;
    position: absolute;
    top: 60px;
    left: 0;
  }

  .nav-links li {
    padding: 15px 0;
  }

  .nav-links.active {
    display: flex;
  }

  /* Compact hero – same size as home/gallery */
  .services-hero {
    height: 55vh;
    padding: 60px 1.5rem 80px;
  }

  .services-hero h1 {
    font-size: 2rem;        /* reduced from 4.5rem → 2rem */
    letter-spacing: 4px;
  }
}

/* Medium screens: 2 columns (tablet) */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .service-card {
    padding: 1.8rem;
  }
}

/* Mobile screens: 1 column (phone) */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .card-icon {
    width: 56px;
    height: 56px;
    font-size: 2.4rem;
  }
}

/* Extra‑small phones – even more compact hero */
@media (max-width: 480px) {
  .services-hero {
    height: 45vh;
    padding: 40px 1rem 60px;
  }

  .services-hero h1 {
    font-size: 1.8rem;
    letter-spacing: 2px;
  }
}

.services-intro h2 {
  font-size: 2.8rem;
  color: #281f60;
  text-align: center;
}

.services-intro p {
  color: #1e72b8;
}

.intro-image-container img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 40px;
}

/* ---------- Section Headers ---------- */
.section-header {
  text-align: center;
  margin: 2rem 0 2.5rem 0;
}

.section-header2 {
  text-align: center;
  margin: -60px 0 2.5rem 0;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0f2b3d;
  letter-spacing: -0.5px;
}

.section-header2 h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #281f60;
  letter-spacing: -0.5px;
}

.section-header2 p {
  color: #1e72b8;
  font-size: 1.1rem;
  max-width: 680px;
  margin: 1rem auto 0;
}

.section-header .accent-line {
  width: 70px;
  height: 4px;
  background: #1e72b8;
  margin: 0.8rem auto 0;
  border-radius: 4px;
}

.section-subhead {
  color: #2c3e66;
  font-size: 1.1rem;
  max-width: 680px;
  margin: 1rem auto 0;
}

/* ---------- Services Grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  padding-left: 100px;
  padding-right: 100px;
  margin: 2rem 0 4rem 0;
}

.service-card {
  background: #ffffff;
  border-radius: 15px;
  padding: 2rem 1.8rem 2rem 1.8rem;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  box-shadow: 0 15px 35px -12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 102, 255, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 40px -16px rgba(0, 102, 255, 0.2);
  border-color: rgba(0, 102, 255, 0.25);
}

.card-icon {
  font-size: 2.8rem;
  color: #1e72b8;
  margin-bottom: 1.2rem;
  background: #eef4ff;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  transition: all 0.25s;
}

.service-card:hover .card-icon {
  background: #1e72b8;
  color: white;
  transform: scale(0.98);
}

.service-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f2b3d;
  letter-spacing: -0.3px;
}

.service-features {
  list-style: none;
  margin: 1rem 0 0 0;
  flex: 1;
}

.service-features li {
  margin-bottom: 0.7rem;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.95rem;
  color: #2c3e50;
  font-weight: 500;
  line-height: 1.4;
}

.service-features li i {
  color: #1e72b8;
  font-size: 0.9rem;
  margin-top: 0.2rem;
  min-width: 18px;
}

.card-divider-light {
  height: 2px;
  background: #1e72b8;
  width: 300px;
  margin: 1rem 0 1rem 0;
  border-radius: 2px;
}

.card-link {
  margin-top: 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #1e72b8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.card-link i {
  font-size: 0.8rem;
  transition: transform 0.2s;
}

.card-link:hover {
  gap: 10px;
}

/* ---------- Projects CTA ---------- */
.projects-cta {
  position: relative;
  height: 400px;
  background: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=2340&auto=format&fit=crop') center/cover no-repeat fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(75deg, rgba(7, 10, 15, 0.9) 0%, rgba(7, 10, 15, 0.4) 100%);
  display: flex;
  align-items: center;
  padding: 0 10%;
}

.cta-content {
  max-width: 600px;
  color: #fff;
  z-index: 2;
}

.cta-sub {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.85rem;
  color: #6366f1;
  font-weight: 700;
  margin-bottom: 1rem;
  display: block;
}

.cta-content h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.cta-content p {
  font-size: 1.1rem;
  color: #cbd5e1;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.btn-projects {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 50px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.btn-projects:hover {
  background: #fff;
  color: #070a0f;
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.btn-projects svg {
  transition: transform 0.3s ease;
}

.btn-projects:hover svg {
  transform: translateX(5px);
}

.btn-gallery {
  display: inline-block;
  margin-top: 20px;
  padding: 15px 40px;
  background: #281f60;
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.btn-gallery:hover {
  background: #1e72b8;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .projects-cta {
    height: auto;
    padding: 80px 20px;
  }
  .cta-content h2 {
    font-size: 2.2rem;
  }
}
/* Hide the toggle button on desktop */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
  gap: 5px;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: white;
  transition: all 0.3s ease;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
  /* Show the toggle button */
  .menu-toggle {
    display: flex;
  }

  /* Hide the nav links by default and stack them */
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    text-align: center;
    background-color: #444;
    position: absolute;
    top: 60px; /* Adjust based on your navbar height */
    left: 0;
  }

  .nav-links li {
    padding: 15px 0;
  }

  /* Class added by JavaScript to show the menu */
  .nav-links.active {
    display: flex;
  }
}
/* Medium screens: 2 columns (tablet) */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    padding-left: 2rem;    /* reduce from 100px */
    padding-right: 2rem;
  }

  .service-card {
    /* optional: slightly reduce padding if needed */
    padding: 1.8rem;
  }
}

/* Mobile screens: 1 column (phone) */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .card-icon {
    width: 56px;
    height: 56px;
    font-size: 2.4rem;
  }
}
@media (max-width: 768px) {
    .services-hero h1 {
        font-size: 2.5rem;          /* adjust as needed – 1.8rem is also fine */
        letter-spacing: 4px;      /* slightly tighter spacing for smaller text */
    }
}