:root {
  --primary-blue: #0a4da2;
  --dark-blue: #082c5c;
  --light-blue: #4d8ee6;
  --accent-blue: #1a75bc;
  --highlight: #00c9ff;
  --light-bg: #f5f9ff;
  --text-dark: #333;
  --text-light: #f8f9fa;
  --transition: all 0.3s ease;
  --success: #2ecc71;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins";
}

body {
  font-family: "Open Sans", sans-serif;
  color: var(--text-dark);
  background-color: var(--light-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
header {
  background: linear-gradient(to right, #093b7b, #106ce1);
  padding: 20px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.logoimage {
  height: 70px;
  width: 200px;
  display: block;
  background-image: url(../images/bluefindlelogo.png);
  background-repeat: no-repeat;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-text {
  display: flex;
  flex-direction: column;
  color: white;
  line-height: 1.1;
}

.logo-top {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #4d8ee6;
}

.logo-main {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.logo-tagline {
  font-size: 0.5rem;
  font-weight: 300;
  opacity: 0.9;
  margin-top: 5px;
  letter-spacing: 0.5px;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-family: "poppins";
  font-size: 1.1rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding-bottom: 5px;
}

nav ul li a:hover {
  color: var(--highlight);
}

nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--highlight);
  transition: var(--transition);
}

nav ul li a:hover::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 100vh;
  background:
    linear-gradient(rgba(9, 59, 123, 0.7), rgba(9, 59, 123, 0.7)),
    url("../images/mainbackground.jpg") no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;
  text-align: center;
  color: white;
  padding-top: 80px;
  position: relative;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero p {
  font-size: 1.4rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  background: var(--highlight);
  color: var(--dark-blue);
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 201, 255, 0.3);
}

.cta-button:hover {
  background: white;
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 201, 255, 0.5);
}

/* Services Section */
.services {
  padding: 100px 0;
  background-color: rgba(246, 246, 246, 1);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.8rem;
  color: var(--dark-blue);
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--highlight);
  border-radius: 2px;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  text-align: center;
}

.services-grid > div {
  flex: 0 1 350px;
}

.service-card {
  width: 431;
  height: 426;
  opacity: 1;
  border-radius: 15px;
  border-width: 1px;
  background: rgba(245, 249, 255, 1);
  border: 1px solid rgba(146, 183, 229, 1);
}

.service-card a {
  margin-bottom: 1rem;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(10, 77, 162, 0.15);
}

.service-icon {
  font-size: 3.5rem;
  color: var(--primary-blue);
  margin-bottom: 25px;
}

.service-image {
  height: 100%;
  width: 100%;
  display: block;
  /* background-image: url( ../images/bluefindlelogo.png ); */
  background-repeat: no-repeat;
}

.service-card h {
  color: rgba(255, 255, 255, 1);
  font-size: 20px;
  font-weight: bold;
  /* margin-bottom: 15px;  */
  position: relative;
  bottom: 40px;
  /* text-align: center; */
  /* right: 10px; */
  /* transform: translate(-50%, -50%); */
}

.service-card p {
  color: #666;
  margin-bottom: 20px;
}

.service-card a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.service-card a i {
  margin-left: 8px;
  transition: var(--transition);
}

.service-card a:hover i {
  transform: translateX(5px);
}

/* About Section */
.about {
  padding: 100px 0;
  background: linear-gradient(rgba(9, 59, 123, 1), rgba(9, 59, 123, 1));
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  color: white;
  font-family: "Poppins";
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text h2 {
  font-size: 2.8rem;
  color: white;
}

.about-text p {
  margin-bottom: 20px;
  opacity: 0.9;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.stat-box {
  text-align: center;
  padding: 25px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.stat-box .number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--highlight);
  margin-bottom: 10px;
  font-family: "Montserrat", sans-serif;
}

.about-image {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.ai-chip {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 201, 255, 0.9);
  color: var(--dark-blue);
  padding: 15px 25px;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 201, 255, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(0, 201, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 201, 255, 0);
  }
}

/* Client Logos Section */
.clients {
  padding: 100px 0;
  background-color: var(--light-bg);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  align-items: center;
  justify-items: center;
}

.client-logo {
  padding: 20px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-logo img {
  max-width: 100%;
  max-height: 80px;
  transition: var(--transition);
}

.filter-btn {
  padding: 10px 20px;
  background: var(--light-bg);
  border: 1px solid #ddd;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-blue);
  color: white;
  border-color: var(--primary-blue);
}

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.job-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
  transition: var(--transition);
}

.job-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(10, 77, 162, 0.1);
}

