/* GLOBAL STYLES */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  font-size: 16px;
  color: #333;
}

/* HEADER */
header {
  background-color: #003366;
  color: #fff;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  height: 40px;
  margin-right: 10px;
}

header p {
  font-size: 18px;
  text-transform: uppercase;
  margin: 0;
  color: white;
}

/* NAVIGATION */
nav {
  display: flex;
  align-items: center;
  position: relative;
}

nav ul {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 10px;
}

nav li {
  display: flex;
  align-items: center;
}

nav a {
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: bold;
  padding: 10px;
  border-radius: 5px;
  display: flex;
}

nav a:hover {
  background-color: #fff;
  color: #003366;
}

nav a:visited {
  color: #fff;
}

nav a:visited:hover {
  color: #003366;
}

/* RATING STARS */
.rating {
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 2px;
  flex-direction: row-reverse;
}

.star {
  font-size: 1.2rem;
  color: white;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.star:hover,
.star:hover ~ .star {
  color: gold;
}

/* MENU ICON & TOGGLE */
.menu-icon {
  display: none;
  font-size: 2em;
  color: white;
  cursor: pointer;
  padding: 0 10px;
}

#menu-toggle {
  display: none;
}

  .popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    opacity: 0;
    z-index:9999;
}

.popup-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 300px;
    position: relative;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 1.5em;
    cursor: pointer;
}

.popup-toggle:empty + .popup {
  display: flex;
  opacity: 1;
}

.popup-toggle:checked + .popup {
  display: none;
  opacity: 1;
}

  .sticky {
    position: sticky;
    top: 0;
  }
  
  /* Main section styles */
  main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
  }
 /* Set the height of the top section */
#top-section {
    height: 500px;
  }
  
  /* Set the background image */
  #top-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  section {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 40px 0;

  }
 


  .home{
    margin: none;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0;
  }
  
  .home:nth-child(even) {
    flex-direction: row-reverse;
  }
  
  section div {
    width: 50%;
  }
  
  section img {
    width: 45%;
    border-radius: 5px;
  }
  
  section h3 {
    margin: 0;
    font-size: 24px;
    margin-bottom: 10px;
    color: #003366;
  }
  .home p {
    font-size: larger;
    font-weight: bold;
  }

  /* Footer styles */
  footer {
    background-color: #003366;
    color: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  footer div {
    width: 20%;
  }

  footer a{
    color: #b3dbff;
  }
  
  footer p {
    margin: 0;
  }

  .job-footer{
    background-color: #003366;
    color: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    float: left;
    width: 97.8%;
  }

  a{
    color: #007bff;
    font-weight: bolder;
  }

  a:visited{
    color: #003366;
    font-weight: bolder;
  }

  .job-footer div {
    width: 20%;
  }

  .job-footer a{
    color: #b3dbff;
  }
  
  .job-footer p {
    margin: 0;
  }

  .animated-button {
    background-color: #3158d4;
    color: rgb(255, 255, 255);
    padding: 15px 30px;
    border-radius: 3px;
    border-width: 3px;
    border-color: #cecece;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    
  }

  /* Hover effect: turns light blue */
  .animated-button:hover {
      background-color: #007bff;
  }

  /* Click effect: scales the button down slightly */
  .animated-button:active {
      transform: scale(0.95);
  }

  .location{
    align-content: center;
    justify-content: center;
    text-align: center;
    display: block;
  }

  .services-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }
  
  .service-item {
    flex-basis: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
  }
  
  .service-item img {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin-bottom: 20px;
  }
  
  .service-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }
  
  .service-item p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 20px;
  }

  .job {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 3rem;
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto;
  }
  
  .job section {
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 2rem;
    width: 100%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    display: block;
  }
  
  .job h1, .job h2, .job h3, .job h4 {
    color: #003366;
    margin-bottom: 1rem;
    text-align: center;
  }
  
  .job p, .job ul {
    text-align: left;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
  }
  
  .job ul {
    padding-left: 1.5rem;
    list-style-type: disc;
  }
  
  /* Media queries */
  @media only screen and (max-width: 600px) {
    header h1 {
      font-size: 24px;
    }
    
    header p {
      font-size: 16px;
      
    }
    
    main {
      padding: 10px;
    }
    
    section {
      flex-direction: column;
      align-items: center;
    }
    
    section img {
      width: 80%;
      margin-bottom: 20px;
    }
    
    section div {
      width: 100%;
    }
    
    nav ul {
      flex-direction: column;
    }
    
    nav li {
      margin: 10px 0;
    }

    .popup-content {
      width: 90%;
    }

    .popup-toggle:empty + .popup {
      display: flex;
      opacity: 1;
    }
    
    .popup-toggle:checked + .popup {
      display: none;
      opacity: 1;
    }

  }
  
  @media only screen and (min-width: 1240px) {
    
    main {
      padding: 50px;
    }
    
    header p {
      margin: 10px;
      margin-right: 20px;
    }
    
    section {
      margin: 80px 0;
    }
    
    section div {
      width: 45%;
    }
    
    section img {
      width: 50%;
      margin-right: 20px;
      margin-left: 20px;
    }
    
    nav {
      margin-left: auto;
    }
    
    footer div {
      margin-left: 250px;
      width: 50%;
    }

    .popup-content {
      width: 400px;
    }
  }

  /* Target Retina and high-resolution displays (like those on MacBook, iPhone, iPad) */
  @media only screen and (min-resolution: 2dppx), /* Modern devices */
  only screen and (-webkit-min-device-pixel-ratio: 2) /* Safari/iOS devices */ {

  /* Styles for Retina or high-resolution displays */
  .popup-content {
    width: 80%;
    font-size: 1.2em; /* Increase font size for high-res screens */
    display: flex;
  }
  }


  /* Target devices with a screen width of 1200px and above (like MacBooks, iMacs) */
  @media only screen and (min-width: 1200px) {
    /* Your Mac-specific styles here */
    .popup-content {
        width: 400px;
    }
  }


/* Mobile styles */
@media only screen and (max-width: 600px) and (-webkit-min-device-pixel-ratio: 2) {

  .popup-content {
    width: 90%;
    font-size: 1.1em; /* Adjust font size for readability */
    z-index: 1000; /* Ensure the pop-up is on top */
    display: none;
  }

  /* Adjust navbar layout */
  .navbar {
      flex-direction: column;
      align-items: flex-start;
  }

  /* Show the menu icon (hamburger) */
  .menu-icon {
      display: block;
  }

  /* Hide the navigation links initially */
  .nav-links {
      display: none;
      width: 100%;
      flex-direction: column;
      align-items: flex-start;
      
  }

  /* Show the dropdown menu when the checkbox is checked */
  #menu-toggle:checked + .menu-icon + .nav-links {
      display: flex;
  }

  /* Style the links to take up full width on mobile */
  .nav-links li {
      width: 100%;
      margin: 10px 0;
  }

  .nav-links a {
      display: none;
      width: 100%;
      text-align: left;
      color: #fff;
      text-decoration: none;
      text-transform: uppercase;
      font-weight: bold;
      padding: 10px;
      border-radius: 3px;
  }

  .nav-links a:hover {
    background-color: #fff;
    color: #003366;
  }
}


