/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@100..900&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: hsl(18, 95%, 55%);
  --second-color: hsl(42, 98%, 52%);
  --first-gradient: linear-gradient(90deg,
                  hsl(18, 95%, 55%),
                  hsl(18, 98%, 64%));
  --title-color: hsl(255, 12%, 12%);
  --text-color: hsl(225, 12%, 24%);
  --text-color-light: hsl(255, 4%, 70%);
  --body-color: hsl(0, 0%, 100%);
  --container-color: hsl(0, 0%, 100%);
  --white-color: hsl(0, 0%, 100%);
  --black-color: hsl(255, 20%, 10%);
  --gray-border: hsl(255, 6%, 90%);
  --black-border: hsl(255, 10%, 20%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Montserrat", sans-serif;
  --big-font-size: 2.25rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1150px) {
  :root {
    --big-font-size: 3.5rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  color: var(--text-color);
  background: linear-gradient(180deg, black, #001A4D ,#7C88A4);
}

h1, h2, h3, h4 {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding-block: 5rem 1rem;
}
.section__title, 
.section__subtitle {
  text-align: center;
}

.section__title {
  font-size: var(--h1-font-size);
  font-weight: var(--font-bold);
  margin-bottom: 1.5rem;
}

.section__subtitle {
  display: block;
  font-size: var(--normal-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--second-color);
  margin-bottom: .5rem;
}

.main {
  overflow: hidden;
}

/*=============== HEADER & NAV ===============*/
.header{
  position: fixed;
  width: 100%;
  top:0;
  left:0;
  background: transparent;
  z-index: var(--z-fixed);
  transition: background-color 0.4s;
}

.nav{
  position: relative;
  height: var(--header-height);
  display:flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo{
  display: flex;
  align-items: center;
  column-gap: 0.25rem;
}

.nav__logo span{
  color: #F7F5FA;
  font-weight: var(--font-semi-bold);
  transition: color 0.4s;
}

.nav__logo i{
  color: #F7D910;
  font-size: 1.5rem;
}

.nav__toggle,
.nav__close{
  font-size: 1.5rem;
  color:#F7F5FA;
  cursor: pointer;
  transition: color 0.4s;
}


/* Navigation for mobile devices */
@media screen and (max-width:1150px){
  .nav__menu{
    position: fixed;
    top: 0;
    right: -100%;
    background-color: #001A4D;
    width: 80%;
    height: 100%;
    padding: 7.5rem 3.5rem 0;
    transition: right 0.4s;
  }
}

.nav__list{
  display: flex;
  flex-direction: column;
  row-gap: 4rem;
}

.nav__link{
  color:#F7F5FA;
  font-weight: var(--font-semi-bold);
  transition: color 0.4s;
}

.nav__link:hover{
  color:#F7D910;
}

.nav__close {
  display: none; /* Hide by default */
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

/* Show close button when menu is visible */
.show-menu + .nav__close {
  display: block; /* Show when the menu is open */
}


/* Show menu */
.show-menu{
  right: 0;
}

/* Change background header */
.bg-header{
  background-color: var(--body-color);
  box-shadow: 0 4px 16px hsla(255, 90%, 8%, 0.1);
}

.bg-header  .nav__logo span,
.bg-header  .nav__toggle{
  color: black;
}

/* Active link */
.map-form-container {
  display: flex;
  justify-content: space-between; /* Aligns the map and form with space between them */
  gap: 2rem; /* Adds space between the map and form */
  flex-wrap: wrap; /* Ensures that on small screens the elements will stack vertically */
}

.logo__aca {
  display: inline-block;
  text-align: left;
  padding: 8px;
}

.aca__logo {
  max-width: 150px; 
  height: auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.logo__aca:hover .aca__logo {
  transform: scale(1.05);
  opacity: 0.9;
}

/*=============== MAP ===============*/
.map__container {
  width: 48%;
  height: 500px;
  border-radius: 5%;
  margin: 15rem 2rem 2rem 2rem; /* Added top margin similar to form */
  position: relative;
  z-index: -1;
}

#map {
  height: 100%;
  width: 100%;
  border-radius: inherit; /* Matches the container's rounded corners */
}

/*=============== BUTTON ===============*/
.button{
  display: inline-flex;
  background: #F7D910;
  color:#F7F5FA;
  font-weight: var(--font-semi-bold);
  padding: 1rem 2rem;
  transition: box-shadow 0.4s;
}

.button:hover{
  box-shadow: 0 8px 32px hsla(53, 92%, 53%, 1);
  color:#F7F5FA; 
}

.button__link{
  display: flex;
  align-items: center;
  column-gap: 0.25rem;
  color: #F7D910;
}

.button__link span{
  font-weight: var(--font-semi-bold);
}

.button__link i{
  font-size: 1.5rem;
  transition: transform 0.4s;
}

.button__link:hover i{
  transform: translateX(0.25rem);
}
/*=============== MAP ===============*/

/*=============== CONTACT ===============*/
.form__container {
  background-color: #001A4D; 
  color: #F7F5FA; 
  padding: 3rem;
  margin: 8rem 1rem 1rem 2rem;
  max-width: 600px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.form__container h2 {
  font-size: 2rem;
  color: #F7D910; 
  margin-bottom: 1.5rem;
  text-align: center;
}

.form__container form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form__container label {
  font-weight: var(--font-semi-bold);
  color: #F7D910;
}

.form__container input[type="text"],
.form__container input[type="email"],
.form__container textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #F7F5FA;
  border-radius: 4px;
  background-color: #001A4D; 
  color: #F7F5FA;
  transition: border-color 0.3s;
}

.form__container input[type="text"]:focus,
.form__container input[type="email"]:focus,
.form__container textarea:focus {
  border-color: #F7D910; 
  outline: none;
}

.form__container input[type="submit"] {
  background-color: #F7D910;
  color: #001A4D;
  font-weight: var(--font-semi-bold);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s, box-shadow 0.3s;
}

.form__container input[type="submit"]:hover {
  background-color: #e6c700;
  box-shadow: 0 4px 12px rgba(255, 215, 10, 0.5);
}

.form__container select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #F7F5FA;
  border-radius: 4px;
  background-color: #001A4D; 
  color: #F7F5FA;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  appearance: none; 
  -webkit-appearance: none; 
  -moz-appearance: none;
}

.form__container select:focus {
  border-color: #F7D910; 
  outline: none; 
  box-shadow: 0 0 5px rgba(247, 217, 16, 0.6); 
}

.form__container select::-ms-expand {
  display: none;
}

.form__container select {
  position: relative;
  padding-right: 2.5rem;
}

.form__container select::after {
  content: '\25BC'; 
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  font-size: 1rem;
  color: #F7F5FA;
  pointer-events: none; 
}

.form__container select option {
  padding: 0.75rem;
}

.form__container select:disabled {
  background-color: #333; 
  color: #ccc; 
  cursor: not-allowed;
}

/*=============== FOOTER ===============*/
.footer{
  background-color: #001A4D;
  color: #F7F5FA;
  padding-block: 3.5rem 2rem;
}

.footer__container{
  row-gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 2px solid #BAA30C;
}

.footer__logo{
  display: inline-flex;
  align-items: center;
  column-gap: 0.25rem;
}

.footer__logo span{
  color: #F7F5FA;
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
}

.footer__logo i{
  color:#BAA30C;
  font-size: 2rem;
}

.footer__description{
  margin-block: 1.5rem;
}

.footer__email,
.footer__info{
  font-style: normal;
}

.footer__content{
  grid-template-columns: repeat(2, max-content);
  gap: 4rem 3rem;
}

.footer__title{
  font-size: var(--h3-font-size);
  color: #F7F5FA;
  margin-bottom: 1rem;
}

.footer__links,
.footer__list{
  display: grid;
  row-gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer__link{
  color: #F7D910;
  transition: color 0.4s;
}

.footer__link:hover{
  color: #BAA30C;
}

.footer__social{
  display: flex;
  column-gap: 1rem;
}

.footer__social-link{
  font-size: 1.5rem;
  color: #F7F5FA;
  transition: transform 0.4s;
}

.footer__social-link:hover{
  transform: translateY(-0.3rem);
}

.footer__copy{
  display: block;
  text-align: center;
  font-size: var(--small-font-size);
  margin-top: 4rem;
}

/*=============== RESPONSIVE BREAKPOINTS ===============*/

/* Small devices (up to 767px) */
@media screen and (max-width: 767px) {
  .container {
    margin-inline: 1rem;
  }
  .section {
    padding-block: 3rem 1rem;
  }
  .section__title {
    font-size: var(--h2-font-size);
  }
  .section__subtitle {
    font-size: var(--small-font-size);
  }
  .home__container, .about__container, .contact__container, .services__container, .projects__container {
    grid-template-columns: 1fr;
    row-gap: 2rem;
  }
  .nav__menu {
    width: 100%;
  }

  .aca__logo {
    max-width: 100px; 
    height: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  
  .home__info {
    column-gap: 1.5rem;
  }
  .footer__content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .map__container {
    width: 80%; /* Adjusted to be more fluid */
    height: 300px;
    margin: 1.5rem auto;
    right: 0; /* Centered alignment */
}

#map {
    height: 100%;
    width: 100%;
}

.form__container {
    padding: 2rem;
    margin: 4rem auto;
    max-width: 90%;
}

.form__container h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}
}

/* Medium devices (768px - 1024px) */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .section {
    padding-block: 4rem 2rem;
  }

  .footer__content {
    grid-template-columns: repeat(2, 1fr);
  }

  .map__container {
    width: 90%; /* Adjusted to be more fluid */
    height: 400px;
    margin: 1.5rem auto;
    right: 0; /* Centered alignment */
}

#map {
    height: 100%;
    width: 100%;
}

.form__container {
    padding: 2rem;
    margin: 4rem auto;
    max-width: 90%;
}

.form__container h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.footer {
  background-color: #001A4D;
  color: #F7F5FA;
  padding-block: 3.5rem 2rem;
}

.footer__container {
  padding-bottom: 4rem;
  border-bottom: 2px solid #BAA30C;
  display: flex; /* Use flexbox for horizontal alignment */
  flex-direction: column; /* Keep logo and description stacked */
  align-items: center; /* Center items */
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  column-gap: 0.25rem;
}

.footer__logo span {
  color: #F7F5FA;
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
}

.footer__logo i {
  color: #BAA30C;
  font-size: 2rem;
}

.footer__description {
  margin-block: 1.5rem;
}

.footer__email,
.footer__info {
  font-style: normal;
}

.footer__content {
  display: flex; /* Use flexbox for horizontal alignment */
  justify-content: space-between; /* Space between items */
  gap: 10rem; /* Space between columns */
  width: 100%; /* Full width */
  max-width: 1200px; /* Optional: Limit maximum width */
}

.footer__title {
  font-size: var(--h3-font-size);
  color: #F7F5FA;
  margin-bottom: 1rem;
}

.footer__links,
.footer__list {
  display: grid;
  row-gap: 0.75rem;
}

.footer__link {
  color: #F7D910;
  transition: color 0.4s;
}

.footer__link:hover {
  color: #BAA30C;
}

.footer__social {
  display: flex;
  column-gap: 1rem;
}

.footer__social-link {
  font-size: 1.5rem;
  color: #F7F5FA;
  transition: transform 0.4s;
}

.footer__social-link:hover {
  transform: translateY(-0.3rem);
}

.footer__copy {
  display: block;
  text-align: center;
  font-size: var(--small-font-size);
  margin-top: 4rem;
}

}

/* Large devices (1025px and above) */
@media screen and (min-width: 1025px) {
  .home__container {
    position: relative;
    row-gap: 3rem;
    padding-block: 2.5rem 6rem;
  }
  .grid {
    display: grid;
    gap: 1.5rem;
  }
  .container {
    max-width: 1120px;
    margin-inline: 1.5rem;
  }
  * {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
  }
    .container {
      margin-inline: auto;
    }
  
    .section{
      padding-block: 7rem 2rem;
    }
  
    .nav{
      height: calc(var(--header-height) + 2rem);
    }
  
    .nav__toggle,
    .nav__close{
      display:none;
    }
  
    .nav__menu{
      width: initial;
    }
  
    .nav__list{
      flex-direction: row;
      align-items: center;
      column-gap: 4rem;
    }
  
    .bg-header  .nav__link{
      color: var(--text-color);
    }
  
    .bg-header  .nav__link{
      color:#BAA30C;
    }
  
    .bg-header  .button,
    .bg-header  .button:hover{
      color: #F7F5FA;
    }
  
    .footer {
      background-color: #001A4D;
      color: #F7F5FA;
      padding-block: 3.5rem 2rem;
      z-index: 1000;
    }
    
    .footer__container {
      padding-bottom: 4rem;
      border-bottom: 2px solid #BAA30C;
      display: flex; /* Use flexbox for horizontal alignment */
      flex-direction: column; /* Keep logo and description stacked */
      align-items: center; /* Center items */
    }
    
    .footer__logo {
      display: inline-flex;
      align-items: center;
      column-gap: 0.25rem;
    }
    
    .footer__logo span {
      color: #F7F5FA;
      font-size: var(--h3-font-size);
      font-weight: var(--font-semi-bold);
    }
    
    .footer__logo i {
      color: #BAA30C;
      font-size: 2rem;
    }
    
    .footer__description {
      margin-block: 1.5rem;
    }
    
    .footer__email,
    .footer__info {
      font-style: normal;
    }
    
    .footer__content {
      display: flex; /* Use flexbox for horizontal alignment */
      justify-content: space-between; /* Space between items */
      gap: 20rem; /* Space between columns */
      width: 100%; /* Full width */
      max-width: 1200px; /* Optional: Limit maximum width */
    }
    
    .footer__title {
      font-size: var(--h3-font-size);
      color: #F7F5FA;
      margin-bottom: 1rem;
    }
    
    .footer__links,
    .footer__list {
      display: grid;
      row-gap: 0.75rem;
    }
    
    .footer__link {
      color: #F7D910;
      transition: color 0.4s;
    }
    
    .footer__link:hover {
      color: #BAA30C;
    }
    
    .footer__social {
      display: flex;
      column-gap: 1rem;
    }
    
    .footer__social-link {
      font-size: 1.5rem;
      color: #F7F5FA;
      transition: transform 0.4s;
    }
    
    .footer__social-link:hover {
      transform: translateY(-0.3rem);
    }
    
    .footer__copy {
      display: block;
      text-align: center;
      font-size: var(--small-font-size);
      margin-top: 4rem;
    } 
}
