/* ============================================
   PFAR Enhanced Navigation System Styles
   ============================================ */

/* Remove Sticky Navigation Effect */
.pfar-nav {
    position: relative !important;
}

.pfar-nav.nav-scrolled {
    background: inherit !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
}

.pfar-nav.nav-scrolled .nav-logo img {
    height: inherit !important;
}

/* ============================================
   FLOATING ACTION BUTTONS (RIGHT SIDE)
   ============================================ */

.fab-menu {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fab-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

.fab-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}

.fab-button:active {
    transform: scale(0.95);
}

/* FAB Tooltip */
.fab-tooltip {
    position: absolute;
    right: 70px;
    background: rgba(30, 41, 59, 0.95);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.fab-tooltip::before {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 0 6px 6px;
    border-color: transparent transparent transparent rgba(30, 41, 59, 0.95);
}

.fab-button:hover .fab-tooltip {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

/* Individual FAB Button Colors */
.fab-button.fab-home {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.fab-button.fab-features {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.fab-button.fab-pricing {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.fab-button.fab-sold {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
}

.fab-button.fab-reviews {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.fab-button.fab-learning {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.fab-button.fab-faq {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.fab-button.fab-contact {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
}

/* Hide FAB on very small screens */
@media (max-width: 480px) {
    .fab-menu {
        right: 10px;
    }
    
    .fab-button {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
}

/* Hide FAB on mobile when menu is open */
body.menu-open .fab-menu {
    opacity: 0;
    pointer-events: none;
}

/* Mobile Menu Toggle Button */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: all 0.3s ease;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.nav-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Navigation Menu */
.mobile-nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 90%;
    height: 100vh;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    z-index: 1000;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
}

.mobile-nav-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.mobile-logo {
    height: 40px;
    width: auto;
}

.mobile-menu-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.mobile-menu-list {
    list-style: none;
    padding: 20px 0;
    margin: 0;
}

.mobile-menu-list li {
    margin: 0;
}

.mobile-menu-list a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mobile-menu-list a:hover,
.mobile-menu-list a:focus {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: #667eea;
    color: #fff;
}

.mobile-menu-list a.active {
    background: rgba(102, 126, 234, 0.2);
    border-left-color: #ffc107;
    color: #ffc107;
}

.mobile-menu-list a i {
    width: 20px;
    color: #667eea;
    font-size: 18px;
}

.mobile-menu-cta {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
}

.mobile-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.mobile-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}

.mobile-cta-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    margin: 10px 0 0 0;
}

.mobile-menu-contact {
    padding: 20px;
}

.mobile-menu-contact h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.mobile-contact-link:hover {
    color: #fff;
    padding-left: 5px;
}

.mobile-contact-link i {
    color: #667eea;
    font-size: 16px;
    width: 20px;
}

/* Sticky Navigation Effect */
.pfar-nav {
    transition: all 0.3s ease;
}

.pfar-nav.nav-scrolled {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.pfar-nav.nav-scrolled .nav-logo img {
    height: 45px;
}

/* Contact Us Menu Item - Match other items with dark color */
.nav-menu a[href="#contact"] {
    color: #333;
}

/* Active Menu Item Highlight */
.nav-menu a.active {
    color: #ffc107;
    position: relative;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: #ffc107;
    border-radius: 2px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Prevent Body Scroll When Menu Open */
body.menu-open {
    overflow: hidden;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-cta {
        display: none;
    }
}

@media (max-width: 480px) {
    .mobile-nav-menu {
        width: 100%;
        max-width: 100%;
    }
    
    .mobile-menu-header {
        padding: 15px;
    }
    
    .mobile-logo {
        height: 35px;
    }
}

/* Animation for Menu Items */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mobile-nav-menu.active .mobile-menu-list li {
    animation: slideInRight 0.3s ease forwards;
}

.mobile-nav-menu.active .mobile-menu-list li:nth-child(1) { animation-delay: 0.05s; }
.mobile-nav-menu.active .mobile-menu-list li:nth-child(2) { animation-delay: 0.10s; }
.mobile-nav-menu.active .mobile-menu-list li:nth-child(3) { animation-delay: 0.15s; }
.mobile-nav-menu.active .mobile-menu-list li:nth-child(4) { animation-delay: 0.20s; }
.mobile-nav-menu.active .mobile-menu-list li:nth-child(5) { animation-delay: 0.25s; }
.mobile-nav-menu.active .mobile-menu-list li:nth-child(6) { animation-delay: 0.30s; }

/* Accessibility Improvements */
.nav-toggle:focus,
.mobile-menu-close:focus,
.mobile-menu-list a:focus,
.mobile-cta-btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Tablet Specific Adjustments */
@media (min-width: 481px) and (max-width: 768px) {
    .mobile-nav-menu {
        width: 360px;
    }
}
