/* Updated styles.css
   - Laptop (>=1024px): hero fills the viewport (minus fixed header) so landing stays full-screen until user scrolls
   - Footer background set to #1e1e1e with adjusted link colors
   - Buttons upgraded with gradient, shadow, subtle motion and hover states ("cooler" look)
*/

/* Colors */
:root {
  --primary-bg: #ffffff;
  --accent: #f39200;
  --accent-2: #ffb64d;
  --accent-dark: #e86f00;
  --text: #111111;
  --muted: #666666;
  --card-bg: #ffffff;
  --glass: rgba(255, 255, 255, 0.6);

  /* sizing */
  --header-height-desktop: 72px;
  --header-height-mobile: 64px;
}
/* TYPOGRAPHY UPGRADE — Fun but Professional */
body {
  font-family: "Nunito Sans", system-ui, sans-serif;
  color: var(--text);
  font-weight: 500;
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden; /* hide sideways scroll only */
  overflow-y: auto;   /* allow vertical scroll */

}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* adjust to your header height */
}


h1,
h2,
h3,
h4 {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--text);
}

/* Headline hierarchy */
h1 {
  font-size: 2.6rem;
}
h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

/* Section subtitles */
.section-sub {
  font-family: "Nunito Sans", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.3px;
}

/* Make hero + key text bolder */
.hero-content h1 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1px;
}
.hero .lead {
  font-size: 18px;
  font-weight: 600;
  color: var(--muted);
}

/* Make buttons text uppercase, more confident */
.btn {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Basic reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  height: 100%;
  background: var(--primary-bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}
/* HEADER */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  background: transparent;
  padding: 18px 0;
  transition: background 0.25s ease, box-shadow 0.25s ease;
  backdrop-filter: blur(6px);
  height: var(--header-height-desktop);
  display: flex;
  align-items: center;
}

.site-header.scrolled {
  background: transparent;
  box-shadow: none;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}
.logo img {
  height: 100px;
  display: block;
}

/* NAV */
.main-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  position: relative;
}
.nav-list {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 28px;
}
.nav-item a,
.nav-item button {
  color: var(--text);
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
}
.nav-item button {
  padding: 6px 10px;
}
.nav-item a:hover,
.nav-item button:hover {
  color: var(--accent);
}

/* Dropdown */
.dropdown {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(17, 17, 17, 0.08);
  padding: 8px 0;
  list-style: none;
  display: none;
  z-index: 999;
}
.dropdown-menu li a {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--text);
}
.dropdown-menu li a:hover {
  background: rgba(243, 146, 0, 0.06);
  color: var(--accent);
  border-radius: 6px;
}
/* Dropdown arrow style */
.drop-toggle i {
  margin-left: 6px;
  font-size: 0.8rem;
  color: var(--accent);
  transition: transform 0.3s ease;
}

/* Rotate the arrow when menu opens */
.dropdown.open .drop-toggle i {
  transform: rotate(180deg);
}

/* ===========================
   MEGA DROPDOWN MENU
   =========================== */
.mega {
  position: static;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 12px 30px rgba(17, 17, 17, 0.1);
  border-radius: 0 0 16px 16px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 999;
  height: calc(var(--header-height-desktop) * 4.2);
  display: flex;
  align-items: center;
}

.mega-inner {
  display: flex;
  justify-content: center;
  gap: 80px;
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

.mega-col {
  flex: 1;
  min-width: 220px;
}
.mega-col h4 {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--accent);
  margin-bottom: 8px;
}
.mega-col ul {
  list-style: none;
}
.mega-col li {
  margin-bottom: 6px;
}
.mega-col a {
  color: var(--text);
  font-family: "Nunito Sans", sans-serif;
  font-weight: 600;
  transition: color 0.15s ease;
}
.mega-col a:hover {
  color: var(--accent);
}

/* CTA & Buttons (cooler) */
.header-cta {
  margin-left: 18px;
}
.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}

