/* Trusty Section */
.trusty-section {
    padding: 120px 0;
    background: 
        radial-gradient(ellipse at top, rgba(229, 45, 39, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 25%, #2d2d2d 75%, #1a1a1a 100%);
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

.trusty-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e52d27" stroke-width="0.3" opacity="0.15"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>'),
        radial-gradient(circle at 20% 80%, rgba(229, 45, 39, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 71, 0.05) 0%, transparent 50%);
    z-index: 0;
    animation: backgroundShift 20s ease-in-out infinite;
}

.trusty-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(229, 45, 39, 0.03) 0%, transparent 25%),
        radial-gradient(circle at 75% 75%, rgba(255, 107, 71, 0.03) 0%, transparent 25%);
    animation: rotateBackground 30s linear infinite;
    z-index: 0;
}

@keyframes backgroundShift {
    0%, 100% { 
        transform: translateX(0%) translateY(0%);
        opacity: 1;
    }
    25% { 
        transform: translateX(-2%) translateY(-1%);
        opacity: 0.8;
    }
    50% { 
        transform: translateX(1%) translateY(2%);
        opacity: 0.9;
    }
    75% { 
        transform: translateX(2%) translateY(-1%);
        opacity: 0.8;
    }
}

@keyframes rotateBackground {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.trusty-content {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.trusty-content h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #ffffff 0%, #e52d27 25%, #ff6b47 50%, #ffffff 75%, #e52d27 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientText 4s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(229, 45, 39, 0.3);
    position: relative;
}

.trusty-content h2::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(229, 45, 39, 0.1), transparent);
    border-radius: 10px;
    z-index: -1;
    animation: shimmerOverlay 3s ease-in-out infinite;
}

