* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary-red: #9a0000;
  --primary-blue: #044ba6;
  --dark-gray: #333;
  --light-gray: #666;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --shadow: rgba(154, 0, 0, 0.15);
}
html, body {
  overflow-x: hidden; /* Block horizontal scroll site-wide */
}

body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; color: var(--dark-gray); scroll-behavior: smooth; }

/* HEADER */
.header { min-height: 65vh; background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-blue) 100%); color: var(--white); position: relative; }
.navbar { position: fixed; top: 0; width: 100%; background: rgba(255,255,255,0.95); backdrop-filter: blur(20px); padding: 1rem 2rem; z-index: 1000; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 20px var(--shadow); }
.logo { display: flex; align-items: center; gap: 1rem; }
.logo-img { width: 50px; height: 50px; border-radius: 50%; border: 3px solid var(--white); }
.logo h1 { font-size: 1.5rem; color: var(--primary-blue); }
.logo p { font-size: 0.8rem; opacity: 0.9; color: var(--primary-red); }
.nav-links { display: flex; list-style: none; gap: 1rem; }
.nav-links a { color: var(--dark-gray); text-decoration: none; font-weight: 500; padding: 0.5rem 0.5rem; border-radius: 25px; transition: all 0.3s; }
.nav-links a:hover { background: var(--primary-blue); color: var(--white); }
.hero { position: absolute; top: 60%; left: 50%; transform: translate(-50%, -50%); text-align: center; }
.hero h2 { font-size: 2rem; margin-bottom: 0rem; color: var(--white); }
.cta-btn { position: absolute; left: 25%; background: var(--white); color: var(--primary-blue); padding: 0.25rem 3rem; border-radius: 50px; text-decoration: none; font-weight: bold; display: inline-block; transition: all 0.3s; box-shadow: 0 10px 30px var(--shadow); border: 2px solid var(--white); }
.cta-btn:hover { background: var(--primary-red); color: var(--white); border-color: var(--primary-red); transform: translateY(-5px); box-shadow: 0 15px 40px rgba(154,0,0,0.3); }

/* SECTIONS */
.section { padding: 8rem 0; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 1rem; color: var(--primary-blue); }
.alt-bg { background: var(--bg-light); }

/* ABOUT US - NEW LAYOUT */
.about-content { 
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 4rem; 
  text-align: center; 
}

.mission { 
  background: var(--white); 
  padding: 2rem 2rem; 
  border-radius: 20px; 
  box-shadow: 0 20px 60px var(--shadow); 
  border-top: 5px solid var(--primary-blue);
}

.mission h3 { 
  font-size: 2rem; 
  margin-bottom: 1rem; 
  color: var(--primary-red); 
  position: relative; 
}

.mission h3::after { 
  content: ''; 
  position: absolute; 
  bottom: -10px; 
  left: 50%; 
  transform: translateX(-50%); 
  width: 60px; 
  height: 4px; 
  background: var(--primary-red); 
  border-radius: 2px; 
}

.team-profiles { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 1rem; 
  margin-top: 1rem; 
}

.team-profile { 
  display: flex; 
  align-items: center; 
  gap: 2rem; 
  background: var(--white); 
  padding: 2.5rem; 
  border-radius: 20px; 
  box-shadow: 0 20px 60px var(--shadow); 
  border-top: 5px solid var(--primary-red); 
  transition: all 0.3s; 
}

.team-profile:hover { 
  transform: translateY(-10px); 
  box-shadow: 0 30px 80px rgba(4,75,166,0.2); 
}

.team-img { 
  width: 120px; 
  height: 120px; 
  border-radius: 50%; 
  object-fit: cover; 
  border: 4px solid var(--primary-blue); 
  flex-shrink: 0; 
}

.team-info h3 { 
  color: var(--primary-blue); 
  margin-bottom: 0.5rem; 
  font-size: 1.4rem; 
}

.team-info p { 
  color: var(--light-gray); 
  margin-bottom: 1rem; 
}