/* Primary: gradient + soft glow + lift on hover */
.btn-primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  border: 0;
  box-shadow: 0 8px 24px rgba(243, 146, 0, 0.18),
    inset 0 -2px 8px rgba(255, 255, 255, 0.06);
  /*text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);*/
  padding: 12px 20px;
}
.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(227, 102, 0, 0.22),
    inset 0 -2px 8px rgba(255, 255, 255, 0.06);
}
.btn-primary:active {
  transform: translateY(-1px);
}

/* Outline: subtle glass + animated accent border on hover */
.btn-outline {
  color: var(--text);
  background: transparent;
  border: 2px solid rgba(17, 17, 17, 0.06);
  position: relative;
  overflow: hidden;
  padding: 10px 16px;
}
.btn-outline::after {
  content: "";
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(243, 146, 0, 0.08),
    rgba(243, 146, 0, 0.18)
  );
  transition: left 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 0;
}
.btn-outline > * {
  position: relative;
  z-index: 1;
}
.btn-outline:hover {
  border-color: rgba(243, 146, 0, 0.28);
  color: var(--accent);
}
.btn-outline:hover::after {
  left: 0;
}
.btn-outline:active {
  transform: translateY(0);
}

/* Size modifier */
.btn.large {
  padding: 14px 22px;
  font-size: 16px;
  border-radius: 12px;
}

/* HERO */
/* Default hero for tablet/phone is preserved; laptop will get a special full-screen behavior */
.hero {
  padding: 120px 0 80px; /* account for fixed header on smaller screens */
  position: relative;
  background-clip: padding-box;

  /* background image */
  background-image: url("images/landing_bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 36px;
  align-items: center;
}
.hero-content h1 {
  font-size: 36px;
  line-height: 1.05;
  margin-bottom: 12px;
}
.hero .lead {
  color: var(--muted);
  margin-bottom: 18px;
  max-width: 56ch;
}
.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* placeholder hero image */
.hero-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(17, 17, 17, 0.06);
  object-fit: cover;
}

/* MISSION & VISION */
/* =====================================
   MISSION & VISION (REIMAGINED)
   ===================================== */
.mission-vision {
  position: relative;
  padding: 100px 0;
  background: #fff;
  overflow: hidden;
}

/* Decorative floating glow */
.mission-vision::before,
.mission-vision::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  z-index: 0;
}
.mission-vision::before {
  width: 300px;
  height: 300px;
  top: -80px;
  left: -100px;
  /* background: #f39200; */
}
.mission-vision::after {
  width: 280px;
  height: 280px;
  bottom: -100px;
  right: -80px;
  background: #ffc267;
}

/* Inner layout */
.mission-vision-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

/* Shared styles for mission & vision cards */
.mission-block,
.vision-block {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 50px 40px;
  box-shadow: 0 10px 40px rgba(17, 17, 17, 0.06);
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
}

.mission-block::before,
.vision-block::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 5px;
  left: 0;
  top: 0;
  background: linear-gradient(90deg, #f39200, #ffb84d);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.mission-block:hover::before,
.vision-block:hover::before {
  transform: scaleX(1);
}

.mission-block:hover,
.vision-block:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 50px rgba(17, 17, 17, 0.1);
}

/* Headings */
.mission-block h2,
.vision-block h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: #f39200;
  margin-bottom: 14px;
  position: relative;
}

.mission-block h2::after,
.vision-block h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: #f39200;
  margin-top: 6px;
  border-radius: 2px;
}

/* Paragraphs */
.mission-block p,
.vision-block p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
  margin: 0;
}

/* Highlighted span */
.mission-block span,
.vision-block span {
  color: #f39200;
  font-weight: 700;
}

