html, body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}
/*              Homebar                */
.top-bar {
  position: fixed;    /* if you want it sticky */
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;    /* padding inside the bar */
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: white;
  z-index: 1000;
}

/* Hamburger Menu Styles */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background-color: #061d3b;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/*              Logo/Branding               */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;              /* space between text and logo */
  font-weight: 800;
  font-size: 1.3rem;
  color: #061d3b;
}

/*              Image Component of Logo                */
.logo-image {
  height: 40px;           /* adjust to your desired logo height */
  width: auto;
  object-fit: contain;
  cursor: pointer;
}

.logo-image:hover {
    opacity: 0.8;
    transform: scale(1.1);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.top-bar-links {
  display: flex;
  gap: 30px;                        /* spacing between links */
  margin-right: 50px;
}

.top-bar-links.active {
  transform: translateX(0);
}

.top-bar-links a {
  color: #061d3b;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.2s ease;
}

.top-bar-links a:hover {
  color: #36476e;                  /* accent hover color */
}

.top-bar-container {
    display: flex;
    justify-content: center; /* Center the top bar inside this container */
}

.background-image {
  position: relative;
  margin-top: 60px; /* below top bar */
  min-height: 900px; /* Changed from height to min-height */
  background-image: url('https://i.ibb.co/mVrRn5cR/backgroundshp1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white; /* so text inside is visible */
}

.background-image::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(12, 12, 12, 0.5); /* gray overlay with 40% opacity */
  pointer-events: none; /* allows clicks to pass through */
  z-index: 1;
}

/* Ensure content inside is above the overlay */
.background-image > * {
  position: relative;
  z-index: 2;
}

.background-image-overlay {
    font-family: 'Montserrat', sans-serif;
    padding: 250px 75px;
}

.background-image-overlay-h1 {
    font-size: 60px;
    margin-bottom: 10px;
}

.background-image-overlay-p {
  max-width: 900px;       /* limits width of paragraph */
  word-wrap: break-word;  /* breaks long words if needed */
  overflow-wrap: break-word; /* newer spec, same as word-wrap */
  white-space: normal;    /* ensures normal wrapping */
}

/*          BUTTON OVERLAYING IMAGE         */
.background-image-overlay-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  font-size: 1.25rem;
  font-weight: 600;
  color: white;              /* dark text */
  background-color: transparent;
  border: 1px solid white;
  border-radius: 50px;
  cursor: pointer;
  overflow: hidden;
  transition: color 0.4s ease;
  z-index: 0;
  font-family: 'Montserrat', sans-serif;
}

.background-image-overlay-button .arrow {
  font-weight: 700;
  transition: transform 0.3s ease;
}

.background-image-overlay-button::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  background-color: #061d3b;   /* blue fill */
  border-radius: 50px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: -1;
}

.background-image-overlay-button:hover {
  color: white;
}

.background-image-overlay-button:hover::before {
  transform: scaleX(1);
}

.background-image-overlay-button:hover .arrow {
  transform: translateX(5px);
}

