/*=============== 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,  #001A4D);
}

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;
}

.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;
}

/*=============== 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);
}
/*=============== SERVICES ===============*/
.services {
    margin: 45px;
    padding: 50px 0;
    text-align: center;
}
.services__title {
    font-size: 32px;
    margin-bottom: 10px;
    color: #F7F5FA;
    text-underline-offset: 1rem;
}
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.service__card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}
.service__card:hover {
    transform: translateY(-5px);
}
.service__card img {
    width: 400px;
    height: 270px;
    border-radius: 8px;
    margin-bottom: 15px;
}
.service__title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}
.service__description {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}
.learn-more {
    color: #007bff;
    font-weight: bold;
    cursor: pointer;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}
.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    text-align: left;
}
.modal-close {
    float: right;
    font-size: 20px;
    cursor: pointer;
    color: #333;
}

/*=============== 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;
  }
}

/* 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;
    }
    
    .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;
    } 
    .services__grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(250px, 1fr));
        gap: 20px;
        margin-top: 30px;
    }
     
}
