/* ======================================= */
/*               FONT IMPORT              */
/* ======================================= */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Abolition&display=swap');


/* 
   NOTE: You use 'Abolition' in #companyName, 
   but it's not included in the import above. 
   Make sure to import or load 'Abolition' 
   as well if it's a custom font.
*/

/* ======================================= */
/*                 GLOBAL                 */
/* ======================================= */
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: 'Roboto', sans-serif; /* a default fallback */
}

a {
  color: #00aeef;
  text-decoration: none; /* If you want to remove underline */
}

/* ======================================= */
/*               CONTAINER                */
/* ======================================= */
.container {
  position: relative;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
}

/* ======================================= */
/*               HEX GRID                 */
/* ======================================= */
#hex-grid {
  height: 100vh;
  background: #1F1F1F;
}
#hex-grid .grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('images/grid.svg') repeat;
  background-size: 500px;
  z-index: 1;
}
#hex-grid .light {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 15em;
  height: 15em;
  filter: blur(15px);
  background: linear-gradient(90deg, #335bf4 0%, #2ae9c9 100%);
  z-index: 0;
}

/* ======================================= */
/*              COMPANY NAME              */
/* ======================================= */
#companyName {
  font-family: 'Abolition', sans-serif; /* Fallback if Abolition not loaded */
  font-size: 25px;
  color: #00aeef;
  background-color: transparent;
  position: absolute;
  letter-spacing: 10px;
  top: 2%;
  left: 45%;
  z-index: 2;
}

/* ======================================= */
/*             BUTTONS & IMAGES           */
/* ======================================= */
#login-button,
#contact-button {
  background-color: transparent;
  border: none;
  position: absolute;
  z-index: 1;
  cursor: pointer;
}

#login-button {
  width: 50px;
  height: 50px;
  top: 5%;
  left: 88%;
}
#contact-button {
  width: 55px;
  height: 60px;
  aspect-ratio: 1 / 1; /* Might need fallback for older browsers */
  top: 15%;
  left: 88%;
}

#login-image,
#center-image,
#button-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#center-button {
  width: 300px;
  height: 300px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: transparent;
  border: none;
  z-index: 2;
  cursor: pointer;
}

/* ======================================= */
/*         POPUPS / CONTAINERS            */
/* ======================================= */
#company-popup-container {
  width: 70%;
  padding: 5px;
  position: fixed;
  top: 53%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  display: block; /* Hidden by default */
}

#policies-container {
  width: 70%;
  padding: 5px;
  position: fixed;
  top: 53%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  display: none; /* Hidden by default */
}

#contact-container,
#login-container,
#registration-container {
  width: 50%;
  padding: 5px;
  position: fixed;
  top: 53%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  display: none; /* Hidden by default */
}


#company-popup-content,
#contact-content,
#login-content,
#registration-content,
#policies-content {
  scrollbar-color: #00aeef #141c27; /* For Firefox */
  font-family: 'Roboto', sans-serif; 
  font-size: 20px;
  letter-spacing: 0.5%; /* Might want px/em instead of % */
  position: relative;
  color: #a4acd6;
  width: 90%;
  max-width: 1500px;
  margin: 0 auto;
  background: #141c27d1;
  padding: 30px 30px 20px; /* top/right/bottom/left */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.185);
  border: 1px solid #00aeef;
  height: 800px;
  overflow-y: auto;
}

/* Language switcher in About container */
.language-switcher {
  position: absolute;
  top: 10px;
  right: 10px;
}
.lang-video {
  width: 70px;
  height: 40px;
  cursor: pointer;
}

/* ======================== */
/*     Videos Section       */
/* ======================== */
.videos-section {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.videos-section video {
  width: 100%;
  max-width: 800px;
  margin-bottom: 20px;
}

/* Registration icon */
.address-card-icon {
  font-size: 50px;
}

/* Close button in the loginForm, etc. */
.close-wrapper {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
}
.close-icon {
  padding-right: 5px;
  font-size: 30px;
}

/* Eye icon inside password fields, etc. */
.eye-icon {
  font-size: 21px;
}

/* Company details text */
.company-details {
  font-size: 12px;
  line-height: 1;
  color: #a4acd6;
}

/* Scrollbar styling for WebKit-based browsers */
#company-popup-content::-webkit-scrollbar,
#policies-content::-webkit-scrollbar {
  width: 12px;
}
#company-popup-content::-webkit-scrollbar-thumb,
#policies-content::-webkit-scrollbar-thumb {
  background-color: #00afef53;
}
#company-popup-content::-webkit-scrollbar-track,
#policies-content::-webkit-scrollbar-track {
  background-color: #141c27;
}

