/* Fonts loaded via preload in HTML for better performance */

:root {
    /* Color Palette - Single Light Theme for Performance */
    --primary: #003C70;
    --primary-light: #006099;
    --primary-dark: #003D5C;
    --accent: #2DD4BF;
    --accent-glow: rgba(45, 212, 191, 0.3);

    --bg-light: #FCFCF9;
    --surface-light: #FFFFFF;
    --text-light: #232323;
    --text-muted-light: #5A6469;

    --bg-dark: #001529;
    --text-muted-dark: #A0AAB0;

    /* Transitions & Effects */
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
    --glass: rgba(255, 255, 255, 0.7);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    /* Mobile: System fonts for speed */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Desktop: Google Fonts (as it was working perfectly) */
@media (min-width: 769px) {
    body {
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
}

/* Prevent CLS - Reserve space for images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1,
h2,
h3,
h4,
.font-heading {
    /* Mobile: System fonts */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
}

/* Desktop: Google Fonts for headings */
@media (min-width: 769px) {

    h1,
    h2,
    h3,
    h4,
    .font-heading {
        font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    contain: layout;
}

/* Custom Context Menu */
.custom-context-menu {
    position: fixed;
    z-index: 10000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 14px;
    padding: 8px;
    min-width: 220px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    display: none;
    animation: menuFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes menuFade {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.context-menu-header {
    padding: 12px 16px;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 5px;
}

.context-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.context-menu-item i {
    width: 16px;
    font-size: 1rem;
    color: var(--primary-light);
}

.context-menu-item:hover {
    background: var(--primary);
    color: white;
}

.context-menu-item:hover i {
    color: white;
}

.context-menu-separator {
    height: 1px;
    background: rgba(0, 0, 0, 0.05);
    margin: 5px 8px;
}

.protected-tag {
    opacity: 0.5;
    font-size: 0.75rem;
    cursor: default !important;
}

.protected-tag:hover {
    background: transparent !important;
    color: var(--text-light) !important;
}

/* Visibility Utilities for main.js */
.floating-cta,
.whatsapp-trigger,
.chatbot-trigger {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: var(--transition);
}

.floating-cta.visible,
.whatsapp-trigger.visible,
.chatbot-trigger.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.section-padding {
    padding: 100px 0;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, background;
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 45px;
    width: auto;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: inherit;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

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

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        padding: 2rem 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-links {
        flex-direction: column;
        gap: 0;
        padding: 0 2rem;
    }

    .nav-links li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-links a {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 70% 30%, rgba(0, 60, 112, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 10% 70%, rgba(45, 212, 191, 0.05) 0%, transparent 50%);
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 60, 112, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 60, 112, 0.2);
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero h1 span {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted-light);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    gap: 10px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 60, 112, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 60, 112, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

/* Services Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.card {
    background: var(--surface-light);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    height: 100%;
    will-change: transform;
    /* Optimization */
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 60, 112, 0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--primary);
    font-size: 1.5rem;
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card p {
    color: var(--text-muted-light);
}

/* Pricing Section */
.pricing-section {
    background: rgba(0, 60, 112, 0.02);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.pricing-card {
    background: var(--surface-light);
    padding: 3rem 2rem;
    border-radius: 30px;
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.pricing-card.popular {
    border-color: var(--primary);
    transform: scale(1.05);
    z-index: 2;
    box-shadow: var(--shadow-lg);
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--primary);
    color: white;
    padding: 8px 40px;
    transform: rotate(45deg);
    font-size: 0.75rem;
    font-weight: 700;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    margin: 1.5rem 0;
    color: var(--primary);
}

.price span {
    font-size: 1rem;
    color: var(--text-muted-light);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.pricing-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pricing-features li i {
    color: var(--accent);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    opacity: 0;
}

.animate-in.visible {
    animation: fadeInUp 0.8s forwards;
}

/* Chatbot styles optimized */
.chatbot-trigger {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 65px;
    height: 65px;
    background: var(--primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 60, 112, 0.4);
    z-index: 1000;
    transition: var(--transition);
}

.chatbot-trigger:hover {
    transform: scale(1.1) rotate(5deg);
}

.chatbot-window-container {
    position: fixed;
    bottom: 110px;
    left: 30px;
    width: 350px;
    height: 500px;
    background: var(--surface-light);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.chatbot-window-container.active {
    display: flex;
}

.chatbot-header {
    padding: 1.5rem;
    background: var(--primary);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header button {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
}

.chatbot-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bot-message,
.user-message {
    max-width: 85%;
    padding: 1rem;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.bot-message {
    background: rgba(0, 60, 112, 0.05);
    color: var(--text-light);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.user-message {
    background: var(--primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chatbot-input-area {
    padding: 1.2rem;
    display: flex;
    gap: 0.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.chatbot-input-area input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    outline: none;
    font-size: 0.9rem;
    background: var(--bg-light);
}

.chatbot-input-area button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

/* Typing Indicator */
.typing span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    margin-right: 3px;
    animation: blink 1s infinite alternate;
}

.typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {
    from {
        opacity: 0.3;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1.1);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Extra Visuals */
.btn-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-light);
}

.btn-icon:hover {
    background: rgba(0, 60, 112, 0.05);
    color: var(--primary);
}

/* Responsive Scaling */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .pricing-card.popular {
        transform: scale(1);
    }

    .chatbot-window-container {
        width: calc(100% - 40px);
        left: 20px;
        bottom: 100px;
    }
}

/* WhatsApp Float Trigger */
.whatsapp-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: #25D366;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-trigger:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

/* Custom Surface Panel */
.surface-panel {
    background-color: var(--surface-light);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.step-num {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(0, 60, 112, 0.4);
    /* Updated for contrast */
    transition: var(--transition);
}

/* Pulse Animation for CTA */
.pulse-btn {
    animation: subtlePulse 2s infinite;
}

@keyframes subtlePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 60, 112, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(0, 60, 112, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 60, 112, 0);
    }
}

/* Floating CTA Button */
.floating-cta {
    position: fixed;
    bottom: 35px;
    left: 110px;
    z-index: 999;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 60, 112, 0.4);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    background: var(--primary);
    /* Added explicit background */
    color: white;
    /* Added explicit color */
}

/* Contact Section Styles */
#contacto {
    background: var(--bg-dark);
    color: white;
    text-align: center;
}

#contacto h2 {
    color: white;
}

#contacto p {
    color: var(--text-muted-dark);
}

.btn-whatsapp {
    background: #25D366 !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #1eb954 !important;
    transform: translateY(-3px);
}

.btn-outline-white {
    background: transparent !important;
    border: 2px solid white !important;
    color: white !important;
}

.btn-outline-white:hover {
    background: white !important;
    color: var(--bg-dark) !important;
}

.floating-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 60, 112, 0.5);
}

.floating-cta.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

/* Pricing Button Alignment Fix */
.pricing-card {
    display: flex;
    flex-direction: column;
}

.pricing-card .btn {
    margin-top: auto;
}

/* Cookies Banner */
.cookies-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--surface-light);
    padding: 1.5rem;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    display: flex;
    justify-content: center;
    gap: 2rem;
    align-items: center;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.cookies-banner.show {
    transform: translateY(0);
}

.cookies-banner p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

.cookies-banner a {
    color: var(--primary);
    text-decoration: underline;
}

.cookies-actions button {
    padding: 0.5rem 1.5rem;
}

/* Add-ons Accordion Style */
.addon-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    cursor: pointer;
}

