/* Custom Styles for J&E International Freight Forwarding */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --transition-speed: 0.3s;
}

/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 76px;
    overflow-x: hidden;
    color: var(--dark-color);
}

section {
    scroll-margin-top: 76px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

.display-4, .display-5 {
    font-weight: 700 !important;
}

.lead {
    font-weight: 400;
    line-height: 1.6;
}

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
    padding: 1rem 0;
    transition: all var(--transition-speed) ease;
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color var(--transition-speed) ease;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 70%;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.9), rgba(0, 0, 0, 0.7)), 
                url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    margin-top: -76px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.5), rgba(13,110,253,0.3));
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    height: 100%;
}

.hero-section h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-section .lead {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Page Header */
.page-header {
    margin-top: 76px;
    background: linear-gradient(135deg, var(--primary-color), #0b5ed7);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-item a {
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.breadcrumb-item a:hover {
    color: white !important;
    text-decoration: underline;
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.4);
}

.btn-outline-light {
    border: 2px solid white;
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Service Cards */
.service-card {
    transition: all var(--transition-speed) ease;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15) !important;
}

.service-icon {
    transition: transform var(--transition-speed) ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card .card-body {
    background: white;
}

/* Feature Items */
.feature-item {
    transition: all var(--transition-speed) ease;
    border-left: 4px solid transparent;
    cursor: pointer;
}

.feature-item:hover {
    background-color: #e9ecef !important;
    border-left-color: var(--primary-color);
    transform: translateX(5px);
}

/* Stat Boxes */
.stat-box {
    transition: all var(--transition-speed) ease;
    border-radius: 15px;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.stat-box h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Commitment Box */
.commitment-box {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.commitment-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

.commitment-box i {
    position: relative;
    z-index: 1;
}

.commitment-box h3,
.commitment-box p {
    position: relative;
    z-index: 1;
}

/* Client Cards */
.client-card {
    transition: all var(--transition-speed) ease;
    border-left: 4px solid transparent;
    border-radius: 12px;
    cursor: pointer;
}

.client-card:hover {
    border-left-color: var(--primary-color);
    transform: translateX(5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.client-icon {
    transition: all var(--transition-speed) ease;
}

.client-card:hover .client-icon {
    transform: scale(1.1);
    background-color: var(--primary-color) !important;
}

.client-card:hover .client-icon i {
    color: white !important;
}

.client-business {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Client Logos */
.client-logo {
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    border-radius: 12px;
}

.client-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.client-logo i {
    transition: transform var(--transition-speed) ease;
}

.client-logo:hover i {
    transform: scale(1.1);
    color: var(--primary-color);
}

/* Term Cards */
.term-card {
    transition: all var(--transition-speed) ease;
    border-radius: 15px;
    overflow: hidden;
}

.term-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

.term-card .card-header {
    border-radius: 15px 15px 0 0;
    padding: 1rem 1.5rem;
}

.term-card .card-header h4 {
    margin: 0;
    font-size: 1.2rem;
}

/* Membership Cards */
.membership-card {
    transition: all var(--transition-speed) ease;
    border-radius: 15px;
    cursor: pointer;
}

.membership-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

.membership-card:hover .membership-icon i {
    transform: scale(1.1);
    color: var(--primary-color);
}

.membership-icon i {
    transition: transform var(--transition-speed) ease;
}

/* Feature Cards */
.feature-card {
    transition: all var(--transition-speed) ease;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    transition: all var(--transition-speed) ease;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border-radius: 50%;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    background-color: var(--primary-color) !important;
}

.feature-card:hover .feature-icon i {
    color: white !important;
}

/* Contact Section */
.contact-info .d-flex {
    transition: all var(--transition-speed) ease;
    padding: 1rem;
    border-radius: 12px;
}

.contact-info .d-flex:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.contact-icon {
    transition: all var(--transition-speed) ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info .d-flex:hover .contact-icon {
    transform: scale(1.1);
    background-color: var(--primary-color) !important;
}

.contact-info .d-flex:hover .contact-icon i {
    color: white !important;
}

/* Contact Form */
.contact-form {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
}

.form-control-lg {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all var(--transition-speed) ease;
    padding: 1rem 1.25rem;
}

.form-control-lg:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

/* Map Container */
.map-container {
    height: 450px;
    overflow: hidden;
    border-radius: 15px;
}

.map-container iframe {
    transition: transform var(--transition-speed) ease;
}

.map-container:hover iframe {
    transform: scale(1.02);
}

/* Fleet Stats */
.fleet-stats {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.fleet-stats::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

.stat-item {
    position: relative;
    z-index: 1;
}

/* Progress Bars */
.progress {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    height: 10px;
    overflow: hidden;
}

.progress-bar {
    border-radius: 10px;
    background-color: #ffc107;
    transition: width 1s ease;
}

/* Footer */
footer {
    background-color: #1a1e24 !important;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #ffc107, var(--primary-color));
}

footer a {
    transition: color var(--transition-speed) ease;
    position: relative;
    display: inline-block;
}

footer a:hover {
    color: white !important;
    transform: translateX(3px);
}

footer .social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed) ease;
}

footer .social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Animations */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@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 zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 1s ease forwards;
}

.slide-in-left {
    animation: slideInLeft 1s ease forwards;
}

.slide-in-right {
    animation: slideInRight 1s ease forwards;
}

.zoom-in {
    animation: zoomIn 1s ease forwards;
}

/* Hover Effects */
.hover-card {
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.hover-grow {
    transition: transform var(--transition-speed) ease;
}

.hover-grow:hover {
    transform: scale(1.05);
}

.hover-shadow {
    transition: box-shadow var(--transition-speed) ease;
}

.hover-shadow:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
    border: 3px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background: #0b5ed7;
}

/* Loading Animation */
body.loaded {
    animation: fadeIn 1s ease;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-link::after {
        display: none;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.25rem;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .hero-section {
        height: 80vh;
        text-align: center;
        background-attachment: scroll;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    section {
        padding: 3rem 0 !important;
    }
    
    .page-header {
        padding: 3rem 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .stat-box {
        padding: 1.5rem !important;
    }
    
    .stat-box h3 {
        font-size: 2rem;
    }
    
    .commitment-box {
        margin-top: 2rem;
        padding: 2rem !important;
    }
    
    .contact-form {
        margin-top: 2rem;
        padding: 2rem !important;
    }
    
    .map-container {
        height: 300px;
    }
    
    footer {
        text-align: center;
    }
    
    footer .social-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .display-4 {
        font-size: 1.75rem;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.5rem 1.25rem;
    }
    
    .btn-lg {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .stat-box {
        padding: 1rem !important;
    }
    
    .stat-box h3 {
        font-size: 1.75rem;
    }
    
    .service-card {
        margin-bottom: 1rem;
    }
    
    .client-card {
        margin-bottom: 1rem;
    }
    
    .term-card {
        margin-bottom: 1rem;
    }
    
    .membership-card {
        margin-bottom: 1rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-section,
    .btn,
    footer,
    .map-container,
    .contact-form {
        display: none !important;
    }
    
    body {
        padding-top: 0;
    }
    
    .page-header {
        margin-top: 0;
        color: black !important;
        background: none !important;
    }
}

/* Accessibility */
:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Utility Classes */
.text-primary-gradient {
    background: linear-gradient(135deg, var(--primary-color), #0b5ed7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-primary-gradient {
    background: linear-gradient(135deg, var(--primary-color), #0b5ed7);
}

.shadow-hover {
    transition: box-shadow var(--transition-speed) ease;
}

.shadow-hover:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.border-primary-hover {
    transition: border-color var(--transition-speed) ease;
}

.border-primary-hover:hover {
    border-color: var(--primary-color) !important;
}

.rounded-4 {
    border-radius: 20px !important;
}

.rounded-5 {
    border-radius: 30px !important;
}

/* Z-index utilities */
.z-1 {
    z-index: 1;
}

.z-2 {
    z-index: 2;
}

.z-3 {
    z-index: 3;
}

/* Logo and Brand Styles */
.navbar-brand {
    transition: all var(--transition-speed) ease;
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

.navbar-brand img {
    transition: transform var(--transition-speed) ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.brand-text div:first-child {
    color: var(--dark-color);
    letter-spacing: -0.5px;
}

.brand-text div:last-child {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Footer Logo */
footer .bg-white.p-2 {
    transition: all var(--transition-speed) ease;
}

footer .bg-white.p-2:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255,255,255,0.2);
}

/* Page Header Logo */
.page-header .d-flex img {
    transition: all var(--transition-speed) ease;
    border: 2px solid rgba(255,255,255,0.2);
}

.page-header .d-flex img:hover {
    transform: scale(1.05);
    border-color: white;
}

/* Trucking Page Logo */
.highlight-box img {
    transition: all var(--transition-speed) ease;
}

.highlight-box img:hover {
    transform: scale(1.1);
}

/* Responsive Logo */
@media (max-width: 768px) {
    .navbar-brand {
        max-width: 200px;
    }
    
    .navbar-brand img {
        height: 40px;
    }
    
    .brand-text div:first-child {
        font-size: 0.9rem;
    }
    
    .brand-text div:last-child {
        font-size: 0.65rem;
    }
    
    .page-header .d-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .page-header .d-flex img {
        margin-right: 0 !important;
        margin-bottom: 1rem;
        height: 60px;
    }
}

/* Fuel tank highlight */
.fleet-stats .border-top {
    border-color: rgba(255, 255, 255, 0.25) !important;
}

.fleet-stats .small {
    font-size: 0.9rem;
    line-height: 1.5;
}

.fleet-stats .bi-droplet {
    color: #ffc107;
}

/* Feature cards enhancement */
.feature-card {
    transition: all var(--transition-speed) ease;
    border-radius: 15px;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-card .feature-icon {
    transition: all var(--transition-speed) ease;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    background-color: var(--primary-color) !important;
}

.feature-card:hover .feature-icon i {
    color: white !important;
}