.team-linkedin { 
  display: inline-flex; 
  align-items: center; 
  gap: 0.5rem; 
  color: var(--primary-blue); 
  text-decoration: none; 
  font-weight: bold; 
  padding: 0.75rem 1.5rem; 
  border: 2px solid var(--primary-blue); 
  border-radius: 25px; 
  transition: all 0.3s; 
  font-size: 0.95rem; 
}

.team-linkedin:hover { 
  background: var(--primary-blue); 
  color: var(--white); 
  transform: translateY(-2px); 
}

/* GRID SECTIONS */
.grid-2x3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.card { background: var(--white); padding: 2rem 2rem; border-radius: 20px; text-align: center; box-shadow: 0 20px 60px var(--shadow); transition: all 0.3s; cursor: pointer; border-top: 5px solid var(--primary-blue); }
.card:hover { transform: translateY(-15px); box-shadow: 0 30px 80px rgba(4,75,166,0.2); border-top-color: var(--primary-red); }
.icon { font-size: 2rem; margin-bottom: 1rem; color: var(--primary-red); }
.card h3 { font-size: 1.25rem; color: var(--primary-blue); margin-bottom: 1rem; }

/* CLIENTS CAROUSEL */
.clients-carousel { overflow : hidden; visibility : visible; }
.carousel-track {
  display: flex;
  width: max-content;
  animation: none; /* disable initially */
}

.client-slide { min-width: 300px; text-align: center; padding: 2rem; flex-shrink: 0; }
.client-slide img { width: 120px; height: 80px; object-fit: contain; margin-bottom: 1rem; border-radius: 10px; box-shadow: 0 10px 30px var(--shadow); border: 1px solid var(--primary-blue); }
.client-info h4 { color: var(--primary-blue); margin-bottom: 0.5rem; }
.client-info p { color: var(--light-gray); font-size: 0.9rem; margin-bottom: 0.25rem; }
.client-info span { font-weight: bold; color: var(--primary-red); }

/* CASE STUDIES GRID */
.case-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); 
  gap: 2.5rem; 
}
.case-card { 
  background: var(--white); 
  border-radius: 25px; 
  padding: 2.5rem; 
  box-shadow: 0 25px 80px var(--shadow); 
  position: relative; 
  overflow: hidden; 
  border-top: 6px solid var(--primary-blue); 
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
}
.case-card::before { 
  content: ''; 
  position: absolute; 
  top: 0; 
  left: 0; 
  right: 0; 
  height: 4px; 
  background: linear-gradient(90deg, var(--primary-red), var(--primary-blue)); 
}
.case-card:hover { 
  transform: translateY(-20px) scale(1.02); 
  box-shadow: 0 40px 120px rgba(4,75,166,0.25); 
}

.case-logo { 
  text-align: center; 
  margin-bottom: 2rem; 
}
.case-logo img { 
  width: 200px; 
  height: 150px; 
  object-fit: contain; 
  border-radius: 12px; 
/*  border: 3px solid var(--primary-blue); */
  box-shadow: 0 10px 30px rgba(4,75,166,0.2); 
}
.case-content h3 { 
  color: var(--primary-blue); 
  font-size: 1.6rem; 
  margin-bottom: 0.75rem; 
}
.case-industry { 
  color: var(--primary-red); 
  font-weight: 600; 
  font-size: 0.95rem; 
  margin-bottom: 1.5rem; 
  text-transform: uppercase; 
  letter-spacing: 0.5px; 
}
.case-results { 
  list-style: none; 
  padding: 0; 
}
.case-results li { 
  color: var(--light-gray); 
  padding: 0.5rem 0; 
  position: relative; 
  padding-left: 1.5rem; 
}
.case-results li::before { 
  content: '✓'; 
  position: absolute; 
  left: 0; 
  color: var(--primary-blue); 
  font-weight: bold; 
}

.container {
  max-width: 1200px;     /* controls how wide your content can get */
  margin: 0 auto;        /* equal left/right margin = centered */
  padding: 0 1.5rem;     /* small inner padding so content never touches edges */
}


