/* Reset */
* {
  box-sizing: border-box;
}

.html{
    scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #111;
}




#preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 9999;
  background: #0d132d; 
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transition: opacity 0.8s ease;
}

#preloader video {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  pointer-events: none; 
}




/* ################################  HEADER  STYLIING  ###################### */


header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 50px;
  background-color: white;
  border-bottom: 2px solid #000000;
  position: relative;
  flex-wrap: wrap; /* allowing wrapping on small screens */
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 1000; 
  background-color: #ffffff; 
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

.logo img {
  height: 80px;
  width: auto;
}

.logo span {
  font-family: 'Italianno', cursive;
  font-size: 2.1rem;
  font-weight: bold;
  color: #000;
  letter-spacing: 1px;
  white-space: nowrap;
}

/* Horizontal menu styling */
.horizontal-menu ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.horizontal-menu ul li a {
  color: rgb(0, 0, 0);
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.7s ease;
}

.horizontal-menu ul li a:hover {
  color: #ffffff;
  background-color: rgb(0, 0, 0);
  border-radius: 5px;
  padding: 10px 10px;
}











/* Languages menu styling */

/* Header language toggle button */


.header-lang-toggle {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: #f5f5f5;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  margin-left: 15px;
}

.header-lang-toggle:hover {
  background: #111;
}

.header-lang-toggle i {
  color: #111;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.header-lang-toggle:hover i {
  color: #fff;
}

/* Dropdown menu exactly like main dropdown */
.header-lang-options {
  position: absolute;
  top: 100%;
  right: 0;
  display: none;       /* hidden by default */
  flex-direction: column;
  background: white;
  border: 1px solid #000;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(13, 19, 45, 0.1);
  width: 220px;
  z-index: 1000;
  user-select: none;
  padding: 15px 0;
}

.header-lang-options ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-lang-options ul li {
  padding: 10px 20px;
}

.header-lang-options .lang-btn {
  position: relative;
  padding: 10px 20px;
  width: 100%;
  color: rgb(0, 0, 0);
  font-weight: bold;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.header-lang-options .lang-btn::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0%;
  height: 100%;
  background-color: rgb(13, 19, 45);
  opacity: 0.9;
  transition: width 0.3s ease;
  z-index: -1;
  border-radius: 4px;
}

.header-lang-options .lang-btn:hover::before,
.header-lang-options .lang-btn:focus::before {
  width: 100%;
}

.header-lang-options .lang-btn:hover,
.header-lang-options .lang-btn:focus {
  color: white;
}

/* Show dropdown when active */
.header-lang-toggle.active .header-lang-options {
  display: flex;
  flex-direction: column;
}


/* ==================== Header Language Dropdown for Small Screens ==================== */
@media (max-width: 768px) {
  .header-lang-options {
    position: absolute; 
    top: 100%;          
    left: 0;
    width: 100%;        
    border: none;
    box-shadow: none;
    padding: 10px 0;
    flex-direction: column;
    background: white;
    display: none;      /* hidden by default */
    z-index: 1000;
  }

  .header-lang-options ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .header-lang-options ul li {
    padding: 12px 30px; 
  }

  /* Show dropdown when toggle active */
  .header-lang-toggle.active .header-lang-options {
    display: flex;
  }
}











/* Hamburger icon styling */
.nav-icon {
  width: 30px;
  height: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}

.nav-icon div {
  height: 4px;
  background-color: black;
  border-radius: 2px;
}

/* Dropdown menu - hidden by default */
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 50px;
  background: white;
  border: 1px solid #000000;
  box-shadow: 0 4px 8px rgba(13, 19, 45, 0.1);
  width: 220px;
  padding: 15px 0;
  display: none;
  flex-direction: column;
  z-index: 1000;
  border-radius: 5px;
  user-select: none;
}

.dropdown-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dropdown-menu ul li {
  padding: 10px 20px;
}

.dropdown-menu ul li a {
  position: relative;
  padding: 10px 20px;
  color: rgb(0, 0, 0);
  text-decoration: none;
  display: block;
  transition: color 0.3s ease;
  overflow: hidden;
}

/* Smooth text color change on hover */
.dropdown-menu ul li a:hover,
.dropdown-menu ul li a:focus {
  color: white;
  outline: none;
}

/* Creating a sliding highlight bar */
.dropdown-menu ul li a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background-color: rgb(13, 19, 45);
  opacity: 0.9;
  transition: width 0.3s ease;
  z-index: -1;
  border-radius: 4px;
}

/* Animating highlight bar on hover/focus */
.dropdown-menu ul li a:hover::before,
.dropdown-menu ul li a:focus::before {
  width: 100%;
}

/* Showing dropdown when active */
.dropdown-menu.active {
  display: flex;
}



/* =========================================================================== */
/* =========================================================================== */



/* Responsive Design adjustments */

@media (max-width: 768px) {
  .horizontal-menu {
    display: none;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    border: none;
    box-shadow: none;
    padding: 10px 0;
  }

  .dropdown-menu ul li {
    padding: 12px 30px;
  }

  header {
    padding: 15px 30px;
  }
}

@media (max-width: 768px) {
  .logo span {
    display: none;
  }
}










