/* Custom CSS for Driving School Website */

:root {
    --primary-red: #dc3545;
    --secondary-red: #c82333;
    --light-red: #f8d7da;
    --dark-red: #721c24;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Top Bar */
.top-bar {
    font-size: 0.875rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--secondary-red) 50%, var(--dark-red) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.stat-card {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-buttons .btn {
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Feature Items */
.feature-item {
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateX(10px);
}

.feature-icon {
    min-width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Course Cards */
.course-card {
    transition: all 0.3s ease;
    border-radius: 15px;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.course-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Pricing Cards */
.pricing-card {
    transition: all 0.3s ease;
    border-radius: 15px;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Contact Section */
.contact-item {
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-icon {
    min-width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Form Styles */
.form-control:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-select:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Button Animations */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Navigation */
.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-red);
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* Footer */
.modern-footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), #ff6b6b, var(--primary-red));
}

.footer-content {
    padding: 60px 0 40px;
}

.footer-brand {
    margin-bottom: 30px;
}

.brand-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.logo-circle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-red), #ff4757);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
}

.logo-circle i {
    font-size: 24px;
    color: white;
}

.brand-text h4 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.brand-tagline {
    font-size: 0.9rem;
    color: #b0b0b0;
    font-weight: 400;
}

.footer-description {
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.social-media {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
    z-index: 1;
}

.social-link i {
    position: relative;
    z-index: 2;
    font-size: 18px;
    transition: color 0.3s ease;
}

.social-link.facebook {
    background: rgba(59, 89, 152, 0.1);
    border: 2px solid rgba(59, 89, 152, 0.3);
    color: #3b5998;
}

.social-link.facebook::before {
    background: #3b5998;
}

.social-link.facebook:hover::before {
    transform: scale(1);
}

.social-link.facebook:hover i {
    color: white;
}

.social-link.instagram {
    background: rgba(225, 48, 108, 0.1);
    border: 2px solid rgba(225, 48, 108, 0.3);
    color: #e1306c;
}

.social-link.instagram::before {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link.instagram:hover::before {
    transform: scale(1);
}

.social-link.instagram:hover i {
    color: white;
}

.social-link.whatsapp {
    background: rgba(37, 211, 102, 0.1);
    border: 2px solid rgba(37, 211, 102, 0.3);
    color: #25d366;
}

.social-link.whatsapp::before {
    background: #25d366;
}

.social-link.whatsapp:hover::before {
    transform: scale(1);
}

.social-link.whatsapp:hover i {
    color: white;
}

.footer-section {
    margin-bottom: 30px;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-red);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 15px;
}

.footer-links a::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-size: 8px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 20px;
}

.footer-links a:hover::before {
    opacity: 1;
}

.footer-links span {
    color: #b0b0b0;
    font-size: 0.95rem;
    padding-left: 15px;
    position: relative;
}

.footer-links span::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-size: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-item i {
    color: var(--primary-red);
    font-size: 16px;
    margin-top: 2px;
    min-width: 20px;
}

.contact-item span {
    color: #b0b0b0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.whatsapp-contact a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #25d366;
    transition: all 0.3s ease;
}

.whatsapp-contact a:hover {
    color: #128c7e;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    margin-top: 40px;
}

.copyright {
    margin: 0;
    color: #b0b0b0;
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    justify-content: flex-end;
    gap: 25px;
}

.footer-bottom-links a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--primary-red);
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-content {
        padding: 40px 0 30px;
    }
    
    .brand-logo {
        flex-direction: column;
        text-align: center;
        margin-bottom: 15px;
    }
    
    .logo-circle {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .social-media {
        justify-content: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
        margin-top: 15px;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .copyright {
        text-align: center;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-red);
}

/* Success Message */
.success-message {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    display: none;
}

.success-message.show {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

/* Badge Styles */
.badge {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
}

/* Card Hover Effects */
.card {
    transition: all 0.3s ease;
}

.info-item {
    transition: background-color 0.3s ease;
}

.info-item:hover {
    background-color: rgba(220, 53, 69, 0.05);
    border-radius: 5px;
    padding-left: 10px;
    padding-right: 10px;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    z-index: 1000;
}

.whatsapp-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25d366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-button:hover {
    background-color: #128c7e;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* WhatsApp Button Mobile */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-button {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}
.gallery-wrapper {
    height: 220px;
    position: relative;
}

.gallery-track {
    animation: scrollGallery 60s linear infinite;
    white-space: nowrap;
}

.gallery-track img {
    flex: 0 0 auto;
}

@keyframes scrollGallery {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}
.gallery-wrapper:hover .gallery-track {
    animation-play-state: paused;
}
.gallery-track {
    animation: scrollGallery 50s linear infinite;
}
@keyframes scrollGallery {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

