/* ===== Video Background Area (Header + Main) ===== */
.video-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
  color: white;
}

.video-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

#bgVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0.25));
}

/* ===== Header ===== */
.main-header {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  z-index: 10;
  backdrop-filter: blur(10px);
  border-bottom: 0.5px solid rgba(255,255,255,0.5);
  transition: all 0.3s ease;
  direction: rtl;
}

.main-header.scrolled {
  background: rgba(0, 0, 0, 0.85);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.main-header .container {
  width: 90%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo img {
  height: 50px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}
.logo img:hover {
  transform: scale(1.05);
}

/* ===== Navigation ===== */
nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav .lang { display: none; }

nav ul li a {
  position: relative;
  text-decoration: none;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  padding: 10px 6px;
  transition: color 0.3s ease;
}

nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background-color: #02ab86;
  transition: width 0.4s ease;
}

nav ul li a:hover {
  color: #02ab86;
}

nav ul li a:hover::after {
  width: 100%;
}

nav ul li a.active {
  color: #02ab86;
  font-weight: 600;
}
nav ul li a.active::after {
  width: 100%;
}

/* ===== Language Switch ===== */
.lang a {
  color: #fff;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
}

.lang a:hover,
.lang a.active {
  background-color: #02ab86;
  color: #fff;
  border-color: #02ab86;
  box-shadow: 0 4px 12px rgba(2, 171, 134, 0.4);
  transform: translateY(-2px);
}

/* ===== Hamburger Menu ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 20;
}
.menu-toggle span {
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s ease;
}
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* ===== Hero Section (UPDATED FOR CENTERING) ===== */
main {
  height: 100vh;
  display: flex;
  align-items: center;       
  justify-content: center;   
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
}

main .container {
  width: 90%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;     
  justify-content: center;
}

main .text-content h1 {
  font-size: 55px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 15px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

main .text-content h3 {
  font-size: 32px;
  font-weight: 400;
  margin: 30px 0;
  color: #ddd;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* ===== Centered Buttons (UPDATED) ===== */
main .btn-container {
  display: flex;
  gap: 25px;
  justify-content: center;  
  align-items: center;
  width: 100%;
}

main .btn-primary,
main .btn-secondary {
  text-decoration: none;
  padding: 20px 40px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

main .btn-primary {
  background-color: #02ab86;
  color: #fff;
}
main .btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(2,171,134,0.4);
}

main .btn-secondary {
  border: 2px solid #fff;
  color: #fff;
}
main .btn-secondary:hover {
  background-color: #fff;
  color: #000;
  transform: scale(1.05);
}

/* ===== Scroll Indicator ===== */
.scroll-hint {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
  opacity: 0.8;
}
.mouse {
  width: 28px;
  height: 45px;
  border: 2px solid #fff;
  border-radius: 25px;
  margin: 0 auto 6px;
  position: relative;
}
.mouse::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 10px;
  background: #fff;
  border-radius: 3px;
  animation: scrollDown 1.6s infinite;
}
.scroll-hint span {
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: fadeText 2s infinite;
}

@keyframes scrollDown {
  0% { transform: translate(-50%, 0); opacity: 1; }
  70% { transform: translate(-50%, 20px); opacity: 0.3; }
  100% { transform: translate(-50%, 0); opacity: 1; }
}
@keyframes fadeText {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .menu-toggle { display: flex; }
  .main-header .container > .lang { display: none; }
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transition: right 0.4s ease;
    z-index: 15;
  }
  nav.active { right: 0; }
  nav ul { flex-direction: column; text-align: center; gap: 25px; }
  nav ul li a { font-size: 1.2rem; }
  nav .lang { display: block; }
  nav .lang a {
    background: rgba(2,171,134,0.25);
    border-color: #02ab86;
    padding: 10px 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(2,171,134,0.3);
  }
  nav .lang a:hover {
    background: #02ab86;
    color: #fff;
  }
  main .text-content h1 { font-size: 2.5rem; }
  
}

@media (max-width: 576px) {
  nav { width: 80%; }
  main .text-content h1 { font-size: 1.8rem; text-align: center; }
  main .text-content h3 { text-align: center; font-size: 1rem; }
  main .container { align-items: center; text-align: center; }
  main .btn-container { flex-direction: column; gap: 15px; }
}
