/* Modern Enhancements for Global Cargo */

/* ===== GLOBAL IMPROVEMENTS ===== */
:root {
    --primary-color: #002060;
    --accent-color: #9FCC41;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --dark-gray: #343a40;
    --white: #ffffff;
    --shadow-light: 0 2px 15px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 5px 30px rgba(0, 0, 0, 0.12);
    --shadow-heavy: 0 10px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 15px;
    --border-radius-lg: 25px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    scroll-behavior: smooth;
}

/* ===== ENHANCED BUTTONS ===== */
.btn {
    border-radius: var(--border-radius);
    font-weight: 600;
    padding: 12px 30px;
    transition: var(--transition);
    border: 2px solid transparent;
    text-transform: none;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #8AB836);
    border-color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(159, 204, 65, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #8AB836, #7AA030);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(159, 204, 65, 0.4);
}

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

.btn-outline-primary:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: var(--border-radius-lg);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* ===== MODERN CARDS ===== */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color), #003080);
    color: white;
    border-bottom: none;
    padding: 20px;
}

.card-body {
    padding: 30px;
}

.card-img-top {
    transition: var(--transition);
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* ===== ENHANCED FORMS ===== */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 15px 20px;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(159, 204, 65, 0.25);
    background: white;
}

.form-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.input-group {
    box-shadow: var(--shadow-light);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.input-group .form-control {
    border-right: none;
    border-radius: 0;
}

.input-group .btn {
    border-left: none;
    border-radius: 0;
}

/* ===== SECTION TITLES ===== */
.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--accent-color), #8AB836);
    border-radius: 2px;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--medium-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== STATS COUNTERS ===== */
.stats-item {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border-top: 4px solid var(--accent-color);
}

.stats-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.stats-item .purecounter {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    display: block;
}

.stats-item p {
    margin: 10px 0 0 0;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* ===== TESTIMONIALS ===== */
.testimonials .swiper-slide {
    padding: 20px 0;
}

.testimonial-item {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.testimonial-item::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 30px;
    font-size: 4rem;
    color: var(--accent-color);
    opacity: 0.3;
    font-family: Georgia, serif;
}

.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 4px solid var(--accent-color);
    object-fit: cover;
}

.testimonial-item h3 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 5px;
}

.testimonial-item h4 {
    color: var(--medium-gray);
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-style: italic;
}

.stars {
    margin-bottom: 20px;
}

.stars i {
    color: #ffc107;
    margin: 0 2px;
}

.testimonial-item p {
    font-style: italic;
    line-height: 1.8;
    color: var(--dark-gray);
}

/* ===== TRACKING SECTION ===== */
.live-tracking {
    background: linear-gradient(135deg, var(--primary-color) 0%, #003080 100%);
    color: white;
    padding: 100px 0;
}

.demo-phone {
    max-width: 300px;
    margin: 0 auto;
    background: #000;
    border-radius: 30px;
    padding: 20px 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.phone-screen {
    background: white;
    border-radius: 20px;
    padding: 20px;
    height: 500px;
    color: var(--dark-gray);
}

.tracking-app {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.app-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.tracking-progress {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 10px;
    transition: var(--transition);
}

.progress-step.active {
    background: #e8f5e8;
    color: var(--success-color);
}

.progress-step.current {
    background: #fff3cd;
    color: var(--warning-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.current-location {
    margin-top: auto;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.feature-list li:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
}

.feature-list li i {
    font-size: 2rem;
    margin-right: 20px;
    margin-top: 5px;
}

.feature-list h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-list p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* ===== FAQ SECTION ===== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    cursor: pointer;
    overflow: hidden;
}

.faq-item:hover {
    box-shadow: var(--shadow-medium);
}

.faq-item h3 {
    padding: 25px 30px;
    margin: 0;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
}

.faq-content {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-active .faq-content {
    padding: 25px 30px;
    max-height: 200px;
}

.faq-active h3 {
    color: var(--accent-color);
}

.faq-toggle {
    transition: var(--transition);
    color: var(--medium-gray);
}

.faq-active .faq-toggle {
    transform: rotate(90deg);
    color: var(--accent-color);
}

/* ===== CONTACT SECTION ===== */
.contact .info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 25px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.contact .info-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.contact .info-item i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-right: 20px;
    margin-top: 5px;
}

.contact .info-item h3 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
}

.contact .info-item p {
    color: var(--medium-gray);
    margin: 0;
}

.contact .info-item a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.contact .info-item a:hover {
    text-decoration: underline;
}

/* ===== LOADING STATES ===== */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== ALERTS & NOTIFICATIONS ===== */
.alert {
    border-radius: var(--border-radius);
    border: none;
    padding: 20px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: #d1edff;
    color: #0c5460;
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid var(--warning-color);
}

/* ===== UTILITIES ===== */
.text-accent {
    color: var(--accent-color) !important;
}

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

.border-accent {
    border-color: var(--accent-color) !important;
}

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

.rounded-custom {
    border-radius: var(--border-radius) !important;
}

.rounded-lg-custom {
    border-radius: var(--border-radius-lg) !important;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .section-title h2 {
        font-size: 2rem;
    }
    
    .section-title {
        margin-bottom: 60px;
    }
    
    .stats-item {
        margin-bottom: 20px;
    }
    
    .faq-item h3,
    .faq-content {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .contact .info-item {
        padding: 20px;
    }
    
    .feature-list li {
        padding: 15px;
    }
    
    .testimonial-item {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .section-title p {
        font-size: 1rem;
    }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --light-gray: #2c3e50;
        --white: #34495e;
        --dark-gray: #ecf0f1;
        --medium-gray: #bdc3c7;
    }
    
    body {
        background-color: #2c3e50;
        color: #ecf0f1;
    }
    
    .card {
        background-color: #34495e;
        color: #ecf0f1;
    }
    
    .form-control {
        background-color: #34495e;
        border-color: #4a5f7a;
        color: #ecf0f1;
    }
    
    .form-control:focus {
        background-color: #34495e;
        border-color: var(--accent-color);
        color: #ecf0f1;
    }
}