/* ===== MAIN CSS - MOBILE FIRST ===== */
:root {
    /* Color Palette */
    --primary-color: #0A2463;
    --secondary-color: #FF6B35;
    --accent-color: #1EA896;
    --dark-color: #212529;
    --light-color: #F8F9FA;
    --gray-color: #6C757D;
    --light-gray: #E9ECEF;
    --success-color: #28A745;
    --danger-color: #DC3545;
    --warning-color: #FFC107;
    --info-color: #17A2B8;
    
    /* Typography - Base for mobile */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    /* Spacing - Mobile first */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-round: 50%;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.15);
    --shadow-xl: 0 12px 24px rgba(0,0,0,0.18);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 15px; /* Reduced from 16px */
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--dark-color);
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 0.9375rem; /* Added base body font size */
}

.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Typography - Mobile First */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 1.75rem; /* Reduced from 2rem */
    font-weight: 800;
}

h2 {
    font-size: 1rem; /* Reduced from 1.75rem */
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: 1.15rem; /* Reduced from 1.375rem */
}

h4 {
    font-size: 1.125rem;
}

p {
    margin-bottom: var(--spacing-md);
    font-size: 0.975rem; /* Reduced from 1rem */
    line-height: 1.5;
}

.highlight {
    color: var(--secondary-color);
}

.section-title {
    text-align: center;
    position: relative;
    padding-bottom: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.section-title h2 {
    font-size: 1.5rem; /* Added specific size */
}

.section-title p {
    font-size: 0.9375rem; /* Added specific size */
    color: var(--gray-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-sm);
}

/* Buttons - Touch Friendly */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 0.75rem 1.25rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem; /* Reduced from 0.9375rem */
    text-decoration: none;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-normal);
    text-align: center;
    white-space: nowrap;
    user-select: none;
    min-height: 44px; /* Minimum touch target size */
    min-width: 44px; /* Minimum touch target size */
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

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

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #e05a2b;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

.btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem; /* Reduced from 1rem */
}

.btn-block {
    width: 100%;
    display: flex;
}

/* Forms - Mobile Optimized */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: 0.375rem;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.875rem; /* Reduced from 0.9375rem */
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.9375rem; /* Reduced from 1rem */
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-md);
    background-color: white;
    transition: var(--transition-normal);
    -webkit-appearance: none;
    appearance: none;
    min-height: 44px; /* Minimum touch target */
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(10, 36, 99, 0.1);
}

.form-control.error {
    border-color: var(--danger-color);
}

.form-text {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    color: var(--gray-color);
}

.form-text.error {
    color: var(--danger-color);
}

/* Flash Messages */
.flash-message {
    position: fixed;
    top: 20px;
    right: 20px;
    left: 20px;
    z-index: 1000;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    color: white;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.3s ease;
    max-width: 100%;
    margin: 0 auto;
    font-size: 0.875rem; /* Added */
}

.flash-success {
    background-color: var(--success-color);
}

.flash-error {
    background-color: var(--danger-color);
}

.flash-warning {
    background-color: var(--warning-color);
    color: var(--dark-color);
}

.flash-info {
    background-color: var(--info-color);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Sections */
.section {
    padding: var(--spacing-xl) 0;
}

.section-light {
    background-color: var(--light-color);
}

.section-dark {
    background-color: var(--primary-color);
    color: white;
}

/* Cards */
.card {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    height: 100%;
    border: 1px solid var(--light-gray);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    font-size: 1.25rem;
    color: white;
}

/* Grid System - Mobile First */
.grid {
    display: grid;
    gap: var(--spacing-lg);
}

.grid-2 {
    grid-template-columns: 1fr;
}

.grid-3 {
    grid-template-columns: 1fr;
}

.grid-4 {
    grid-template-columns: 1fr;
}

/* Hero Section - Mobile Optimized */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(10, 36, 99, 0.9), rgba(30, 168, 150, 0.8));
    color: white;
    padding: var(--spacing-xl) 0;
    text-align: center;
}

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

