/* RI Logistics Custom Styles */

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

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

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

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: floatDelayed 8s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

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

::-webkit-scrollbar-thumb {
    background: #0066CC;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #003D7A;
}

/* Animate on Scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section Enhancements */
.hero-overlay {
    position: relative;
    overflow: hidden;
}

.hero-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 61, 122, 0.1) 100%);
    z-index: 1;
}

/* Card Hover Effects */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Button Enhancements */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::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;
}

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

/* Form Styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #0066CC;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: #9CA3AF;
}

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0066CC;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* Cookie Banner Slide-in */
#gdpr-banner {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal Backdrop */
#cookie-modal {
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

/* Stats Counter Animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.stat-number {
    animation: countUp 0.6s ease-out;
}

/* Navigation Enhancements */
nav {
    transition: box-shadow 0.3s ease;
}

nav.scrolled {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Footer Links */
footer a {
    position: relative;
    display: inline-block;
}

footer a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #00A8E8;
    transition: width 0.3s ease;
}

footer a:hover::after {
    width: 100%;
}

/* Service Cards */
.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(0, 102, 204, 0.1), transparent);
    transition: left 0.5s;
}

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

/* Job Cards */
.job-card {
    border-left: 4px solid transparent;
    transition: border-color 0.3s ease;
}

.job-card:hover {
    border-left-color: #0066CC;
}

/* Badge Styles */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 9999px;
}

.badge-primary {
    background-color: rgba(0, 102, 204, 0.1);
    color: #0066CC;
}

.badge-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #059669;
}

/* Timeline (for About page) */
.timeline-item {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid #E5E7EB;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #0066CC;
}

/* Responsive Tables */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background-color: #F3F4F6;
    font-weight: 600;
    text-align: left;
    padding: 0.75rem;
}

td {
    padding: 0.75rem;
    border-bottom: 1px solid #E5E7EB;
}

/* Print Styles */
@media print {
    nav,
    footer,
    #gdpr-banner,
    .no-print {
        display: none !important;
    }

    body {
        font-size: 12pt;
    }

    a {
        text-decoration: underline;
    }
}

/* Dark Mode Support (optional) */
@media (prefers-color-scheme: dark) {
    /* Uncomment to enable dark mode */
    /*
    body {
        background-color: #1A1A1A;
        color: #F8F9FA;
    }
    */
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Visible for Keyboard Navigation */
*:focus-visible {
    outline: 2px solid #0066CC;
    outline-offset: 2px;
}

/* Skip to Main Content Link */
.skip-to-main {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 1rem;
    background-color: #0066CC;
    color: white;
    text-decoration: none;
}

.skip-to-main:focus {
    left: 0;
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, #0066CC 0%, #00A8E8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: 0 10px 40px -10px rgba(0, 102, 204, 0.3);
}

/* ============================================
   MODERN ANIMATIONS & EFFECTS
   ============================================ */

/* Parcel Delivery Animations */
@keyframes parcelFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(2deg);
    }
    50% {
        transform: translateY(-5px) rotate(-2deg);
    }
    75% {
        transform: translateY(-20px) rotate(1deg);
    }
}

