/* Stripe-Aligned Header Styles */
.stripe-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.stripe-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Stripe Navigation Container */
.stripe-nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    padding: 0 24px;
}

/* Stripe Brand/Logo */
.stripe-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 24px;
    font-weight: 600;
    color: #0a2540;
    transition: all 0.15s ease;
}

.stripe-brand:hover {
    color: #0a2540;
    transform: translateY(-1px);
}

.stripe-brand .brand-logo {
    height: 40px;
    width: auto;
    transition: all 0.15s ease;
}

.stripe-brand:hover .brand-logo {
    transform: scale(1.05);
}

/* Stripe Navigation Links */
.stripe-nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.stripe-nav-link {
    color: #425466;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.15s ease;
    position: relative;
}

.stripe-nav-link:hover {
    color: #0a2540;
    background: rgba(0, 0, 0, 0.04);
    text-decoration: none;
}

/* Stripe Actions */
.stripe-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Stripe Language Select */
.stripe-lang-select .stripe-select {
    border: 1px solid #d6dbe1;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 15px;
    background: white;
    color: #425466;
    transition: all 0.15s ease;
    min-width: 120px;
}

.stripe-lang-select .stripe-select:hover {
    border-color: #9ca3af;
}

.stripe-lang-select .stripe-select:focus {
    outline: none;
    border-color: #635bff;
    box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.1);
}

/* Stripe Buttons */
.stripe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.stripe-btn-primary {
    background: #635bff;
    color: white;
    border-color: #635bff;
}

.stripe-btn-primary:hover {
    background: #5a52e8;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.stripe-btn-secondary {
    background: transparent;
    color: #425466;
    border-color: #d6dbe1;
}

.stripe-btn-secondary:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #0a2540;
    text-decoration: none;
}

/* Mobile Toggle Button */
.stripe-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid #d6dbe1;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.stripe-mobile-toggle:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: #9ca3af;
}

.stripe-hamburger {
    width: 20px;
    height: 2px;
    background: #425466;
    position: relative;
    transition: all 0.2s ease;
}

.stripe-hamburger::before,
.stripe-hamburger::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: #425466;
    transition: all 0.2s ease;
}

.stripe-hamburger::before {
    top: -6px;
}

.stripe-hamburger::after {
    bottom: -6px;
}

/* Mobile Menu */
.stripe-mobile-menu {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.stripe-mobile-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.stripe-mobile-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.stripe-mobile-nav-link {
    display: block;
    color: #425466;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.15s ease;
}

.stripe-mobile-nav-link:hover {
    color: #0a2540;
    padding-left: 8px;
    text-decoration: none;
}

.stripe-mobile-actions {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.stripe-mobile-lang .stripe-select {
    width: 100%;
    border: 1px solid #d6dbe1;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 16px;
    background: white;
    color: #425466;
}

/* Ultra Modern Header Styles (Legacy) */
.modern-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: headerSlideDown 0.6s ease-out;
}

@keyframes headerSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(248, 250, 252, 0.98) 50%,
    rgba(241, 245, 249, 0.95) 100%);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.modern-header.scrolled .header-backdrop {
    background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(248, 250, 252, 1) 50%,
    rgba(241, 245, 249, 0.98) 100%);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12),
    0 4px 16px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(74, 143, 202, 0.15);
}

.modern-nav {
    position: relative;
    z-index: 2;
    padding: 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Ultra Modern Brand Section */
.nav-brand {
    display: flex;
    align-items: center;
    animation: brandFloat 3s ease-in-out infinite;
}

@keyframes brandFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 16px;
    padding: 8px 12px;
    overflow: hidden;
}

.brand-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
    var(--primary-color, #4A8FCA) 0%,
    rgba(74, 143, 202, 0.8) 50%,
    rgba(74, 143, 202, 0.6) 100%);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 16px;
}

.brand-link:hover::before {
    opacity: 0.1;
    transform: scale(1);
}

.brand-link:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(74, 143, 202, 0.25);
}