/* CONTACT FORM */
.contact-form { max-width: 600px; margin: 0 auto; }
.contact-form input, .contact-form textarea { width: 100%; padding: 1.5rem; margin-bottom: 1.5rem; border: 2px solid #e0e0e0; border-radius: 15px; font-size: 1rem; transition: border-color 0.3s; background: var(--white); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary-blue); box-shadow: 0 0 0 3px rgba(4,75,166,0.1); }
.contact-form button { background: var(--primary-red); color: var(--white); padding: 1.5rem 3rem; border: none; border-radius: 15px; font-size: 1.2rem; font-weight: bold; cursor: pointer; width: 100%; transition: all 0.3s; }
.contact-form button:hover { background: #800000; transform: translateY(-3px); box-shadow: 0 15px 40px rgba(154,0,0,0.3); }

/* ANIMATIONS */
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}



/* SUCCESS MODAL */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s;
}
.modal-content {
  background: var(--white);
  padding: 3rem;
  border-radius: 25px;
  text-align: center;
  max-width: 500px;
  box-shadow: 0 50px 150px rgba(0,0,0,0.4);
  transform: scale(0.8);
  animation: modalPop 0.4s forwards;
}
.modal-icon {
  font-size: 5rem;
  margin-bottom: 1rem;
  color: var(--primary-blue);
}
.modal-content h3 {
  color: var(--primary-blue);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.modal-content p {
  color: var(--light-gray);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}
#closeModal {
  background: var(--primary-red);
  color: white;
  border: none;
  padding: 1rem 3rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}
#closeModal:hover {
  background: #800000;
  transform: translateY(-2px);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPop { to { transform: scale(1); } }

.contact-form button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* FIXED BOTTOM BAR */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 -5px 25px var(--shadow);
  z-index: 999;
  padding: 1rem 0;
}
.bar-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.bar-item {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: all 0.3s;
}
.bar-item:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: translateY(-2px);
}
.bar-separator {
  color: var(--light-gray);
  font-weight: normal;
}

/* BODY PADDING to avoid overlap */
body {
  padding-bottom: 80px; /* bar height + space */
}


@media (max-width: 768px) {
  /* Global scaling */
  .section {
    padding: 4rem 0; /* Halve from 8rem */
  }
  h2 {
    font-size: 1.5rem; /* From 2rem/3rem */
  }
  h3 {
    font-size: 1rem !important; /* Override specifics */
  }

  p {
    font-size: 0.6rem !important;
  }
  /* Navbar & Bottom bar (from previous) */
  .navbar {
    padding: 0.5rem 0.75rem;
    overflow: hidden;
    gap: 0.4rem;
  }
  .navbar > * { width: 100%; }
  .logo { justify-content: center; flex-wrap: wrap; gap: 0.3rem; }
  .logo h1 { font-size: 1.1rem; white-space: normal; text-align: center; }
  .logo p { font-size: 0.65rem; white-space: normal; }
  .nav-links { justify-content: center; gap: 0.3rem; overflow: hidden; }
  .nav-links a { font-size: 0.8rem; padding: 0.3rem 0.6rem; flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bottom-bar { padding: 0.5rem 0.75rem; overflow: hidden; }
  .bar-content { flex-direction: column; gap: 0.4rem; width: 100%; }
  .bar-item { font-size: 0.75rem; padding: 0.25rem 0.5rem; justify-content: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1 1 auto; min-width: 0; }
  body { padding-bottom: 65px; }

  /* Cards & Grids */
  .grid-2x3 { grid-template-columns: 1fr; gap: 1.5rem; }
  .card { padding: 1.5rem 1rem; } /* From 3rem 2rem */
  .icon { font-size: 2.5rem; } /* From 4rem */
  .card h3 { font-size: 1.25rem; }

  /* About & Team */
  .about-content { gap: 2rem; }
  .mission { padding: 2rem 1.5rem; }
  .mission h3 { font-size: 2rem; }
  .team-profiles { gap: 2rem; }
  .team-profile { padding: 1.5rem; gap: 1rem; flex-direction: column; }
  .team-img { width: 80px; height: 80px; }
  .team-info h3 { font-size: 1.2rem; }
  .team-linkedin { padding: 0.5rem 1rem; font-size: 0.85rem; }
  .team-profiles {
      grid-template-columns: 1fr !important; /* Stack to 1 column like others */
}


  /* Case Studies */
  .case-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .case-card { padding: 1.5rem; }
  .case-logo img { width: 140px; height: 105px; } /* Scale down */
  .case-content h3 { font-size: 1.3rem; }
  .case-results li {font-size: 0.75rem;}

  /* Clients */
  .client-slide { min-width: 250px; padding: 1rem; }
  .client-slide img { width: 90px; height: 60px; }

  /* Form */
  .contact-form input, .contact-form textarea { padding: 1rem; font-size: 0.75rem; }
  .contact-form button { padding: 0.75rem 1.5rem; font-size: 0.75rem; }

  /* Containers */
  .container { padding: 0 1rem; }

	.bar-content {
	  flex-direction: row !important;
	  gap: 0.1rem;
	  flex-wrap: nowrap;
	  overflow-x: auto;
	  padding: 0.3rem 0;
	  -webkit-overflow-scrolling: touch; /* Smooth iOS scroll */
	}
	.bar-item {
	  font-size: 0.5rem;
	  padding: 0.3rem 0.6rem;
	  white-space: nowrap;
	  flex-shrink: 1;
	  min-width: 0;
	}
	body {
	  padding-bottom: 40px; /* Smaller height */
	}

	.header {
	  min-height: 45vh; /* Smaller viewport */
	}
	.hero {
	  transform: translate(-50%, -40%);
	  opacity: 0.95;
	}
	.hero h2 {
	  font-size: 1rem;
	  line-height: 1.3;
	  margin-bottom: 1rem;
	}
	.cta-btn {
	  padding: 0.25rem 0.75rem;
	  font-size: 0.5rem;
	}

	.logo h1 {
		display: none;
	}
}

/* Hamburger Menu - Full Override */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  margin-left: auto;
  z-index: 1002;
}
.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--primary-blue);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
.navbar {
  position: relative !important; /* Override fixed for menu */
}