@keyframes deliveryVanMove {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

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

@keyframes routePath {
    0% {
        stroke-dashoffset: 1000;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes packageDrop {
    0% {
        transform: translateY(-50px) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: translateY(0) scale(1.1);
        opacity: 1;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.parcel-float {
    animation: parcelFloat 4s ease-in-out infinite;
}

.parcel-float-delayed {
    animation: parcelFloat 5s ease-in-out infinite;
    animation-delay: 1s;
}

.delivery-van-move {
    animation: deliveryVanMove 20s linear infinite;
}

.delivery-van-bounce {
    animation: deliveryVanBounce 0.5s ease-in-out infinite;
}

/* Enhanced Button Hover Effects */
.btn-modern {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-modern:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(0, 102, 204, 0.4);
}

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

.btn-modern:hover::after {
    width: 400px;
    height: 400px;
}

/* Card Glow Effect */
@keyframes cardGlow {
    0%, 100% {
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    }
    50% {
        box-shadow: 0 20px 50px -12px rgba(0, 102, 204, 0.25), 0 8px 16px -4px rgba(0, 102, 204, 0.15);
    }
}

.card-modern {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,1) 100%);
}

.card-modern:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 102, 204, 0.3);
}

/* Glassmorphism Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(0, 102, 204, 0.1);
}

.glass-card-dark {
    background: rgba(0, 61, 122, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Link Hover Animations */
.link-modern {
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
}

.link-modern::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    background: linear-gradient(90deg, #0066CC, #00A8E8);
    transform: translateX(-50%);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.link-modern:hover::before {
    width: 100%;
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.pulse-animation {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Shimmer Loading Effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Icon Bounce on Hover */
@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.icon-hover:hover {
    animation: iconBounce 0.6s ease-in-out;
}

/* Gradient Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-animated {
    background: linear-gradient(270deg, #0066CC, #00A8E8, #003D7A);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

/* Scale Up on Hover */
.scale-hover {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Rotate on Hover */
.rotate-hover {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.rotate-hover:hover {
    transform: rotate(5deg);
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

.fade-in-down {
    animation: fadeInDown 0.8s ease-out;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

/* Number Counter Animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.counter-number {
    animation: countUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ripple Effect for Buttons */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::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;
}

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

/* Image Hover Zoom */
.image-zoom {
    overflow: hidden;
}

.image-zoom img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-zoom:hover img {
    transform: scale(1.1) rotate(2deg);
}

/* Border Glow Animation */
@keyframes borderGlow {
    0%, 100% {
        border-color: rgba(0, 102, 204, 0.3);
        box-shadow: 0 0 5px rgba(0, 102, 204, 0.2);
    }
    50% {
        border-color: rgba(0, 168, 232, 0.6);
        box-shadow: 0 0 20px rgba(0, 168, 232, 0.4);
    }
}

.border-glow {
    animation: borderGlow 2s ease-in-out infinite;
}

/* Slide In Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    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);
    }
}

/* Bounce In Animation */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

.bounce-in {
    animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Progress Bar Animation */
@keyframes progressFill {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

.progress-bar {
    animation: progressFill 1.5s ease-out;
}

/* Shake Animation */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.shake {
    animation: shake 0.5s;
}

/* SVG Path Drawing Animation */
.svg-draw {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw 2s ease-out forwards;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

/* Hover Lift Effect */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Glow Text Effect */
@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(0, 102, 204, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(0, 168, 232, 0.8), 0 0 30px rgba(0, 168, 232, 0.6);
    }
}

.text-glow {
    animation: textGlow 2s ease-in-out infinite;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Responsive Typography */
@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }
}

/* Loading State */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

/* Success/Error Messages */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #D1FAE5;
    border: 1px solid #34D399;
    color: #065F46;
}

.alert-error {
    background-color: #FEE2E2;
    border: 1px solid #F87171;
    color: #991B1B;
}

.alert-info {
    background-color: #DBEAFE;
    border: 1px solid #60A5FA;
    color: #1E40AF;
}

/* Custom Container Max Widths */
.container-narrow {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.container-wide {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   ENHANCED GLASS EFFECTS
   ============================================ */

/* Glass Card Variants */
.glass-effect {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px 0 rgba(0, 102, 204, 0.15);
}

.glass-effect-strong {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 40px 0 rgba(0, 102, 204, 0.2);
}

.glass-effect-primary {
    background: rgba(0, 102, 204, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 102, 204, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 102, 204, 0.1);
}

/* Frosted Glass Button */
.btn-glass {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 102, 204, 0.2);
}

/* ============================================
   ENHANCED HOVER EFFECTS
   ============================================ */

/* 3D Flip Card */
.flip-card {
    perspective: 1000px;
    transition: transform 0.6s;
}

.flip-card:hover {
    transform: rotateY(10deg);
}

/* Magnetic Hover Effect */
@keyframes magneticPull {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.magnetic-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.magnetic-hover:hover {
    animation: magneticPull 0.5s ease-in-out;
    box-shadow: 0 20px 60px -15px rgba(0, 102, 204, 0.4);
}

/* Underline Grow Effect */
.underline-grow {
    position: relative;
    display: inline-block;
}

.underline-grow::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -4px;
    left: 0;
    background: linear-gradient(90deg, #0066CC, #00A8E8);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.underline-grow:hover::after {
    width: 100%;
}

/* Shadow Elevation on Hover */
.shadow-elevate {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.shadow-elevate:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 4px 6px -1px rgba(0, 102, 204, 0.1),
        0 10px 15px -3px rgba(0, 102, 204, 0.2),
        0 20px 40px -8px rgba(0, 102, 204, 0.15);
}

/* Gradient Border on Hover */
.gradient-border {
    position: relative;
    background: white;
    border-radius: 0.5rem;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 0.5rem;
    padding: 2px;
    background: linear-gradient(135deg, #0066CC, #00A8E8, #003D7A);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gradient-border:hover::before {
    opacity: 1;
}

/* Neon Glow Effect */
.neon-glow {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.neon-glow:hover {
    box-shadow: 
        0 0 20px rgba(0, 102, 204, 0.4),
        0 0 40px rgba(0, 168, 232, 0.3),
        0 0 60px rgba(0, 102, 204, 0.2);
    border-color: #00A8E8;
}

/* Tilt Effect on Hover */
.tilt-hover {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tilt-hover:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) scale(1.02);
}

/* ============================================
   PARTICLE & BACKGROUND EFFECTS
   ============================================ */

/* Animated Gradient Background */
.gradient-bg-animated {
    background: linear-gradient(-45deg, #0066CC, #003D7A, #00A8E8, #0066CC);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

/* Mesh Gradient */
.mesh-gradient {
    background: 
        radial-gradient(at 40% 20%, rgba(0, 102, 204, 0.3) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(0, 168, 232, 0.2) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(0, 61, 122, 0.2) 0px, transparent 50%),
        radial-gradient(at 80% 50%, rgba(0, 102, 204, 0.15) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(0, 168, 232, 0.2) 0px, transparent 50%);
}

/* ============================================
   IMAGE PLACEHOLDER STYLES
   ============================================ */

/* Image Placeholder with Gradient */
.image-placeholder {
    position: relative;
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230066CC' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M2.25 15.75l5.159-5.159a2.25 2.25 0 013.182 0l5.159 5.159m-1.5-1.5l1.409-1.409a2.25 2.25 0 013.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 001.5-1.5V6a1.5 1.5 0 00-1.5-1.5H3.75A1.5 1.5 0 002.25 6v12a1.5 1.5 0 001.5 1.5zm10.5-11.25h.008v.008h-.008V8.25zm.375 0a.375.375 0 11-.75 0 .375.375 0 01.75 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.3;
}

.image-placeholder::after {
    content: 'Replace with Envato Elements Image';
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 102, 204, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

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

/* ============================================
   BUTTON ENHANCEMENTS
   ============================================ */

/* Modern Gradient Button */
.btn-gradient {
    background: linear-gradient(135deg, #0066CC 0%, #00A8E8 100%);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.btn-gradient:hover::before {
    left: 100%;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 102, 204, 0.3);
}

/* Outline Glow Button */
.btn-outline-glow {
    border: 2px solid #0066CC;
    color: #0066CC;
    background: transparent;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-outline-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #0066CC;
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-outline-glow:hover {
    color: white;
    box-shadow: 0 0 20px rgba(0, 102, 204, 0.4);
}

.btn-outline-glow:hover::before {
    width: 100%;
}

/* ============================================
   CARD ENHANCEMENTS
   ============================================ */

/* Modern Card with Glow */
.modern-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0066CC, #00A8E8);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.modern-card:hover::before {
    transform: scaleX(1);
}

.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 4px 6px -1px rgba(0, 102, 204, 0.1),
        0 10px 15px -3px rgba(0, 102, 204, 0.1),
        0 20px 40px -8px rgba(0, 102, 204, 0.15);
}

/* Floating Card Effect */
@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.card-floating {
    animation: cardFloat 3s ease-in-out infinite;
}

/* ============================================
   TEXT EFFECTS
   ============================================ */

/* Gradient Text */
.text-gradient-primary {
    background: linear-gradient(135deg, #0066CC 0%, #00A8E8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animated Underline */
.animated-underline {
    position: relative;
    display: inline-block;
}

.animated-underline::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    bottom: -6px;
    left: 0;
    background: linear-gradient(90deg, #0066CC, #00A8E8);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.animated-underline:hover::after {
    transform: scaleX(1);
}

/* ============================================
   LOADING & SPINNER ENHANCEMENTS
   ============================================ */

/* Modern Spinner */
.spinner-modern {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 102, 204, 0.1);
    border-top-color: #0066CC;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Pulse Loader */
.pulse-loader {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #0066CC;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Dots Loader */
.dots-loader {
    display: flex;
    gap: 8px;
}

.dots-loader span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #0066CC;
    animation: dotPulse 1.4s infinite ease-in-out;
}

.dots-loader span:nth-child(1) {
    animation-delay: -0.32s;
}

.dots-loader span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes dotPulse {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ============================================
   RIPPLE EFFECT STYLES
   ============================================ */

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: rippleAnimation 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleAnimation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ============================================
   TOOLTIP STYLES
   ============================================ */

.tooltip {
    position: fixed;
    background: rgba(26, 26, 26, 0.95);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.2s, transform 0.2s;
}

.tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(26, 26, 26, 0.95);
}

/* ============================================
   PAGE LOAD ANIMATIONS
   ============================================ */

body {
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.loaded {
    opacity: 1;
}

.fade-on-load {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-on-load.faded-in {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   SCROLL REVEAL STYLES
   ============================================ */

.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   3D TILT CARD
   ============================================ */

.tilt-card {
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
}

/* ============================================
   MAGNETIC BUTTON
   ============================================ */

.magnetic-btn {
    transition: transform 0.2s ease;
    cursor: pointer;
}

/* ============================================
   INPUT FOCUS ANIMATIONS
   ============================================ */

.input-focused label {
    color: #0066CC;
    transform: translateY(-20px) scale(0.9);
}

/* ============================================
   NAVBAR SCROLLED STATE
   ============================================ */

nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ============================================
   IMAGE LAZY LOADING
   ============================================ */

img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[data-src].loaded {
    opacity: 1;
}

/* Glass Card Variant */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Scale Hover Effect */
.scale-hover {
    transition: transform 0.3s ease;
}

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

/* ============================================
   STATS ANIMATION
   ============================================ */

.stats-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.stats-section.animate {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}

@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.7), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    opacity: 0.3;
    animation: ripple-whatsapp 2s infinite;
}

@keyframes ripple-whatsapp {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }
    
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

/* ============================================
   ANIMATED BACKGROUND PATTERNS
   ============================================ */

/* Dot Pattern Background */
.bg-pattern-dots {
    background-image: radial-gradient(circle, rgba(0, 102, 204, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 30px 30px;
    }
}

/* Wave Pattern Background */
.bg-pattern-wave {
    background-image: 
        linear-gradient(135deg, transparent 25%, rgba(0, 102, 204, 0.05) 25%, rgba(0, 102, 204, 0.05) 50%, transparent 50%, transparent 75%, rgba(0, 102, 204, 0.05) 75%);
    background-size: 50px 50px;
    animation: waveMove 15s linear infinite;
}

@keyframes waveMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}

/* Grid Pattern Background */
.bg-pattern-grid {
    background-image: 
        linear-gradient(rgba(0, 102, 204, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 204, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Diagonal Lines Pattern */
.bg-pattern-diagonal {
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(0, 102, 204, 0.03) 10px,
        rgba(0, 102, 204, 0.03) 20px
    );
}

/* Particle Background */
.bg-particles {
    position: relative;
    overflow: hidden;
}

.bg-particles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 168, 232, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 80% 80%, rgba(0, 102, 204, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 40% 20%, rgba(0, 61, 122, 0.1) 2px, transparent 2px);
    background-size: 200px 200px;
    animation: particleFloat 30s linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0);
    }
    100% {
        transform: translateY(-50px) translateX(50px);
    }
}

/* Light Blue Backgrounds */
.bg-blue-50 {
    background-color: #F0F4F8;
}

.bg-blue-100 {
    background-color: #E8F0FE;
}

.bg-blue-gradient-light {
    background: linear-gradient(135deg, #E8F0FE 0%, #F0F7FF 100%);
}

/* ============================================
   SECTION SEPARATORS
   ============================================ */

.section-separator {
    position: relative;
}

.section-separator::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 204, 0.2), transparent);
}

/* ============================================
   MOBILE ACTION BAR
   ============================================ */

.mobile-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    padding: 12px;
    z-index: 1000;
    display: none;
    gap: 8px;
}

@media (max-width: 768px) {
    .mobile-action-bar {
        display: flex;
    }
    
    body {
        padding-bottom: 70px;
    }
}

.mobile-action-btn {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.mobile-action-btn svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   ENHANCED HERO ANIMATION
   ============================================ */

.hero-truck-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
}

@media (max-width: 768px) {
    .hero-truck-wrapper {
        height: 250px;
    }
}

.hero-truck-animation {
    animation: truckDrive 20s linear infinite;
}

@keyframes truckDrive {
    0% {
        transform: translateX(-120%);
    }
    50% {
        transform: translateX(120%);
    }
    51% {
        transform: translateX(120%) scaleX(-1);
    }
    100% {
        transform: translateX(-120%) scaleX(-1);
    }
}

/* ============================================
   SWIPEABLE CARDS (Mobile)
   ============================================ */

.swipe-container {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.swipe-container::-webkit-scrollbar {
    display: none;
}

.swipe-item {
    scroll-snap-align: center;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .swipe-container {
        display: flex;
        gap: 16px;
        padding: 0 16px;
    }
    
    .swipe-item {
        width: 85%;
        min-width: 280px;
    }
}
