/* Custom styles for Penske Truck Rental Mountain Top */

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

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

.circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #34d399;
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.circle-2 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #6ee7b7;
    bottom: 15%;
    left: 5%;
    animation: float 6s ease-in-out infinite reverse;
}

.circle-3 {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #a7f3d0;
    top: 40%;
    right: 10%;
    animation: float 5s ease-in-out infinite;
}

.triangle-1 {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid #34d399;
    top: 20%;
    left: 8%;
    transform: rotate(15deg);
    animation: rotate 12s linear infinite;
}

.square-1 {
    width: 100px;
    height: 100px;
    background: #6ee7b7;
    bottom: 25%;
    right: 15%;
    transform: rotate(45deg);
    animation: rotate 10s linear infinite reverse;
}

.dot-grid {
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, #34d399 2px, transparent 2px);
    background-size: 20px 20px;
    top: 60%;
    left: 15%;
    opacity: 0.3;
}

/* CTA shapes */
.cta-shape-1 {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    top: -100px;
    left: -100px;
}

.cta-shape-2 {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    bottom: -50px;
    right: 10%;
}

.cta-shape-3 {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 3px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    top: 30%;
    right: 5%;
    animation: float 7s ease-in-out infinite;
}

/* Fleet pattern */
.fleet-pattern {
    background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 30px 30px;
}

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

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

/* Service cards */
.service-card {
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Fleet cards */
.fleet-card {
    transform: translateY(0);
}

.fleet-card:hover {
    transform: translateY(-4px);
}

/* Testimonial cards */
.testimonial-card {
    transform: translateY(0);
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

/* Navbar scroll effect */
nav.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(4, 78, 59, 0.1);
}

nav.scrolled .font-space.font-bold.text-lg.text-emerald-900 {
    color: #064e3b !important;
}

/* Scroll reveal (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: content always visible if JS disabled */
.reveal {
    opacity: 1;
    transform: none;
}

/* Mobile menu */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

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

/* Back to top button */
#backToTop.visible {
    opacity: 1;
    pointer-events: all;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 3px solid #34d399;
    outline-offset: 2px;
    border-radius: 4px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #065f46;
}
