/*=============== 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,
      #046561);
  --first-gradient-lighten: linear-gradient(90deg,
      #7a9695);
  --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%);
  --border-color: hsl(228, 99%, 98%);


  --hue: 245;
  /* --first-color: hsl(var(--hue), 55%, 55%); */
  /* --first-color-light: hsl(var(--hue), 55%, 65%);
  --first-color-alt: hsl(var(--hue), 50%, 50%);
  --title-color: hsl(var(--hue), 30%, 95%);
  --text-color: hsl(var(--hue), 20%, 80%);
  --text-color-light: hsl(var(--hue), 20%, 70%); */
  --body-color: #1B1839;
  /* --container-color: hsl(var(--hue), 40%, 20%); */

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Syne", sans-serif;
  --biggest-font-size: 3rem;
  --big-font-size: 1.5rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --h4-font-size: .9rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;


  /*========== 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);
  background-color: var(--body-color);
  color: var(--text-color);
  overflow-x: hidden;
}

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;
}

.bg__background_video {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background-color: transparent;
}

.background-clip {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -2;
  transform: translateX(-50%) translateY(-50%);
  object-fit: cover;
}

/* Dark overlay */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  /* Adjust darkness here for better readability */
  z-index: -1;
}

.home {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
  padding-bottom: 5rem;
  /* Shifting content up by adding bottom padding */
}

.home__data {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: left;
}

@media screen and (min-width: 992px) {
  .home__data {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4rem;
  }

  .home__data-left {
    flex: 1.5;
    text-align: left;
  }

  .home__data-right {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.subscribe__container {
  background-color: var(--body-color);
  padding: 3rem 2rem;
  width: 100%;
  max-width: 900px;
  border-radius: 1.25rem;
  border: 6px solid var(--first-color-lighten);
  text-align: center;
}

.subscribe__description {
  color: hsl(228, 90%, 92%);
  font-size: var(--small-font-size);
  margin-bottom: 2rem;
  width: 100%;
  max-width: 700px;
  margin-inline: auto;
}

.footer {
  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;
}



.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-color: transparent;
  z-index: var(--z-fixed);
  transition: background-color .4s, backdrop-filter .4s;
}

/* Blur header */
.blur-header {
  background-color: hsla(0, 0%, 10%, .6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px); /* For Safari */
}

.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: .25rem;
}

.nav__logo span {
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
  transition: color .4s;
}

.nav__logo i {
  color: var(--first-color);
  font-size: 1.5rem;
}

.nav__toogle,
.nav__close {
  font-size: 1.5rem;
  color: var(--white-color);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: color .4s;
}

/* Navigation for mobile devices */
@media screen and (max-width: 1150px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    background-color: var(--black-color);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px); /* For Safari */
    width: 80%;
    height: 100vh;
    padding: 7.5rem 3.5rem 0;
    border-left: 2px solid var(--black-border);
    transition: right .4s;
  }


}

.nav__list {
  display: flex;
  flex-direction: column;
  row-gap: 4rem;
}

.nav__link {
  position: relative;
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
}

.nav__link::after {
  content: '';
  width: 0;
  height: 2px;
  background-color: var(--white-color);
  position: absolute;
  left: 0%;
  bottom: -.5rem;
  transition: width .4s;
}

.nav__link:hover::after {
  width: 70%;

}

.nav__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

/* 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%, .1);

}

.bg-header .nav__logo span,
.bg-header .nav__toogle,
.bg-header .nav__link {
  color: var(--title-color);
}
 */

/* ACTIVE LINK */
.active-link::after {
  width: 60%;
}


/* Remove redundant background-clip definition */
/* .background-clip {
  position: absolute;
  right: 0%;
  bottom: 0%;
  z-index: -1;
} */
@media (min-aspect-ratio:16/9) {
  .background-clip {
    width: 100%;
    height: auto;
  }
}

@media (max-aspect-ratio:16/9) {
  .background-clip {
    width: auto;
    height: 100%;
  }
}


/* Dark overlay - unified with the one above */
/* .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  z-index: -1;
} */


/*=============== SYSTEMS SECTION STYLING ===============*/