/* ################################  PAGE HEADER     STYILING  ###################### */





.careers-header {
    text-align: center;
    padding: 3rem 2rem;
    background-color: #0d132d;
    color: #fff;
    font-family: 'Arial', sans-serif;
    border-bottom: 3px solid #fff;
}

.careers-header h3 {
    font-size: 2rem;
    margin: 0;
    font-weight: bold;
    letter-spacing: 1px;
}

.careers-header h3 u {
    text-decoration-color: #fff;
    text-decoration-thickness: 3px;
}








/* ################################  PAGE CONTENT WRAPPER (BACKGROUND)     STYILING  ###################### */


.careers-overview {
    background: url('../graphics/Bckground-about 2.png') no-repeat center center / cover;
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    align-items: self-start;
    gap: 3rem;
    flex-wrap: wrap;
    font-family: 'Be Vietnam Pro', sans-serif;
    min-height: 935px;
    vertical-align: auto;
}




/* ################################  'OPEN POSITIONS' BLOCK     STYLING  ###################### */




.careers-overview-cards {
    background: rgba(13, 19, 45, 0.96);
    color: #fff;
    border-radius: 25px;
    padding: 2.5rem 2rem;
    flex: 1 1 500px;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.careers-overview-cards:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
}

.careers-overview-cards h2 {
    font-size: 2rem;
    text-align: center;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    border-bottom: 2px solid #fff;
    padding-bottom: 0.5rem;
}

/* Individual Overview Card */
.overview-card {
    background: #fff;
    color: #111;
    padding: 2rem;
    border-radius: 18px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.overview-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.overview-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-decoration: underline;
    text-decoration-color: #0d132d;
}

.overview-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333;
}





/* ################################  'INFORMATION' BLOCK     STYLING  ###################### */





/* Info block container */
.careers-info {
    flex: 1 1 500px;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    gap: 2rem;
    background: #fff;
    border-radius: 25px;
    padding: 2.5rem 2rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    min-height: 550px; 
    width: 100%;
}


/* Info block Sections (Dropdown sections) */
.career-info-section {
    background: #f9f9f9;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.career-info-section:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Dropdown sections' Headers */

.career-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #0d132d, #08090a);
    cursor: pointer;
    border-radius: 20px 20px 0 0;
    transition: background 0.3s ease;
}

.career-info-header:hover {
    background: linear-gradient(135deg, #08090a, #0d132d);
}

.career-info-header h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
}

/* Toggle Button */

.toggle-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #fff;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.career-info-section.active .toggle-btn {
    transform: rotate(180deg);
}

/* Dropdown sections' Descriptions */
.career-info-description {
    display: none;
    padding: 1.5rem 2rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333;
}

.career-info-description ul {
    list-style: none; 
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem; 
}

.career-info-description li {
    position: relative;
    padding-left: 2rem; 
    font-size: 1.05rem;
    line-height: 1.6;
    color: #333;
    font-family: 'Be Vietnam Pro', sans-serif;
}

/* Custom checkmark icon */
.career-info-description li::before {
    content: "\2713"; 
    position: absolute;
    left: 0;
    top: 0;
    color: #0d132d; 
    font-weight: bold;
    font-size: 1.2rem;
}

.career-info-section.active .career-info-description {
    display: block;
}




/* =========================================================================== */
/* =========================================================================== */


/* Responsive Design adjustments */

@media (max-width: 1200px) {
    .careers-overview {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }

    .careers-overview-cards,
    .careers-info {
        max-width: 90%;
    }
    .careers-info{
        min-height: 900px; 
    }
}

@media (max-width: 992px) {
    .careers-overview {
        padding: 60px 15px;
    }
    .careers-overview-cards h2,
    .career-info-header h2 {
        font-size: 1.6rem;
    }
    .overview-card h3 {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .careers-overview {
        gap: 2rem;
    }
    .careers-overview-cards h2,
    .career-info-header h2 {
        font-size: 1.5rem;
    }
    .overview-card h3 {
        font-size: 1.3rem;
    }
    .career-info-description {
        font-size: 1rem;
    }
    .career-info-description li::before {
        font-size: 1rem;
        top: 2px;
    }
}











/* ################################  PAGE FOOTER     STYLING  ###################### */






footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 50px 5%; /* make horizontal padding % instead of fixed px */
  background-color: #f8f8f8;
  color: rgb(0, 0, 0);
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 1rem;
  border-top: 2px solid black;
  flex-wrap: wrap; /* allow items to wrap on small screens */
}

.footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

/* Contact links styling */
.left-contact, .right-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgb(0, 0, 0);
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 4px;
  transition: background-color 0.5s ease-in-out, color 0.5s ease-in-out;
  cursor: pointer;
  flex-shrink: 0; 
}

/* Hover effects */
.left-contact:hover, .right-contact:hover {
  background-color: rgb(13, 19, 45);
  color: #f0f0f0;
}

.left-contact:hover i, .right-contact:hover i {
  color: #f0f0f0;
}

/* Footer headings */
footer h5 {
  margin: 0;
  font-weight: 400;
  font-size: 1rem;
}

/* RESPONSIVE: For screens smaller than 768px */
@media (max-width: 768px) {
  .lang-toggle {
    display: none;
  }
}