/* ====================================
   Jesse Field MFB - Modern Design System
   ==================================== */

/* CSS Variables for Design System */
:root {
    /* Primary Colors - Nigerian Green (inspired by flag) */
    --jf-primary: #008751;
    --jf-primary-dark: #006938;
    --jf-primary-light: #00a862;
    
    /* Secondary Colors - Light Green variant (harmony with primary) */
    --jf-secondary: #10b981;
    --jf-secondary-dark: #059669;
    --jf-secondary-light: #34d399;
    
    /* Accent Colors - Deep Blue (trust and stability) */
    --jf-accent: #1E40AF;
    --jf-accent-dark: #1E3A8A;
    --jf-accent-light: #3B82F6;
    
    /* Neutral Colors */
    --jf-white: #FFFFFF;
    --jf-light: #F8F9FA;
    --jf-gray-100: #E9ECEF;
    --jf-gray-200: #DEE2E6;
    --jf-gray-300: #CED4DA;
    --jf-gray-600: #6C757D;
    --jf-gray-800: #343A40;
    --jf-dark: #212529;
    
    /* Semantic Colors */
    --jf-success: #28A745;
    --jf-warning: #FFC107;
    --jf-danger: #DC3545;
    --jf-info: #17A2B8;
    
    /* Typography */
    --jf-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --jf-font-family-heading: 'Inter', 'Segoe UI', sans-serif;
    
    /* Spacing */
    --jf-spacing-xs: 0.5rem;
    --jf-spacing-sm: 1rem;
    --jf-spacing-md: 1.5rem;
    --jf-spacing-lg: 2.5rem;
    --jf-spacing-xl: 4rem;
    
    /* Border Radius */
    --jf-radius-sm: 0.25rem;
    --jf-radius-md: 0.5rem;
    --jf-radius-lg: 1rem;
    --jf-radius-xl: 1.5rem;
    
    /* Shadows */
    --jf-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --jf-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --jf-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --jf-shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --jf-transition-fast: 150ms ease-in-out;
    --jf-transition-normal: 300ms ease-in-out;
    --jf-transition-slow: 500ms ease-in-out;
}

/* ====================================
   Global Styles
   ==================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--jf-font-family);
    color: var(--jf-dark);
    background-color: var(--jf-white);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.03;
    background-image: 
        repeating-linear-gradient(45deg, var(--jf-primary) 0px, var(--jf-primary) 2px, transparent 2px, transparent 10px),
        repeating-linear-gradient(-45deg, var(--jf-secondary) 0px, var(--jf-secondary) 2px, transparent 2px, transparent 10px);
    animation: moveBackground 60s linear infinite;
    pointer-events: none;
}

@keyframes moveBackground {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--jf-font-family-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--jf-spacing-md);
    color: var(--jf-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h5 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
h6 { font-size: clamp(1rem, 1.5vw, 1.25rem); }

p {
    margin-bottom: var(--jf-spacing-sm);
    color: var(--jf-gray-800);
}

a {
    color: var(--jf-primary);
    text-decoration: none;
    transition: all var(--jf-transition-fast);
}

a:hover {
    color: var(--jf-secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ====================================
   Utility Classes
   ==================================== */

.text-primary { color: var(--jf-primary) !important; }
.text-secondary { color: var(--jf-secondary) !important; }
.text-accent { color: var(--jf-accent) !important; }
.text-white { color: var(--jf-white) !important; }

.bg-primary { background-color: var(--jf-primary) !important; }
.bg-secondary { background-color: var(--jf-secondary) !important; }
.bg-accent { background-color: var(--jf-accent) !important; }
.bg-light { background-color: var(--jf-light) !important; }
.bg-white { background-color: var(--jf-white) !important; }

.gradient-primary {
    background: linear-gradient(135deg, var(--jf-primary) 0%, var(--jf-accent) 100%);
}

.gradient-secondary {
    background: linear-gradient(135deg, var(--jf-secondary) 0%, var(--jf-secondary-light) 100%);
}

.shadow-sm { box-shadow: var(--jf-shadow-sm); }
.shadow-md { box-shadow: var(--jf-shadow-md); }
.shadow-lg { box-shadow: var(--jf-shadow-lg); }
.shadow-xl { box-shadow: var(--jf-shadow-xl); }

.rounded-sm { border-radius: var(--jf-radius-sm); }
.rounded-md { border-radius: var(--jf-radius-md); }
.rounded-lg { border-radius: var(--jf-radius-lg); }
.rounded-xl { border-radius: var(--jf-radius-xl); }

/* ====================================
   Buttons
   ==================================== */

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--jf-radius-md);
    cursor: pointer;
    transition: all var(--jf-transition-normal);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: width var(--jf-transition-normal);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background-color: var(--jf-primary);
    color: var(--jf-white);
    border-color: var(--jf-primary);
}

.btn-primary:hover {
    background-color: var(--jf-primary-dark);
    border-color: var(--jf-primary-dark);
    color: var(--jf-white);
    transform: translateY(-2px);
    box-shadow: var(--jf-shadow-lg);
}

.btn-secondary {
    background-color: var(--jf-secondary);
    color: var(--jf-white);
    border-color: var(--jf-secondary);
}