.addon-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.addon-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.addon-price {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
}

.addon-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), opacity 0.3s ease;
    opacity: 0;
}

.addon-item.active .addon-content {
    max-height: 150px;
    opacity: 1;
    margin-top: 1rem;
}

.addon-item.active .addon-price i {
    transform: rotate(180deg);
}

.addon-price i {
    transition: transform 0.3s ease;
}

/* Mobile Optimizations */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
        overflow: hidden;
    }

    .grid,
    .pricing-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1.5rem;
        padding-bottom: 2rem;
        -webkit-overflow-scrolling: touch;
    }

    .grid::-webkit-scrollbar,
    .pricing-grid::-webkit-scrollbar {
        display: none;
    }

    .card,
    .step-card,
    .pricing-card {
        flex: 0 0 85%;
        min-width: 280px;
        scroll-snap-align: center;
    }

    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .chatbot-trigger,
    .whatsapp-trigger {
        width: 55px;
        height: 55px;
    }

    .floating-cta {
        left: 85px;
        bottom: 30px;
    }
}

@media (max-width: 768px) {

    .btn,
    .btn-icon,
    .chatbot-trigger,
    .floating-cta,
    .cookies-actions button,
    .chatbot-header button,
    .chatbot-input-area button,
    .nav-links a {
        min-height: 48px;
        box-sizing: border-box;
    }

    * {
        animation-duration: 0.3s !important;
    }

    .card,
    .pricing-card,
    .step-card {
        transform: translateZ(0);
        backface-visibility: hidden;
    }
}