/* BULLETPROOF HAMBURGER - OVERRIDES ALL */
.menu-toggle {
  display: none !important;
  position: relative;
  z-index: 1003 !important;
}
.menu-toggle span {
  display: block !important;
  height: 3px !important;
  background: var(--primary-blue) !important;
}
@media screen and (max-width: 768px) {
  .menu-toggle {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-around !important;
    width: 30px !important;
    height: 24px !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 4px !important;
    margin-left: auto !important;
  }
  /* CRITICAL: Navbar becomes relative container for dropdown */
  .navbar {
    position: relative !important;
    z-index: 1002 !important;
  }
  /* HIDE MENU BY DEFAULT */
  .nav-links {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    background: var(--white) !important;
    flex-direction: column !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateY(-20px) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    z-index: 1001 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12) !important;
    max-height: 0 !important;
    overflow: hidden !important;
  }
  /* SHOW MENU WHEN ACTIVE */
  .nav-links.active {
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    max-height: 500px !important;
    padding: 1rem 1rem 0.5rem !important;
    margin-top: 0 !important;
  }
  .nav-links li {
    border-bottom: 1px solid #f5f5f5 !important;
    width: 100% !important;
  }
  .nav-links li:last-child {
    border-bottom: none !important;
  }
  .nav-links a {
    display: block !important;
    padding: 0.45rem 0 !important;
    color: var(--dark-gray) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 0.65rem !important;
    transition: background 0.2s !important;
  }
  .nav-links a:hover {
    background: var(--bg-light) !important;
    padding-left: 1rem !important;
  }
  /* X ANIMATION */
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px) !important;
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0 !important;
  }
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px) !important;
  }
}

/* MENU FOREGROUND - HIGHEST Z-INDEX */
@media (max-width: 768px) {
  .nav-links {
    z-index: 9999 !important;  /* Higher than navbar 1000 + modal 10000 */
  }
  .nav-links.active {
    z-index: 9999 !important;
  }
  .menu-toggle {
    z-index: 10000 !important; /* Button always clickable */
  }
  /* Ensure navbar container doesn't clip */
  .navbar {
    overflow: visible !important;
  }
  /* Hero/header can't block */
  .header {
    z-index: 1 !important; /* Low priority */
  }
  .hero {
    z-index: 2 !important;
  }
}
