/* Hamburger nav toggle is hidden by default (desktop) */
/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

.nav-toggle.open::before {
  content: "×";
  font-size: 2rem;
  color: #fff;
}

.nav-toggle::before {
  content: "≡";
  font-size: 1.5rem;
  color: #fff;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f4f4f4;
  color: #333;
}

/* Layout Elements */
.section-note {
  font-size: 1.05rem;
  color: #666;
  margin-bottom: 2rem;
  font-style: italic;
  text-align: center;
}

section {
  padding: 4rem 2rem;
  background: #fff;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

section h2 {
  font-size: 2.2rem;
  text-align: center;
  font-weight: 600;
  margin-bottom: 2rem;
  color: #111;
}

/* Top Contact Bar */
.top-bar {
  background: #00000b;
  color: #ddd;
  font-size: 0.9rem;
  padding: 0.5rem 2rem;
  display: flex;
  justify-content: flex-end;
  gap: 2rem;
}

/* Contact Link Styles (used for top and footer email/phone) */
.contact-link {
  color: #ddd;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.contact-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  height: 2px;
  width: 100%;
  background: #005577;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.contact-link:hover::after {
  transform: scaleX(1);
}

.contact-link:hover {
  color: #005577;
}

/* Header / Nav */
.main-header {
  background: #111;
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 999;
}

.logo {
  font-size: 1.7rem;
  font-weight: bold;
  letter-spacing: 1px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.2s ease;
}

.logo:hover {
  color: #005577;
  transform: scale(1.05);
}

.logo:active {
  transform: scale(0.95);
}

.navbar {
  position: relative;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-item {
  position: relative;
}

.nav-item a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem;
  transition: all 0.3s ease;
}

.nav-item a:hover,
.nav-item a:focus {
  color: #005577;
  transform: scale(1.05);
}

.nav-item.dropdown > a::after {
  content: ' ▼';
  font-size: 0.6rem;
  margin-left: 0.3rem;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background: linear-gradient(135deg, #1f1f1f, #333);
  top: 100%;
  left: 0;
  width: auto;
  min-width: 160px;
  padding: 0;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 10;
  list-style: none;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  position: relative;
  padding: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: #fff;
  font-size: 0.95rem;
  transition: background 0.3s, transform 0.2s;
}

.dropdown-menu a:hover {
  background: #333;
  transform: translateX(5px);
}

/* Slider Styles */
.slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  margin: 0;
  padding: 0;
  background: #000;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center top;
  background-attachment: initial;
  opacity: 0;
  transform: translateX(100%);
  transition: all 1s ease;
  margin: 0;
  padding: 0;
}

.slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Darkens only the image */
  pointer-events: none;
  z-index: 1;
}

.slide-content {
  position: relative;
  z-index: 2;
  padding: 0 2rem;
}

.slide-1 {
  background-image: url('assets/image/boston.jpg');
}

.slide-2 {
  background-image: url('assets/image/assessment.jpg');
}

.slide-3 {
  background-image: url('assets/image/security.jpg');
}

.slide.active {
  opacity: 1;
  transform: translateX(0);
}

.slide h1,
.slide p {
  position: relative;
  z-index: 2;
}

.slide h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #ffffff; /* Ensure text is bright */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Helps text stand out */
}

.slide p {
  font-size: 1.2rem;
  color: #ffffff; /* Ensure text is bright */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6); /* Helps text stand out */
}

.slider-controls {
  position: absolute;
  bottom: 30px;
  display: flex;
  justify-content: center;
  width: 100%;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  opacity: 0.5;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.dot.active {
  opacity: 1;
}

/* About Section */
#about .container p {
  max-width: 800px;
  margin: 2rem auto 0 auto;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #444;
}

/* Mission & Vision Section */
#mission-vision .container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.mission-vision-block {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.mission,
.vision {
  flex: 1 1 300px;
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Service & Industry Buttons */
.service-buttons,
.industry-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.service-buttons button,
.industry-buttons button {
  margin: 0.75rem 1rem 0 0;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  background: linear-gradient(135deg, #004466, #0077aa);
  color: #fff;
  border: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.service-buttons button:hover,
.industry-buttons button:hover {
  background: linear-gradient(135deg, #005577, #0099cc);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.service-buttons button:active,
.industry-buttons button:active {
  transform: scale(0.98);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.service-description,
.industry-description {
  max-width: 700px;
  margin: 2rem auto;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #333;
  text-align: center;
}

/* FAQ Section */
.faq-item {
  margin-bottom: 1rem;
  border-bottom: 1px solid #ccc;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  font-size: 1.1rem;
  text-align: left;
  padding: 0.75rem 0;
  font-weight: bold;
  cursor: pointer;
  color: #222;
}

.faq-question::after {
  content: "+";
  font-weight: bold;
  margin-left: 1rem;
  transition: transform 0.3s ease;
  float: right;
}

.faq-answer {
  transition: max-height 0.4s ease, opacity 0.4s ease;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding: 0.5rem 0;
  color: #555;
  animation: fadeIn 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  opacity: 1;
}

.faq-item.open .faq-question::after {
  content: "×";
  transform: rotate(180deg);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sticky CTA Button */
.sticky-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #0077aa;
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  text-decoration: none;
  font-weight: bold;
  z-index: 1000;
  transition: background 0.3s ease;
}

.sticky-cta:hover {
  background: #03a2e1;
}

/* Footer Contact Links */
.footer-contact {
  display: inline-block;
  font-weight: bold;
  margin-top: 0.5rem;
  font-size: 1.05rem;
  color: #0077aa;
}

.footer-contact:hover {
  text-decoration: underline;
  color: #06bdfa;
}

/* Footer Legal Links */
.footer-links {
  margin-top: 1rem;
}

.footer-links a {
  color: #bbb;
  margin: 0 0.5rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Footer */
footer {
  background: #111;
  color: #ccc;
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
}

/* Legal Pages */
.legal-page {
  padding: 4rem 2rem;
  background: #fff;
  color: #333;
}

.legal-page .container {
  max-width: 800px;
  margin: auto;
  line-height: 1.7;
}

.legal-page h1,
.legal-page h2 {
  margin-bottom: 1rem;
  color: #111;
}

.legal-page p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .slide h1 {
    font-size: 1.7rem;
  }

  .slide p {
    font-size: 1rem;
  }

  .mission-vision-block {
    flex-direction: column;
  }

  .sticky-cta {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .legal-page {
    padding: 2rem 1rem;
  }

  .legal-page .container {
    padding: 0 1rem;
  }

  .nav-toggle {
    display: block;
    position: absolute;
    top: 1.2rem;
    right: 2rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #fff;
    cursor: pointer;
    z-index: 1001;
  }

  .navbar {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background: #111;
    position: absolute;
    top: 4rem;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    z-index: 1000;
  }

  .navbar.open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    width: 100%;
    background: #222;
    border-radius: 4px;
    margin-top: 0.5rem;
  }

  .dropdown-menu a {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: #fff;
    background: transparent;
  }

  .dropdown-menu a:hover {
    background: #333;
    transform: none;
  }

  .nav-item.dropdown > a::after {
    content: ' ▼';
    margin-left: 0.5rem;
    font-size: 0.75rem;
  }
}