/* Headings inside popups */
#company-popup-content h1 {
  font-size: 36px;
  color: #a4acd6;
}
#policies-content h1 {
  font-size: 25px;
  color: #a4acd6;
}
#policies-content h2 {
  font-size: 22px;
  color: #a4acd6;
}
#policies-content h3 {
  font-size: 20px;
  color: #a4acd6;
}
#policies-content h4 {
  font-size: 18px;
  color: #a4acd6;
}
#policies-content p {
  font-size: 14px;
  color: #a4acd6;
}

/* ======================================= */
/*            HIDDEN CLASS                */
/* ======================================= */
.hidden {
  display: none;
}

/* ======================================= */
/*               FORMS                    */
/* ======================================= */
form {
  width: 100%;
  max-width: 800px;
}

.input-group {
  margin-bottom: 0;
  position: relative;
  width: 95%;
}

label {
  padding: 10px;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  color: #00aeef;
  cursor: text;
  transition: 0.5s;
}

input,
textarea {
  /* Using display or block/inline-block is normal. 
     'position: flex;' is invalid. */
  display: block;
  width: 100%;
  padding: 10px;
  /* outline: none; if you want no outline on focus */
  border: 1px solid #00aeef;
  color: #a4acd6;
  font-size: 18px;
  background: transparent;
  resize: vertical; /* Only vertical resizing */
  max-width: 100%;
  margin-bottom: 30px;
}

button {
  padding: 10px 0;
  color: #00aeef;
  background: transparent;
  border: 1px solid #00aeef;
  width: 100%;
  cursor: pointer;
  margin-bottom: 30px;
}

/* Floating labels effect */
input:focus ~ label,
input:valid ~ label,
textarea:focus ~ label,
textarea:valid ~ label {
  top: -33px;
  font-size: 12px;
  color: #005979; 
}

/* ======================================= */
/*             CLOSE BUTTONS              */
/* ======================================= */
.close-button-company,
.close-button-contact,
.close-button-policies {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  background: #00aeef;
  color: #000;
  border: none;
  text-align: center;
  line-height: 20px;
  cursor: pointer;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 4;
}

/* ======================================= */
/*         ERROR & SUCCESS MESSAGES       */
/* ======================================= */
#message-sent-popup {
  font-size: 20px;
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #141c27d1;
  color: #00aeef;
  padding: 15px 20px;
  border-radius: 5px;
  display: none;
  opacity: 0; /* Start invisible */
  transition: opacity 0.5s ease-in-out;
  z-index: 1000;
}

#error-message,
#login-error,
#registration-error {
  color: red;
  margin: 10px 0;
  padding: 5px;
  border-radius: 5px;
}

/* ======================================= */
/*              POLICIES BOX              */
/* ======================================= */
#policies {
  font-size: 13px;
  position: fixed;
  top: 25%;
  left: 35%;
  background-color: #141c27d1;
  color: #00aeef;
  padding: 10px;
  border-radius: 5px;
  display: none;
  z-index: 3;
}

/* ======================================= */
/*               FOOTER                   */
/* ======================================= */
#footer {
  font-size: 13px;
  position: fixed;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  width: 100%;
  background-color: transparent;
  color: #00aeef;
  padding: 10px;
  z-index: 4;
}

/* ======================================= */
/*        MEDIA QUERIES (MOBILE)          */
/* ======================================= */
@media (max-width: 600px) {

  .container {
    padding: 5px;
    max-height: 90%;
  }

  /* Popup containers on mobile */
  #company-popup-container,
  #contact-container,
  #login-container,
  #registration-container,
  #policies-container {
    box-sizing: border-box;
    width: 90%; /* More responsive width */
    padding: 5px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #000; /* or #141c27d1 if you prefer the same style */
    display: flex;    /* Overriding 'display: none' from above if you want popups visible by default? */
  }

  /* Popup content on mobile */
  #company-popup-content,
  #contact-content,
  #policies-content,
  #login-content,
  #registration-content {
    box-sizing: border-box;
    scrollbar-color: #00aeef #141c27;
    font-family: 'Palatino Linotype', 'Book Antiqua', serif; /* Example alternative font? */
    font-size: 18px;
    letter-spacing: 0.5%;
    position: relative;
    color: #a4acd6;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    background: #141c27d1;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.185);
    border: 1px solid #00aeef;
    height: 80vh;
    overflow-y: auto;
  }
  
  @media (max-width: 600px) {
  #myVideo {
    max-width: 100%;
    /* or any specific changes for mobile */
  }
}


  /* Adjust company name on mobile */
  #companyName {
    font-size: 13px;
    letter-spacing: 7px;
    top: 0%;
    left: 10vh;
  }

  /* Adjust buttons on mobile */
  #login-button {
    width: 40px;
    height: 40px;
    top: 0%;
    left: 5%;
  }
  #contact-button {
    width: 40px;
    height: 45px;
    top: 0%;
    left: 80%;
  }

  /* Footer on mobile */
  #footer {
    font-size: 8px;
    position: absolute; 
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 5px;
    z-index: 2;
  }
}