/* Custom styles for DTM Trucking */

/* Geometric Background Shapes */
.geometric-shape {
    position: absolute;
    opacity: 0.15;
    pointer-events: none;
}

.shape-circle-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(228, 196, 136, 0.6) 0%, rgba(228, 196, 136, 0) 70%);
    border-radius: 50%;
    top: 10%;
    right: -5%;
    animation: float 8s ease-in-out infinite;
}

.shape-circle-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    bottom: 20%;
    left: 5%;
    animation: float 10s ease-in-out infinite reverse;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid rgba(253, 251, 247, 0.3);
    top: 30%;
    left: 10%;
    transform: rotate(15deg);
    animation: spin 20s linear infinite;
}

.shape-square {
    width: 120px;
    height: 120px;
    background: rgba(228, 196, 136, 0.5);
    top: 60%;
    right: 15%;
    transform: rotate(45deg);
    animation: float 6s ease-in-out infinite;
}

.shape-diamond {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    bottom: 30%;
    right: 25%;
    transform: rotate(30deg);
    animation: spin 15s linear infinite reverse;
}

.shape-circle-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(228, 196, 136, 0.3) 0%, rgba(228, 196, 136, 0) 70%);
    border-radius: 50%;
    top: -10%;
    right: -10%;
    animation: float 12s ease-in-out infinite;
}

.shape-triangle-2 {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 138px solid rgba(253, 251, 247, 0.2);
    bottom: 10%;
    left: 5%;
    transform: rotate(-20deg);
    animation: spin 25s linear infinite;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

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

/* Scroll Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.hidden-reveal {
    opacity: 0;
    transform: translateY(30px);
}

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

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

::-webkit-scrollbar-track {
    background: rgb(253 251 247);
}

::-webkit-scrollbar-thumb {
    background: rgb(212 96 58);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(196 76 40);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .geometric-shape,
    .shape-circle-1,
    .shape-circle-2,
    .shape-triangle,
    .shape-square,
    .shape-diamond,
    .shape-circle-3,
    .shape-triangle-2 {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal.hidden-reveal {
        opacity: 1;
        transform: none;
    }
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.show {
    max-height: 400px;
}