.hero h1 {
    font-size: 2rem; /* Reduced from 2.25rem */
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.hero p {
    font-size: 0.975rem; /* Reduced from 1.125rem */
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.hero-buttons .btn {
    width: 100%;
}

/* Features */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.feature-card {
    text-align: center;
    padding: var(--spacing-lg);
}

.feature-card h3 {
    font-size: 1.25rem; /* Added */
    margin-bottom: var(--spacing-sm);
}

.feature-card p {
    font-size: 0.9375rem; /* Added */
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    font-size: 1.5rem; /* Reduced from 1.75rem */
    color: white;
}

/* Testimonials */
.testimonial-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.testimonial-card {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
    margin: var(--spacing-sm) 0;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-left: var(--spacing-md);
    font-size: 0.9375rem; /* Reduced from 1rem */
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 2rem;
    color: var(--accent-color);
    opacity: 0.3;
    font-family: serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-round);
    object-fit: cover;
}

.testimonial-info h4 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.testimonial-rating {
    color: var(--warning-color);
    font-size: 0.875rem;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.pricing-card {
    position: relative;
    overflow: hidden;
    border: 2px solid var(--light-gray);
}

.pricing-card.featured {
    border-color: var(--secondary-color);
}

.pricing-badge {
    position: absolute;
    top: 15px;
    right: -30px;
    background-color: var(--secondary-color);
    color: white;
    padding: 0.25rem 2rem;
    transform: rotate(45deg);
    font-weight: 600;
    font-size: 0.75rem;
}

.pricing-header {
    text-align: center;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--light-gray);
}

.pricing-price {
    font-size: 2rem; /* Reduced from 2.5rem */
    font-weight: 800;
    color: var(--primary-color);
    margin: var(--spacing-sm) 0;
}

.pricing-price span {
    font-size: 0.9375rem;
    color: var(--gray-color);
}

.pricing-features {
    padding: var(--spacing-lg);
    list-style: none;
}

.pricing-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.9375rem;
}

.pricing-features li i {
    color: var(--success-color);
    font-size: 0.875rem;
}

.pricing-footer {
    padding: var(--spacing-lg);
    text-align: center;
    border-top: 1px solid var(--light-gray);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
}

.contact-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
    flex-shrink: 0;
}

/* Demo Page */
.demo-steps {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
}

.demo-step {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    text-align: left;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: white;
    border: 3px solid var(--light-gray);
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-color);
    flex-shrink: 0;
    transition: var(--transition-normal);
}

.demo-step.active .step-number {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Error Page */
.error-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.error-content h1 {
    font-size: 3.5rem; /* Reduced from 4rem */
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.error-content h2 {
    font-size: 1.5rem; /* Reduced from 1.75rem */
    margin-bottom: var(--spacing-md);
}

.error-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin: var(--spacing-lg) 0;
}

.error-search {
    max-width: 100%;
    margin: 0 auto;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.search-form input {
    flex: 1;
    min-height: 44px;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* CTA Section - Mobile Optimized */
.section-dark {
    background: #0b2a66;
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
}

.section-dark h2 {
    color: #ffffff;
    font-size: 1.5rem; /* Reduced from 1.75rem */
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.section-dark p {
    color: #c7d4f3;
    font-size: 0.9375rem; /* Reduced from 1rem */
    margin-bottom: var(--spacing-lg);
}

.section-dark .d-flex {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-top: var(--spacing-lg);
}

.section-dark .btn-secondary,
.section-dark .btn-outline {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem; /* Reduced from 1rem */
    font-weight: 600;
    border-radius: var(--radius-md);
}

/* Add to main.css */
.btn-outline-light {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

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

/* Hero Stats - Mobile */
.hero-stats {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stats .d-flex {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.hero-stats .text-center h3 {
    font-size: 1.5rem; /* Reduced from 1.75rem */
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.hero-stats .text-center p {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* Utility Classes - Mobile First */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.d-none { display: none !important; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.d-block { display: block; }

.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.gap-1 { gap: var(--spacing-xs); }
.gap-2 { gap: var(--spacing-sm); }
.gap-3 { gap: var(--spacing-md); }
.gap-4 { gap: var(--spacing-lg); }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.rounded { border-radius: var(--radius-md); }
.rounded-circle { border-radius: var(--radius-round); }

.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.bg-light { background-color: var(--light-color); }
.bg-dark { background-color: var(--dark-color); }
.bg-primary { background-color: var(--primary-color); }
.bg-secondary { background-color: var(--secondary-color); }

.text-light { color: var(--light-color); }
.text-dark { color: var(--dark-color); }
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-muted { color: var(--gray-color); }

.overflow-hidden { overflow: hidden; }
.position-relative { position: relative; }
.position-absolute { position: absolute; }

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: black;
        background: white;
    }
    
    a {
        color: black !important;
        text-decoration: underline;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
}