/* Modern Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
   background: rgba(255, 255, 255, 0.2); /* شفافية */
  backdrop-filter: blur(10px);          /* تغبيش */
  -webkit-backdrop-filter: blur(10px);  /* دعم Safari */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* حدود ناعمة */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* ظل خفيف */
    z-index: 1000;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(212, 175, 55, 0.15);
    padding: 0;
}

.navbar.scrolled .nav-container {
    padding: 15px 20px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 20px;
    transition: padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Logo Styles */
.nav-logo {
    position: relative;
    z-index: 1001;
}

.nav-logo h2 {
    background: linear-gradient(135deg, #D4AF37, #FFD700, #B8860B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.5px;
    position: relative;
    transition: all 0.3s ease;
}

.nav-logo h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    transition: width 0.3s ease;
}

.nav-logo:hover h2::after {
    width: 100%;
}

/* Desktop Navigation */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    padding: 12px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.nav-link:hover {
    color: #D4AF37;
    transform: translateY(-2px);
}

/* CTA Button in Navbar */
.nav-cta {
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    color: #000;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
}

.nav-cta::before {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.nav-cta:hover::before {
    left: 100%;
}

.nav-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4);
    color: white;
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1001;
}

.nav-toggle:hover {
    background: rgba(212, 175, 55, 0.1);
}

.bar {
    width: 28px;
    height: 3px;
    background: #D4AF37;
    margin: 3px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    transform-origin: center;
}

/* Hamburger Animation */
.nav-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.nav-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .nav-container {
        padding: 15px 20px;
    }
    
    .nav-logo h2 {
        font-size: 1.6rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #1c1c1c;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 0;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-item {
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .nav-menu.active .nav-item {
        opacity: 1;
        transform: translateX(0);
    }
    
    .nav-menu.active .nav-item:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active .nav-item:nth-child(2) { transition-delay: 0.2s; }
    .nav-menu.active .nav-item:nth-child(3) { transition-delay: 0.3s; }
    .nav-menu.active .nav-item:nth-child(4) { transition-delay: 0.4s; }
    .nav-menu.active .nav-item:nth-child(5) { transition-delay: 0.5s; }
    .nav-menu.active .nav-item:nth-child(6) { transition-delay: 0.6s; }
    
    .nav-link {
        font-size: 1.4rem;
        padding: 15px 0;
        text-align: center;
    }
    
    .nav-cta {
        font-size: 1.2rem;
        padding: 15px 30px;
        margin-top: 20px;
    }
    
    .nav-toggle {
        display: flex;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 12px 15px;
    }
    
    .nav-logo h2 {
        font-size: 1.4rem;
    }
    
    .nav-link {
        font-size: 1.3rem;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Enhanced focus states for accessibility */
.nav-link:focus,
.nav-cta:focus,
.nav-toggle:focus {
    outline: 2px solid #D4AF37;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .navbar,
    .nav-container,
    .nav-link,
    .nav-cta,
    .nav-toggle,
    .bar,
    .nav-menu,
    .nav-item {
        transition: none;
    }
    
    .nav-link::before,
    .nav-cta::before {
        transition: none;
    }
}

