/* ========================================
   Navigation & Language System Styling
   ======================================== */

/* Navigation Container */
nav {
  background-color: #000000;
  opacity: 60%;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  position: relative;
}

/* Logo Styling */
.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.logo-img {
  height: 45px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  display: inline-block;
  color: var(--primary-pink);
}

/* Language Switcher */
.language-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#language-switcher {
  padding: 0.5rem 1rem;
  border: 2px solid var(--white);
  border-radius: 4px;
  background-color: transparent;
  color: var(--white);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

#language-switcher:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

#language-switcher:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

#language-switcher option {
  background-color: var(--primary-pink);
  color: var(--white);
}

/* Navigation Menu */
.nav-menu {
  list-style: none;
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  flex: 1;
  align-items: center;
  justify-content: flex-start;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-item > a,
.dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1rem;
  white-space: nowrap;
}

.nav-item > a:hover,
.dropdown-toggle:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

/* Dropdown Toggle */
.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  white-space: nowrap;
}

.dropdown-toggle::after {
  content: '▼';
  font-size: 0.7rem;
  transition: transform 0.3s ease;
  display: inline-block;
}

.dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(-180deg);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--dark-pink);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  z-index: 2000;
  transition: all 0.3s ease;
}

.dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  padding: 0.75rem 1.5rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.dropdown-menu a:first-child {
  padding-top: 1rem;
}

.dropdown-menu a:last-child {
  padding-bottom: 1rem;
}

.dropdown-menu a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  padding-left: 2rem;
}

/* Hamburger Menu */
.hamburger-menu {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 0.5rem;
  z-index: 2001;
}

.hamburger-menu span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* Navigation Overlay */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Responsive Navigation */
@media (max-width: 768px) {
  .hamburger-menu {
    display: flex;
  }

  .navbar-container {
    padding: 0 1rem;
    gap: 1rem;
  }

  .nav-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background-color: var(--primary-pink);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 2000;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-item {
    width: 100%;
    flex-direction: column;
    gap: 0;
  }

  .nav-item > a,
  .dropdown-toggle {
    width: 100%;
    justify-content: flex-start;
    padding: 1rem 1.5rem;
    border-radius: 0;
  }

  .nav-overlay {
    display: block;
  }

  .dropdown-menu {
    position: static;
    background-color: rgba(0, 0, 0, 0.2);
    box-shadow: none;
    border-radius: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: max-height 0.3s ease;
    flex-direction: column;
    min-width: auto;
  }

  .dropdown-menu.active {
    max-height: 500px;
  }

  .dropdown-menu a {
    padding-left: 3rem;
    padding-right: 1rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    display: block;
    width: 100%;
  }

  .dropdown-menu a:first-child {
    padding-top: 0.75rem;
  }

  .dropdown-menu a:last-child {
    padding-bottom: 0.75rem;
  }

  .dropdown-menu a:hover {
    background-color: rgba(0, 0, 0, 0.2);
    padding-left: 3.5rem;
  }

  .dropdown-toggle {
    width: 100%;
    justify-content: flex-start;
  }

  .dropdown-toggle::after {
    margin-left: auto;
  }

  .nav-item > a,
  .dropdown-toggle {
    padding: 0.75rem 1rem;
  }

  .logo-text {
    display: none;
  }

  .language-switcher {
    display: none;
  }
}

@media (max-width: 500px) {
  .navbar-container {
    padding: 0 1rem;
  }

  .logo {
    font-size: 1.4rem;
  }

  .logo-img {
    height: 35px;
  }
}

/* RTL Support */
html[dir="rtl"] .navbar-container {
  flex-direction: row;
  direction: ltr;
}

html[dir="rtl"] .nav-menu {
  direction: ltr;
  flex-direction: row;
}

html[dir="rtl"] .nav-item > a,
html[dir="rtl"] .dropdown-toggle {
  direction: rtl;
}

html[dir="rtl"] .dropdown-toggle::after {
  margin-left: 0;
  margin-right: 0.5rem;
}

html[dir="rtl"] .dropdown-menu {
  left: 0;
  right: auto;
  direction: rtl;
}

html[dir="rtl"] .dropdown-menu a:hover {
  padding-left: 2rem;
  padding-right: 1.5rem;
}

html[dir="rtl"] .language-switcher {
  direction: ltr;
}

/* Mobile RTL adjustments */
@media (max-width: 768px) {
  html[dir="rtl"] .nav-menu {
    left: auto;
    right: 0;
    transform: translateX(100%);
  }

  html[dir="rtl"] .nav-menu.active {
    transform: translateX(0);
  }
}

/* Hero Section with Video */
.hero {
  background-image: url(../assets/images/bg.jpg);
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 3rem 2rem 4rem;
  text-align: center;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.hero-content {
  width: 100%;
  max-width: 1000px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: slideInDown 0.8s ease;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  max-width: 600px;
  animation: slideInUp 0.8s ease;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Video Container */
.hero-video-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 2rem auto;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-video {
  width: 100%;
  height: auto;
  display: block;
  min-height: 300px;
}

/* CTA Buttons */
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn {
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 600;
  display: inline-block;
}

.btn-primary {
  background-color: var(--white);
  color: var(--primary-pink);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--primary-pink);
}

/* Mobile Hero */
@media (max-width: 768px) {
  .hero {
    padding: 2rem 1rem 3rem;
    min-height: auto;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .hero-video {
    min-height: 250px;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

/* Accessibility */
.hamburger-menu:focus-visible,
.dropdown-toggle:focus-visible,
.nav-item > a:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

/* Skip to content link (for accessibility) */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}