.systems__subtitle {
    display: block;
    font-size: var(--small-font-size);
    font-weight: var(--font-bold);
    color: var(--first-color);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

/* Residential Section */
.residential {
    background-color: var(--white-color);
    padding-bottom: 5rem;
}

.residential__heading {
    text-align: left !important;
    margin-bottom: 3rem !important;
    font-size: 1.5rem !important;
    color: var(--black-color) !important;
}

.systems__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media screen and (min-width: 992px) {
    .systems__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.system-card {
    background-color: #F8F9FA;
    padding: 2.5rem 2rem;
    border-radius: 4px;
    border-top: 4px solid var(--first-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.system-card--popular {
    background-color: #141B2D;
    color: var(--white-color);
    position: relative;
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-top-color: #00D26A;
}

@media screen and (max-width: 991px) {
    .system-card--popular {
        transform: scale(1);
    }
}

.popular-badge {
    position: absolute;
    top: 0;
    right: 2rem;
    background-color: #00D26A;
    color: #141B2D;
    font-size: 10px;
    font-weight: var(--font-bold);
    padding: 4px 8px;
    border-radius: 0 0 4px 4px;
}

.system-card__name {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: inherit;
}

.system-card--popular .system-card__name {
    color: var(--white-color);
}

.system-card__tagline {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
    margin-bottom: 2.5rem;
}

.system-card--popular .system-card__tagline {
    color: #A0AEC0;
}

.system-card__specs {
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.system-card__specs li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #E2E8F0;
    padding-bottom: 0.75rem;
}

.system-card--popular .system-card__specs li {
    border-bottom-color: #2D3748;
}

.spec__label {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
}

.system-card--popular .spec__label {
    color: #A0AEC0;
}

.spec__value {
    font-weight: var(--font-bold);
    font-size: var(--small-font-size);
    color: var(--black-color);
}

.system-card--popular .spec__value {
    color: var(--white-color);
}

.system-card__button {
    margin-top: auto;
    width: 100%;
    text-align: center;
    background: transparent;
    border: 1px solid var(--gray-border);
    color: var(--black-color);
    padding: 1rem;
    border-radius: 4px;
    font-size: var(--small-font-size);
}

.system-card--popular .system-card__button {
    background-color: #00D26A;
    border-color: #00D26A;
    color: #141B2D;
}

.system-card__button:hover {
    background-color: var(--first-color);
    color: var(--white-color);
    border-color: var(--first-color);
    box-shadow: none;
}

.system-card--popular .system-card__button:hover {
    background-color: #05f07a;
    border-color: #05f07a;
    color: #141B2D;
}

/* Commercial Section */
.commercial {
    background-color: #F8F9FA;
    padding-block: 5rem;
}

.commercial__heading {
    text-align: left !important;
    margin-bottom: 3rem !important;
    font-size: 1.5rem !important;
    color: var(--black-color) !important;
}

.commercial__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media screen and (min-width: 768px) {
    .commercial__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 1024px) {
    .commercial__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.commercial__item {
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.commercial__item:hover {
    transform: translateY(-5px);
}

.commercial__icon {
    font-size: 2rem;
    color: #00D26A;
}

.commercial__item span {
    font-size: var(--small-font-size);
    font-weight: var(--font-semi-bold);
    color: var(--black-color);
    line-height: 1.4;
}

.systems__footer-note {
    margin-top: 4rem;
    text-align: center;
    font-size: var(--small-font-size);
    color: var(--text-color-light);
    font-style: italic;
}

/* Navigation quote button */
@media screen and (min-width: 1150px) {
    .nav__button {
        display: block !important;
        background-color: var(--black-color);
        color: var(--white-color);
        font-weight: var(--font-bold);
        border: none;
    }
    
    .nav__button:hover {
        background-color: var(--first-color);
        box-shadow: 0 4px 12px hsla(var(--hue), 100%, 50%, 0.2);
    }
}



/*=============== HOME ===============*/
.home__content {
  row-gap: 2.5rem;
}

.home__data {
  text-align: center;
}

.home__title {
  color: var(--white-color);
  font-size: 3rem;
  font-weight: var(--font-bold);
  margin-bottom: 1rem;
}

.home__description {
  margin-bottom: 1.3rem;
  color: var(--white-color);
  font-weight: var(--font-regular);
  font-size: 1rem;
}

.home__buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.home__info {
  display: flex;
  justify-content: center;
  column-gap: 4.5rem;
}

.home__info-title {
  color: var(--second-color);
  font-size: var(--big-font-size);
  font-weight: var(--font-bold);
  margin-bottom: .5rem;
}

.home__info-description {
  font-size: var(--small-font-size);
  color: var(--white-color);
}

.home__images {
  position: relative;
  justify-self: center;
}

.home__img-1 {
  width: 250px;
  margin-left: 3.5rem;
}

.home__img-2 {
  width: 150px;
  border: 5px solid var(--black-color);
  position: absolute;
  left: 0;
  bottom: -3.5rem;
}

.home__lines {
  position: absolute;
  top: 0%;
  left: 0%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right;
}

.home__title_h3 {
  color: var(--white-color);
  font-size: var(--h4-font-size);
}

/*=============== BUTTON ===============*/
.button {
  background: var(--first-gradient);
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
  padding: 1rem 2rem;
  transition: box-shadow .4s;
}

/* .button {
  display: inline-flex;
  background: var(--first-gradient);
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
  padding: 1rem 2rem;
  transition: box-shadow .4s;
} */

.button:hover {
  box-shadow: 0 8px 32px hsla(18, 95%, 55%, .3);
  color: var(--white-color);
}

.button__link {
  display: flex;
  align-items: center;
  column-gap: .25rem;
  color: var(--first-color);
}

.button__link span {
  font-weight: var(--font-semi-bold);
}

.button__link i {
  font-size: 1.5rem;
  transition: transform .4s;
}

.button__link:hover i {
  transform: translateX(.25rem);
}


/*=============== SERVICES (Three Smart Ways) ===============*/
.services {
  background-color: var(--body-color);
  padding: 5rem 0;
}

.services__header {
  text-align: center;
  margin-bottom: 3rem;
}

.services__subtitle {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 1rem;
}

.services__section-title {
  color: var(--white-color);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media screen and (min-width: 768px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background-color: hsla(255, 10%, 20%, 0.4);
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--first-color);
}

.service-card__image-wrapper {
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.service-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card__img {
  transform: scale(1.05);
}

.service-card__content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card__title {
  color: var(--white-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card__text {
  color: var(--text-color-light);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--first-color);
  font-weight: 600;
  font-size: 0.95rem;
  transition: gap 0.3s ease;
}

.service-card__link:hover {
  gap: 0.8rem;
}


/*=============== WHO WE HELP ===============*/
.who {
  background-color: var(--white-color);
}

.who__container {
  padding-block: 5rem;
  grid-template-columns: 1fr;
  row-gap: 3.5rem;
}

.who__subtitle {
  color: var(--first-color);
  font-weight: var(--font-semi-bold);
  margin-bottom: 1rem;
  display: block;
}

.who__heading {
  text-align: left;
  margin-bottom: 1.5rem !important;
  font-size: 2.5rem !important;
  color: var(--black-color) !important;
}

.who__description {
  margin-bottom: 2.5rem;
  color: var(--text-color);
  font-weight: var(--font-medium);
}

.who__content-right {
  display: flex;
  flex-direction: column;
  row-gap: 2.5rem;
}

.who__item-header {
  display: flex;
  align-items: center;
  column-gap: 1.5rem;
  margin-bottom: 1rem;
}

.who__number {
  background-color: #0033FF;
  color: var(--white-color);
  padding: 0.5rem 0.75rem;
  font-weight: var(--font-bold);
  font-size: 1.25rem;
  border-radius: 4px;
}

.who__item-title {
  font-size: 1.5rem;
  color: var(--black-color);
}

.who__item-description {
  color: var(--text-color);
  line-height: 1.6;
}

.who__divider {
  width: 100%;
  height: 1px;
  background-color: var(--gray-border);
}

@media screen and (min-width: 1024px) {
  .who__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 7rem;
    align-items: flex-start;
  }
}

/*=============== BENEFITS ===============*/
.benefits {
  background-color: var(--white-color);
}

.benefits__container {
  padding-block: 5rem;
  grid-template-columns: 1fr;
  row-gap: 3.5rem;
}

.benefits__image {
  justify-self: center;
}

.benefits__img {
  width: 100%;
  border-radius: 1.5rem;
  object-fit: cover;
}

.benefits__subtitle {
  color: var(--first-color);
  font-weight: var(--font-semi-bold);
  margin-bottom: 1rem;
  display: block;
  text-align: left;
}

.benefits__title {
  text-align: left !important;
  margin-bottom: 2rem !important;
  font-size: 2.5rem !important;
  color: var(--black-color) !important;
  line-height: 1.2 !important;
}

.benefits__button {
  margin-bottom: 3.5rem;
  display: inline-block;
}

.benefits__list {
  display: flex;
  flex-direction: column;
  row-gap: 2rem;
}

.benefits__item {
  display: flex;
  column-gap: 1.5rem;
  align-items: flex-start;
}

.benefits__icon {
  font-size: 2rem;
  color: var(--black-color);
  background-color: #f0f0f0;
  padding: 0.75rem;
  border-radius: 4px;
}

.benefits__item-title {
  font-size: 1.25rem;
  color: var(--black-color);
  margin-bottom: 0.5rem;
}

.benefits__item-description {
  color: var(--text-color);
  line-height: 1.6;
}

.benefits__divider {
  width: 100%;
  height: 1px;
  background-color: var(--gray-border);
}

@media screen and (min-width: 1024px) {
  .benefits__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 5rem;
    align-items: center;
  }

  .benefits__image {
    order: -1;
  }
}
.about__container {
  row-gap: 8rem;
}

.about__data {
  text-align: center;
}

.about__description {
  margin-bottom: 2rem;
}

.about__list-item {
  display: flex;
  column-gap: .5rem;
  color: var(--title-color);
}

.about__list i {
  font-size: 1.5rem;
  color: var(--first-color);
}

.about__images {
  position: relative;
  justify-self: center;
}


.about__img-2 {
  width: 400px;
  margin-right: 2.5rem;
}

.about__description {
  font-size: .9rem;
  color: var(--white-color);
  max-width: 800px;
  font-weight: var(--font-medium);
}



/*=============== PROJECTS ===============*/
.projects__title {
  font-size: var(--h3-font-size);
  text-align: center;
  font-weight: var(--font-bold);
  margin-bottom: 1.5rem;
}

.projects {
  padding: 4rem 5%;
  text-align: center;
  background-color: #fff;
}

.projects__title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--second-color);
  margin-bottom: 1rem;
}

.section__title {
  font-size: 2.5rem;
  color: #1a202c;
  margin-bottom: 2rem;
  line-height: 1.4;
}

.typing {
  color: #046561;
}

.projects__name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3748;
  margin-top: 2rem;
  margin-bottom: 0.3rem;
}

.projects__director {
  font-size: 0.9rem;
  color: #718096;
  margin-bottom: 3rem;
}

/* Grid Container - New Layout */
.grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 15px;
  height: 80vh;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem 2rem 2rem;
}

.grid-item {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 8px;
}

/* New Grid Layout: Left | Top-Middle, Bottom-Middle | Right */
.grid-item:nth-child(1) {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  background-image: url('../img/img2.jpg');
}

.grid-item:nth-child(2) {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  background-image: url('../img/Whatsapp\ Cover.jpg');
}

.grid-item:nth-child(3) {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  background-image: url('../img/img3.jpg');
}

.grid-item:nth-child(4) {
  grid-column: 3 / 4;
  grid-row: 1 / 3;
  background-image: url('../img/operationforelectical.jpg');
}

/* Overlay on hover */
.grid-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.grid-item:hover::before {
  opacity: 1;
}

/* Content overlay */
.grid-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  color: white;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.grid-item:hover .grid-content {
  transform: translateY(0);
}

.grid-content h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.grid-content p {
  font-size: 1rem;
  line-height: 1.5;
}

/* Floating Action Button */
.fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background-color: #ff5722;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 1000;
}

.value__accordion-item {
  padding: 1.25rem 1.25rem 1.25rem 1rem;
  width: 100%;
  max-width: 700px;
  align-items: center;
  justify-self: center;
}

.fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .section__title {
    font-size: 2rem;
  }

  .grid-container {
    height: 70vh;
    gap: 10px;
  }

  .grid-content h2 {
    font-size: 1.5rem;
  }

  .grid-content p {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .projects {
    padding: 3rem 3%;
  }

  .section__title {
    font-size: 1.5rem;
  }

  .section__title br {
    display: none;
  }

  .grid-container {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 40vh 40vh;
    height: auto;
    gap: 10px;
    padding: 0 1rem 2rem 1rem;
  }

  .grid-item:nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
  }

  .grid-item:nth-child(2) {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
  }

  .grid-item:nth-child(3) {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }

  .grid-item:nth-child(4) {
    grid-column: 1 / 3;
    grid-row: 3 / 4;
  }

  .grid-content {
    padding: 1.5rem;
  }

  .grid-content h2 {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .projects {
    padding: 2rem 5%;
  }

  .section__title {
    font-size: 1.3rem;
  }

  .grid-container {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 35vh);
    gap: 10px;
  }

  .grid-item:nth-child(1),
  .grid-item:nth-child(2),
  .grid-item:nth-child(3),
  .grid-item:nth-child(4) {
    grid-column: 1 / 2;
    grid-row: auto;
  }

  .grid-content {
    padding: 1rem;
  }

  .grid-content h2 {
    font-size: 1.1rem;
  }

  .grid-content p {
    font-size: 0.85rem;
  }


  .fab {
    width: 50px;
    height: 50px;
    bottom: 1.5rem;
    right: 1.5rem;
    font-size: 1.2rem;
  }

}