.brand-logo {
    height: 45px;
    width: auto;
    margin-right: 12px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.brand-link:hover .brand-logo {
    transform: rotate(5deg) scale(1.1);
    filter: drop-shadow(0 4px 16px rgba(74, 143, 202, 0.3));
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg,
    var(--primary-color, #4A8FCA) 0%,
    rgba(74, 143, 202, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 2;
}

/* Desktop Navigation */
.desktop-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color, #4A8FCA), rgba(74, 143, 202, 0.8));
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 1;
    transform: translateY(0);
}

.nav-link:hover,
.nav-link.active {
    color: white;
    transform: translateY(-2px);
}

/* Inactive state handling - prevent inactive elements from appearing active */
.nav-link.inactive {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

.nav-link.inactive:hover::before,
.nav-link.inactive:hover {
    opacity: 0.5;
    color: #374151;
    transform: none;
}

.nav-link span {
    position: relative;
    z-index: 1;
}

/* Header Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 20px;
}

/* Mega Menu Styles */
.mega-menu-container {
    position: relative;
}

.mega-menu-nav {
    position: relative;
}

.mega-menu-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.mega-menu-item {
    position: relative;
}

.mega-menu-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 14px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.mega-menu-trigger::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
    var(--primary-color, #4A8FCA) 0%,
    rgba(74, 143, 202, 0.9) 50%,
    rgba(59, 130, 246, 0.8) 100%);
    opacity: 0;
    transform: translateY(100%) scale(0.8);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(74, 143, 202, 0.3);
}

.mega-menu-trigger::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.mega-menu-trigger:hover::before,
.mega-menu-item.active .mega-menu-trigger::before {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.mega-menu-trigger:hover::after {
    transform: translateX(100%);
}

.mega-menu-trigger:hover,
.mega-menu-item.active .mega-menu-trigger {
    color: white;
    transform: translateY(-4px) scale(1.05);
    border-color: rgba(74, 143, 202, 0.3);
    box-shadow: 0 12px 40px rgba(74, 143, 202, 0.4);
}

.mega-menu-trigger span,
.mega-menu-trigger i {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.mega-menu-trigger:hover i {
    transform: rotate(180deg);
}

.mega-menu-dropdown {
    position: absolute;
    top: calc(100% + 1rem);
    left: 50%;
    transform: translateX(-50%);
    min-width: 600px;
    max-width: 800px;
    background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(248, 250, 252, 0.98) 50%,
    rgba(241, 245, 249, 0.95) 100%);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15),
    0 10px 40px rgba(74, 143, 202, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-20px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
    padding: 2.5rem;
    overflow: hidden;
}

.mega-menu-dropdown::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle,
    rgba(74, 143, 202, 0.08) 0%,
    transparent 70%);
    animation: dropdownGlow 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes dropdownGlow {
    0%, 100% { transform: rotate(0deg) scale(1); opacity: 0.5; }
    50% { transform: rotate(180deg) scale(1.1); opacity: 0.8; }
}

.mega-menu-dropdown.active,
.mega-menu-item:hover .mega-menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
    animation: dropdownSlideIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes dropdownSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-30px) scale(0.9) rotateX(-10deg);
    }
    50% {
        opacity: 0.7;
        transform: translateX(-50%) translateY(-5px) scale(1.02) rotateX(-2deg);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1) rotateX(0deg);
    }
}

/* Stripe-Style Mega Menu Content Layout */
.mega-menu-dropdown.stripe-style {
    min-width: 760px;
    max-width: 1000px;
    padding: 0;
}

.mega-menu-dropdown.stripe-style .mega-menu-content {
    display: flex;
    flex-direction: row;
    min-height: 320px;
}

.mega-menu-section {
    flex: 1;
    padding: 2.5rem 2rem;
    border-right: 1px solid rgba(226, 232, 240, 0.8);
    background: transparent;
}

.mega-menu-section:last-child {
    border-right: none;
}

.mega-menu-section:hover {
    background: linear-gradient(135deg,
    rgba(74, 143, 202, 0.02) 0%,
    rgba(248, 250, 252, 0.5) 100%);
}

/* Default grid layout for non-stripe dropdowns */
.mega-menu-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* Enhanced Stripe-Style Typography and Titles */
.mega-menu-column h4.mega-menu-title,
.mega-menu-section h4.mega-menu-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 1.5rem;
    padding-bottom: 0;
    border-bottom: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

/* Stripe-Style Link Structure */
.mega-menu-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mega-menu-links li {
    margin-bottom: 0;
}