/* Animation */
@keyframes fadeUpMV {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.mission-block,
.vision-block {
  animation: fadeUpMV 0.8s ease both;
}
.mission-block {
  animation-delay: 0.1s;
}
.vision-block {
  animation-delay: 0.3s;
}

/* RESPONSIVE */
@media (max-width: 1023px) {
  .mission-vision-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .mission-block,
  .vision-block {
    padding: 40px 28px;
  }
  .mission-block h2,
  .vision-block h2 {
    font-size: 1.8rem;
  }
}
@media (max-width: 767px) {
  .mission-vision {
    padding: 70px 0;
  }
  .mission-block,
  .vision-block {
    padding: 32px 22px;
  }
  .mission-block h2,
  .vision-block h2 {
    font-size: 1.6rem;
  }
  .hero-inner {
    text-align: left;
    align-items: flex-start;
  }

  .hero-content {
    text-align: left;
    /* background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.85) 80%,
      rgba(255, 255, 255, 0) 100%
    ); */
    padding: 14px;
    border-radius: 12px;
  }
  .hero {
background: 
  radial-gradient(at 15% 20%, rgba(190, 115, 14, 0.7) 0%, transparent 40%), 
  radial-gradient(at 80% 10%, rgba(243, 146, 0, 0.7) 0%, transparent 50%), 
  radial-gradient(at 50% 50%, rgba(252, 167, 73, 0.6) 0%, transparent 60%), 
  radial-gradient(at 20% 80%, rgba(255, 189, 119, 0.6) 0%, transparent 45%), 
  radial-gradient(at 85% 85%, rgba(140, 86, 18, 0.5) 0%, transparent 40%), 
  #ffffff;

   /* background-image: url("images/landingseven.jpeg"); /* ← your mobile image 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  .hero-content h1 {
    /* Stronger contrast for readability */
    color: #f39200;
    /*text-shadow: black 1px 3px 1px;*/
  }
  .hero-content .lead {
    color: #ffffff;
    text-shadow: black 1px 3px 1px;
    /* background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.85) 80%,
      rgba(255, 255, 255, 0) 100%
    ); */
  }

  .btn-group {
    justify-content: flex-start;
    /* background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.85) 80%,
      rgba(255, 255, 255, 0) 100%
    ); */
  }
  #hero-ourservicesbtn {
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.85) 80%,
      rgba(255, 255, 255, 0) 100%
    );
  }
}

/* =====================================
   OUR SERVICES (ELEGANT REIMAGINED)
   ===================================== */
.services {
  position: relative;
  padding: 120px 0;
  background: #fff;
  overflow: hidden;
}

.services::before {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 180%;
  height: 100%;
  background: #fff;
  z-index: 0;
}

.section-title {
  font-family: "Montserrat", sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  text-align: center;
  color: #f39200;
  margin-bottom: 60px;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  background: #f39200;
  border-radius: 3px;
  margin: 16px auto 0;
}

/* Service Rows */
.service-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 120px;
  z-index: 1;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.service-row.fade-in-left {
  animation: fadeInLeft 1s ease forwards;
}

.service-row.fade-in-right {
  animation: fadeInRight 1s ease forwards;
}

.service-row.reverse {
  flex-direction: row-reverse;
}

/* Text Cards */
.service-text {
  flex: 1;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(17, 17, 17, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-text:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 50px rgba(243, 146, 0, 0.15);
}

.service-text h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: #f39200;
  margin-bottom: 16px;
}

.service-text p {
  color: #444;
  line-height: 1.8;
  margin-bottom: 18px;
}

.service-text ul {
  list-style: none;
  padding: 0;
  margin: 0 0 14px 0;
}

.service-text ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 8px;
  color: #222;
  font-size: 1rem;
}

.service-text ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #f39200;
  font-size: 1.4rem;
  line-height: 1;
}

/* Images */
.service-image {
  flex: 1;
  position: relative;
}

.service-image img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(17, 17, 17, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-image img:hover {
  transform: scale(1.04);
  box-shadow: 0 25px 60px rgba(243, 146, 0, 0.15);
}

/* Divider */
.service-row:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: #fff;
  border-radius: 2px;
}

/* ===== Fade Animations ===== */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* =====================
   RESPONSIVE DESIGN
   ===================== */