.job-header {
  background: linear-gradient(
    135deg,
    var(--dark-blue) 0%,
    var(--primary-blue) 100%
  );
  color: white;
  padding: 25px;
}

.job-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.9rem;
  opacity: 0.9;
}

.job-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.job-body {
  padding: 25px;
}

.job-description {
  margin-bottom: 25px;
  color: #555;
}

.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.job-tag {
  background: var(--light-bg);
  color: var(--primary-blue);
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}

.job-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.apply-btn {
  background: var(--highlight);
  color: var(--dark-blue);
  padding: 10px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.apply-btn:hover {
  background: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 201, 255, 0.3);
}

.save-job {
  background: none;
  border: none;
  color: #777;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.save-job:hover {
  color: var(--primary-blue);
}

.save-job.saved {
  color: var(--success);
}

.no-jobs {
  grid-column: 1 / -1;
  text-align: center;
  padding: 50px;
  background: var(--light-bg);
  border-radius: 15px;
}

/* Contact Section */
.contact {
  padding: 100px 0;
  background: white;
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
}

.contact-info {
  color: var(--dark-blue);
}

.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 30px;
}

.contact-method {
  display: flex;
  align-items: start;
  margin-bottom: 25px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--light-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: white;
  font-size: 1.3rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 15px;
  font-size: 1rem;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--light-blue);
  box-shadow: 0 0 0 3px rgba(77, 142, 230, 0.2);
}

.contact-form textarea {
  height: 150px;
  resize: vertical;
}

/* Footer */
footer {
  color: white;
  padding: 70px 0 30px;
  background: linear-gradient(90deg, #041831 0%, #093b7b 100%);
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-logo .logo-text {
  margin-bottom: 20px;
}

.footer-logo p {
  opacity: 0.8;
  margin-bottom: 20px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--highlight);
  transform: translateY(-5px);
}

.footer-links h4 {
  color: white;
  margin-bottom: 25px;
  font-size: 1.3rem;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--highlight);
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--highlight);
  padding-left: 5px;
}

.copyright {
  text-align: center;
  padding-top: 30px;
  opacity: 0.7;
  font-size: 0.9rem;
}

.footer-certification {
  display: flex;
  flex-direction: column;
  align-items: start;
  max-width: 160px;
  font-size: 16px;
  gap: 1rem;
}

.footer-certification img {
  height: 160px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate {
  animation: fadeIn 0.8s ease forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}
.delay-2 {
  animation-delay: 0.4s;
}
.delay-3 {
  animation-delay: 0.6s;
}

/* Responsive */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 3rem;
  }
  .about-content {
    grid-template-columns: 1fr;
  }
  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }

  nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--dark-blue);
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: var(--transition);
  }

  nav ul.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

  nav ul li {
    margin: 15px 0;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1.2rem;
  }
  .section-title h2 {
    font-size: 2.3rem;
  }
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.mobile-display {
  display: none;
}