@keyframes gradientText {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes shimmerOverlay {
    0%, 100% { 
        opacity: 0;
        transform: translateX(-100%);
    }
    50% { 
        opacity: 1;
        transform: translateX(100%);
    }
}

.trusty-content p {
    font-size: 1.3rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.transport-animation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 100px;
    position: relative;
    height: 250px;
    z-index: 2;
}

.airplane, .car, .taxi {
    position: relative;
    opacity: 0;
    animation: slideInAnimation 1.2s ease forwards;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.airplane {
    animation-delay: 0.3s;
}

.car {
    animation-delay: 0.7s;
}

.taxi {
    animation-delay: 1.1s;
}

.airplane svg {
    width: 140px;
    height: 140px;
    animation: fly 4s ease-in-out infinite;
    filter: 
        drop-shadow(0 15px 30px rgba(229, 45, 39, 0.4))
        drop-shadow(0 5px 15px rgba(255, 107, 71, 0.3));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.car svg, .taxi svg {
    width: 120px;
    height: 120px;
    animation: drive 3s ease-in-out infinite;
    filter: 
        drop-shadow(0 12px 25px rgba(0, 0, 0, 0.4))
        drop-shadow(0 4px 12px rgba(229, 45, 39, 0.2));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced airplane flying animation */
@keyframes fly {
    0%, 100% { 
        transform: translateY(0) rotate(0deg) scale(1); 
    }
    15% { 
        transform: translateY(-12px) rotate(3deg) scale(1.02); 
    }
    30% { 
        transform: translateY(-18px) rotate(0deg) scale(1.05); 
    }
    45% { 
        transform: translateY(-8px) rotate(-2deg) scale(1.03); 
    }
    60% { 
        transform: translateY(-22px) rotate(1deg) scale(1.06); 
    }
    75% { 
        transform: translateY(-5px) rotate(-3deg) scale(1.02); 
    }
}

/* Enhanced car driving animation */
@keyframes drive {
    0%, 100% { 
        transform: translateX(0) scale(1) rotate(0deg); 
    }
    25% { 
        transform: translateX(8px) scale(1.03) rotate(1deg); 
    }
    50% { 
        transform: translateX(3px) scale(1.06) rotate(0deg); 
    }
    75% { 
        transform: translateX(-5px) scale(1.03) rotate(-1deg); 
    }
}

/* Enhanced slide in animation */
@keyframes slideInAnimation {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.8) rotate(-10deg);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
        filter: blur(0px);
    }
}

/* Enhanced floating animation paths */
.airplane::before {
    content: '';
    position: absolute;
    top: -60px;
    left: -60px;
    right: -60px;
    bottom: -60px;
    border: 2px dashed rgba(229, 45, 39, 0.3);
    border-radius: 50%;
    animation: 
        rotate 20s linear infinite,
        pulse 4s ease-in-out infinite;
    z-index: -1;
}

.airplane::after {
    content: '';
    position: absolute;
    top: -40px;
    left: -40px;
    right: -40px;
    bottom: -40px;
    border: 1px dotted rgba(255, 107, 71, 0.2);
    border-radius: 50%;
    animation: 
        rotate 15s linear infinite reverse,
        breathe 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulse {
    0%, 100% { 
        border-color: rgba(229, 45, 39, 0.3);
        transform: scale(1);
    }
    50% { 
        border-color: rgba(229, 45, 39, 0.6);
        transform: scale(1.05);
    }
}

@keyframes breathe {
    0%, 100% { 
        border-color: rgba(255, 107, 71, 0.2);
        transform: scale(1);
    }
    50% { 
        border-color: rgba(255, 107, 71, 0.4);
        transform: scale(0.95);
    }
}

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

.car::after, .taxi::after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 6px;
    background: 
        linear-gradient(90deg, 
            transparent 0%, 
            rgba(229, 45, 39, 0.2) 20%, 
            rgba(255, 107, 71, 0.4) 50%, 
            rgba(229, 45, 39, 0.2) 80%, 
            transparent 100%);
    border-radius: 3px;
    animation: roadEffect 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes roadEffect {
    0%, 100% { 
        opacity: 0.4;
        transform: translateX(-50%) scaleX(1) scaleY(1); 
        box-shadow: 0 0 10px rgba(229, 45, 39, 0.2);
    }
    50% { 
        opacity: 0.8;
        transform: translateX(-50%) scaleX(1.3) scaleY(1.5); 
        box-shadow: 0 0 20px rgba(229, 45, 39, 0.4);
    }
}

/* Enhanced hover effects */
.airplane:hover {
    transform: translateY(-10px) scale(1.1);
}

.airplane:hover svg {
    transform: scale(1.15) rotate(8deg);
    filter: 
        drop-shadow(0 25px 40px rgba(229, 45, 39, 0.6))
        drop-shadow(0 10px 20px rgba(255, 107, 71, 0.4))
        brightness(1.2);
    animation-duration: 2s;
}

.car:hover, .taxi:hover {
    transform: translateY(-8px) scale(1.08);
}

.car:hover svg, .taxi:hover svg {
    transform: scale(1.12) rotate(3deg);
    filter: 
        drop-shadow(0 20px 35px rgba(0, 0, 0, 0.5))
        drop-shadow(0 8px 15px rgba(229, 45, 39, 0.3))
        brightness(1.15);
    animation-duration: 1.5s;
}

/* Connection lines with enhanced effects */
.transport-animation::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: 
        linear-gradient(90deg, 
            transparent 5%, 
            rgba(229, 45, 39, 0.3) 15%, 
            rgba(255, 107, 71, 0.5) 50%, 
            rgba(229, 45, 39, 0.3) 85%, 
            transparent 95%);
    z-index: 1;
    animation: connectionPulse 3s ease-in-out infinite;
}

@keyframes connectionPulse {
    0%, 100% { 
        opacity: 0.5;
        transform: translateY(-50%) scaleY(1);
        box-shadow: 0 0 10px rgba(229, 45, 39, 0.3);
    }
    50% { 
        opacity: 1;
        transform: translateY(-50%) scaleY(2);
        box-shadow: 0 0 20px rgba(229, 45, 39, 0.6);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .trusty-section {
        padding: 80px 0;
    }
    
    .trusty-content h2 {
        font-size: 2.5rem;
    }
    
    .trusty-content p {
        font-size: 1.2rem;
    }
    
    .transport-animation {
        flex-direction: column;
        gap: 60px;
        height: auto;
        padding: 60px 0;
    }
    
    .airplane svg {
        width: 120px;
        height: 120px;
    }
    
    .car svg, .taxi svg {
        width: 100px;
        height: 100px;
    }
    
    .transport-animation::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .trusty-section {
        padding: 60px 0;
    }
    
    .trusty-content h2 {
        font-size: 2rem;
    }
    
    .trusty-content p {
        font-size: 1.1rem;
    }
    
    .transport-animation {
        gap: 40px;
        padding: 40px 0;
    }
    
    .airplane svg {
        width: 100px;
        height: 100px;
    }
    
    .car svg, .taxi svg {
        width: 90px;
        height: 90px;
    }
}