/*=============== CONTACT ===============*/
.contact {
  background-color: var(--gray-border);
  padding-block: 5rem;
}

.contact__container {
  row-gap: 2rem;
}

.contact__images {
  position: relative;
  display: flex;
  justify-content: center;
}

.contact__orbe {
  width: 266px;
  height: 316px;
  background-color: hsla(228, 24%, 97%);
  border-radius: 135px 135px 16px 16px;
}

.contact__img {
  position: absolute;
  width: 250px;
  height: 300px;
  overflow: hidden;
  border-radius: 125px 125px 12px 12px;
  inset: 0;
  margin: auto;
  box-shadow: 0 16px 32px hsla(228, 66%, 25%, .25);
}

.contact__description {
  font-size: var(--small-font-size);
  margin-bottom: 2.5rem;
}

.contact__card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem .75rem;
}

.contact__card-box {
  background-color: var(--white-color);
  border: 2px solid var(--border-color);
  padding: 1.25rem .75rem;
  border-radius: .5rem;
  transition: .3s;
}

.contact__card-info {
  display: flex;
  align-items: flex-start;
  column-gap: .75rem;
  margin-bottom: 1.25rem;
}

.contact__card i {
  padding: 0cm;
  background-color: var(--first-color-lighten);
  border-radius: 6px;
  font-size: 1.25rem;
  color: var(--first-color);
}

