@import url('https://fonts.googleapis.com/css2?family=Audiowide&family=Knewave&family=Montserrat:ital,wght@0,100..900;1,100..900&family=PT+Mono&family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
} 

body {
    font-family: 'PT Sans', sans-serif;
    font-size: 18px;
    color: #e0e1dd;
}

li, a {
    font-family: 'Audiowide', sans-serif;
    font-size: 16px;
    color: #e0e1dd;
    text-decoration: none;
}

div {
    font-family: 'PT Sans', sans-serif;
    font-size: 18px;
    color: #e0e1dd;
}
/* Header and logo styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 10%;
    background-color: #1B263B;
}

.logo {
    cursor: pointer;
    width: auto;
    height: 30px;
}

.navbar {
    list-style-type: none;
    display: flex;
    align-items: center;
    gap: 15px;           
}

.navbar li {
    display: inline-block;
    padding: 0;
}


.navbar li a {
    transition: all 0.3s ease 0s;
}

.navbar li a:hover {
    color: turquoise;
}

/* Shared button style */
.btn-primary {
  display: inline-block;
  padding: 6px 15px;
  font-size: 14px;
  background-color: rgba(6, 111, 111, 1);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #fff;
  font-family: 'Audiowide', sans-serif;
  text-decoration: none; /* remove underline */
  text-align: center;
}

.btn-primary:hover {
  background-color: rgba(6, 111, 111, 0.8);
}

.navbar .nav-cta {
    margin-left: auto;
}

/* Hamburger hidden by default (desktop) */
.hamburger {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: #e0e1dd;
}

/* Homepage Flexbox Section Styles */
.flex-container-one {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 100px 10%;
    flex-wrap: wrap;
    background-color: #00657A;
    color: #e0e1dd;
} 

.flex-item-left {
    width: 45%;
    text-align: left;
    justify-content: left;
    background-color: #00657A;
}

.flex-item-right {
    width: 45%;
    display: flex;
    justify-content: flex-end;
    background-color: #00657A;
}

.flex-item-left, 
.flex-item-right {
  flex: 1 1 45%; /* side by side on large screens */
}

/* Mobile: stack items */
@media (max-width: 800px) {
  .flex-item-left, 
  .flex-item-right {
    flex: 1 1 100%;
    text-align: center;
}

.home-image {
    width: 60%; /* make image larger on mobile */
  }
}
.home-image {
    width: 40%;
    height: auto;
    margin-left: auto;
    background-color: #00657A;
    border-color: #00657A;
}

/* Keep the flex-container-one button positioned */
.btn-contact {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.flex-container-two{
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 100px 10%;
    background-color: #1B263B;
    color: #e0e1dd;
}   


.intro h1 {
    text-align: center;
}

.flex-container-three {
    display: flex;
    justify-content: center;
    background-color: #00657A;
    color: #e0e1dd;
    padding: 40px 20px;
    text-align: center;
}   

.projects {
    width: 80%;
}

.projects h1 {
    margin-bottom: 20px;
}

.project-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.project-gallery a {
    flex: 1 1 calc(33.333% - 40px); /* 3 per row */
    max-width: 300px;
}

.project-image {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    cursor: pointer;
}

/* Mobile (stack projects) */
@media (max-width: 800px) {
  .project-gallery a {
    flex: 1 1 100%;
    max-width: none;
  }
}

.flex-container-four {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 100px 10%;
    background-color: #1B263B;
    color: #e0e1dd;
    text-align: center;
} 

.cards-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.card {
    flex: 1 1 calc(33.333% - 40px); /* 3 cards per row with 20px gap */
    min-width: 250px; /* ensures cards don't get too small */
}

.card img {
    width: 80px;
    height: auto;
    margin-bottom: 15px;
}

/* Mobile (stack cards) */
@media (max-width: 800px) {
    .card {
        flex: 1 1 100%; /* full width on small screens */
    }
}
.flex-container-five {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 100px 10%;
    background-color: #00657A;
    color: #e0e1dd;
}

/* Contact form styles */
.contact-section {
  background-color: #1B263B; /* dark background */
  color: #e0e1dd;
  display: flex;
  flex-direction: column;
  justify-content: center;   /* centers vertically */
  align-items: center;       /* centers horizontally */
  min-height: 100vh;         /* fill viewport height */
  padding: 20px;
}

.contact-section h1 {
  font-family: 'Audiowide', sans-serif;
  font-size: 28px;
  margin-bottom: 30px;
  text-align: center;
}

.contact-form {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  padding: 40px 30px;
  max-width: 500px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-intro {
  text-align: center;
  margin-bottom: 20px;
  font-size: 16px;
}

.contact-form label {
  font-size: 14px;
  margin-bottom: 5px;
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 15px;
  border: none;
  border-radius: 6px;
  background-color: #d3d3d3;
  font-size: 16px;
  color: #1B263B;
  font-family: 'PT Sans', sans-serif;
}

.contact-form textarea {
  resize: none;
}

.submit-btn {
  margin-top: 15px;
  padding: 10px;
  background-color: #06706F;
  color: #fff;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.submit-btn:hover {
  background-color: #055a59;
}

/* ✅ Responsive adjustments */
@media (max-width: 600px) {
  .contact-form {
    padding: 20px 15px;
  }

  .contact-section h1 {
    font-size: 24px;
  }

  .form-intro {
    font-size: 14px;
  }
}

/* Footer styles */
footer {
    background-color: #1B263B;
    padding: 20px 10%;
    color: #e0e1dd;
    font-family: 'Audiowide', sans-serif;
    font-size: 14px;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-content p {
    flex: 1;
    text-align: center;
}

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

.social-icons a {
    color: #e0e1dd;
    font-size: 18px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: #00B4D8; /* hover color */
    transform: scale(1.2);
}

@media (max-width: 800px) {
  .flex-item-right, .flex-item-left {
    flex: 100%;
  }
}

/* Mobile styles */
@media (max-width: 800px) {
  .hamburger {
    display: block;
  }

  nav {
    position: absolute;
    top: 70px; /* just below header */
    right: 0;
    width: 100%;
    background-color: #1B263B;
    display: none; /* hidden by default */
    flex-direction: column;
    text-align: center;
  }

  nav.active {
    display: flex;
  }

  .navbar {
    flex-direction: column;
    gap: 10px;
    padding: 20px 0;
  }

  .navbar .nav-cta {
    margin-left: 0; /* reset auto margin */
  }
}