/* 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  STYLING  ###################### */


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; 
  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;      
    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: always visible */
.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;
}

.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    STYLING  ###################### */




.Documentation-header {
    text-align: center;
    padding: 3rem 2rem;
    background-color: #0d132d;
    color: #fff;
    font-family: 'Arial', sans-serif;
    border-bottom: 3px solid #fff;
}

.Documentation-header h3 {
    font-size: 2rem;
    margin: 0;
    font-weight: bold;
    letter-spacing: 1px;
}

.Documentation-header h3 u {
    text-decoration-color: #fff;
    text-decoration-thickness: 3px;
}






/* ################################  PAGE CONTENT WRAPPER (background)     STYLING  ###################### */




.content-wrapper {
    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;
}







/* ################################  PAGE CONTENT -- INFO SECTIONS (3)     STYLING  ###################### */





.info-section {
    background: rgba(13, 19, 45, 0.96);
    color: #fff;
    border-radius: 25px;
    padding: 2.5rem 2rem;
    flex: 1 1 500px;
    max-width: 500px;
    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%;
    border: 1px solid black;
    transition: all 0.4s ease-in-out;
}

.info-section:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(255, 255, 255);
    border: 1px solid white;
}


.section-header{
    background-color: rgba(255, 255, 255, 0.96);
    border-radius: 10px;
    position: relative; /* needed to control z-index */
    z-index: 1; 
}


.section-header h2{
    color:black;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 140px;
    height: 3px;
    border-radius: 2px;
    background-color: black;
    bottom: -8px;
    left: 10%;
}


.section-description p{
    border-left: 4px solid white;
    padding-left: 10px;
}


.section-content p{
    display: none;
}

.section-content p{
    background-color: white;
    color: black;
    padding:20px 20px;
    border-radius: 8px;
    border:2px solid black;
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.3);
}


.info-btn {
    background-color: white;
    color: black;
    border: 2px solid black;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.5s ease-in-out,
                color 0.5s ease-in-out,
                border-color 0.5s ease-in-out,
                box-shadow 0.5s ease-in-out,
                transform 0.3s ease-in-out;
    text-decoration: none;
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.1);
}



.info-btn:hover {
    background-color: black;
    color: white;
    border-color: white;
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.4);
}


.poster img {
  display: block;
  max-width: 37%;   
  height: auto;      
  margin: 0 auto;
  border-radius: 20px;
  object-fit: contain;
}


.quote p{
    border-left: 4px solid white;
    padding-left: 10px;
}


@media (max-width: 768px) {
  .poster img {
    max-width: 90%;
  }
}

@media (max-width: 480px) {
  .poster img {
    max-width: 80%;
  }
}






/* ################################  ENSURING   PAGE CONTENT DYNAMIC CHANGE  FUNCTIONALITY  ###################### */



/* Expanded section takes full width */
.info-section.expanded {
    flex: 1 1 100%;
    max-width: 100%;
    width: 100%;
}

/* Hiding description when expanded */

.info-section.expanded .section-description {
    display: none;
}

/* Showing content when expanded */

.info-section.expanded .section-content p {
    display: block;
}











/* ################################ 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;
  }
}