.contact__card-title {
  font-size: var(--normal-font-size);
}

.contact__card-description {
  font-size: var(--smaller-font-size);
}

.contact__card-button {
  font-size: var(--small-font-size);
  padding: 14px 0;
  width: 100%;
  border-radius: .25rem;
  background: var(--first-gradient-lighten);
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
  box-shadow: none;
  border: none;
}

.contact__card-button:hover {
  background-color: var(--first-color);
  color: #fff;
}

.contact__card-box:hover {
  box-shadow: 0 8px 24px hsla(228, 66%, 45%, .1);
}


.a_button {
  display: inline-flex;
  background: var(--first-gradient);
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
  padding: 1rem 1rem;
  transition: box-shadow .4s;
  text-align: center;
}

.contact__container {
  row-gap: 4rem;
}

.contact__group,
.contact__form {
  gap: 1rem;
}

.contact__form {
  position: relative;
}

.contact__input {
  padding: 1.25rem;
  background-color: var(--white-color);
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
}

.contact__input::placeholder {
  color: var(--text-color-light);
}

.contact__area {
  height: 10rem;
  resize: none;
}

.contact__button {
  margin-top: 1rem;
  cursor: pointer;
}

.contact__social {
  grid-template-columns: repeat(2, max-content);
  justify-content: center;
  column-gap: 3rem;
}