/* General Performance & Accessibility */
img {
    content-visibility: auto;
    /* Fixed lint: removed invalid loading/decoding properties */
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (min-width: 1024px) {

    .card,
    .pricing-card,
    .animate-in {
        transform: translate3d(0, 0, 0);
        will-change: transform;
    }

    .card:hover,
    .pricing-card:hover {
        transform: translate3d(0, -10px, 0);
    }

    .nav.scrolled {
        contain: layout style paint;
    }
}

/* Custom Context Menu */
.custom-context-menu {
    display: none;
    position: fixed;
    z-index: 10000;
    background: white;
    min-width: 220px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 8px 0;
    overflow: hidden;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    animation: menuFadeIn 0.2s ease-out;
}

@keyframes menuFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.context-menu-item {
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-light);
    transition: all 0.2s ease;
    text-decoration: none;
}

.context-menu-item:hover {
    background: var(--primary);
    color: white;
}

.context-menu-item i {
    width: 16px;
    font-size: 0.85rem;
    opacity: 0.8;
}

.context-menu-separator {
    height: 1px;
    background: rgba(0, 0, 0, 0.05);
    margin: 4px 0;
}

.chatbot-window-container,
.hero,
.section-padding {
    contain: paint;
}

/* Blog Section Styles */
.blog-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.blog-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-img {
    transform: scale(1.1);
}

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

.blog-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-date {
    font-size: 0.8rem;
    color: var(--text-muted-light);
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.blog-card h3 {
    font-size: 1.35rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 700;
}

.blog-card p {
    font-size: 0.95rem;
    color: var(--text-muted-light);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    cursor: pointer;
}

.blog-link:hover {
    gap: 15px;
    color: var(--primary-light);
}

/* Article Modal Styles */
.article-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10002;
    display: none;
    align-items: center;
    justify-content: center;
}

.article-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 21, 41, 0.4);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 850px;
    max-height: 85vh;
    background: #fff;
    border-radius: 24px;
    padding: 3.5rem;
    overflow-y: auto;
    z-index: 10003;
    animation: modalIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.2);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--primary);
    font-size: 1.2rem;
}

.modal-close:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg);
}

.modal-article-header .category {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 60, 112, 0.05);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.modal-article-header h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    color: var(--primary);
    margin-bottom: 2rem;
}

.modal-article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted-light);
}

.modal-article-content h4 {
    color: var(--primary);
    margin: 2rem 0 1rem;
    font-size: 1.4rem;
}

.modal-article-content p {
    margin-bottom: 1.5rem;
}

.modal-article-content ul {
    margin-bottom: 2rem;
    list-style: none;
    padding: 0;
}

.modal-article-content li {
    margin-bottom: 0.8rem;
    padding-left: 25px;
    position: relative;
}

.modal-article-content li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent);
}

@media (max-width: 768px) {
    .modal-content {
        padding: 2.5rem 1.5rem;
        width: 95%;
    }

    .modal-article-header h2 {
        font-size: 1.8rem;
    }
}

/* Industry Marquee - Ultimate Seamless Loop */
.industry-marquee {
    overflow: hidden;
    padding: 3.5rem 0;
    background: var(--surface-light);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    width: 100%;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-infinite 40s linear infinite;
    will-change: transform;
}

.marquee-content {
    display: flex;
    flex-shrink: 0;
    align-items: center;
}

.industry-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 0 4rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.6rem;
    opacity: 0.6;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.industry-item i {
    font-size: 2.2rem;
    color: var(--accent);
}

.industry-item:hover {
    opacity: 1;
    transform: scale(1.05);
    color: var(--primary-light);
}

@keyframes marquee-infinite {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Standard 50% shift for 2 tracks */
}

/* Faded edges - Premium touch */
.industry-marquee::before,
.industry-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    width: 20%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.industry-marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-light), transparent);
}

.industry-marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-light), transparent);
}

@media (max-width: 768px) {
    .industry-marquee {
        padding: 2rem 0;
    }

    .industry-item {
        padding: 0 2.5rem;
        font-size: 1.2rem;
    }

    .industry-item i {
        font-size: 1.5rem;
    }

    .industry-marquee::before,
    .industry-marquee::after {
        width: 100px;
    }

    /* Mobile Performance Optimizations */
    .hero::before {
        display: none;
        /* Remove decorative gradient on mobile */
    }

    .nav.scrolled {
        backdrop-filter: blur(10px) saturate(120%);
        -webkit-backdrop-filter: blur(10px) saturate(120%);
    }

    .card:hover {
        transform: translateY(-5px);
    }
}

/* Performance: Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}