@media (max-width: 1024px) {
  .service-row {
    flex-direction: column;
    gap: 40px;
    margin-bottom: 80px;
  }

  .service-text,
  .service-image {
    width: 100%;
  }

  .service-text {
    padding: 28px;
  }
}

@media (max-width: 767px) {
  .services {
    padding: 80px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .service-row {
    margin-bottom: 60px;
  }

  .service-text {
    border-radius: 16px;
    padding: 24px;
  }

  .service-text h3 {
    font-size: 1.5rem;
  }

  .service-text p,
  .service-text ul li {
    font-size: 0.95rem;
  }
}

/* ===========================
   CLIENTS SECTION (Marquee)
   =========================== */
.clients-section {
  background: #fff;
  text-align: center;
  padding: 90px 0;
  padding-bottom: 0;
  overflow: hidden;
  padding-top: 10px;
  padding-bottom: 140px;
}

.clients-section .section-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  color: var(--accent);
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.clients-section .section-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 40px;
}

.clients-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  padding-bottom: 10px;
}

.clients-scroll:active {
  cursor: grabbing;
}

.clients-marquee {
  overflow: hidden;
  width: 100%;
  position: relative;
}
.clients-scroll:active {
  cursor: grabbing;
}

.clients-track {
  display: inline-flex;
  gap: 50px;
  align-items: center;
  padding: 0 30px;
}

.client-logo {
  background: #ffffff;
  border-radius: 18px;
  padding: 24px 34px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
  min-width: 220px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  position: relative;
}

.client-logo:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 14px 35px rgba(243, 146, 0, 0.18);
}

.client-logo img {
  height: 70px;
  width: auto;
  object-fit: contain;
  filter: grayscale(30%);
  transition: all 0.3s ease;
  margin-bottom: 10px;
}
.client-logo:hover img {
  filter: grayscale(0%) brightness(1.1);
}
.client-name {
  font-family: "Nunito Sans", sans-serif;
  font-weight: 700;
  color: var(--text);
  font-size: 1rem;
  letter-spacing: 0.3px;
  margin-top: 4px;
}
/* Scrollbar styling */
.clients-scroll::-webkit-scrollbar {
  height: 6px;
}
.clients-scroll::-webkit-scrollbar-track {
  background: #eee;
  border-radius: 4px;
}
.clients-scroll::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

.marquee-track {
  display: flex;
  gap: 60px;
  align-items: center;
  animation: scroll-marquee 20s linear infinite;
  will-change: transform;
}

.marquee-track img {
  height: 60px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.marquee-track img:hover {
  opacity: 1;
  transform: scale(1.08);
}

@keyframes scroll-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ===========================
   TOOLS WE USE SECTION (With Image Captions)
   =========================== */
.tools-section {
  padding: 70px 0;
  background: #fff;
  text-align: center;
}

.tools-header h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--accent);
  margin-bottom: 6px;
}

.tools-header p {
  font-family: "Nunito Sans", sans-serif;
  font-weight: 600;
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  justify-items: center;
}

.tool-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.07);
  padding: 20px 14px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
  max-width: 230px;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(17, 17, 17, 0.08);
}

.tool-card h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 14px;
}

.tool-images {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}

.tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.tool-item img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 5px 8px rgba(17, 17, 17, 0.1));
}

.tool-item img:hover {
  transform: translateY(-4px) scale(1.05);
}

