/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --black-color: hsl(220, 24%, 12%);
  --black-color-light: hsl(220, 24%, 15%);
  --black-color-lighten: hsl(220, 20%, 18%);
  --white-color: #fff;
  --body-color: hsl(220, 100%, 97%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Montserrat", sans-serif;
  --normal-font-size: .938rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1024px) {
  :root {
    --normal-font-size: 1rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}



body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--white-color);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container{
  width: 90%;
  margin: auto;
}
.grid{
  display: grid;
  grid-gap: 1.5rem;
}
.logo img{
  width: 350px;
  height: 60px;
}
.image-container {
  position: relative;
  height: 700px;
}

#video-background img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 80%;
  height: 100%;
  background: linear-gradient(to right, rgba(33, 32, 32, 0.7), rgba(54, 54, 54, 0)); 
  z-index: 1;
}
.body {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2; 
  text-align: left;
  color: white;
}
.body p
{
  margin-top: 14px;
  font-size: 20px;
  color: white;
}

/*=============== HEADER ===============*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: transparent;
  z-index: var(--z-fixed);
}
#header {
  transition: background-color 0.5s ease, box-shadow 0.5s ease;
}
.h1
{
    display: inline;
    font-size: 40px;
    font-weight: var(--bold);
    color: var(--darkblue);
    text-shadow: 2px 4px 4px rgba(0, 0, 0, 0.5);
}
section{
  padding: 60px 0;
}
/*=============== CONTACT BODY ===============*/
.contact
{
  width: 100%;
  margin: auto;
}
.contact .container
{
  width: 90%;
  margin: auto;
}
.contact .container h1
{
  text-align: center;
  font-size: 30px;
}
.contactbody
{
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.fieldstitle
{
  margin: 20px 20px 10px 0px; 
  color: grey;
}
.row
{
  margin-left: 20px;
}

.input-field input {
  width: 80%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  resize: none; 
  font-family: Arial, sans-serif; 
}
.input-field input:hover {
  background-color: #f0f0f0;
}
.input-field input:focus {
  outline: none;
  border-color: #5e9ed6;
  box-shadow: 0 0 5px rgba(94, 158, 214, 0.5);
}


.custom-textarea-wrapper textarea {
  width: 80%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  resize: none; 
  font-family: Arial, sans-serif; 
}

.custom-textarea-wrapper textarea:hover {
  background-color: #f0f0f0;
}

.custom-textarea-wrapper textarea:focus {
  outline: none;
  border-color: #5e9ed6;
  box-shadow: 0 0 5px rgba(94, 158, 214, 0.5);
}
button
{
  width: 80%;
  color: white;
  font-size: 16px;
  padding: 20px;
  background:#2f94f2;
  border-radius: 5px;
  border: none;
  margin-top: 20px;
}
.map
{
  height: 90%;
  background: #0779e4;
}
.map iframe
{
    width: 100%;
    height: 100%;
}
/*=============== NAV ===============*/
.nav {
  height: var(--header-height);
}

.nav__logo, 
.nav__burger, 
.nav__close {
  color: var(--white-color);
}
.nav__logo img
{
  width: 350px;
  height: 60px;
}

.nav__data {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  column-gap: .25rem;
  font-weight: var(--font-semi-bold);
}

.nav__logo i {
  font-weight: initial;
  font-size: 1.25rem;
}

.nav__toggle {
  position: relative;
  width: 32px;
  height: 32px;
}

.nav__burger, 
.nav__close {
  position: absolute;
  width: max-content;
  height: max-content;
  inset: 0;
  margin: auto;
  font-size: 1.25rem;
  cursor: pointer;
  transition: opacity .1s, transform .4s;
}

.nav__close {
  opacity: 0;
}

/* Footer Styling */
footer {
  position: relative;
  bottom: 0;
  width: 100%;
}

.footer-distributed {
  background-color: #171c26;
  box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
  width: 100%;
  text-align: center;
  font: bold 16px sans-serif;
  padding: 30px 30px 15px 50px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

/* Footer Sections */
.footer-left,
.footer-center,
.footer-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
}

.footer-left img {
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
}

.footer-links {
  margin: 10px 0;
  color: #ffffff;
  font-size: 14px;
  display: inline-block;
  text-align: center;
  width: 100%;
}

.footer-links a {
  text-decoration: none;
  color: inherit;
  font-size: 13px;
  margin: 0 5px;
  white-space: nowrap;
}

.footer-links a:hover {
  color: #00bcd4;
  text-decoration: underline;
}

.footer-company-name {
  color: #8f9296;
  font-size: 12px;
}

/* Right Section (Now Contact Info) */
.footer-right {
  text-align: left;
  align-self: center;
}

.footer-right div {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.footer-right i {
  background-color: #33383b;
  color: #ffffff;
  font-size: 20px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  text-align: center;
  line-height: 38px;
  margin-bottom: 10px;
}

.footer-right p {
  margin: 0;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.6;
  word-wrap: break-word;
  margin-bottom: 10px;
}

.footer-right p a {
  color: #5383d3;
  text-decoration: none;
}

/* Footer Center (Now About the Company) */
.footer-center {
  text-align: center;
  align-items: center;
  align-self: center;
}

.footer-center span {
  font-size: 16px;
  font-weight: bold;
  color: white;
  margin-bottom: 10px;
}

.footer-center p {
  font-size: 14px;
  line-height: 1.6;
  color: #92999f;
  text-align: center;
}

/* H3 Title Styling */
.footer-distributed h3 {
  color: #ffffff;
  margin: 0 0 15px;
  font: normal 30px 'Cookie', cursive;
  align-self: center;
}

.footer-distributed h3 span {
  color: #5383d3;
}

/* Responsive Styling */
@media (max-width: 880px) {
  .footer-distributed {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 20px;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    width: 100%;
    margin-bottom: 20px;
    align-items: center;
  }

  .footer-links {
    margin: 10px 0;
  }

  .footer-left img {
    margin: 0 auto 15px;
  }
}

@media (max-width: 600px) {
  .footer-center p,
  .footer-right span,
  .footer-company-name {
    font-size: 13px;
  }

  .footer-links a {
    font-size: 12px;
  }

  .footer-right div {
    flex-direction: column;
  }

  .footer-right i {
    width: 30px;
    height: 30px;
    font-size: 16px;
    line-height: 30px;
  }
}

/* Navigation for mobile devices */
@media screen and (max-width: 1118px) {
  .nav__logo img
  {
    width: 250px;
    height: 40px;
  }
  .contactbody
  {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
  }
  .nav__menu {
    position: absolute;
    left: 0;
    top: 2.5rem;
    width: 100%;
    height: calc(100vh - 3.5rem);
    overflow: auto;
    pointer-events: none;
    opacity: 0;
    transition: top .4s, opacity .3s;
  }
  .nav__menu::-webkit-scrollbar {
    width: 0;
  }
  .nav__list {
    background-color: var(--white-color);
    padding-top: 1rem;
  }
  .nav__link {
    background: blue;
  }
  .nav__link:hover {
    background-color: blue;
  }
}


.nav__link {
  color: var(--white-color);
  background-color: transparent;
  font-weight: var(--font-semi-bold);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color .3s;
}
.nav__links {
  color: var(--white-color);
  background-color: transparent;
  font-weight: var(--font-semi-bold);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color .3s;
}

.nav__link:hover {
  background-color: var(--black-color-light);
}
.nav__links:hover {
  background-color: var(--black-color-light);
  color: #0779e4;
}

/* Show menu */
.show-menu {
  opacity: 1;
  top: 3.5rem;
  pointer-events: initial;
}

/* Show icon */
.show-icon .nav__burger {
  opacity: 0;
  transform: rotate(90deg);
}
.show-icon .nav__close {
  opacity: 1;
  transform: rotate(90deg);
}

/*=============== DROPDOWN ===============*/
.dropdown__item {
  cursor: pointer;
}


.dropdown__arrow {
  font-size: 1.25rem;
  font-weight: initial;
  transition: transform .4s;
}

.dropdown__link, 
.dropdown__sublink {
  padding: 1.25rem 1.25rem 1.25rem 2.5rem;
  color: var(--black-color);
  background-color: var(--white-color);
  display: flex;
  align-items: center;
  column-gap: .5rem;
  font-weight: var(--font-semi-bold);
  transition: background-color .3s;
}

.dropdown__link i, 
.dropdown__sublink i {
  font-size: 1.25rem;
  font-weight: initial;
}

.dropdown__link:hover, 
.dropdown__sublink:hover {
  background-color: var(--black-color);
  color: white;
}

.dropdown__menu, 
.dropdown__submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease-out;
}

/* Show dropdown menu & submenu */
.dropdown__item:hover .dropdown__menu, 
.dropdown__subitem:hover > .dropdown__submenu {
  max-height: 1000px;
  transition: max-height .4s ease-in;
  
}

/* Rotate dropdown icon */
.dropdown__item:hover .dropdown__arrow {
  transform: rotate(180deg);
  color: var(--white-color);
}


/*=============== DROPDOWN SUBMENU ===============*/
.dropdown__add {
  margin-left: auto;
}

.dropdown__sublink {
  background-color: var(--black-color-lighten);
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 340px) {
  .container {
    margin-inline: 1rem;
  }
  .contactbody
  {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
  }
  .nav__link {
    padding-inline: 1rem;
  }
}

/* For large devices */
@media screen and (min-width: 1118px) {
  .container {
    margin-inline: auto;
  }

  .nav {
    height: calc(var(--header-height) + 2rem);
    display: flex;
    justify-content: space-between;
  }
  .nav__toggle {
    display: none;
  }
  .nav__list {
    height: 100%;
    display: flex;
    column-gap: 3rem;
  }
  .nav__link {
    height: 100%;
    padding: 0;
    justify-content: initial;
    column-gap: .25rem;
  }
  .nav__link:hover {
    background-color: transparent;
  }

  .dropdown__item, 
  .dropdown__subitem {
    position: relative;
  }

  .dropdown__menu, 
  .dropdown__submenu {
    max-height: initial;
    overflow: initial;
    position: absolute;
    left: 0;
    top: 6rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, top .3s;
  }

  .dropdown__link, 
  .dropdown__sublink {
    padding-inline: 1rem 3.5rem;
  }

  .dropdown__subitem .dropdown__link {
    padding-inline: 1rem;
  }

  .dropdown__submenu {
    position: absolute;
    left: 100%;
    top: .5rem;
  }

  .dropdown__item:hover .dropdown__menu {
    opacity: 1;
    top: 5.5rem;
    pointer-events: initial;
    transition: top .3s;
  }

  .dropdown__subitem:hover > .dropdown__submenu {
    opacity: 1;
    top: 0;
    pointer-events: initial;
    transition: top .3s;
  }
}

/* Modal overlay styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000; /* Ensure it appears above other elements */
}

/* Modal content styling */
.modal-content {
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  min-width: 300px;
}

/* Spinner styling */
.spinner {
  border: 4px solid #f3f3f3; /* Light grey */
  border-top: 4px solid #3498db; /* Blue */
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto 10px auto;
}

/* Spinner animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Success message styling */
#modal-text {
  font-size: 16px;
  color: #333;
  margin-top: 10px;
}
