* { 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);
}
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: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; }
.hero h2 { font-size: 3rem; margin-bottom: 1rem; color: var(--white); }
.cta-btn { background: var(--white); color: var(--primary-blue); padding: 0.5rem 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: 3rem; text-align: center; margin-bottom: 2rem; 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: 3rem 2rem; 
  border-radius: 20px; 
  box-shadow: 0 20px 60px var(--shadow); 
  border-top: 5px solid var(--primary-blue);
}

.mission h3 { 
  font-size: 2.5rem; 
  margin-bottom: 2rem; 
  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: 3rem; 
  margin-top: 2rem; 
}

.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: 3rem 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: 4rem; margin-bottom: 1.5rem; color: var(--primary-red); }
.card h3 { font-size: 1.5rem; 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 */
.section-subtitle { 
  text-align: center; 
  font-size: 1.2rem; 
  color: var(--light-gray); 
  margin-bottom: 4rem; 
}

.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%); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .navbar { flex-direction: column; gap: 1rem; padding: 1rem; }
  .nav-links { flex-wrap: wrap; justify-content: center; gap: 1rem; }
  .grid-2x3 { grid-template-columns: 1fr; }
  .about-content { grid-template-columns: 1fr; text-align: center; }
  .hero h2 { font-size: 2rem; }
  h2 { font-size: 2rem; }
  .team-profiles { grid-template-columns: 1fr; }
  .team-profile { flex-direction: column; text-align: center; }
  .case-grid { grid-template-columns: 1fr; }
  .case-metric { position: static; margin-bottom: 1rem; text-align: center; }
}

/* 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 */
}

/* MOBILE */
@media (max-width: 768px) {
  .bar-content {
    flex-direction: column;
    gap: 1rem;
  }
  body {
    padding-bottom: 120px;
  }
}