/* Custom CSS for FlashPrime Logistics Website */

:root {
    --primary-color: #0f3ebe;
    --secondary-color: #3b82f6;
    --warning-color: #fbbf24;
    --light-blue: #e0f2fe;
    --dark-blue: #0f172a;
}

body {
    padding-top: 76px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    color: #6b7280 !important;
    transition: color 0.3s ease;
}

.section-badge-l {
    padding: 0.25rem 0.8rem;
    border-radius: 0.8rem;
    background-color: rgb(214, 227, 233) !important;
    color: rgb(89, 89, 91);
    font-weight: 500;
    font-size: 12px;
    margin-bottom: 10px !important;
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(4, 36, 122, 0.6), rgba(14, 65, 147, 0.6)), 
                url('/images/landing-image-2.jpg') center/cover;
    min-height: 100vh;
    position: relative;
    background-attachment: fixed;
}

.track-shipment-card {
    max-width: 400px;
}

/* Container Animation */
.container-3d {
    animation: float 3s ease-in-out infinite;
}

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

/* Service Cards */
.service-card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

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

.service-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.ocean-freight {
    background: linear-gradient(rgba(30, 58, 138, 0.3), rgba(30, 58, 138, 0.3)),
                url('/images/ocean-freight.jpg') center/cover;
}

.air-freight {
    background: linear-gradient(rgba(30, 58, 138, 0.3), rgba(30, 58, 138, 0.3)),
                url('/images/air-freight.jpg') center/cover;
}

.road-transport {
    background: linear-gradient(rgba(30, 58, 138, 0.3), rgba(30, 58, 138, 0.3)),
                url('/images/road-freight.jpg') center/cover;
}

/* Map Section */
.map-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.map-points {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.map-point {
    position: absolute;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Testimonial Cards */
.testimonial-card {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Carousel Dots */
.carousel-indicators-custom .dot {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.carousel-indicators-custom .dot.active {
    background-color: var(--primary-color);
    width: 30px;
    border-radius: 5px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.95), rgba(59, 130, 246, 0.95));
    position: relative;
}

/* FAQ Accordion */
.accordion-button:not(.collapsed) {
    background-color: var(--light-blue);
    color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

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

.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .navbar-collapse {
        background: white;
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .track-shipment-card {
        margin-top: 2rem;
    }
    
    .stats-row h3 {
        font-size: 1.2rem;
    }
    
    .map-points {
        display: none;
    }
    
    .cta-section h2 {
        font-size: 1.8rem;
    }
    
    footer .col-lg-2 {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 60px;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .display-5 {
        font-size: 1.8rem;
    }
    
    .service-card {
        margin-bottom: 1rem;
    }
    
    .testimonial-card {
        margin-bottom: 1rem;
    }
    
    .accordion-button {
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }
}

/* Material Design Button Styles */
.btn,
button.btn {
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 4px;
    padding: 10px 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}

.btn:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15), 0 2px 4px rgba(0,0,0,0.25);
    transform: translateY(-1px);
}

.btn:active {
    box-shadow: 0 1px 2px rgba(0,0,0,0.12), 0 0 1px rgba(0,0,0,0.24);
    transform: translateY(0);
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 62, 190, 0.15);
}

/* Ripple Effect */
.btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

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

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(15, 62, 190, 0.25), 0 3px 6px rgba(15, 62, 190, 0.15);
}

.btn-primary:disabled {
    background-color: #9ca3af;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-primary:disabled:hover {
    transform: none;
    background-color: #9ca3af;
}

.btn-warning {
    background-color: var(--warning-color);
    border-color: var(--warning-color);
    color: var(--dark-blue);
    font-weight: 600;
}

.btn-warning:hover {
    background-color: #f59e0b;
    border-color: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(251, 191, 36, 0.25), 0 3px 6px rgba(251, 191, 36, 0.15);
}

.btn-secondary {
    background-color: #6b7280;
    border-color: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background-color: #4b5563;
    border-color: #4b5563;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(107, 114, 128, 0.25), 0 3px 6px rgba(107, 114, 128, 0.15);
}

/* Large Button Variant */
.btn-lg {
    padding: 12px 32px;
    font-size: 1.1rem;
    border-radius: 6px;
}

/* Small Button Variant */
.btn-sm {
    padding: 6px 16px;
    font-size: 0.875rem;
    border-radius: 3px;
}

/* Material Design Input Fields */
.form-control {
    border: none;
    border-bottom: 2px solid #e5e7eb;
    border-radius: 0;
    padding: 8px 0;
    font-size: 16px;
    background-color: transparent;
    box-shadow: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control:focus {
    outline: none;
    border-bottom-color: var(--primary-color);
    box-shadow: none;
    background-color: transparent;
}

.form-control:hover {
    border-bottom-color: #9ca3af;
}

/* Material Design Floating Label */
.md-form {
    position: relative;
    margin-bottom: 1.5rem;
}

.md-form label {
    position: absolute;
    top: 8px;
    left: 0;
    font-size: 16px;
    color: #9ca3af;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left top;
}

.md-form .form-control:focus ~ label,
.md-form .form-control:not(:placeholder-shown) ~ label {
    transform: translateY(-20px) scale(0.8);
    color: var(--primary-color);
}

.md-form .form-control:not(:focus):not(:placeholder-shown) ~ label {
    color: #6b7280;
}

/* Input with Icon */
.input-group {
    position: relative;
    border-bottom: 2px solid #e5e7eb;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-group:focus-within {
    border-bottom-color: var(--primary-color);
}

.input-group .form-control {
    border: none;
    border-bottom: none;
}

/* Textarea Material Design */
textarea.form-control {
    border: 2px solid #e5e7eb;
    border-radius: 4px;
    padding: 12px;
    min-height: 100px;
    resize: vertical;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

textarea.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(15, 62, 190, 0.1);
}

/* Input Validation States */
.form-control.is-invalid {
    border-bottom-color: #ef4444;
}

.form-control.is-valid {
    border-bottom-color: #10b981;
}

/* Error/Success Messages */
.invalid-feedback {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 4px;
}

.valid-feedback {
    color: #10b981;
    font-size: 0.875rem;
    margin-top: 4px;
}

/* Material Design Hamburger Menu */
.navbar-toggler {
    border: none;
    padding: 4px 8px;
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.navbar-toggler:hover {
    background-color: rgba(15, 62, 190, 0.08);
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
    background-color: rgba(15, 62, 190, 0.12);
}

.navbar-toggler-icon {
    width: 24px;
    height: 24px;
    position: relative;
    display: block;
    background: none;
    background-image: none !important;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after,
.navbar-toggler-icon span {
    display: block;
    background-color: var(--primary-color);
    height: 2px;
    width: 24px;
    border-radius: 2px;
    position: absolute;
    left: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-toggler-icon span {
    top: 50%;
    transform: translateY(-50%);
}

.navbar-toggler-icon::before {
    content: '';
    top: 6px;
}

.navbar-toggler-icon::after {
    content: '';
    bottom: 6px;
}

/* Animated hamburger when menu is open */
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon span {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    transform: rotate(45deg);
    top: 11px;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    transform: rotate(-45deg);
    bottom: 11px;
}

/* Ripple effect on click */
.navbar-toggler::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(15, 62, 190, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
    pointer-events: none;
}

.navbar-toggler:active::before {
    width: 48px;
    height: 48px;
}

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

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}