.mega-menu-links a {
    display: block;
    padding: 0.875rem 0;
    color: #374151;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.2s ease;
    position: relative;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.mega-menu-links li:last-child a {
    border-bottom: none;
}

/* Enhanced Link Content Structure */
.menu-link-title {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.menu-link-desc {
    display: block;
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.3;
    font-weight: 400;
}

/* Hover Effects for Stripe-Style Links */
.mega-menu-links a:hover {
    background: transparent;
    transform: none;
    color: inherit;
}

.mega-menu-links a:hover .menu-link-title {
    color: var(--primary-color, #4A8FCA);
}

.mega-menu-links a:hover .menu-link-desc {
    color: #475569;
}

/* Remove old hover effects for Stripe-style */
.mega-menu-links a::before {
    display: none;
}

/* Modern Icon Styling for Mega Menu */
.mega-menu-links a i {
    display: inline-block;
    margin-right: 0.75rem;
    font-size: 1.1rem;
    color: var(--primary-color, #4A8FCA);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0.8;
    transform: scale(1);
}

.mega-menu-links a:hover i {
    opacity: 1;
    transform: scale(1.1) rotate(5deg);
    color: var(--primary-color, #4A8FCA);
    text-shadow: 0 2px 8px rgba(74, 143, 202, 0.3);
}

/* Brand icons specific styling for SDKs */
.mega-menu-links a i.lab {
    font-size: 1.2rem;
    margin-right: 0.6rem;
}

.mega-menu-links a:hover i.lab {
    transform: scale(1.15) translateY(-2px);
    filter: drop-shadow(0 4px 12px rgba(74, 143, 202, 0.4));
}

/* Icon animation on menu item hover */
.mega-menu-item:hover .mega-menu-links a i {
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Icon spacing and alignment */
.mega-menu-links a {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Footer Language Selector Styles */
.footer-bottom-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.footer-language-selector {
    position: relative;
}

.footer-language-dropdown {
    position: relative;
}

.footer-language-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.footer-language-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.footer-language-menu {
    position: absolute;
    bottom: calc(100% + 0.5rem);
    right: 0;
    min-width: 150px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.footer-language-dropdown.active .footer-language-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.footer-language-option {
    display: block;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 0.25rem;
}

.footer-language-option:hover,
.footer-language-option.active {
    background: var(--primary-color, #4A8FCA);
    color: white;
}

.action-item {
    display: flex;
    align-items: center;
}

/* Language Selector */
.language-selector {
    position: relative;
}

.language-dropdown {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    color: #374151;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.language-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.language-text {
    font-size: 0.9rem;
}

.language-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 150px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.language-dropdown.active .language-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: block;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 0.25rem;
}

.language-option:hover,
.language-option.active {
    background: var(--primary-color, #4A8FCA);
    color: white;
}

/* Inactive language option handling */
.language-option.inactive {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

.language-option.inactive:hover {
    background: transparent;
    color: #374151;
}

/* Download Button */
.download-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color, #4A8FCA), rgba(74, 143, 202, 0.8));
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(74, 143, 202, 0.3);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 143, 202, 0.4);
}

.download-btn:active {
    transform: translateY(0);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
}

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 4px;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: #374151;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    overflow-y: auto;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-content {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-logo {
    height: 40px;
    width: auto;
}

.mobile-close-btn {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.mobile-nav-item {
    margin-bottom: 0.5rem;
}

.mobile-nav-link {
    display: block;
    padding: 1rem;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: var(--primary-color, #4A8FCA);
    color: white;
    transform: translateX(8px);
}

/* Inactive mobile navigation link handling */
.mobile-nav-link.inactive {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

.mobile-nav-link.inactive:hover {
    background: transparent;
    color: #374151;
    transform: none;
}

.mobile-nav-actions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-language-selector {
    margin-bottom: 1.5rem;
}

.mobile-language-selector label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.mobile-language-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.mobile-download-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color, #4A8FCA), rgba(74, 143, 202, 0.8));
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 143, 202, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 1.5rem;
    }

    .nav-list {
        gap: 1.5rem;
    }
}

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

    .mobile-toggle {
        display: flex;
    }

    .nav-container {
        padding: 0 1rem;
        height: 70px;
    }

    .brand-logo {
        height: 35px;
    }

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

    .language-selector {
        display: none;
    }

    .download-btn {
        display: none;
    }

    /* Mobile Mega Menu */
    .mega-menu-container {
        display: none;
    }

    /* Mobile Footer Language Selector */
    .footer-bottom-right {
        align-items: center;
        text-align: center;
    }

    .footer-language-menu {
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(10px);
    }

    .footer-language-dropdown.active .footer-language-menu {
        transform: translateX(-50%) translateY(0);
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    .mobile-nav {
        max-width: 100%;
    }

    .mobile-nav-content {
        padding: 1.5rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .header-backdrop {
        background: rgba(17, 24, 39, 0.95);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .modern-header.scrolled .header-backdrop {
        background: rgba(17, 24, 39, 0.98);
    }

    .nav-link {
        color: #f3f4f6;
    }

    .language-btn {
        background: rgba(17, 24, 39, 0.8);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: #f3f4f6;
    }

    .language-menu {
        background: rgba(17, 24, 39, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .language-option {
        color: #f3f4f6;
    }

    .mobile-nav {
        background: rgba(17, 24, 39, 0.98);
    }

    .mobile-nav-link {
        color: #f3f4f6;
    }

    .hamburger-line {
        background: #f3f4f6;
    }
}

/* Smooth scrolling for body when header is fixed */
body {
    padding-top: 80px;
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
}

/* Animation for page load */
.modern-header {
    animation: slideDown 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
