/* ===== NEXILRA ERP & POS SYSTEMS PAGE STYLES ===== */
/* File: assets/css/erp-pos-systems.css */

/* ===== PAGE-SPECIFIC VARIABLES ===== */
:root {
    --erp-primary: #4338ca;
    --erp-secondary: #7c3aed;
    --erp-accent: #06b6d4;
    --erp-success: #059669;
    --erp-warning: #d97706;
    --erp-pos: #dc2626;
    --erp-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --erp-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    --erp-dashboard-glow: 0 0 40px rgba(5, 150, 105, 0.3);
    --erp-pos-glow: 0 0 40px rgba(220, 38, 38, 0.3);
}

/* ===== GLOBAL STYLES ===== */
body.page-erp-pos-systems {
    background: var(--bg-primary);
    padding-top: 80px;
}

html, body {
    overflow-x: hidden !important;
    width: 100vw;
    max-width: 100vw;
}

/* Fix for overlapping issues */
* {
    box-sizing: border-box;
}

section {
    position: relative;
    z-index: 1;
}

/* ===== HERO SECTION ===== */
.erp-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    padding: 7rem 0;
    text-align: center;
}

.erp-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.1) 1px, transparent 0);
    background-size: 50px 50px;
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

.hero-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 100%;
}

.hero-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-xl);
    font-size: var(--text-3xl);
    color: var(--white);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: dashboardFloat 4s ease-in-out infinite;
}

@keyframes dashboardFloat {
    0%, 100% { 
        transform: translateY(0px) scale(1); 
        box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
    }
    50% { 
        transform: translateY(-10px) scale(1.05); 
        box-shadow: 0 20px 40px rgba(255, 255, 255, 0.3);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: var(--font-extrabold);
    line-height: var(--leading-tight);
    margin-bottom: var(--spacing-lg);
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.title-highlight {
    display: inline-block;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: var(--font-medium);
    color: rgba(255, 255, 255, 0.9);
    margin-top: var(--spacing-md);
    background: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-full);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-description {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-2xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.hero-description strong {
    color: var(--white);
    font-weight: var(--font-bold);
}

.hero-cta {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    justify-content: center;
}

/* ===== COMMON SECTION STYLES ===== */
.section {
    padding: var(--spacing-4xl) 0;
    position: relative;
    overflow: hidden; /* Prevent animation overflow */
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-4xl);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    line-height: var(--leading-tight);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: var(--leading-relaxed);
}

.section-description {
    font-size: var(--text-base);
    color: var(--text-secondary);
    max-width: 900px;
    margin: var(--spacing-lg) auto 0;
    line-height: var(--leading-relaxed);
}

/* ===== ERP INTRO SECTION ===== */
.erp-intro-section {
    background: linear-gradient(135deg, rgba(67, 56, 202, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

/* ===== WHAT WE OFFER SECTION ===== */
.what-we-offer-section {
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-2xl);
    margin-top: var(--spacing-2xl);
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(5, 150, 105, 0.1), transparent);
    animation: erpRotate 12s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 1;
}

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

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--border-primary);
    box-shadow: var(--erp-dashboard-glow);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--erp-success) 0%, var(--erp-primary) 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(10deg);
}

.service-icon i {
    font-size: var(--text-2xl);
    color: var(--white);
}

.service-content {
    position: relative;
    z-index: 2;
}

.service-content h3 {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    line-height: var(--leading-tight);
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    padding: var(--spacing-sm) 0;
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    position: relative;
    padding-left: var(--spacing-xl);
}

.service-features li::before {
    content: '📊';
    position: absolute;
    left: 0;
    top: var(--spacing-sm);
    font-size: var(--text-base);
}

.service-features li strong {
    color: var(--text-primary);
    font-weight: var(--font-semibold);
}

/* ===== IDEAL FOR SECTION ===== */
.ideal-for-section {
    background: var(--bg-primary);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.industry-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.industry-item:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-primary);
    box-shadow: var(--erp-glow);
}

.industry-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--erp-primary) 0%, var(--erp-secondary) 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    transition: transform 0.3s ease;
}

.industry-item:hover .industry-icon {
    transform: scale(1.1) rotate(10deg);
}

.industry-icon i {
    font-size: var(--text-lg);
    color: var(--white);
}

.industry-item h3 {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.industry-item p {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin: 0;
}

/* ===== TECHNOLOGY STACK SECTION ===== */
.tech-stack-section {
    background: var(--bg-secondary);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-2xl);
    margin-top: var(--spacing-2xl);
}

.tech-category {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.tech-category:hover {
    transform: translateY(-5px);
    border-color: var(--border-primary);
    box-shadow: var(--shadow-xl);
}

.tech-category-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.tech-items {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.tech-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    transition: background 0.3s ease, transform 0.3s ease;
}

.tech-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.tech-item i {
    font-size: var(--text-2xl);
    color: var(--accent-color);
    width: 40px;
    flex-shrink: 0;
}

.tech-item div {
    flex-grow: 1;
}

.tech-item span {
    display: block;
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.tech-item p {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin: 0;
    line-height: var(--leading-relaxed);
}

/* ===== FEATURES SECTION ===== */
.features-section {
    background: var(--bg-primary);
}

.features-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-4xl);
    align-items: start;
}

