/* Custom styles for SAGE Truck Driving Schools */

/* Geometric shapes for hero */
.geo-shape {
    position: absolute;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    top: 10%;
    left: 5%;
    width: 120px;
    height: 120px;
    background: #d4a017;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation-delay: 0s;
}

.shape-2 {
    top: 20%;
    right: 10%;
    width: 80px;
    height: 80px;
    border: 3px solid #d4a017;
    border-radius: 50%;
    animation-delay: 1s;
}

.shape-3 {
    bottom: 30%;
    left: 10%;
    width: 100px;
    height: 100px;
    background: #d4a017;
    transform: rotate(45deg);
    animation-delay: 2s;
}

.shape-4 {
    top: 50%;
    right: 5%;
    width: 60px;
    height: 60px;
    border: 3px solid #d4a017;
    transform: rotate(45deg);
    animation-delay: 3s;
}

.shape-5 {
    bottom: 15%;
    right: 20%;
    width: 140px;
    height: 140px;
    background: #d4a017;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    animation-delay: 4s;
}

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

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

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

::-webkit-scrollbar-track {
    background: #102a43;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #e4b23c;
}

/* Navbar scroll effect */
nav.scrolled {
    background: rgba(10, 26, 46, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.2);
}

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

/* Animation for scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .geo-shape {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .geo-shape {
        opacity: 0.3;
    }
}
