/* Enhanced MoboPOS Website Styles */
/* Modern, Professional, and Visually Appealing Design */

/* Enhanced Color Palette with Better Background Harmony */
:root {
    /* Primary Brand Colors */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-lighter: #60a5fa;
    --primary-subtle: #dbeafe;
    
    /* Secondary Colors */
    --secondary: #1e293b;
    --secondary-dark: #0f172a;
    --secondary-light: #334155;
    --secondary-lighter: #475569;
    --secondary-subtle: #f8fafc;
    
    /* Accent Colors */
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --accent-light: #fbbf24;
    --accent-lighter: #fcd34d;
    --accent-subtle: #fef3c7;
    
    /* Neutral Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-quaternary: #e2e8f0;
    --bg-subtle: #f8fafc;

    --light-alt: #fdfdfdbe;
    
    /* Surface Colors */
    --surface-1: #ffffff;
    --surface-2: #f8fafc;
    --surface-3: #f1f5f9;
    --surface-4: #e2e8f0;
    --surface-5: #cbd5e1;
    
    /* Text Colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #64748b;
    --text-quaternary: #94a3b8;
    --text-inverse: #ffffff;
    --text-muted: #94a3b8;
    
    /* Semantic Colors */
    --success: #10b981;
    --success-light: #34d399;
    --success-subtle: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fbbf24;
    --warning-subtle: #fef3c7;
    --error: #ef4444;
    --error-light: #f87171;
    --error-subtle: #fee2e2;
    --info: #06b6d4;
    --info-light: #22d3ee;
    --info-subtle: #cffafe;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    --gradient-hero: linear-gradient(135deg, var(--secondary-dark) 0%, var(--primary) 100%);
    --gradient-surface: linear-gradient(135deg, var(--surface-1) 0%, var(--surface-2) 100%);
    --gradient-subtle: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    
    /* Enhanced Shadows with better color harmony */
    --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.1), 0 2px 4px -1px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    --shadow-accent: 0 4px 14px 0 rgba(245, 158, 11, 0.15);
    --shadow-primary: 0 4px 14px 0 rgba(37, 99, 235, 0.15);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Enhanced Body & Typography with Better Background */
body {
    font-family: 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 400;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Add subtle texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(16, 185, 129, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Enhanced Navbar with Better Color Harmony */
.modern-navbar {
    padding: 16px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border-bottom: 1px solid var(--surface-4);
}

.modern-navbar.shadow-sm {
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--surface-5);
}

.brand-text {
    font-weight: 800;
    font-size: 24px;
    color: var(--secondary);
    letter-spacing: -0.5px;
    transition: color var(--transition-fast);
}

.brand-text:hover {
    color: var(--primary);
}

.nav-link {
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0 12px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
    background: var(--primary-subtle);
}

.nav-link.active {
    color: var(--primary);
    background: var(--primary-subtle);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all var(--transition-fast);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Enhanced Buttons */
.btn {
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::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 var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn-main {
    background: var(--gradient-accent);
    color: var(--dark);
    box-shadow: var(--shadow-md);
}

.btn-main:hover {
    background: var(--accent-dark);
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-light {
    border: 2px solid var(--light-alt);
    color: var(--light-alt);
    background: transparent;
}

.btn-outline-light:hover {
    background: var(--light-alt);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Enhanced Hero Section with Better Background */
.hero {
    position: relative;
    background: var(--gradient-hero);
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("./../images/banner1.png") center/cover;
    opacity: 0.15;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--bg-secondary), transparent);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 120px 0 80px;
}

.hero-title {
    font-weight: 900;
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    color: var(--light-alt);
    letter-spacing: -1px;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-weight: 600;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    margin-bottom: 1.5rem;
    color: var(--accent-light);
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-text {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
    animation: fadeInUp 0.8s ease 0.6s both;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Enhanced Section Styling */
.section-title {
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 3rem;
    color: var(--secondary);
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: var(--radius-sm);
}

/* Enhanced Feature Cards with Better Background Colors */
.feature-card {
    background: var(--surface-1);
    border-radius: var(--radius-xl);
    padding: 40px 30px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid var(--surface-4);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent);
    background: var(--surface-1);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-accent);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2rem;
    color: var(--text-primary);
    transition: all var(--transition-normal);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-accent);
}

.feature-card h5 {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
    text-align: justify;
}

/* Enhanced Module Boxes with Better Background Colors */
.module-box {
    background: var(--surface-1);
    border-radius: var(--radius-lg);
    padding: 30px 20px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    height: 100%;
}

.module-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
    background: var(--gradient-surface);
}

.module-box i {
    font-size: 2.5rem;
    color: var(--primary);
    /* margin-bottom: 16px; */
    transition: all var(--transition-normal);
}

.module-box:hover i {
    color: var(--accent);
    transform: scale(1.1);
}

.module-box h6 {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0;
}

/* Enhanced Highlight Section with Better Background Colors */
.highlight {
    background: var(--surface-1);
    border-radius: var(--radius-xl);
    padding: 40px 30px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    height: 100%;
    border: 1px solid var(--surface-4);
    position: relative;
}

.highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
    border-radius: var(--radius-xl);
}

.highlight:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.highlight:hover::before {
    opacity: 0.05;
}

.highlight i {
    font-size: 3rem;
    color: var(--primary);
    /* margin-bottom: 20px; */
    transition: all var(--transition-normal);
}

.highlight:hover .benefit-icon {
    background: var(--primary);
}

.highlight:hover i {
    color: var(--accent);
    transform: scale(1.1);
}

.highlight h5 {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--text-primary);
    position: relative;
}

.highlight p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
    position: relative;
}

/* Enhanced Dashboard Section with Better Background Colors */
.dashboard-section {
    background: var(--gradient-subtle);
    position: relative;
    overflow: hidden;
}

.dashboard-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--gradient-accent);
    border-radius: 50%;
    opacity: 0.1;
}

.dashboard-section img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    transition: all var(--transition-normal);
}

.dashboard-section img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-2xl);
}

/* Enhanced Contact Section with Better Background Colors */
.contact-section {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
}

.contact-section .container {
    position: relative;
    z-index: 2;
}

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    padding: 30px 20px;
    transition: all var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: 100%;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent);
}

.contact-icon {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--text-inverse);
    transition: all var(--transition-normal);
}

.contact-card:hover .contact-icon {
    background: var(--accent);
    transform: scale(1.1);
}

.contact-card h6 {
    font-weight: 700;
    color: var(--text-inverse);
    margin-bottom: 8px;
}

.contact-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

/* Enhanced Footer with Better Background Colors */
.modern-footer {
    background: var(--secondary);
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-accent);
}

.modern-footer a {
    color: var(--text-quaternary);
    transition: color var(--transition-fast);
}

.modern-footer a:hover {
    color: var(--accent);
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .nav-link {
        margin: 4px 0;
    }

    /* .hero-image-card {
        display: none;
    } */
}

/* Enhanced Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Enhanced Focus States */
.btn:focus,
.nav-link:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Enhanced Print Styles */
@media print {
    .modern-navbar,
    .hero-buttons,
    .contact-section {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: 40px 0;
    }
}