.contact__social-link {
  color: var(--title-color);
  display: inline-flex;
  column-gap: .25rem;
  align-items: center;
  transition: color .4s;
}

.contact__social-link i {
  font-size: 1.5rem;
}

.contact__social-link span {
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
}

.contact__social-link:hover {
  color: var(--first-color-light);
}

.contact__message {
  position: absolute;
  left: 0;
  width: 100%;
  text-align: center;
  bottom: -2rem;
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--white-color);
}

.footer {
  background-color: #0E0F11;
}

/*=============== FOOTER ===============*/
.footer__container {
  row-gap: 2.5rem;
}

.footer__logo {
  color: var(--white-color);
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
  display: inline-flex;
  align-items: center;
  column-gap: .25rem;
  margin-bottom: .75rem;
}

.footer__logo i {
  font-size: 1.25rem;
}

.footer__description,
.footer__link {
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  color: var(--white-color);
}

/*=============== FOOTER ===============*/
.footer {
  background-color: #1B1839;
  padding-block: 5rem 1rem;
}

.footer__container {
  row-gap: 3.5rem;
}

.footer__logo {
  display: flex;
  align-items: center;
  column-gap: .25rem;
  font-weight: var(--font-semi-bold);
  color: #fff;
  margin-bottom: 1.5rem;
}