.feature-block {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-block:hover {
    transform: translateY(-5px);
    border-color: var(--border-primary);
    box-shadow: var(--shadow-lg);
}

.feature-block .section-title {
    text-align: left;
    font-size: var(--text-2xl);
    margin-bottom: var(--spacing-lg);
}

.feature-block p {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

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

.feature-list li {
    padding: var(--spacing-sm) 0;
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    position: relative;
    padding-left: var(--spacing-xl);
}

.feature-list li::before {
    content: '🔒';
    position: absolute;
    left: 0;
    top: var(--spacing-sm);
    font-size: var(--text-base);
}

/* ===== WHY NEXILRA SECTION ===== */
.why-nexilra-section {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(67, 56, 202, 0.1) 100%);
}

.differentiators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.differentiator-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-lg);
    padding: var(--spacing-xl);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.differentiator-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-primary);
    box-shadow: var(--shadow-lg);
}

.differentiator-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.differentiator-item:hover .differentiator-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(5, 150, 105, 0.3);
}

.differentiator-icon i {
    font-size: var(--text-lg);
    color: var(--white);
}

.differentiator-content h3 {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.differentiator-content p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin: 0;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: var(--bg-gradient-main);
    padding: var(--spacing-4xl) 0;
    position: relative;
    overflow: hidden;
}

/* Disable parallax on CTA to fix overlapping */
.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 3px 3px, rgba(255, 255, 255, 0.1) 1px, transparent 0);
    background-size: 60px 60px;
    opacity: 0.3;
    pointer-events: none;
}

.cta-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
    position: relative;
    z-index: 2;
}

.cta-content {
    text-align: center;
    color: var(--white);
}

.cta-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: var(--font-extrabold);
    margin-bottom: var(--spacing-lg);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.cta-subtitle {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--spacing-2xl);
    opacity: 0.95;
}

.cta-subtitle strong {
    font-weight: var(--font-bold);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.cta-note {
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    opacity: 0.9;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ===== BUTTON STYLES ===== */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg) var(--spacing-2xl);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    font-family: inherit;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    user-select: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--erp-success) 0%, var(--erp-primary) 100%);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--erp-dashboard-glow), var(--shadow-xl);
}

.cta-button.secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    transform: translateY(-3px);
}

.cta-button.large {
    padding: var(--spacing-xl) var(--spacing-3xl);
    font-size: var(--text-lg);
}

.cta-button i {
    font-size: var(--text-base);
}

/* ===== ANIMATION FIXES ===== */
/* Prevent animation overflow and flashing */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* Disable problematic animations on scroll */
.scrolling * {
    animation-play-state: paused !important;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-container {
        padding: 0 var(--spacing-md);
    }
    
    .section-container {
        padding: 0 var(--spacing-md);
    }
    
    .services-grid,
    .industries-grid,
    .tech-grid,
    .differentiators-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .features-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .hero-cta,
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .hero-icon {
        width: 60px;
        height: 60px;
        font-size: var(--text-2xl);
    }
    
    .tech-item {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
    
    .tech-item i {
        width: auto;
    }
    
    /* Disable parallax on mobile */
    .cta-section {
        transform: none !important;
    }
}

@media (max-width: 480px) {
    .erp-hero {
        min-height: 60vh;
        padding: var(--spacing-2xl) 0;
    }
    
    .hero-container {
        padding: 0 var(--spacing-sm);
    }
    
    .section-container {
        padding: 0 var(--spacing-sm);
    }
    
    .section {
        padding: var(--spacing-2xl) 0;
    }
    
    .service-card,
    .feature-block,
    .tech-category {
        padding: var(--spacing-lg);
    }
    
    .differentiator-item {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .hero-icon {
        width: 50px;
        height: 50px;
        font-size: var(--text-xl);
        margin-top: 2.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    .title-highlight {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: var(--text-base);
    }
    
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .industry-item {
        padding: var(--spacing-md);
    }
    
    .industry-icon {
        width: 50px;
        height: 50px;
        margin-bottom: var(--spacing-sm);
    }
    
    .industry-item h3 {
        font-size: var(--text-base);
    }
    
    .industry-item p {
        font-size: var(--text-xs);
    }
    
    .cta-button.primary.large {
        font-size: 0.90rem !important;
        padding: 0.75rem 1.1rem !important;
        white-space: normal !important;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    .erp-hero::before,
    .cta-section::before {
        animation: none !important;
    }
    
    .service-card::before {
        animation: none !important;
    }
    
    .hero-icon {
        animation: none !important;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .erp-hero,
    .cta-section {
        background: white !important;
        color: black !important;
    }
}

/* ===== HIGH DPI DISPLAYS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .service-icon,
    .industry-icon,
    .differentiator-icon {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}