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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Custom color classes using CSS variables */
.bg-primary {
    background-color: hsl(var(--color-primary));
}

.text-primary {
    color: hsl(var(--color-primary));
}

.border-primary {
    border-color: hsl(var(--color-primary));
}

.bg-secondary {
    background-color: hsl(var(--color-secondary));
}

.text-secondary {
    color: hsl(var(--color-secondary));
}

.bg-white {
    background-color: #ffffff;
}

.text-white {
    color: #ffffff;
}

.hover\:bg-primary:hover {
    background-color: hsl(var(--color-primary));
}

.hover\:text-primary:hover {
    color: hsl(var(--color-primary));
}

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

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-slide-in {
    animation: slideInRight 0.7s ease-out;
}

/* Gradient backgrounds */
.hero-gradient {
    background: linear-gradient(135deg,
    hsl(210 45% 25%),
    hsl(210 50% 15%)
    );
}

/* Custom button styles */
.btn-primary {
    background-color: hsl(var(--color-primary));
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    transition: all 0.3s;
    box-shadow: 0 10px 25px -10px hsl(var(--color-primary) / 0.5);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary {
    background-color: hsl(var(--color-secondary));
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover, .btn-secondary:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px -10px hsl(var(--color-primary) / 0.6);
}

.btn-outline {
    border: 2px solid white;
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    transition: all 0.3s;
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline:hover {
    background-color: white;
    color: hsl(var(--color-primary));
}

/* Card styles */
.card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border: 1px solid hsl(var(--color-border));
    transition: all 0.3s;
}

/* Card with primary background override */
.card.bg-primary {
    background: hsl(var(--color-primary)) !important;
    border-color: hsl(var(--color-primary));
}

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

/* Icon wrapper - adapts to primary color automatically */
.cargo-icon-wrapper {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    background-color: hsl(var(--color-primary) / 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--color-primary));
    margin-bottom: 1rem;
}

/* Mobile menu */
.mobile-menu {
    display: none;
}

.mobile-menu.active {
    display: block;
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background-color: hsl(var(--color-primary));
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
    z-index: 1000;
}

.scroll-top.visible {
    display: flex;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Loading spinner */
.spinner {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    width: 1.25rem;
    height: 1.25rem;
    animation: spin 0.6s linear infinite;
}

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