/**
 * MODERN NAVIGATION & GLOBAL ENHANCEMENTS
 * Professional, glassmorphism-inspired navigation with smooth transitions
 */

/* === SCROLL PROGRESS BAR === */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary-500), var(--color-accent-400));
    width: 0%;
    z-index: var(--z-maximum);
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(20, 184, 166, 0.5);
}

/* === MODERN NAVBAR === */
.modern-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.modern-navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(20, 184, 166, 0.1);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    transition: height 0.3s ease;
}

.modern-navbar.scrolled .navbar-content {
    height: 70px;
}

/* === BRAND === */
.navbar-brand-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    z-index: 2;
    transition: transform 0.3s ease;
}

.navbar-brand-modern:hover {
    transform: translateY(-2px);
}

.brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.navbar-brand-modern:hover .brand-icon {
    transform: rotate(-5deg) scale(1.05);
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary-600), var(--color-accent-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

/* === NAVIGATION LINKS === */
.navbar-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link-modern {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.75rem 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.nav-link-modern i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.nav-link-modern:hover {
    background: rgba(20, 184, 166, 0.08);
    color: var(--color-primary-700);
}

.nav-link-modern:hover i {
    transform: translateX(3px);
}

.nav-link-modern.active {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(6, 182, 212, 0.1));
    color: var(--color-primary-700);
}

.nav-link-modern.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary-500), var(--color-accent-400));
    border-radius: 2px;
}

/* === ACTION BUTTONS === */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-nav-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1.5rem;
    background: white;
    color: var(--text-primary);
    border: 1.5px solid var(--border-medium);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-nav-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--color-primary-400);
    color: var(--color-primary-700);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.15);
}

.btn-nav-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1.75rem;
    background: linear-gradient(135deg, var(--color-primary-500), var(--color-accent-400));
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.25);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-nav-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--color-primary-600), var(--color-accent-500));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-nav-primary:hover::before {
    opacity: 1;
}

.btn-nav-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.35);
    color: white;
}

.btn-nav-primary span,
.btn-nav-primary i {
    position: relative;
    z-index: 1;
    color: white;
}

.btn-nav-primary i {
    transition: transform 0.3s ease;
}

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

/* === MOBILE MENU TOGGLE === */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: var(--z-modal);
}

.hamburger-line {
    width: 28px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary-600), var(--color-accent-500));
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translateY(9px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translateY(-9px);
}

/* === MOBILE MENU OVERLAY === */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: var(--z-modal-backdrop);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: relative;
    height: 100%;
    background: white;
    max-width: 400px;
    margin-left: auto;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.mobile-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: var(--bg-tertiary);
    transform: rotate(90deg);
}

.mobile-menu-close i {
    font-size: 1.25rem;
    color: var(--text-primary);
}

.mobile-menu-links {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.mobile-nav-link i {
    font-size: 1.25rem;
    color: var(--color-primary-600);
}

.mobile-nav-link:hover {
    background: var(--bg-secondary);
    color: var(--color-primary-700);
    transform: translateX(4px);
}

.mobile-nav-link.active {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(6, 182, 212, 0.1));
    color: var(--color-primary-700);
}

.mobile-menu-divider {
    height: 1px;
    background: var(--border-light);
    margin: 1rem 0;
}

.mobile-nav-link-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 1rem 1.5rem;
    margin-top: 1rem;
    background: linear-gradient(135deg, var(--color-primary-500), var(--color-accent-400));
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.25);
    transition: all 0.3s ease;
}

.mobile-nav-link-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.35);
    color: white;
}

/* === BACK TO TOP BUTTON === */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-primary-500), var(--color-accent-400));
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: var(--z-fixed);
    box-shadow: 0 4px 20px rgba(20, 184, 166, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(20, 184, 166, 0.4);
}

.back-to-top i {
    font-size: 1.25rem;
}

/* === ENHANCED FOOTER === */
.footer-enhanced {
    position: relative;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 5rem 0 0;
    margin-top: 5rem;
    overflow: hidden;
}

.footer-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(6, 182, 212, 0.05));
    pointer-events: none;
}

.footer-content {
    position: relative;
    z-index: 1;
}

.footer-logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.footer-brand-icon {
    transition: transform 0.3s ease;
}

.footer-brand:hover .footer-brand-icon {
    transform: rotate(-5deg) scale(1.05);
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 350px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link-enhanced {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link-enhanced:hover {
    background: linear-gradient(135deg, var(--color-primary-500), var(--color-accent-400));
    transform: translateY(-4px);
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
    color: white;
}

.social-link-enhanced i {
    font-size: 1.1rem;
}

.footer-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.25rem;
    letter-spacing: 0.5px;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: 0.75rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-link:hover {
    color: var(--color-accent-400);
    transform: translateX(5px);
}

.footer-newsletter-text {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer-newsletter-form {
    margin-bottom: 1.5rem;
}

.newsletter-input-group {
    display: flex;
    gap: 8px;
}

.newsletter-input {
    flex: 1;
    padding: 0.875rem 1.125rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--color-primary-400);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.newsletter-button {
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--color-primary-500), var(--color-accent-400));
    border: none;
    border-radius: var(--radius-lg);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
}

.newsletter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.4);
}

.newsletter-button i {
    font-size: 1.1rem;
}

.footer-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 0.875rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
}

.trust-badge-item i {
    font-size: 1rem;
    color: var(--color-accent-400);
}

.footer-bottom-bar {
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-version {
    padding: 0.25rem 0.625rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
}

.footer-legal-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal-link:hover {
    color: var(--color-accent-400);
}

/* === RESPONSIVE UTILITIES === */
.desktop-only {
    display: flex;
}

.mobile-only {
    display: none;
}

/* === FADE-IN ANIMATION === */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-on-scroll.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* === MEDIA QUERIES === */
@media (max-width: 1024px) {
    .navbar-container {
        padding: 0 1.5rem;
    }

    .navbar-links {
        gap: 0.25rem;
    }

    .nav-link-modern {
        padding: 0.625rem 1rem;
        font-size: 0.9rem;
    }

    .btn-nav-secondary,
    .btn-nav-primary {
        padding: 0.625rem 1.25rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex;
    }

    .navbar-content {
        height: 70px;
    }

    .modern-navbar.scrolled .navbar-content {
        height: 65px;
    }

    .navbar-container {
        padding: 0 1rem;
    }

    .brand-text {
        font-size: 1.25rem;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }

    .footer-enhanced {
        padding: 3rem 0 0;
        margin-top: 3rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal-links {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-trust-badges {
        justify-content: center;
    }

    .mobile-menu-content {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .brand-text {
        font-size: 1.1rem;
    }

    .brand-icon svg {
        width: 28px;
        height: 28px;
    }

    .btn-nav-primary {
        padding: 0.625rem 1rem;
        font-size: 0.8rem;
    }

    .newsletter-input-group {
        flex-direction: column;
    }

    .newsletter-button {
        width: 100%;
        padding: 1rem;
    }
}

/* === PRINT STYLES === */
@media print {
    .modern-navbar,
    .scroll-progress-bar,
    .back-to-top,
    .mobile-menu-overlay {
        display: none !important;
    }
}