@media (max-width: 480px) {
  .desktop-display {
    display: none;
  }

  .mobile-display {
    display: block;
  }

  /* about */
  .about-text {
    text-align: center;

    h2 {
      font-size: 24px;
    }

    p {
      font-size: 12px;
    }

    .stats-grid {
      display: flex;
      flex-direction: column;

      .stat-box {
        display: flex;
        align-items: center;

        .number {
          flex: 1;
        }
        .label {
          flex: 1;
          text-align: start;
        }
      }
    }
  }

  /* client */
  .clients-grid {
    grid-template-columns: 1fr;
  }

  .client-logo img {
    max-width: 100%;
    max-height: 67px;
    transition: var(--transition);
  }

  /* contact */
  .contact-container {
    gap: 0px;
  }

  /* footer */
  .footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
    font-size: 12px;
  }

  .footer-logo {
    display: flex;
    flex-direction: column;
    gap: 1em;
    align-items: center;
    text-align: center;
    font-size: 12px;
  }

  .footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 14px;
    text-align: center;
    font-size: 12px;
  }

  .footer-links h4 {
    width: max-content;
  }

  .footer-links h4::after {
    width: 100%;
  }

  .footer-links ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
  }

  .footer-links ul li a {
    color: white;
    text-decoration: none;
  }

  .footer-certification {
    font-size: 12px;
    max-width: 157px;
    text-align: center;
    align-items: center;
  }

  .footer-certification img {
    height: 67px;
  }

  .copyright {
    font-size: 12px;
  }
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem; /* 12px top/bottom, 16px left/right */
  background-color: #f3f4f6; /* bg-gray-100 */
  border: 1px solid transparent;
  border-radius: 0.5rem; /* rounded-lg */
  transition: all 0.3s ease;
}
.form-input:focus {
  outline: none;
  border-color: #3b82f6; /* ring-blue-500 */
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.submit-btn {
  background: var(--primary-blue);
  color: white;
  border: none;
  padding: 15px 50px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.submit-btn:disabled {
  background: #999;
  cursor: not-allowed;
}

.submit-btn:hover {
  background: var(--dark-blue);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(10, 77, 162, 0.3);
}
.submit-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.4);
}
.notification {
  padding: 0.75rem 1rem;
  border-radius: 12px; /* rounded-md */
  font-size: 0.875rem; /* text-sm */
  transition: opacity 300ms ease-in-out;
}

/* Show button */
.show-popup {
  cursor: pointer;
}

/* Overlay container */
.popup-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  overflow: auto;
}

/* When visible */
.popup-container.visible {
  display: flex;
}

/* Popup box */
.popup-container .popup-box {
  width: 90%;
  max-width: 800px;
  max-height: 70%;
  background: #f6f6f6;
  border-radius: 20px;
  animation: popupFade 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
  overflow: auto;
}

/* Top row: image + close button */
.popup-box .top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1em;
}

#system-list-container {
  max-height: 250px;
  overflow-y: auto; /* Enables vertical scrolling */
  padding-right: 10px; /* Space for the scrollbar */
  margin-top: 1rem;
}

#system-list-container::-webkit-scrollbar {
  width: 6px;
}
#system-list-container::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 10px;
}

.top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1em;
  flex-wrap: wrap; /* allow wrapping on small screens */

  .image-container {
    flex: 1;
    /* max-width: 10px; */
  }
}

/* Image */
.popup-box .popupimage {
  width: 100%;
  max-height: 200px;
  height: auto;
  border-bottom-right-radius: 50%;
  object-fit: cover; /* crop if needed */
  overflow: hidden;
  border-top-left-radius: 20px;
}

/* Close button */
.popup-box .close-btn {
  margin: 0 1rem;
  font-size: 30px;
  color: var(--primary-blue);
  cursor: pointer;
}

.popup-box .close-btn:hover {
  color: #333;
}

/* Heading */
.popup-box h1 {
  margin: 15px 0 10px;
  color: rgba(9, 59, 123, 1);
  font-weight: bold;
  font-size: 1.8rem;
  text-align: left;
}

.popup-box .system-list-card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 3%;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 850px;
}

/* Logo and Text Block */
.popup-box .system-list-card-left {
  display: flex;
}

.popup-box .logo {
  width: 50px;
  height: auto;
  margin-right: 16px;
  object-fit: cover;
}

.popup-box .system-list-card-text h3 {
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 6px;
  text-align: left;
}

.popup-box .system-list-card-text p {
  font-size: 14px;
  color: #555;
  max-width: 500px;
  text-align: left;
}

/* Demo Button */
.popup-box .system-list-card button {
  background-color: #00b5e2;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.popup-box .system-list-card button:hover {
  background-color: #009dc2;
}

/* Paragraph */
/* .popup-box p {
  color: #333;
  line-height: 1.5;
  font-size: 1rem;
  border-radius: 10px;
  border: 1px solid rgba(146, 183, 229, 1);
  padding: 3%;
  text-align: left;
} */

/* Fade-in animation */
@keyframes popupFade {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
