/* ============================================
   ECPSOLUTIONS INC. - Premium Navbar
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 1rem 0;
}

.navbar-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.navbar.scrolled .navbar-bg {
    opacity: 1;
}

.navbar-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.navbar.scrolled .navbar-glow {
    opacity: 1;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 3rem;
    position: relative;
    z-index: 10;
}

/* ============================================
   Brand - Animated Orb Logo
   ============================================ */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo {
    width: 44px;
    height: 44px;
    min-width: 44px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-orb {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orb-core {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle at 30% 30%, #a855f7, #6366f1, #3b82f6);
    border-radius: 50%;
    box-shadow: 
        0 0 30px rgba(168, 85, 247, 0.6),
        0 0 60px rgba(99, 102, 241, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
    animation: orbPulse 3s ease-in-out infinite;
}

@keyframes orbPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 30px rgba(168, 85, 247, 0.6), 0 0 60px rgba(99, 102, 241, 0.4); }
    50% { transform: scale(1.1); box-shadow: 0 0 50px rgba(168, 85, 247, 0.8), 0 0 100px rgba(99, 102, 241, 0.6); }
}

.orb-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid;
    animation: ringRotate 8s linear infinite;
}

.orb-ring-1 {
    width: 28px;
    height: 28px;
    border-color: rgba(168, 85, 247, 0.5);
    animation-duration: 6s;
}

.orb-ring-2 {
    width: 36px;
    height: 36px;
    border-color: rgba(99, 102, 241, 0.3);
    animation-duration: 8s;
    animation-direction: reverse;
}

.orb-ring-3 {
    width: 44px;
    height: 44px;
    border-color: rgba(59, 130, 246, 0.2);
    animation-duration: 10s;
}

@keyframes ringRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.orb-ring::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(135deg, #a855f7, #6366f1);
    border-radius: 50%;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.8);
}

.orb-ring-2::before { width: 3px; height: 3px; top: auto; bottom: -1.5px; }
.orb-ring-3::before { width: 2px; height: 2px; top: 50%; left: -1px; }

/* Brand Text */
.brand-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    background: linear-gradient(135deg, #ffffff, #e0e7ff, #c7d2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-inc {
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #ffffff;
    padding: 6px 12px;
    border: 1px solid #a855f7;
    border-radius: 6px;
    background: rgba(168, 85, 247, 0.2);
    display: inline-block;
}

/* ============================================
   Center Navigation Pills
   ============================================ */
.navbar-center {
    position: absolute;
    left: 55%;
    transform: translateX(-50%);
}

.nav-pills {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    backdrop-filter: blur(20px);
    position: relative;
}

.nav-pill-bg {
    position: absolute;
    height: calc(100% - 0.5rem);
    top: 0.25rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(168, 85, 247, 0.3));
    border-radius: 100px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}

.nav-pill {
    position: relative;
    padding: 0.625rem 1.25rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    border-radius: 100px;
    transition: all 0.3s ease;
    white-space: nowrap;
    z-index: 1;
}

.nav-pill:hover {
    color: #ffffff;
}

.nav-pill.active {
    color: #ffffff;
    /* Remove background - the pill-bg handles this */
}

/* ============================================
   CTA Button
   ============================================ */
.navbar-actions {
    z-index: 10;
}

.btn-cta {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
    border: none;
    border-radius: 100px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.btn-cta:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 40px rgba(139, 92, 246, 0.5);
}

.btn-cta i {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.btn-cta:hover i {
    transform: translateX(4px);
}

.btn-glow {
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899, #a855f7, #6366f1);
    background-size: 300% 300%;
    border-radius: 100px;
    filter: blur(15px);
    opacity: 0;
    z-index: -1;
    animation: glowRotate 4s linear infinite;
    transition: opacity 0.3s ease;
}

.btn-cta:hover .btn-glow {
    opacity: 0.6;
}

@keyframes glowRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ============================================
   Mobile Toggle
   ============================================ */
.navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    cursor: pointer;
    z-index: 100;
}

.navbar-toggle span {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #a855f7);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar-toggle span:nth-child(2) { width: 70%; }
.navbar-toggle span:nth-child(3) { width: 85%; }

.navbar-toggle:hover span { width: 100%; }

.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 100%;
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 90;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-menu.active {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

.mobile-menu-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(40px);
}

.mobile-menu-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 1.5rem;
}

.mobile-link {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-link:hover {
    color: #ffffff;
    text-shadow: 0 0 30px rgba(168, 85, 247, 0.5);
}

.mobile-cta {
    margin-top: 2rem;
    padding: 1rem 3rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border: none;
    border-radius: 100px;
    cursor: pointer;
    box-shadow: 0 4px 30px rgba(139, 92, 246, 0.4);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .navbar-center { display: none; }
    .navbar-actions { display: none; }
    .navbar-toggle { display: flex; }
}

@media (max-width: 640px) {
    .navbar-container { padding: 0 1rem; }
    .brand-name { font-size: 1.125rem; }
    .brand-logo { width: 42px; height: 42px; }
    .orb-core { width: 16px; height: 16px; }
    .orb-ring-1 { width: 26px; height: 26px; }
    .orb-ring-2 { width: 34px; height: 34px; }
    .orb-ring-3 { width: 42px; height: 42px; }
    .mobile-link { font-size: 1.5rem; }
}
