/* Custom styles for PRO Driving School */

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

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

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

.circle-2 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 140, 140, 0.08) 0%, transparent 70%);
    bottom: 20%;
    left: 5%;
}

.circle-3 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 140, 140, 0.1);
    top: 30%;
    left: 45%;
}

.rect-1 {
    width: 120px;
    height: 120px;
    border: 2px solid rgba(255, 140, 140, 0.15);
    border-radius: 20px;
    top: 15%;
    left: 15%;
    transform: rotate(45deg);
}

.triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(255, 140, 140, 0.06);
    bottom: 25%;
    right: 15%;
    transform: rotate(-15deg);
}

.dot-grid {
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(255, 140, 140, 0.25) 1.5px, transparent 1.5px);
    background-size: 15px 15px;
    top: 60%;
    right: 5%;
}

.geo-dots {
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(255, 140, 140, 0.3) 1.5px, transparent 1.5px);
    background-size: 15px 15px;
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(58, 14, 14, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Service card hover */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8c2525, #ff8c8c);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* Testimonial card hover */
.testimonial-card {
    position: relative;
}

.testimonial-card::after {
    content: '"';
    position: absolute;
    top: 16px;
    right: 24px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 80px;
    font-weight: 700;
    color: rgba(140, 37, 37, 0.06);
    line-height: 1;
    pointer-events: none;
}

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

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

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

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

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

/* Button focus styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #8c2525;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: rgba(140, 37, 37, 0.2);
    color: #3a0e0e;
}

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

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

::-webkit-scrollbar-thumb {
    background: #c43b3b;
    border-radius: 4px;
}

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