/* Erudite ERP Website Styles */

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #4CAF50;
    --danger-color: #f44336;
    --warning-color: #ff9800;
    --info-color: #2196F3;
    --light-color: #f5f5f5;
    --dark-color: #333;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

.navbar-brand:hover {
    color: #667eea !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><path d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/></g></g></svg>') repeat;
    opacity: 0.1;
}

.hero-section > div {
    position: relative;
    z-index: 1;
}

/* Stat Boxes */
.stat-box {
    padding: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    transition: var(--transition);
}

.stat-box:hover {
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.stat-label {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
}

/* Feature Cards */
.feature-card {
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2) !important;
}

.feature-card h5 {
    color: #333;
    font-weight: 600;
}

/* Module Cards */
.module-card {
    background: white;
    transition: var(--transition);
    border: 1px solid #e0e0e0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.module-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

.module-card-header {
    position: relative;
    color: white;
}

.module-card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.module-card-body button {
    margin-top: auto;
}

.module-icon {
    line-height: 1;
    font-size: 3rem;
}

/* Platform Boxes */
.platform-box {
    transition: var(--transition);
}

.platform-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1) !important;
}

.platform-box i {
    opacity: 0.8;
    transition: var(--transition);
}

.platform-box:hover i {
    opacity: 1;
    transform: scale(1.1);
}

/* Step Boxes */
.step-box {
    padding: 20px;
    transition: var(--transition);
}

.step-box:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.step-box:hover .step-number {
    transform: scale(1.1);
}

/* Integration Cards */
.integration-card {
    transition: var(--transition);
    border: 1px solid #ddd;
}

.integration-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.integration-card h5 {
    font-weight: 600;
    color: #333;
}

/* Module Hero Section */
.module-hero {
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.module-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><path d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/></g></g></svg>') repeat;
    opacity: 0.1;
}

.module-hero > div {
    position: relative;
    z-index: 1;
}

.module-stats {
    position: relative;
    z-index: 2;
}

/* Feature Items */
.feature-item {
    padding: 20px;
    border-left: 4px solid;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-item h5 {
    font-weight: 600;
    margin-bottom: 10px;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.btn-light:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Background Gradients */
.bg-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Hover Effects */
.hover-shadow:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

.hover-link {
    transition: var(--transition);
}

.hover-link:hover {
    text-decoration: underline !important;
}

/* Sticky Elements */
.sticky-top {
    transition: var(--transition);
}

/* Badge Styles */
.badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
}

/* Footer */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer a:hover {
    opacity: 0.8;
}

code {
    background-color: #f5f5f5;
    border-radius: 4px;
    padding: 2px 6px;
    font-family: 'Courier New', monospace;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 40px 0;
    }

    .module-hero {
        min-height: auto;
        padding: 40px 0;
    }

    .display-4 {
        font-size: 2rem;
    }

    .display-1 {
        font-size: 4rem;
    }

    .stat-box {
        margin-bottom: 15px;
    }

    .step-box {
        margin-bottom: 20px;
    }

    .module-icon {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
    }

    .display-4 {
        font-size: 1.5rem;
    }

    .lead {
        font-size: 1rem;
    }

    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card {
    animation: slideIn 0.6s ease-out;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Print Styles */
@media print {
    .navbar,
    footer,
    .btn {
        display: none;
    }

    body {
        background-color: white;
    }

    .module-card,
    .feature-card {
        page-break-inside: avoid;
    }
}