.footer__description {
  font-size: var(--small-font-size);
  color: hsl(228, 8%, 70%);
  margin-bottom: 2rem;
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 3rem 4rem;
}

.footer__title {
  font-size: var(--h3-font-size);
  color: #fff;
  margin-bottom: 1rem;
}

.footer__links {
  display: grid;
  row-gap: .5rem;
}

.footer__link {
  color: hsl(228, 8%, 70%);
  transition: color .4s;
}

.footer__link:hover {
  color: var(--first-color);
}

.footer__socail {
  display: flex;
  column-gap: 1rem;
}

.footer__socail-link {
  font-size: 1.25rem;
  color: #fff;
  transition: color .4s;
}

.footer__socail-link:hover {
  color: var(--first-color);
}

.footer__info {
  margin-top: 5rem;
  padding-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 1.5rem;
}

.footer__copy, 
.footer__privacy {
  font-size: var(--smaller-font-size);
  color: hsl(228, 8%, 70%);
}

.footer__privacy {
  display: flex;
  column-gap: 1.25rem;
}

.footer__privacy a {
  color: hsl(228, 8%, 70%);
  transition: color .4s;
}

.footer__privacy a:hover {
  color: #fff;
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: .6rem;
  border-radius: .5rem;
  background-color: hsl(228, 8%, 76%);
}

::-webkit-scrollbar-thumb {
  border-radius: .5rem;
  background-color: hsl(228, 8%, 64%);
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(228, 8%, 54%);
}

/*=============== SCROLL UP ===============*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -30%;
  background-color: #25D366;
  box-shadow: 0 8px 12px hsla(228, 66%, 45%, .1);
  display: inline-flex;
  padding: .35rem;
  border-radius: 1rem;
  color: var(--title-color);
  font-size: 3rem;
  z-index: var(--z-tooltip);
  transition: .3s;
}

.scrollup:hover {
  transform: translateY(-.25rem);
  /* color: var(--first-color); */
}

/* Show Scroll Up*/
.show-scroll {
  bottom: 8rem;
}


.desktop-break {
  display: none;
}




/* Show line break on mobile */
.mobile-break {
  display: block;
}

/* Hide line break on laptop / desktop */
@media screen and (min-width: 1150px) {
  .mobile-break {
    display: none;
  }
}




/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 350px) {
  .home {
    position: relative;
  }

  .home__container {
    position: relative;
    row-gap: 3rem;
    padding-block: 2.5rem 6rem;
  }

  .destination__container,
  .gallery__container {
    grid-template-columns: 250px;
  }

  .contact__card {
    grid-template-columns: repeat(1, 180px);
    justify-content: center;
  }

  .contact__img {
    width: 220px;
    height: 260px;
  }

  .contact__orbe {
    width: 236px;
    height: 280px;
  }

  .services__title,
  .section__subtitle {
    padding-top: 100px;
  }

  .home__title_h3 {
    padding-bottom: 300px;
  }
}

@media screen and (min-width: 576px) {
  .contact__card {
    grid-template-columns: repeat(2, 192px);
    justify-content: center;
  }

  .contact__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }

  .contact__images {
    order: 1;
  }

  .contact__card {
    justify-content: initial;
  }
}

