/* Custom CSS for Misson ERP Website */

:root {
    --primary-color: #AC1442;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

/* Global Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    padding-top: 76px; /* Account for fixed navbar */
    color: #2c3e50;
}

/* Card styles */
.card {
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Override Bootstrap text-primary color */
.text-primary {
    color: #AC1442 !important;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Navigation */
.navbar {
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-brand img {
    transition: all 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Hero Section */
.hero-section {
    background: #ffffff;
    min-height: 80vh;
    height: 80vh;
    display: flex;
    align-items: center;
}

.hero-image {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Module Cards */
.module-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-color: #dee2e6;
}

.module-card .card-header {
    border-bottom: 1px solid #e9ecef;
    padding: 1.5rem;
    font-weight: 600;
    background-color: white;
}

.module-card .card-body {
    padding: 1.5rem;
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 12px 30px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    box-shadow: 0 2px 8px rgba(172, 20, 66, 0.2);
}

.btn-primary:hover {
    background: #8B0F33;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(172, 20, 66, 0.3);
}

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

.btn-outline-primary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(172, 20, 66, 0.2);
}

.btn-outline-dark {
    border: 2px solid #2c3e50;
    color: #2c3e50;
}

.btn-outline-dark:hover {
    background: #2c3e50;
    border-color: #2c3e50;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.2);
}

/* Contact Form */
.form-control {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.15rem rgba(172, 20, 66, 0.15);
}

.form-label {
    color: #495057;
    margin-bottom: 0.5rem;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 2rem 0;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .btn-lg {
        padding: 10px 25px;
        font-size: 1rem;
    }
    
    .feature-card,
    .module-card {
        margin-bottom: 2rem;
    }
    
    .navbar-brand img {
        height: 20px;
    }
    
    .navbar-brand span {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.8rem;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
    
    .hero-section {
        min-height: auto;
        padding: 1rem 0;
    }
    
    .module-card .card-header,
    .module-card .card-body {
        padding: 1rem;
    }
}

/* Background gradients for sections */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), #8B0F33);
}

.bg-gradient-light {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

/* Custom spacing */
.py-6 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

/* Section backgrounds */
section {
    position: relative;
}

.bg-light {
    background-color: #f8f9fa !important;
}

.bg-white {
    background-color: #ffffff !important;
}

/* Link styles */
a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Shadow utilities */
.shadow-soft {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.shadow-hover:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* Text utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), #8B0F33);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading animation for future use */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Customer Logos */
.customer-logo {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.customer-logo:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #dee2e6;
}

.customer-logo-img {
    max-height: 60px;
    max-width: 140px;
    object-fit: contain;
    filter: grayscale(80%) opacity(0.8);
    transition: filter 0.3s ease;
}

.customer-logo:hover .customer-logo-img {
    filter: grayscale(0%) opacity(1);
}

@media (max-width: 768px) {
    .customer-logo {
        height: 100px;
    }
    
    .customer-logo-img {
        max-height: 50px;
        max-width: 120px;
    }
}

/* Stats Cards */
.stats-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-color: #dee2e6;
}

.stats-icon {
    margin-bottom: 1rem;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.stats-label {
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .stats-number {
        font-size: 2rem;
    }
    
    .stats-card {
        margin-bottom: 1.5rem;
    }
}