
/* متغيرات عامة */
:root {
  --logo-width: 400px;
}

/* لوجو ثابت على يمين الشاشة */
.fixed-logo {
  position: fixed;
  top: 10px;
  right: 20px;
  z-index: 2000;
}

.fixed-logo img {
  height: 100px;
  width: 260px;
  filter: url(#wave-distort);
  transition: transform 0.6s ease, filter 0.6s ease;
  animation: logoWaveFloat 6s ease-in-out infinite;
}
/* حركة الموجة *//* حركة عائمة مع موج */
@keyframes logoWaveFloat {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(0.5deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}
/* حركة المسح */
@keyframes logoReveal {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}
/* توهج طاقة عالي التقنية */

@media (max-width: 1200px) {
  .fixed-logo img {
    width: 300px;
    height: 60px;
  }
}

@media (max-width: 900px) {
  .fixed-logo img {
    width: 200px;
    height: 50px;
  }
}

@media (max-width: 600px) {
  .fixed-logo img {
    width: 120px;
    height: 36px;
  }
}

.fixed-logo img:hover {
  transform: scale(12);
}
/* =========================
   NAVBAR
========================= */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 112px;
  z-index: 999;
  backdrop-filter: blur(12px);
  background: rgba(11, 60, 93, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s ease;
  padding-right: calc(var(--logo-width) + 40px);
}

.nav-container {
  max-width: 1300px;
  margin: auto;
  padding: 18px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* =========================
   LOGO EFFECTS
========================= */

/* دفع الشعار أكثر لليمين */
.logo {
  position: relative;
  display: flex;
  align-items: center;
  height: 70px; /* أكبر من السابق */
  overflow: visible;
  backdrop-filter: none; /* منع أي غباش للشعار */
  z-index: 10;
}

/* الصورة */
.logo img {
  height: 70px; /* طول كبير وواضح */
  width: 600px; /* عرض أكبر للحفاظ على نسبة الصورة */
  filter: none; /* يحافظ على نسبة الصورة */
  transition:
    transform 0.6s ease,
    filter 0.6s ease;
  animation: subtleFloat 6s ease-in-out infinite;
}

/* Float Animation */
@keyframes subtleFloat {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Hover Cinematic + Glow */
.logo:hover img {
  transform: scale(1.15) translateY(-5px);
  filter: drop-shadow(0 12px 20px rgba(0, 170, 255, 0.6)) brightness(1.1);
}

/* Shine Bar Animation */
.logo::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  transform: skewX(-30deg);
  opacity: 0;
}

/* Glow Pulse Behind Logo */
.logo::before {
  content: "";
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: rgba(0, 170, 255, 0.15);
  border-radius: 50%;
  filter: blur(25px);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.logo:hover::before {
  opacity: 1;
}

/* LINKS */
.nav-links {
  list-style: none;
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-size: 18px;
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}

/* Hover underline animation */
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #f4b41a;
  transition: 0.3s;
  transform: translateX(-50%);
}

.nav-links a:hover::after {
  width: 100%;
}

/* CTA BUTTON */
.nav-btn {
  padding: 10px 26px;
  border-radius: 30px;
  background: linear-gradient(90deg, #f4b41a, #ffd36a);
  color: #222 !important;
  font-weight: 700;
}

.nav-btn:hover {
  box-shadow: 0 10px 30px rgba(244, 180, 26, 0.45);
}

/* SCROLL EFFECT */
.navbar.scrolled {
  background: rgba(11, 60, 93, 0.92);
  padding: 0;
}

/* MOBILE */
@media (max-width: 900px) {
  .nav-container {
    padding: 16px 30px;
  }

  .nav-links {
    gap: 22px;
  }

  .logo span {
    display: none;
  }
  .logo img {
    height: 50px; /* أقل من 70px على الموبايل */
    width: 300px; /* يحافظ على نسبة العرض */
  }
}
/* =========================
   HAMBURGER MENU
========================= */

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  z-index: 1001;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: white;
  border-radius: 6px;
  transition: 0.4s;
}

/* Mobile Nav */
@media (max-width: 900px) {
  .hamburger {
    display: flex;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 900px) {
  .hamburger {
    display: flex;
  }

  nav {
    position: fixed;
    top: 80px;
    right: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(11, 60, 93, 0.95);
    backdrop-filter: blur(14px);
    transform: translateY(-120%);
    transition: transform 0.5s ease;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  nav.active {
    transform: translateY(0);
  }

  .nav-links {
    flex-direction: column;
    gap: 32px;
  }

  .nav-links a {
    font-size: 22px;
  }
}

@media (max-width: 600px) {
 .navbar {
    height: 80px;
  }
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.user-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 120%;
  right: 0;
  background: rgba(11, 60, 93, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 10px 0;
  list-style: none;
  min-width: 160px;
  display: none;
}

.dropdown-menu li {
  padding: 8px 20px;
}

.dropdown-menu a {
  color: white;
  font-size: 14px;
  display: block;
}

.user-dropdown:hover .dropdown-menu {
  display: block;
}