@media screen and (min-width: 760px) {

  .services__container,
  .gallery__container {
    grid-template-columns: repeat(2, 300px);
  }

  .destination__container,
  .gallery__container {
    grid-template-columns: repeat(2, 300px);
  }

}


/* Hide home__description on screens below 768px */
@media (max-width: 768px) {
  .home__title_h3 {
    margin-top: 80px;
  }

  .comingdown {
    padding-top: 100px;
  }

  .about__images {
    margin-bottom: 50px;
  }

  .contact__button {
    margin-bottom: 50px;
  }

  .good {
    margin-bottom: 50px;
  }

  .desktop-break {
    display: block;
  }

}



/* For large devices */
@media screen and (min-width: 1150px) {
  .container {
    margin-inline: auto;
  }

  .section {
    padding-block: 7rem 2rem;
  }

  .nav {
    height: calc(var(--header-height) + 2rem);
  }

  .nav__toogle,
  .nav__close {
    display: none;
  }

  .nav__menu {
    width: initial;
  }

  .nav__list {
    flex-direction: row;
    align-items: center;
    column-gap: 3rem;
    margin-right: 10rem;
  }

  .nav__menu a {
    color: var(--white-color);
  }

  /* .bg__header .nav__link {
    color: var(--text-color);
  }

  .bg-header .active-link,
  .bg-header .nav__link:hover {
    color: var(--black-color);
  }

  .bg-header .button,
  .bg-header .button:hover {
    color: var(--white-color);
  } */



  .home__data {
    text-align: initial;
  }


  .home__buttons {
    justify-content: center;
    column-gap: 3rem;
  }

  .home__info {
    justify-content: initial;
    column-gap: 5.5rem;
  }

  .home__info-description {
    font-size: var(--normal-font-size);
  }

  .home__img-1 {
    width: 550px;
    margin-left: 0;
  }

  .home__img-2 {
    width: 350px;
    border-width: 10px;
    left: -7rem;
    bottom: -8rem;
  }

  .home__lines {
    object-position: center;
  }

  .services__container {
    grid-template-columns: repeat(3, 340px);
    gap: 2rem;
  }

  .services__data {
    padding-inline: 2rem;
  }

  .services__title {
    font-size: var(--h2-font-size);
  }

  .services__img {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: cover;
    transform-origin: center;
    transition: transform 0.6s ease;
    will-change: transform;
    z-index: 0;
    backface-visibility: hidden;
  }

  .about__container {
    grid-template-columns: repeat(2, 480px);
    column-gap: 9rem;
    padding-block: 3rem 2rem;
  }


  .about__img-1 {
    width: 370px;
    border-width: 10px;
    top: -9rem;
    left: 11rem;
  }

  .about__img-2 {
    width: 500px;
    border-radius: 10px;
  }

  .about__data,
  .about__data :is(.section__title, .section__subtitle) {
    text-align: initial;
  }

  .about__list {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 3.5rem;
  }

  .contact__container {
    align-items: flex-start;
    column-gap: 5rem;
  }

  .contact__orbe {
    width: 501px;
    height: 641px;
    border-radius: 258px 258px 16px 16px;
  }

  .contact__img {
    width: 461px;
    height: 601px;
    border-radius: 238px 238px 12px 12px;
  }

  .contact__img img {
    max-width: initial;
    width: 490px;
  }

  .contact__description {
    font-size: var(--normal-font-size);
    margin-bottom: 2.5rem;
  }

  .contact__card {
    grid-template-columns: repeat(2, 200px);
  }

  .contact__card-box {
    padding: 28px 1.5rem 1.5rem;
  }

  .contact__input {
    padding-left: 2.25rem;
    padding-right: 9.25rem;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    background-color: var(--container-color);
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
  }

  .contact__images {
    margin-top: 100px;
  }

}

@media screen and (min-width: 1023px) {
  .show-scroll {
    bottom: 3rem;
    right: 3rem;
  }

}

/*=============== FOOTER BREAKPOINTS ===============*/
@media screen and (min-width: 768px) {
  .footer__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 1150px) {
  .footer__container {
    grid-template-columns: repeat(2, max-content);
    justify-content: space-between;
  }
  .footer__content {
    grid-template-columns: repeat(4, max-content);
  }
}

/*=============== PORTFOLIO SECTION ===============*/
.portfolio {
    padding-block: 5rem;
    background-color: var(--white-color);
}

