/* Stafferi Main CSS */
/* Color Scheme:
   Primary: #00BFFF (Stafferi Blue)
   Secondary: #003366 (Dark Blue)
   Success: #28a745 (Green)
   Neutral: #6c757d (Gray)
   Background: #ffffff (White)
*/

:root {
    --primary-color: #00BFFF;
    --secondary-color: #003366;
    --success-color: #28a745;
    --neutral-color: #6c757d;
    --background-color: #ffffff;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

/* Typography */
body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-color);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title.black {
    color: var(--text-dark);
}

/* Custom Bootstrap Color Overrides */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

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

.btn-primary:hover,
.btn-primary:focus {
    background-color: #0099cc;
    border-color: #0099cc;
}

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

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

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

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Language Switcher */
.dropdown-item.active {
    background-color: var(--primary-color);
    color: white;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-section .btn {
    font-weight: 500;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.hero-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Feature Cards */
.feature-card {
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
}

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

.feature-icon {
    text-align: center;
}

.feature-card h4 {
    color: var(--text-dark);
    font-size: 1.25rem;
}

/* Animation Classes */
.loading {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.loading.fade-in-up,
.fade-in-up {
    opacity: 1;
    transform: translateY(0);
}

/* Benefits Section */
.benefit-icon {
    text-align: center;
    margin-bottom: 1rem;
}

.benefit-icon i {
    transition: all 0.3s ease;
}

.benefit-icon:hover i {
    transform: scale(1.1);
}

/* Stats Section */
#stats {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.stat-number {
    transition: all 0.3s ease;
}

.stat-number:hover {
    transform: scale(1.05);
}

.stat-number span {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#stats h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

#stats p {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Customer Stories */
.customer-story {
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.customer-story:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.customer-avatar {
    flex-shrink: 0;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.cta-section .btn {
    font-weight: 500;
    padding: 0.75rem 2.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.cta-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Footer */
footer {
    background-color: var(--secondary-color) !important;
}

footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
}

/* Utility Classes */
.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow {
    box-shadow: var(--shadow) !important;
}

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

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

/* Section Spacing */
section {
    padding: 4rem 0;
}

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

/* Alternative loading class for future use */
.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Buttons */
.btn-rounded {
    border-radius: 50px;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
}

/* Image Optimizations */
img {
    max-width: 100%;
    height: auto;
}

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

.img-fluid:hover {
    transform: scale(1.02);
}

/* Focus States for Accessibility */
.btn:focus,
.nav-link:focus,
.dropdown-item:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar,
    .cta-section,
    footer {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: more) {
    :root {
        --primary-color: #0066cc;
        --secondary-color: #000033;
        --text-dark: #000000;
        --border-color: #000000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Dark Mode Support (Future Enhancement) */
@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #1a1a1a;
        --text-dark: #ffffff;
        --text-muted: #cccccc;
        --border-color: #333333;
    }
    
    .bg-light {
        background-color: #2a2a2a !important;
    }
    
    .text-muted {
        color: #cccccc !important;
    }
}