.tool-item p {
  font-family: "Nunito Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

/* IMAGE FLY-IN ANIMATION */
@keyframes flyIn {
  0% {
    opacity: 0;
    transform: scale(0.85) translateY(60px) translateZ(-80px);
  }
  60% {
    opacity: 1;
    transform: scale(1.03) translateY(-10px) translateZ(0);
  }
  100% {
    transform: scale(1) translateY(0) translateZ(0);
  }
}

/* Directional variant */
.service-row:not(.reverse) .service-image.fly-visible {
  animation: flyInLeft 1.1s cubic-bezier(0.19, 1, 0.22, 1);
}

.service-row.reverse .service-image.fly-visible {
  animation: flyInRight 1.1s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Keyframes for direction */
@keyframes flyInLeft {
  0% {
    opacity: 0;
    transform: translateX(-80px) translateY(40px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
  }
}

@keyframes flyInRight {
  0% {
    opacity: 0;
    transform: translateX(80px) translateY(40px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
  }
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Left-slide for normal rows */
.service-row.fade-in {
  transform: translateX(-40px);
}
.service-row.fade-in.visible {
  transform: translateX(0);
}

/* Right-slide for reversed rows */
.service-row.reverse.fade-in {
  transform: translateX(40px);
}
.service-row.reverse.fade-in.visible {
  transform: translateX(0);
}

/* Responsive */
@media (max-width: 1023px) {
  .service-row {
    grid-template-columns: 1fr;
  }
  .service-row.reverse {
    direction: ltr;
  }
  .service-image {
    order: -1;
  }
  .client-logo {
    min-width: 200px;
    min-height: 140px;
    padding: 18px 26px;
  }
  .client-logo img {
    height: 60px;
  }
  .client-name {
    font-size: 0.95rem;
  }
}

/* FOOTER */
/* New footer background and adjusted contrast */
.site-footer {
  margin-top: 0px;
  border-top: 0;
  padding-top: 32px;
  background: #1e1e1e;
  color: #e6e6e6;
}
.footer-grid {
  display: flex;
  gap: 28px;
  padding: 28px 0;
}
.footer-col {
  flex: 1;
}

.footer-col h4 {
  margin-bottom: 10px;
  color: #fff;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 8px;
}
.footer-col a {
  color: #cfcfcf;
  font-size: 15px;
  transition: color 0.15s ease, transform 0.15s ease;
}
.footer-col a:hover {
  color: var(--accent);
  transform: translateX(4px);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 14px 0;
  color: #bdbdbd;
  font-size: 14px;
}
/* SOCIAL ICONS INLINE */
.social-list {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin-top: 8px;
}

.social-list li a {
  color: #cfcfcf;
  font-size: 22px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.social-list li a:hover {
  color: var(--accent);
  transform: translateY(-4px);
}

/* FOOTER CONTACT DETAILS */
.footer-contact {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e6e6e6;
  font-size: 15px;
  margin: 0;
}

.footer-contact i {
  color: var(--accent); /* orange icon color */
  font-size: 16px;
  width: 18px;
  text-align: center;
}

.footer-contact a {
  color: #cfcfcf;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-contact a:hover {
  color: var(--accent);
  transform: translateX(3px);
}

/* NAV Toggle (mobile) hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger {
  width: 26px;
  height: 2px;
  background: var(--text);
  display: block;
  position: relative;
  transition: all 0.25s ease;
}
.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 26px;
  height: 2px;
  background: var(--text);
  transition: all 0.25s ease;
}
.hamburger::before {
  top: -8px;
}
.hamburger::after {
  top: 8px;
}

/* RESPONSIVE RULES */

/* Laptop (>=1024px) -- make hero occupy full view until user scrolls */
@media (min-width: 1024px) {
  .mega:hover > .mega-menu,
  .mega:focus-within > .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  /* Ensure header height is known and hero fills the rest of viewport */
  .site-header {
    height: var(--header-height-desktop);
  }

  .hero {
    min-height: calc(100vh - var(--header-height-desktop));
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Make the hero-inner a centered block within the full-screen hero */
  .hero-inner {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 48px;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 40px;
    box-sizing: border-box;
  }

  /* Slightly larger, punchier hero text on desktop */
  .hero-content h1 {
    font-size: 44px;
    max-width: 56ch;
  }
  .hero .lead {
    font-size: 18px;
    color: var(--muted);
  }

  /* Button sizes */
  .hero-actions .btn-primary.large {
    padding: 16px 26px;
    font-size: 18px;
  }
  .hero-actions .btn-outline {
    padding: 12px 18px;
    border-radius: 10px;
  }

  /* Image styling */
  .hero-image {
    width: 420px;
  }
  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

/* Tablet */
@media (max-width: 1023px) and (min-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr 320px;
  }
  .hero-content h1 {
    font-size: 32px;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-list {
    gap: 18px;
  }
  .logo img {
    height: 36px;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: left;
  }
  .service-image {
    order: -1;
  }
  .service-text h3 {
    font-size: 24px;
  }
  .service-text p,
  .service-text ul li {
    font-size: 15.5px;
  }
  .services {
    padding: 80px 0;
  }
}
@media (max-width: 1023px) {
  .mission-vision-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .mission-vision h2 {
    font-size: 24px;
  }
  .mega-menu {
    position: static;
    box-shadow: none;
    border-radius: 0;
    height: auto;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    background: none;
  }
  .mega.open > .mega-menu {
    display: block;
  }
}
/* Phone */
@media (max-width: 767px) {
  html,
  body {
    overflow-x: hidden !important;
    width: 100%;
  }

  .site-header {
    height: var(--header-height-mobile);
    padding: 12px 0;
    position: relative;
    z-index: 10000; /* ensure header & nav are above everything */
  }

  .header-inner {
    gap: 10px;
    justify-content: space-between;
  }

  .logo img {
    height: 84px;
  }

  .main-nav {
    flex: 1;
    justify-content: flex-end;
    position: relative;
    z-index: 10000;
  }

  /* ===== Mobile menu ===== */
  .nav-list {
    position: fixed;
    top: calc(var(--header-height-mobile) + 10px);
    right: 12px;
    width: calc(100% - 24px);
    max-width: 360px;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 0;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(17, 17, 17, 0.15);
    display: none;
    z-index: 99999; /* critical fix */
  }

  .nav-list.open {
    display: flex; /* ensures visibility when toggled */
  }

  .nav-item {
    border-bottom: 1px solid rgba(17, 17, 17, 0.06);
  }

  .nav-item a,
  .nav-item button {
    padding: 12px 8px;
    text-align: left;
    width: 100%;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
    z-index: 100000; /* always above */
    background: none;
    border: none;
  }

  .hamburger,
  .hamburger::before,
  .hamburger::after {
    background: var(--text);
  }

  /* Hide header CTA button in mobile */
  .header-cta {
    display: none;
  }
  /* HERO */
  .hero {
    padding-top: 100px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px;
  }

  .hero-content h1 {
    font-size: 26px;
  }

  .hero-image {
    order: 2;
    width: 100%;
  }

  /* SERVICES — stack images & text vertically */
  .services {
    padding: 70px 0;
  }

  .service-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    margin-bottom: 60px;
  }

  .service-image {
    order: -1;
    width: 100%;
    display: block;
  }

  .service-image img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    object-fit: cover;
  }

  .service-text {
    order: 2;
    width: 100%;
    padding: 0 6px;
  }

  /* Hide long text paragraphs */
  .service-text p {
    display: none;
  }

  .service-text ul {
    display: block;
  }

  .service-text p,
  .service-text ul li {
    font-size: 15px;
    line-height: 1.6;
  }

  /* CLIENTS MARQUEE */
  .clients-track {
    gap: 34px;
  }

  .client-logo {
    min-width: 190px;
    min-height: 130px;
  }

  .client-logo img {
    height: 60px;
  }

  .client-name {
    font-size: 0.9rem;
  }

  .marquee-track {
    gap: 30px;
    animation: scroll-marquee 25s linear infinite;
  }

  .marquee-track img {
    height: 50px;
  }

  /* TOOLS SECTION */
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .tool-card h3 {
    font-size: 1rem;
  }

  .tool-images img {
    width: 60px;
    height: 60px;
  }
}

/* Optional: slightly reduce icon size on small phones */
@media (max-width: 480px) {
  .social-list li a {
    font-size: 20px;
  }
  .footer-contact p {
    font-size: 14px;
  }
  .tools-grid {
    grid-template-columns: 1fr;
  }
}

/* small tweaks for accessibility focus */
a:focus,
button:focus {
  outline: 3px solid rgba(243, 146, 0, 0.18);
  outline-offset: 2px;
  border-radius: 6px;
}
/* =====================
   PHONE VIEW (MAX 767PX)
   ===================== */
@media (max-width: 767px) {
  .services {
    padding: 70px 0;
    background: #fff;
  }

  .section-title {
    font-size: 1.9rem;
    margin-bottom: 40px;
  }

  /* Stack everything neatly */
  .service-row {
    flex-direction: column;
    gap: 28px;
    margin-bottom: 70px;
    text-align: left;
    padding: 0 16px;
  }

  /* Ensure image always sits above text */
  .service-row.reverse {
    flex-direction: column;
  }

  .service-image {
    order: -1;
    width: 100%;
  }

  .service-image img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(17, 17, 17, 0.08);
  }

  .service-text {
    width: 100%;
    padding: 24px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 30px rgba(17, 17, 17, 0.06);
  }

  .service-text h3 {
    font-size: 1.35rem;
    margin-bottom: 10px;
  }

  .service-text p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 10px;
  }

  .service-text ul {
    margin-top: 8px;
  }

  .service-text ul li {
    font-size: 0.9rem;
    padding-left: 20px;
    margin-bottom: 6px;
  }

  .service-text ul li::before {
    font-size: 1.2rem;
  }

  /* Remove section divider lines for smaller devices */
  .service-row:not(:last-child)::after {
    display: none;
  }

  /* Simplify animation for mobile */
  @keyframes fadeInLeft {
    from {
      opacity: 0;
      transform: translateY(40px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes fadeInRight {
    from {
      opacity: 0;
      transform: translateY(40px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
@media (max-width: 767px) {
  /* hide visually */
  .nav-item.dropdown {
    display: none !important;
  }
}
/* Hide certain nav items on mid-size tablets (768px–1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Hide everything except About Us & Contact Us */
  .nav-item:not(:has(a[href*="about"])):not(:has(a[href*="contact"])) {
    display: none !important;
  }
}
/* =====================
   FOOTER — MOBILE FIX
   ===================== */
@media (max-width: 767px) {
  .footer-grid {
    flex-direction: column;
    text-align: left;
    gap: 32px;
    padding: 24px 12px;
  }

  .footer-col {
    flex: 1 1 100%;
  }

  .footer-col h4 {
    font-size: 1.05rem;
    margin-bottom: 10px;
  }

  .footer-col ul {
    padding-left: 0;
  }

  .footer-col ul li {
    margin-bottom: 6px;
  }

  .social-list {
    justify-content: flex-start;
    gap: 16px;
  }

  .footer-contact {
    gap: 10px;
    font-size: 15px;
    word-break: break-word;
  }

  .footer-contact p,
  .footer-contact a {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }

  .footer-contact i {
    font-size: 16px;
    margin-right: 8px;
  }

  .footer-bottom {
    font-size: 13px;
    text-align: center;
    padding: 18px 0;
    color: #ccc;
  }

  /* Optional: give the footer more breathing space */
  .site-footer {
    padding-bottom: 24px;
  }
}

/* ====== FIX: Make footer clickable on mobile ====== */
@media (max-width: 767px) {
  /* Ensure mobile menu closes visually and logically */
  .nav-list {
    pointer-events: none;
  }

  .nav-list.open {
    pointer-events: auto;
  }

  /* Prevent invisible elements like mega-menu from blocking taps */
  .mega-menu,
  .site-header::after {
    pointer-events: none !important;
  }

  /* Make sure footer always sits on top when menu is closed */
  .site-footer {
    position: relative;
    z-index: 1;
  }

  /* Also ensure hero/background layers don't overlay footer */
  .hero,
  main {
    position: relative;
    z-index: 0;
  }
}