.portfolio__header {
    text-align: left;
    margin-bottom: 3rem;
}

.portfolio__subtitle {
    display: block;
    font-size: var(--small-font-size);
    font-weight: var(--font-bold);
    color: var(--first-color);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.portfolio__title {
    text-align: left;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--black-color);
}

.portfolio__description {
    color: var(--text-color-light);
    font-size: var(--normal-font-size);
    max-width: 500px;
}

.portfolio__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem 2rem;
}

@media screen and (min-width: 768px) {
    .portfolio__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.portfolio__card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.portfolio__img-wrapper {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.portfolio__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio__card:hover .portfolio__img {
    transform: scale(1.05);
}

.portfolio__card-title {
    font-size: 1.1rem;
    font-weight: var(--font-bold);
    color: var(--black-color);
    margin-bottom: 0.25rem;
}

.portfolio__card-description {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
    line-height: 1.5;
}

.portfolio__footer {
    margin-top: 3.5rem;
}

.button__link {
    display: flex;
    align-items: center;
    column-gap: 0.5rem;
    color: var(--first-color);
    font-weight: var(--font-bold);
    transition: column-gap 0.3s;
}

.button__link:hover {
    column-gap: 0.75rem;
}

/*=============== WHY UGOTECH ===============*/
.why {
    padding-block: 5rem;
}

.why__header {
    text-align: left;
    margin-bottom: 3rem;
}

.why__container {
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

.why__card {
    background-color: var(--white-color);
    padding: 2.5rem 2rem;
    border: 1px solid var(--gray-border);
    border-radius: 4px;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.why__card:hover {
    transform: translateY(-0.5rem);
    border-color: var(--first-color);
}

.why__icon {
    font-size: 2.5rem;
    color: var(--first-color);
    margin-bottom: 1.5rem;
    display: block;
}

.why__card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.why__card-description {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
    line-height: 1.6;
}

/*=============== PROCESS ===============*/
.process {
    padding-block: 5rem;
    background-color: #F8F9FA;
}

.process__header {
    text-align: left;
    margin-bottom: 3rem;
}

.process__container {
    grid-template-columns: repeat(1, 1fr);
    gap: 3rem;
}

.process__card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.process__number {
    font-size: 3rem;
    font-weight: 800;
    color: #E2E8F0;
    line-height: 1;
}

.process__icon {
    font-size: 1.5rem;
    color: #48BB78;
    margin-bottom: 0.5rem;
    display: block;
}

.process__card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.process__card-description {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
    line-height: 1.6;
}

/*=============== PROVEN EXECUTION ===============*/
.proven {
    padding-block: 8rem;
}

.proven__container {
    text-align: center;
}

.proven__title {
    font-size: 3rem;
    margin-bottom: 4rem;
    font-weight: 800;
    line-height: 1.2;
}

.proven__list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin-inline: auto;
}

.proven__item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background-color: #F8F9FA;
    border-radius: 8px;
    text-align: left;
}

.proven__icon {
    font-size: 1.5rem;
    color: #48BB78;
}

.proven__description {
    font-weight: 600;
    font-size: var(--normal-font-size);
    color: var(--black-color);
}

/* Media Queries for New Sections */
@media screen and (min-width: 768px) {
    .why__container {
        grid-template-columns: repeat(2, 1fr);
    }
    .process__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 1150px) {
    .why__container {
        grid-template-columns: repeat(4, 1fr);
    }
    .process__container {
        grid-template-columns: repeat(4, 1fr);
    }
}

/*=============== CALL TO ACTION ===============*/
.cta {
    padding-block: 8rem;
    background-color: #0E0D1B; /* Darker than body color */
    text-align: center;
}

.cta__title {
    font-size: 2.5rem;
    color: var(--white-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.cta__description {
    color: hsl(228, 8%, 70%);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.cta__buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cta__button {
    display: inline-flex;
    align-items: center;
    column-gap: 0.5rem;
}

.cta__call {
    display: flex;
    align-items: center;
    column-gap: 0.5rem;
    color: var(--white-color);
    padding: 1rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s;
}

.cta__call:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white-color);
}

@media screen and (min-width: 1024px) {
    .cta__title {
        font-size: 3.5rem;
    }
}