/* ------------------- */
/* RESET & BASE STYLES */
/* ------------------- */
:root {
  --color-primary: #27807e;
  --color-primary-dark: #003d3b;
  --color-light: #E5F4F1;
  --color-white: #ffffff;
  --color-dark: #333;
  --color-gray: #555;

  --font-family: 'Poppins';
  --transition-fast: 0.3s ease;

  --fs-h1: clamp(2.2rem, 5vw + 1rem, 2.8rem);
  --fs-h2: clamp(1.75rem, 4vw + 1rem, 2.25rem);
  --fs-h3: clamp(1.25rem, 2vw + 1rem, 1.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--color-dark);
  background-color: var(--color-light);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a,
button {
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-primary-dark);
  outline-offset: 2px;
  border-radius: 2px;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h1 {
  font-size: var(--fs-h1);
}

h2 {
  font-size: var(--fs-h2);
  color: var(--color-primary);
}

h3 {
  font-size: var(--fs-h3);
}

.container {
  width: 80%;
  max-width: 1200px;
  margin-inline: auto;
}

section {
  padding-block: 4rem;
}

.h-content {
  margin-bottom: 3rem;
  text-align: center;
}

.h-content p {
  color: var(--color-gray);
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------- */
/* NAVIGATION          */
/* ------------------- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1rem 3rem;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
  background-color: var(--color-primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-white);
}
.logo h3{
 font-size:1.5rem;   
}

.logo-img {
  width: 80px;
  height: auto;
}

.nav-toggle {
  display: block;
  z-index: 1001;
  padding: 0.5rem;
  background: transparent;
  border: none;
}

.hamburger {
  position: relative;
  display: block;
  width: 25px;
  height: 2px;
  background: var(--color-white);
  transition: var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 25px;
  height: 2px;
  background: var(--color-white);
  transition: var(--transition-fast);
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  bottom: -8px;
}

#nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

#nav-toggle[aria-expanded="true"] .hamburger::before {
  transform: translateY(8px) rotate(45deg);
}

#nav-toggle[aria-expanded="true"] .hamburger::after {
  transform: translateY(-8px) rotate(-45deg);
}

#nav-menu {
  position: fixed;
  inset: 0;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  list-style: none;
  font-size: large;
  background: var(--color-primary);
}

#nav-menu.active {
  display: flex;
}

#nav-menu a {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 2rem;
  font-weight: 400;
  color: var(--color-white);
}

#nav-menu a:not(.cbt):hover {
  color: var(--color-primary);
  background-color: var(--color-light);
  border-radius: 10px;
  transform: scale(1.2);
}

#nav-menu a.active-link {
  color: var(--color-primary);
  background-color: var(--color-light);
  border-radius: 10px;
}

.cbt {
  border: 1px solid var(--color-white);
  border-radius: 20px;
}

.cbt:hover {
  transform: scale(1.2);
}

.dropdown-menu {
  display: none;
}

/* ------------------- */
/* HERO SECTION        */
/* ------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100vh;
  padding: 0;
}

#heroImage {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 40, 39, 0.6);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 3rem 2rem 2rem;
  color: var(--color-white);
}

.hero-text {
  max-width: 80ch;
  margin-inline: auto;
}

.hero-text h1 {
  margin-bottom: 1rem;
}

.hero-text p {
  margin-bottom: 2rem;
  font-size: 1.2rem; /* Adjusted mobile/tablet size */
  text-align: justify;
  opacity: 0.9;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.buttons button,
.buttons .btn {
  display: inline-block;
  padding: 0.8rem 1.7rem;
  font-size: 1rem;
  color: var(--color-white);
  background-color: var(--color-primary);
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.buttons button:hover,
.buttons .btn:hover {
  color: var(--color-primary);
  background-color: var(--color-white);
  transform: translateY(-5px);
}

/* ------------------- */
/* SERVICES SECTION    */
/* ------------------- */
.services-section {
  background-color: var(--color-light);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.service-card {
  display: flex; /* Tells the card to use flexbox for its children */
  flex-direction: column; /* Stacks the items (image, h3, p, button) vertically */
  justify-content: space-between; /* Pushes the button to the bottom */
  padding: 2rem;
  background-color: var(--color-white);
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.service-card .doodle {
  width: 150px;
  height: 120px;
  margin-inline: auto;
  margin-bottom: 1rem;
}

.service-card p {
  /* flex-grow: 1;  <-- REMOVE THIS LINE */
  margin-bottom: 1.5rem;
  text-align: left;
}

.readmore {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  color: var(--color-white);
  background-color: var(--color-primary);
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.readmore:hover {
  transform: translateY(-5px);
}

/* ------------------- */
/* ABOUT SECTION       */
/* ------------------- */
.about-section {
  background-color: var(--color-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.about-card {
  padding: 2rem;
  background-color: var(--color-light);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.about-card:hover {
  transform: translateY(-5px) !important;
}

.about-card p {
  text-align: left;
}

.about-doodle {
  width: 100px;
  margin-inline: auto;
  margin-bottom: 1rem;
}

/* ------------------- */
/* BENEFITS (TIMELINE) */
/* ------------------- */
.benefits-section {
  background-color: var(--color-light);
}

.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 30px;
  bottom: 150px;
  left: 28px;
  width: 4px;
  background-color: var(--color-primary);
  opacity: 20%;
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 70px;
}

.timeline-icon {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  background-color: var(--color-white);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.timeline-icon img {
  width: 35px;
}

.timeline-content {
  padding: 1.5rem;
  background-color: var(--color-white);
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.timeline-content h3 {
  color: var(--color-primary);
}

/* ------------------- */
/* INDUSTRIES SECTION  */
/* ------------------- */
.industries-section {
  background-color: var(--color-white);
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.industry-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background-color: var(--color-light);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.industry-card:hover img {
  transform: scale(1.1);
}

.industry-card img {
  width: 60px;
  margin-bottom: 1rem;
  transition: var(--transition-fast);
}

.industry-card h3 {
  font-size: 1rem;
  color: var(--color-dark);
}

/* ------------------- */
/* CONTACT SECTION     */
/* ------------------- */
.contact-section {
  background-color: var(--color-light);
}

.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  max-width: 450px;
  padding: 2rem;
  background: linear-gradient(180deg, rgba(66, 163, 163, 0.43) 0%, rgba(67, 178, 178, 0.39) 100%);
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  font-family: inherit;
  font-size: 1rem;
  background: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
}

.form-group label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0 4px;
  color: var(--color-gray);
  background-color: var(--color-white);
  pointer-events: none;
  transition: all 0.3s ease;
}

.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group textarea:focus+label,
.form-group textarea:not(:placeholder-shown)+label {
  top: -0.75rem;
  left: 0.75rem;
  font-size: 0.8rem;
  color: var(--color-primary);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
}

.contact-form button {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  color: var(--color-white);
  background-color: var(--color-primary);
  border: none;
  border-radius: 6px;
}

.contact-form button:hover {
  transform: translateY(-3px);
}

.form-illustration {
  display: none;
}

fieldset.form-group {
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

fieldset legend {
  padding-inline: 0.5rem;
  color: var(--color-gray);
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-item label {
  color: var(--color-dark);
}

.checkbox-item input {
  width: auto;
}

/* ------------------- */
/* FOOTER              */
/* ------------------- */
.footer {
  padding-block: 4rem 2rem;
  color: var(--color-white);
  background-color: var(--color-primary);
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  width: 90%;
  margin-inline: auto;
  padding-left: 2rem;
  text-align: left;
}

.footer h2,
.footer h3 {
  margin-bottom: 1rem;
  color: var(--color-light);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
}

.footer-links a,
.footer-contact a {
  color: var(--color-white);
}

.footer-links a:hover,
.footer-contact a:hover {
  text-decoration: underline;
}

.footer address,
.footer p {
  margin-bottom: 1rem;
  font-style: normal;
}

.footer address .location {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.social-links img {
  width: 40px;
}

.social-links a:hover {
  transform: scale(1.1);
}

.footer-brand img {
  display: none;
}

.australia-location {
  margin-top: 1rem;
}

/* -------------------------- */
/* MEDIA QUERIES              */
/* -------------------------- */
@media (max-width: 767px) {
  .hero {
    background: linear-gradient(rgba(0, 40, 39, 0.7), rgba(0, 40, 39, 0.7)), url('Illustrations/HOME/HERO/hero-fallback.jpg') no-repeat center center/cover;
  }
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .industry-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .timeline {
    max-width: 900px;
    margin-inline: auto;
  }

  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline-item {
    width: 50%;
    padding-left: 0;
    padding-right: 70px;
    text-align: right;
  }

  .timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 70px;
    padding-right: 0;
    text-align: left;
  }

  .timeline-icon {
    right: -30px;
    left: auto;
  }

  .timeline-item:nth-child(even) .timeline-icon {
    right: auto;
    left: -30px;
  }

  .hero-content {
    text-align: left;
  }

  .hero-text {
    margin-inline: 0;
  }

  .buttons {
    justify-content: flex-start;
  }

  .contact-container {
    flex-direction: row;
  }

  .form-illustration {
    display: block;
    flex: 1;
  }

  .contact-form {
    flex: 1;
  }

  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    text-align: left;
  }

  .social-links,
  .footer-brand {
    justify-content: flex-start;
  }
}

@media (min-width: 1024px) {
  /* This rule has a typo and will cause issues */
  p {
    font-size: 1rem;
  }
  
  #navbar {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .nav-toggle {
    display: none;
  }

  #nav-menu {
    position: static;
    display: flex;
    flex-direction: row;
    gap: 3rem;
    width: auto;
    height: auto;
    background: transparent;
  }

  #nav-menu a {
    font-size: 0.9rem;
  }

  /* Main dropdown menu style */
  .dropdown-candidates:hover .dropdown-menu{
    position: absolute;
    top: 90%;
    right: 4.5rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: fit-content;
    padding: 20px 25px !important;
    background: rgb(39, 128, 126, 0.4);
    border-radius: 12px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(50%);
    transition: 0.4s ease;
  }
  .dropdown-about:hover .dropdown-menu{
    position: absolute;
    top: 90%;
    right: 19.5rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: fit-content;
    padding: 20px 25px !important;
    background: rgb(39, 128, 126, 0.4);
    border-radius: 12px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(50%);
    transition: 0.4s ease;
  }
  .dropdown-services:hover .dropdown-menu{
    position: absolute;
    top: 90%;
    right: 10.5rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: fit-content;
    padding: 20px 25px !important;
    background: rgb(39, 128, 126, 0.4);
    border-radius: 12px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(50%);
    transition: 0.4s ease;
  }
  .dropdown-services::after {
    content: "";
    position: absolute;
    top: 70%;
    right: 19rem;
    width: 8%;
    height: 40px;

  }

  .dropdown-about::after {
    content: "";
    position: absolute;
    top: 70%;
    right: 28rem;
    width: 8%;
    height: 40px;

  }
  .dropdown-candidates::after {
    content: "";
    position: absolute;
    top: 70%;
    right: 12.5rem;
    width: 8%;
    height: 40px;

  }

  /* Adjusted position for scrolled navbar */
  #navbar.scrolled .dropdown-about:hover .dropdown-menu,
  #navbar.scrolled .dropdown-services:hover .dropdown-menu,
  #navbar.scrolled .dropdown-candidates:hover .dropdown-menu {
    top: 100%;
    background: rgb(39, 128, 126, 0.7);
  }

  .dropdown-menu a {
    width: 13rem;
    font-size: 1rem !important;
    text-align: left;
    border-style:solid;
    border-width:2px;
    border-color:rgb(255, 255, 255, 0.1);
    border-radius:10px;
  }

  .hero-text {
    max-width: 120ch;
  }

  .hero-text h1 {
    font-size: 2.2rem;
    line-height: 1.3;
  }

  .hero-text p {
    font-size: 1.5rem;
  }

  .hero-content {
    padding: 6rem 8rem 2rem;
  }

  .contact-container {
    margin-top: -1rem;
    margin-right: 10rem;
  }

  .industry-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: 700px;
    margin: 0 auto;
  }

.services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-illustration {
    position: relative;
    z-index: 1;
    max-width: 16%;
    margin-top: 30%;
  }

  .footer {
    padding-block: 4rem 0rem;
  }

  .footer-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    font-size: 0.9rem !important;
  }

  .footer-details{
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 70px;
  }

  .footer-brand{
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .footer-brand img {
    display: block;
    height: 250px;
    width: 300px;
  }

  .footer-brand h2 {
    color: var(--color-light);
    font-size: 1.3rem;
  }

  .social-links {
    display: flex;
    gap: 35px;
  }

  .social-links img {
    width: 50px;
  }
}