/* Custom styles for Penske Truck Rental website */

/* Base styles */
html {
    scroll-behavior: smooth;
}

/* Geometric background shapes */
.geo-shape {
    position: absolute;
    opacity: 0.15;
    pointer-events: none;
}

.shape-circle-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #F59E0B 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
}

.shape-circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #d946ef 0%, transparent 70%);
    bottom: 20%;
    left: -50px;
    border-radius: 50%;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid #F59E0B;
    top: 30%;
    right: 10%;
    opacity: 0.1;
}

.shape-square {
    width: 150px;
    height: 150px;
    background: #d946ef;
    top: 60%;
    left: 5%;
    transform: rotate(45deg);
    opacity: 0.1;
}

.shape-ring {
    width: 200px;
    height: 200px;
    border: 20px solid #F59E0B;
    border-radius: 50%;
    top: 15%;
    left: 15%;
    opacity: 0.08;
}

.shape-dots {
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, #d946ef 2px, transparent 2px);
    background-size: 15px 15px;
    bottom: 10%;
    right: 20%;
    opacity: 0.2;
}

.shape-circle-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #F59E0B 0%, transparent 70%);
    top: -150px;
    left: -150px;
    border-radius: 50%;
    opacity: 0.08;
}

.shape-circle-4 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #d946ef 0%, transparent 70%);
    bottom: -100px;
    right: -100px;
    border-radius: 50%;
    opacity: 0.08;
}

/* Floating stat cards animation */
.floating-card {
    position: absolute;
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    top: 0;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 25%;
    right: 5%;
    animation-delay: 1.5s;
}

.card-3 {
    bottom: 30%;
    left: 5%;
    animation-delay: 3s;
}

.card-4 {
    bottom: 5%;
    right: 15%;
    animation-delay: 4.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-15px) rotate(2deg);
    }
    66% {
        transform: translateY(10px) rotate(-1deg);
    }
}

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

.reveal.animated {
    opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.animated {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

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

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

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

::-webkit-scrollbar-thumb {
    background: #7B2D8E;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #86198f;
}

/* Button hover effects */
a, button {
    transition: all 0.3s ease;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 3px solid #F59E0B;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Image loading placeholder */
img {
    background: linear-gradient(90deg, #fae8ff 25%, #f5d0fe 50%, #fae8ff 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

img[src] {
    animation: none;
    background: none;
}
