/* Custom CSS for Dropin Logistics Kenya */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 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 xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,106.7C1248,96,1344,96,1392,96L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    z-index: 1;
}

/* Moving motorbike background */
.hero-section::after {
    content: '🏍️';
    position: absolute;
    font-size: 8rem;
    opacity: 0.15;
    animation: motorbikeRide 15s linear infinite;
    z-index: 0;
}

@keyframes motorbikeRide {
    0% {
        left: calc(100% + 200px);
        top: 25%;
        transform: rotate(0deg);
    }
    25% {
        left: 75%;
        top: 15%;
        transform: rotate(3deg);
    }
    50% {
        left: 50%;
        top: 30%;
        transform: rotate(-3deg);
    }
    75% {
        left: 25%;
        top: 20%;
        transform: rotate(5deg);
    }
    100% {
        left: -200px;
        top: 25%;
        transform: rotate(0deg);
    }
}

/* Navigation */
.navbar {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    background-color: rgba(30, 58, 138, 0.95) !important;
}

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

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #FF6600 !important;
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    border-radius: 15px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #1e3a8a;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

/* Tracking Section */
.tracking-form .form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.tracking-form .form-control:focus {
    border-color: #1e3a8a;
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

/* Buttons */
.btn-primary {
    background: #1e3a8a;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.3);
}

.btn-light {
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.btn-outline-light {
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.2);
}

/* Cards */
.card {
    border-radius: 15px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* Form Styling */
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #1e3a8a;
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

.form-label {
    font-weight: 600;
    color: #495057;
}

/* Footer */
.social-links a {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #FF6600 !important;
    transform: translateY(-3px);
}

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0 50px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .service-card {
        margin-bottom: 20px;
    }
}

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

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

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

/* Success message styling */
.success-message {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    display: none;
}

/* Section spacing */
section {
    padding: 80px 0;
}

/* Statistics styling */
.statistics {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
}

/* Feature list styling */
.feature-item {
    padding: 20px;
    border-radius: 10px;
    background: rgba(255, 102, 0, 0.05);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(30, 58, 138, 0.1);
    transform: translateX(10px);
}

/* Professional Blue and Orange Theme */
.professional-blue {
    color: #1e3a8a;
}

.professional-orange {
    color: #FF6600;
}

/* Enhanced hero section with moving bike */
.hero-content h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.hero-content p {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.hero-content .btn {
    position: relative;
    z-index: 2;
}

.hero-content .statistics {
    position: relative;
    z-index: 2;
}

/* Motorbike animation */
@keyframes motorbikeMove {
    0% { transform: translateX(-100px) rotate(0deg); }
    50% { transform: translateX(100px) rotate(5deg); }
    100% { transform: translateX(-100px) rotate(0deg); }
}

.hero-image i {
    animation: motorbikeMove 8s ease-in-out infinite;
}

/* Service cards enhanced */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 102, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

/* Statistics enhancement */
.statistics {
    background: rgba(30, 58, 138, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
    border: 1px solid rgba(255, 102, 0, 0.2);
}

/* Button enhancements */
.btn-success {
    background: #1e3a8a;
    border: none;
}

.btn-success:hover {
    background: #2563eb;
}

/* Contact form enhancement */
#contactForm {
    position: relative;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
}

#contactForm::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: #1e3a8a;
    border-radius: 15px;
    z-index: -1;
}

#contactForm .form-label {
    color: #1e3a8a;
    font-weight: 600;
}

#contactForm .form-control {
    background: white;
    color: #333;
    border: 2px solid #e9ecef;
}

#contactForm .form-control:focus {
    border-color: #1e3a8a;
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
    background: white;
    color: #333;
}

/* Mobile responsiveness for professional theme */
@media (max-width: 768px) {
    .hero-section {
        background: #1e3a8a;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .service-card {
        margin-bottom: 20px;
    }
    
    .hero-image i {
        font-size: 8rem !important;
    }
}