/* TEXT TYPING EFFECT OVER THE BACKGROUND IMAGE */
.cursor {
  display: inline-block;
  background-color: transparent;
  animation: blink 0.7s steps(1) infinite;
  font-weight: 800;
  margin-left: 2px;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.description-p {
    padding: 20px 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 20px;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 100px 50px;
    background-color: #f9f9f9;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

.stat-block {
    flex: 1;
}

.stat-number {
    font-size: 4rem;
    color: #061d3b;
    margin: 0;
}

.stat-label {
    font-size: 1.2rem;
    color: #333;
    margin-top: 10px;
}

.stat-block:nth-child(4) .stat-number::after {
    content: '%';
    margin-left: 2px;
}

.about-us {
    font-size: 100px;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    margin-top: 25px;
    color:#061d3b;
    margin-bottom: 0px;
}

.about-us-description {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 500;
    margin-left: 100px;
    margin-right: 100px;
}

.careers {
  background-color: #061d3b;
  min-height: 600px; /* Changed from height to min-height */
}

.careers-h1 {
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  color: white;
  font-size: 100px;
  margin-top: 50px;
  margin-bottom: 15px;
}

.contact-h1 {
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  font-size: 100px;
  margin-top: 50px;
  color: #061d3b;
  margin-bottom: 10px;
}

.contact-modle {
  text-align: center;
  font-family: 'Montserrat', sans-serif;
}

.contact-label {
  margin-bottom: 25px;
  width: 100%;
  max-width: 500px;
  min-width: 500px;
  border: 1px solid #ccc;
  height: 25px;
  border-radius: 10px;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.3s, box-shadow 3s;
  font-family: 'Montserrat', sans-serif;
}

.contact-title {
  font-size: 25px;
  font-weight: 800px;
}

#message {
  height: 100px;
  min-height: 100px;
}

.form-submit-button {
    background-color: #061d3b;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s, transform 0.2s;
    text-decoration: none;
    margin-bottom: 30px;
}

.form-submit-button .arrow {
    font-weight: bold;
    font-size: 18px;
}

.form-submit-button:hover {
    background-color: #36476e;
    transform: translateY(-1px);
}

/*          CAREERS CAROUSEL BELOW            */
.carousel-wrapper {
  position: relative;
  width: 400px; /* keep this */
  margin: 50px auto;
  overflow: visible; /* needed to show arrows outside */
}

.carousel-container {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 0 30px; /* add horizontal padding to prevent cards overlapping arrows */
  box-sizing: border-box; /* ensure padding doesn't increase width */
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.card {
  flex: 0 0 300px;
  margin-right: 30px;
  padding: 40px 20px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
  font-family: 'Montserrat', sans-serif;
}

.card:last-child {
  margin-right: 0;
}

.card h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.card p {
  font-size: 1rem;
  color: #555;
}

.careers-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  user-select: none;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: background-color 0.3s ease;
}

.careers-arrow:hover {
  background-color: #eee;
}

.careers-arrow.left {
  left: 0; /* align flush with container left padding */
  transform: translateX(-50%) translateY(-50%); /* shift half width left */
}

.careers-arrow.right {
  right: 0; /* flush with container right padding */
  transform: translateX(50%) translateY(-50%); /* shift half width right */
}

.careers-p {
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  color: white;
}

.careers-card-title {
  color:#061d3b;
}

.apply-button {
  display: center;
  margin-top: 0px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  text-decoration: none;
  gap: 8px;
  height: 35px;
  width: 100px;
  background-color:white;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.apply-button:hover {
  background-color: #0572e7;
  transform: translateY(-1px);
}

.careers-apply {
  display: flex;
  justify-content: center;
  text-align: center;
}

.link-vector {
  height: 15px;
  width: auto;
}

.card-vector-image {
  height: 40px;
  width: auto;
}

footer {
  background-color: #061d3b;
  height: 175px;
}

.footer-icon {
  height: 25px;
  width: auto;
}

.footer-instagram {
  background-color: #061d3b;
  background: none;
  border: none;
  cursor: pointer;
}

.footer-linkedin {
  background-color: #061d3b;
  background: none;
  border: none;
  cursor: pointer;
}

.footer-email {
  background-color: #061d3b;
  background: none;
  border: none;
  cursor: pointer;
}

.footer-container {
  display: flex;
  justify-content: center;
}

.footer-socials {
  margin-top: 25px;
}

.footer-branding {
  color: white;
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  margin-top: 10px;
  font-weight: 800px;
}

#footer-closing {
  font-size: 10px;
}

.reveal-text {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out
}

.reveal-text.visible {
  opacity: 1;
  transform: translateY(0);
}

.progress-bar-container {
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  height: 4px;
  background-color:#061d3b;
  z-index: 1000;
}

.progress-bar {
  height: 100%;
  width: 0;
  background-color:#0572e7;
  transition: width 0.2s ease-out;
}

/* Responsive Design Adjustments */
@media (max-width: 768px) {
  /* Top Bar */
  .top-bar {
    padding: 0 15px;
  }
  .hamburger {
    display: flex;
  }
  .top-bar-links {
    position: absolute;
    top: 60px;
    right: 0;
    background-color: white;
    flex-direction: column;
    width: 200px;
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    margin-right: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  .top-bar-links.active {
    transform: translateX(0);
  }
  .top-bar-links a {
    font-size: 1rem;
    padding: 10px 0;
  }
  .logo-image {
    height: 25px;
  }

  /* Background Image */
  .background-image {
    min-height: 400px;
  }
  .background-image-overlay {
    padding: 50px 20px;
  }
  .background-image-overlay-h1 {
    font-size: 40px;
  }
  .background-image-overlay-p {
    font-size: 16px;
  }
  .background-image-overlay-button {
    padding: 12px 30px;
    font-size: 1rem;
  }

  /* Description */
  .description-p {
    padding: 20px;
    font-size: 18px;
  }

  /* Stats */
  .stats-container {
    flex-direction: column;
    padding: 50px 20px;
  }
  .stat-block {
    margin-bottom: 30px;
  }
  .stat-number {
    font-size: 3rem;
  }
  .stat-label {
    font-size: 1.1rem;
  }

  /* About Us */
  .about-us {
    font-size: 50px;
  }
  .about-us-description {
    font-size: 16px;
    margin-left: 20px;
    margin-right: 20px;
  }

  /* Careers */
  .careers-h1 {
    font-size: 50px;
  }
  .careers-p {
    font-size: 14px;
    padding: 0 20px;
  }
  .carousel-wrapper {
    width: 90%;
  }
  .card {
    flex: 0 0 250px;
    margin-right: 20px;
  }
  .card h2 {
    font-size: 1.2rem;
  }
  .card p {
    font-size: 0.9rem;
  }

  /* Contact */
  .contact-h1 {
    font-size: 50px;
  }
  .contact-label {
    min-width: 95%;
    width: 95%;
    height: 40px;
    font-size: 18px;
  }
  #message {
    height: 150px;
  }
  .form-submit-button {
    padding: 15px 30px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  /* Top Bar */
  .top-bar-links {
    width: 160px;
  }
  .top-bar-links a {
    font-size: 0.9rem;
  }

  /* Background Image */
  .background-image-overlay-h1 {
    font-size: 30px;
  }
  .background-image-overlay-p {
    font-size: 14px;
  }
  .background-image-overlay-button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  /* Description */
  .description-p {
    font-size: 16px;
  }

  /* Stats */
  .stat-number {
    font-size: 2.5rem;
  }
  .stat-label {
    font-size: 1rem;
  }

  /* About Us */
  .about-us {
    font-size: 40px;
  }
  .about-us-description {
    font-size: 14px;
  }

  /* Careers */
  .careers-h1 {
    font-size: 40px;
  }
  .careers-p {
    font-size: 12px;
  }
  .card {
    flex: 0 0 200px;
    margin-right: 15px;
  }
  .card h2 {
    font-size: 1rem;
  }
  .card p {
    font-size: 0.8rem;
  }

  /* Contact */
  .contact-h1 {
    font-size: 40px;
  }
  .contact-label {
    font-size: 16px;
  }
  .form-submit-button {
    padding: 12px 25px;
    font-size: 16px;
  }
}