/* MK Motor Driving School - Custom Styles */

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #0d6efd;
    --accent-color: #ffc107;
    --dark-color: #2d2d2d;
    --light-color: #f8f9fa;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --header-border: #e0e0e0;
    --nav-text: #333333;
    --nav-active: #0d6efd;
    --footer-gradient: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 76px; /* Bootstrap navbar height */
}

/* Custom Bootstrap Navbar Styles */
.custom-navbar {
    border-bottom: 1px solid var(--header-border);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background: white !important;
    transition: all 0.3s ease;
}

.custom-navbar .navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--nav-text) !important;
    text-decoration: none;
}

.custom-navbar .navbar-brand:hover {
    color: var(--primary-color) !important;
}

.custom-navbar .navbar-nav .nav-link {
    color: var(--nav-text) !important;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.custom-navbar .navbar-nav .nav-link:hover {
    color: var(--nav-active) !important;
}

.custom-navbar .navbar-nav .nav-link.active {
    color: var(--nav-active) !important;
}

.custom-navbar .navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--nav-active);
}

/* Hamburger menu styling */
.custom-navbar .navbar-toggler {
    border: none;
    padding: 4px 8px;
}

.custom-navbar .navbar-toggler:focus {
    box-shadow: none;
}

.custom-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23333' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile Responsive Styles */
@media (max-width: 991.98px) {
    .custom-navbar .navbar-nav {
        background: white;
        padding: 1rem 0;
        border-top: 1px solid var(--header-border);
        margin-top: 0.5rem;
    }
    
    .custom-navbar .navbar-nav .nav-link {
        margin: 0.25rem 0;
        padding: 0.5rem 1rem;
        border-radius: 5px;
        transition: all 0.3s ease;
    }
    
    .custom-navbar .navbar-nav .nav-link:hover {
        background: rgba(135, 206, 235, 0.1);
    }
    
    .custom-navbar .navbar-nav .nav-link.active {
        background: rgba(135, 206, 235, 0.2);
        color: var(--nav-active) !important;
    }
    
    .custom-navbar .navbar-nav .nav-link.active::after {
        display: none;
    }
    
    body {
        padding-top: 70px; /* Adjusted for mobile navbar height */
    }
}

@media (max-width: 576px) {
    .custom-navbar .navbar-brand {
        font-size: 1.3rem;
    }
    
    .custom-navbar .navbar-nav .nav-link {
        font-size: 0.85rem;
    }
    
    body {
        padding-top: 65px;
    }
}

/* Navbar Styles */
.navbar {
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--secondary-color) !important;
}

/* Hero Section */
.hero-section {
    background: var(--footer-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    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 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,112C1248,107,1344,117,1392,122.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-image {
    position: relative;
    z-index: 2;
}

/* Page Headers */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    position: relative;
    overflow: hidden;
}

.page-header::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 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,112C1248,107,1344,117,1392,122.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.card-body {
    padding: 2rem;
}

/* Feature Icons */
.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color), #0056b3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(13, 110, 253, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(13, 110, 253, 0.2);
    border-color: var(--secondary-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(13, 110, 253, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--secondary-color), #0056b3);
    color: white;
}

.service-card:hover .service-icon i {
    color: white !important;
}

.service-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Contact Form */
.contact-form {
    border: 1px solid rgba(13, 110, 253, 0.1);
    transition: all 0.3s ease;
}

.contact-form:hover {
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.15);
}

.contact-info {
    padding: 2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-info:hover {
    background: rgba(13, 110, 253, 0.05);
    transform: translateY(-5px);
}

.contact-info i {
    transition: all 0.3s ease;
}

.contact-info:hover i {
    transform: scale(1.1);
}

/* About Section */
.stat-box {
    transition: all 0.3s ease;
    border: 1px solid rgba(13, 110, 253, 0.1);
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.15);
    border-color: var(--secondary-color);
}

.image-placeholder {
    transition: all 0.3s ease;
}

.image-placeholder:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(13, 110, 253, 0.2);
}

/* Buttons */
.btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, var(--secondary-color), #ffb300);
    color: var(--dark-color);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
    color: var(--dark-color);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    border-color: white;
}

/* Statistics */
.stat-item {
    padding: 2rem;
    border-radius: 15px;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Forms */
.form-control, .form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* Accordion */
.accordion-button {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    font-weight: 600;
    border-radius: 10px !important;
    border: none;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
}

.accordion-item {
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

/* Contact Items */
.contact-item {
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.contact-item:last-child {
    border-bottom: none;
}

/* Footer Styles */
.footer-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    position: relative;
    overflow: hidden;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.footer-section h4,
.footer-section h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-section h4::after,
.footer-section h5::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

.footer-section p {
    color: #b0b0b0;
    line-height: 1.6;
}

.footer-section ul li {
    color: #b0b0b0;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section ul li a {
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.footer-section .social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.footer-section .social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.footer-section .subscribe-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 0;
}

.footer-section .subscribe-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.footer-section .subscribe-form .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    color: white;
}

.footer-section .subscribe-form .btn {
    background: var(--primary-color);
    border: none;
    border-radius: 0;
    padding: 0 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-section .subscribe-form .btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.footer-section .border-top {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.footer-section .border-top p {
    color: #888;
    margin: 0;
}

.footer-section .border-top .text-danger {
    color: #dc3545 !important;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-section .text-md-end {
        text-align: left !important;
    }
    
    .footer-section h4::after,
    .footer-section h5::after {
        width: 30px;
    }
    
    .footer-section .social-links a {
        width: 35px;
        height: 35px;
        line-height: 35px;
        margin-right: 8px;
    }
}

@media (max-width: 576px) {
    .footer-section {
        padding: 3rem 0 2rem;
    }
    
    .footer-section h4 {
        font-size: 1.2rem;
    }
    
    .footer-section h5 {
        font-size: 1rem;
    }
    
    .footer-section .subscribe-form .input-group {
        flex-direction: column;
    }
    
    .footer-section .subscribe-form .btn {
        margin-top: 10px;
        width: 100%;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    
    .hero-section {
        min-height: auto;
        padding: 4rem 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .stat-item {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

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

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

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Success Message */
.success-message {
    background: linear-gradient(135deg, var(--success-color), #157347);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
    display: none;
}

/* Map Container */
.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Instructor Cards */
.instructor-card {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.instructor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.instructor-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    font-weight: bold;
}

/* Course Comparison Table */
.course-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.course-table th {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    font-weight: 600;
    padding: 1rem;
}

.course-table td {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
}

/* Testimonial Cards */
.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, var(--secondary-color), #ffb300);
}

.shadow-custom {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.border-custom {
    border: 2px solid #e9ecef;
    border-radius: 15px;
}