.btn-secondary:hover {
    background-color: var(--jf-secondary-dark);
    border-color: var(--jf-secondary-dark);
    color: var(--jf-white);
    transform: translateY(-2px);
    box-shadow: var(--jf-shadow-lg);
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--jf-primary);
    border-color: var(--jf-primary);
}

.btn-outline-primary:hover {
    background-color: var(--jf-primary);
    color: var(--jf-white);
}

.btn-outline-secondary {
    background-color: transparent;
    color: var(--jf-secondary);
    border-color: var(--jf-secondary);
}

.btn-outline-secondary:hover {
    background-color: var(--jf-secondary);
    color: var(--jf-white);
}

.btn-lg {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
}

/* ====================================
   Cards
   ==================================== */

.card {
    background: var(--jf-white);
    border-radius: var(--jf-radius-lg);
    box-shadow: var(--jf-shadow-md);
    transition: all var(--jf-transition-normal);
    overflow: hidden;
    border: none;
}

.card:hover {
    box-shadow: var(--jf-shadow-xl);
    transform: translateY(-8px);
}

/* Hover lift effect for service cards */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0, 135, 81, 0.15) !important;
}

.card-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--jf-radius-md);
    font-size: 2rem;
    margin-bottom: var(--jf-spacing-md);
}

.card-icon-primary {
    background: linear-gradient(135deg, var(--jf-primary) 0%, var(--jf-primary-light) 100%);
    color: var(--jf-white);
}

.card-icon-secondary {
    background: linear-gradient(135deg, var(--jf-secondary) 0%, var(--jf-secondary-light) 100%);
    color: var(--jf-white);
}

.card-icon-accent {
    background: linear-gradient(135deg, var(--jf-accent) 0%, var(--jf-accent-light) 100%);
    color: var(--jf-white);
}

/* ====================================
   Sections
   ==================================== */

.section {
    padding: var(--jf-spacing-xl) 0;
}

.section-lg {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--jf-spacing-xl);
}

.section-subtitle {
    color: var(--jf-secondary);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: var(--jf-spacing-sm);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--jf-primary);
    margin-bottom: var(--jf-spacing-md);
}

.section-description {
    font-size: 1.125rem;
    color: var(--jf-gray-600);
    max-width: 700px;
    margin: 0 auto;
}

/* ====================================
   Animations
   ==================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

/* ====================================
   Forms
   ==================================== */

.form-control {
    border: 2px solid var(--jf-gray-200);
    border-radius: var(--jf-radius-md);
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    transition: all var(--jf-transition-fast);
}

.form-control:focus {
    border-color: var(--jf-primary);
    box-shadow: 0 0 0 3px rgba(10, 36, 99, 0.1);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--jf-dark);
    margin-bottom: 0.5rem;
    display: block;
}

/* ====================================
   Responsive
   ==================================== */

@media (max-width: 768px) {
    .section {
        padding: var(--jf-spacing-lg) 0;
    }
    
    .section-lg {
        padding: 4rem 0;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    :root {
        --jf-spacing-xl: 3rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .section-lg {
        padding: 3rem 0;
    }
}

/* ====================================
   Hero Carousel Styles - Simple & Elegant
   ==================================== */

.hero-carousel {
    position: relative;
    overflow: hidden;
    background: var(--jf-dark);
}

.hero-carousel .carousel-item {
    height: 700px;
    position: relative;
}

/* Dark overlay for better text visibility */
.hero-carousel .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 135, 81, 0.85) 0%, rgba(0, 103, 56, 0.75) 100%);
    z-index: 1;
}

.hero-carousel .carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-carousel .carousel-caption {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 0;
    text-align: left;
}

/* Navigation Controls - Simple & Clean */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 60px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
    opacity: 1;
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* Indicators - Clean Dots */
.hero-carousel .carousel-indicators {
    bottom: 20px;
    z-index: 3;
    margin: 0;
}

.hero-carousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.hero-carousel .carousel-indicators button.active {
    width: 30px;
    border-radius: 5px;
    background-color: var(--jf-secondary);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-carousel .carousel-item {
        height: 650px;
    }
}

@media (max-width: 768px) {
    .hero-carousel .carousel-item {
        height: 550px;
    }
    
    .hero-carousel .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .hero-carousel .carousel-caption .lead {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-carousel .carousel-item {
        height: 500px;
    }
    
    .hero-carousel .carousel-caption h1 {
        font-size: 1.75rem;
    }
}

/* ====================================
   Animated Background Sections
   ==================================== */

/* Floating shapes background for sections */
.bg-white, .bg-light {
    position: relative;
    overflow: hidden;
}

.bg-white::after, .bg-light::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.02;
    background-image: 
        radial-gradient(circle at 20% 30%, var(--jf-primary) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, var(--jf-secondary) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, var(--jf-accent) 0%, transparent 50%);
    animation: floatShapes 30s ease-in-out infinite;
    pointer-events: none;
}

@keyframes floatShapes {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(20px, -20px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Ensure content is above the background */
.bg-white .container, .bg-light .container,
.bg-white > *, .bg-light > * {
    position: relative;
    z-index: 1;
}

/* Gradient wave animation for specific sections */
.gradient-primary {
    background: linear-gradient(135deg, var(--jf-primary) 0%, var(--jf-accent) 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}
