/**
 * Motor City Street and Fleet - Compiled CSS
 * 
 * This file contains all custom styles for the website
 * Built on Bootstrap 5 with modern, mobile-first design
 */

/* Custom Color Palette */
:root {
    --mcfs-primary: #1e3a8a;
    --mcfs-secondary: #64748b;
    --mcfs-accent: #f59e0b;
    --mcfs-dark: #1f2937;
    --mcfs-light: #f8fafc;
    --mcfs-success: #10b981;
    --mcfs-warning: #f59e0b;
    --mcfs-danger: #ef4444;
    --mcfs-info: #3b82f6;
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--mcfs-dark);
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

/* Custom Bootstrap Overrides */
.btn-primary {
    background-color: var(--mcfs-primary);
    border-color: var(--mcfs-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary:hover, 
.btn-primary:focus, 
.btn-primary:active {
    background-color: #1e40af;
    border-color: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.text-primary {
    color: var(--mcfs-primary) !important;
}

.bg-primary {
    background-color: var(--mcfs-primary) !important;
}

/* Header & Navigation Styles */
.navbar {
    background: linear-gradient(135deg, var(--mcfs-dark) 0%, #374151 100%) !important;
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-bottom: 3px solid var(--mcfs-accent);
    width: 100%;
    margin: 0;
}

header {
    width: 100%;
    margin: 0;
    padding: 0;
}

.navbar .container-fluid {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.navbar.navbar-scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
}

.navbar-brand img {
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 600;
    padding: 0.75rem 1.25rem !important;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--mcfs-accent) !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    color: var(--mcfs-accent) !important;
    font-weight: 700;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--mcfs-accent), #fbbf24);
    border-radius: 2px;
}

.navbar-toggler {
    border: 2px solid var(--mcfs-accent);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background-color: var(--mcfs-accent);
    transform: scale(1.05);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3);
}

/* Mega Menu Styles */
.mega-dropdown .dropdown-toggle::after {
    transition: transform 0.3s ease;
}

.mega-dropdown.show .dropdown-toggle::after {
    transform: rotate(180deg);
}

.mega-menu {
    background: white;
    border: none;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 2rem 0;
    margin-top: 0.5rem;
    min-width: 800px;
    max-width: 1000px;
    left: 50% !important;
    transform: translateX(-50%) !important;
    animation: megaMenuSlideIn 0.3s ease;
    z-index: 1050;
}

@keyframes megaMenuSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.mega-menu-item {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
}

.mega-menu-item:hover {
    color: inherit;
    text-decoration: none;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.mega-item-content {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
}

.mega-menu-item:hover .mega-item-content {
    border-color: var(--mcfs-primary);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.1);
}

.mega-item-image {
    position: relative;
    height: 120px;
    overflow: hidden;
}

.mega-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mega-menu-item:hover .mega-item-image img {
    transform: scale(1.1);
}

.mega-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--mcfs-primary) 0%, rgba(30, 58, 138, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.mega-menu-item:hover .mega-item-overlay {
    opacity: 1;
}

.mega-item-overlay i {
    color: white;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.mega-menu-item:hover .mega-item-overlay i {
    transform: scale(1);
}

.mega-item-text {
    padding: 1rem;
}

.mega-item-title {
    color: var(--mcfs-primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.mega-item-description {
    color: #6b7280;
    font-size: 0.85rem;
    margin-bottom: 0;
    line-height: 1.4;
}

.mega-menu-footer {
    border-top: 1px solid #e5e7eb;
    padding-top: 1.5rem;
    margin-top: 1rem;
}

.mega-menu-footer .btn {
    font-size: 0.85rem;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.mega-menu-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.3);
}

/* Mega Menu Item Animations */
.mega-menu-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Navigation Hover Effects */
.navbar-nav .nav-link {
    position: relative;
    overflow: hidden;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.2), transparent);
    transition: left 0.6s ease;
}

.navbar-nav .nav-link:hover::before {
    left: 100%;
}

/* Dropdown Arrow Animation */
.dropdown-toggle .fa-chevron-down {
    transition: transform 0.3s ease;
}

.dropdown.show .dropdown-toggle .fa-chevron-down {
    transform: rotate(180deg);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="heroPattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23heroPattern)"/></svg>');
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(245, 158, 11, 0.05) 50%, transparent 70%);
    pointer-events: none;
}

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

.hero-buttons .btn {
    margin: 0.5rem 0.5rem 0.5rem 0;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-buttons .btn-light {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    border: none;
    color: #0f172a;
    font-weight: 700;
}

.hero-buttons .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.hero-buttons .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.hero-buttons .btn-outline-light:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* Hero Visual Elements */
.hero-visual {
    position: relative;
    z-index: 1;
}

.hero-image-container {
    position: relative;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s ease;
}

.hero-image-container:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.hero-main-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: brightness(1.1) contrast(1.1);
    transition: all 0.3s ease;
}

.hero-overlay-images {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hero-overlay-img {
    position: absolute;
    width: 120px;
    height: 80px;
    object-fit: cover;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.hero-img-1 {
    top: -20px;
    right: -30px;
    animation: float 3s ease-in-out infinite;
}

.hero-img-2 {
    bottom: -20px;
    left: -30px;
    animation: float 3s ease-in-out infinite 1.5s;
}

.hero-overlay-img:hover {
    opacity: 1;
    transform: scale(1.1);
}

.floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--mcfs-accent) 0%, #fbbf24 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    font-size: 1.5rem;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.floating-icon-1 {
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.floating-icon-2 {
    top: 60%;
    right: -5%;
    animation-delay: 0.7s;
}

.floating-icon-3 {
    bottom: 10%;
    left: 20%;
    animation-delay: 1.4s;
}

.hero-stats .stat-item {
    padding: 0.5rem;
}

.hero-badge .badge {
    font-size: 0.9rem;
    font-weight: 600;
    animation: slideInDown 1s ease;
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 35px rgba(245, 158, 11, 0.5);
    }
}

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

/* Service Cards - Dark Mode Design with Images */
.service-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
    border: 1px solid rgba(245, 158, 11, 0.2) !important;
    border-radius: 16px !important;
    padding: 0 !important;
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border-color: var(--mcfs-accent) !important;
}

/* Service Image Section (Top 2/3) */
.service-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    z-index: 1;
}

.service-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    display: block;
}

.service-thumbnail:not([src]),
.service-thumbnail[src=""],
.service-thumbnail[src*="undefined"] {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%) !important;
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.service-thumbnail:not([src])::after,
.service-thumbnail[src=""]::after,
.service-thumbnail[src*="undefined"]::after {
    content: '🚗';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    opacity: 0.5;
}

/* Ensure service images load properly */
.service-image {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
}

.service-thumbnail[src] {
    background: transparent !important;
}

/* Fallback for failed image loads */
.service-thumbnail {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-thumbnail[src]:not([src=""]) {
    background: none;
}

.service-card:hover .service-thumbnail {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.7) 0%, rgba(245, 158, 11, 0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    pointer-events: none;
}

.service-card:hover .service-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.service-overlay i {
    color: white;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.service-card:hover .service-overlay i {
    transform: scale(1);
}

/* Service Content Section (Bottom 1/3) */
.service-content {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.service-content h4,
.service-content h5 {
    color: white !important;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-content p {
    color: #cbd5e1 !important;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-content .btn {
    background: linear-gradient(135deg, var(--mcfs-accent) 0%, #fbbf24 100%);
    border: none;
    color: #0f172a;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    width: 100%;
}

.service-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, #fbbf24 0%, var(--mcfs-accent) 100%);
}

/* Feature Items */
.feature-item {
    padding: 2rem 1rem;
}

.feature-icon {
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
    color: var(--mcfs-accent) !important;
}

/* Gallery Styles */
.gallery-container {
    margin: 2rem 0;
}

.gallery-title {
    color: var(--mcfs-primary);
    font-weight: 700;
    margin-bottom: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: transparent !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    height: 250px; /* Fixed height for consistency */
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.gallery-item a {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
}

.gallery-thumbnail {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transition: all 0.4s ease;
    border-radius: 12px;
    display: block !important;
    background: transparent !important;
}

.gallery-item:hover .gallery-thumbnail {
    transform: scale(1.1);
    filter: brightness(1.1) contrast(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.8) 50%, rgba(245, 158, 11, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 2.5rem;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* Gallery Container Enhancements */
.gallery-container {
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(241, 245, 249, 0.8) 100%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.gallery-title {
    color: var(--mcfs-primary);
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.gallery-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--mcfs-primary), var(--mcfs-accent));
    border-radius: 2px;
}

/* Remove any white backgrounds from gallery items */
.gallery-item,
.gallery-item a,
.gallery-item div {
    background: transparent !important;
}

/* Force gallery images to display properly */
.gallery-item img,
.gallery-thumbnail {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Handle broken images gracefully */
.gallery-thumbnail:not([src]),
.gallery-thumbnail[src=""],
.gallery-thumbnail[src*="undefined"] {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%) !important;
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.gallery-thumbnail:not([src])::after,
.gallery-thumbnail[src=""]::after,
.gallery-thumbnail[src*="undefined"]::after {
    content: '📷';
    font-size: 2rem;
    opacity: 0.5;
}

/* Override any Bootstrap img classes that might interfere */
.gallery-item .img-fluid {
    max-width: 100% !important;
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
}

/* Gallery item caption styling */
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Sidebar Cards - Dark Mode Design */
.card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
    border: 1px solid rgba(245, 158, 11, 0.2) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--mcfs-accent) !important;
}

.card-header {
    background: linear-gradient(135deg, var(--mcfs-primary) 0%, #1e40af 100%) !important;
    border-bottom: 1px solid rgba(245, 158, 11, 0.3) !important;
    color: white !important;
    padding: 1rem 1.5rem;
}

.card-header.bg-secondary {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%) !important;
}

.card-body {
    background: transparent !important;
    color: #cbd5e1 !important;
    padding: 1.5rem;
}

.card-title {
    color: white !important;
    font-weight: 700;
    margin-bottom: 0;
}

.card-body p {
    color: #cbd5e1 !important;
    line-height: 1.6;
}

.card-body .btn-primary {
    background: linear-gradient(135deg, var(--mcfs-accent) 0%, #fbbf24 100%);
    border: none;
    color: #0f172a;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.card-body .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

.card-body .btn-outline-primary {
    border: 2px solid var(--mcfs-accent);
    color: var(--mcfs-accent);
    background: transparent;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.card-body .btn-outline-primary:hover {
    background: var(--mcfs-accent);
    color: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.card-body .list-unstyled li a {
    color: #cbd5e1 !important;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 0.5rem 0;
    border-radius: 8px;
}

.card-body .list-unstyled li a:hover {
    color: var(--mcfs-accent) !important;
    background: rgba(245, 158, 11, 0.1);
    padding-left: 0.5rem;
    transform: translateX(5px);
}

.card-body .list-unstyled li i {
    color: var(--mcfs-accent) !important;
    width: 20px;
    text-align: center;
}

.card-body .text-muted {
    color: #94a3b8 !important;
}

.card-body small.text-muted {
    color: #94a3b8 !important;
}

/* Alert Boxes - Dark Mode Design */
.alert {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
    border-radius: 12px !important;
    color: #cbd5e1 !important;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.alert-info {
    border-left: 4px solid #3b82f6 !important;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, #1e293b 100%) !important;
}

.alert-success {
    border-left: 4px solid #10b981 !important;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, #1e293b 100%) !important;
}

.alert-warning {
    border-left: 4px solid var(--mcfs-accent) !important;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, #1e293b 100%) !important;
}

.alert-heading {
    color: white !important;
    font-weight: 700;
}

.alert i {
    color: var(--mcfs-accent) !important;
}

/* Feature Boxes - Dark Mode Design */
.feature-box {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--mcfs-accent);
}

.feature-box .feature-icon {
    color: var(--mcfs-accent) !important;
    transition: all 0.3s ease;
}

.feature-box:hover .feature-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 12px rgba(245, 158, 11, 0.4));
}

.feature-box h4,
.feature-box h5 {
    color: white !important;
    font-weight: 700;
}

.feature-box p {
    color: #cbd5e1 !important;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Page Headers - Dark Mode Design */
.page-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%) !important;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.page-header .breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-header .breadcrumb-item a:hover {
    color: var(--mcfs-accent) !important;
}

.page-header .breadcrumb-item.active {
    color: var(--mcfs-accent) !important;
}

/* Content Sections - Enhanced Dark Mode */
.content-section {
    background: #f8fafc;
    position: relative;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

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

/* Gallery Section Background */
.gallery-section {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%) !important;
    position: relative;
}

.gallery-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="galleryPattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(30,58,138,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23galleryPattern)"/></svg>');
    pointer-events: none;
}

.gallery-section .container {
    position: relative;
    z-index: 2;
}

/* Enhanced Card Animations and Effects */
@keyframes cardGlow {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(245, 158, 11, 0.2);
    }
}

.service-card:hover {
    animation: cardGlow 2s ease-in-out infinite;
}

/* Stat Items Enhancement */
.stat-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

/* Enhanced List Styling */
.list-unstyled li {
    transition: all 0.3s ease;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.list-unstyled li:hover {
    background: rgba(245, 158, 11, 0.1);
    padding-left: 0.5rem;
}

/* Badge Enhancements */
.badge {
    background: linear-gradient(135deg, var(--mcfs-accent) 0%, #fbbf24 100%) !important;
    color: #0f172a !important;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

/* Improved Button Styling */
.btn {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

/* Enhanced CTA Section */
.cta-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%) !important;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 70%, rgba(245, 158, 11, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

/* Contact Page Styling */
.contact-section {
    background: #f8fafc;
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.contact-form-container {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.1);
}

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

.contact-form .form-control,
.contact-form .form-select {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    background: white;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--mcfs-accent);
    box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.25);
    outline: none;
}

.contact-form .form-control:hover,
.contact-form .form-select:hover {
    border-color: var(--mcfs-accent);
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn-primary {
    background: linear-gradient(135deg, var(--mcfs-accent) 0%, #fbbf24 100%);
    border: none;
    color: #0f172a;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, #fbbf24 0%, var(--mcfs-accent) 100%);
}

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

.contact-info .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.contact-info address {
    font-style: normal;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.contact-info address strong {
    color: var(--mcfs-primary);
    font-size: 1.1rem;
}

.contact-methods .contact-item {
    display: flex;
    align-items: flex-start;
    padding: 0.5rem 0;
}

.contact-methods .contact-item i {
    margin-top: 0.2rem;
    width: 20px;
    flex-shrink: 0;
}

.contact-methods a {
    color: var(--mcfs-primary);
    transition: color 0.3s ease;
}

.contact-methods a:hover {
    color: var(--mcfs-accent);
}

/* Contact Info Cards Enhancements */
.contact-info .card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-info .card-header.bg-warning {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
    color: #0f172a !important;
}

.contact-info .card-header.bg-warning .card-title {
    color: #0f172a !important;
}

.contact-info .card-body {
    padding: 1.5rem;
}

.contact-info .btn-warning {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border: none;
    color: #0f172a;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-info .btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.4);
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: #0f172a;
}

/* Map Section */
.map-section {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.map-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.map-placeholder {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%) !important;
    transition: all 0.3s ease;
}

.map-placeholder:hover {
    background: linear-gradient(135deg, #4b5563 0%, #6b7280 100%) !important;
}

/* Form Validation Styling */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.is-valid,
.form-select.is-valid {
    border-color: #198754;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.valid-feedback {
    color: #198754;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Featured Gallery */
.featured-gallery .featured-category {
    margin-bottom: 4rem;
}

.featured-gallery h3 {
    color: var(--mcfs-primary);
    font-weight: 600;
    margin-bottom: 2rem;
}

.featured-gallery .gallery-item {
    background: transparent !important;
    border: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    height: 220px; /* Fixed height for featured gallery */
}

.featured-gallery .gallery-item:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.featured-gallery .gallery-thumbnail {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 12px;
    display: block !important;
    background: transparent !important;
}

.featured-gallery .btn {
    margin-top: 1rem;
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.featured-gallery .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.3);
}

/* Footer Styles */
footer {
    background-color: var(--mcfs-dark) !important;
    color: white;
}

footer h5, footer h6 {
    color: var(--mcfs-accent) !important;
    font-weight: 600;
}

footer a {
    color: #d1d5db !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--mcfs-accent) !important;
}

.business-hours {
    font-size: 0.9rem;
}

.social-links a {
    display: inline-block;
    margin-right: 1rem;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
    color: var(--mcfs-accent) !important;
}

/* Animation Classes */
.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

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

/* Touch Device Optimizations */
.touch-device .gallery-item {
    transform: none !important;
}

.touch-active {
    transform: scale(0.98) !important;
    transition: transform 0.1s ease !important;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 50vh;
        text-align: center;
    }

    .hero-section .display-4 {
        font-size: 2rem;
    }

    .hero-buttons {
        margin-top: 2rem;
    }

    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }

    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }

    .service-card {
        margin-bottom: 1rem;
    }

    .gallery-thumbnail {
        height: 150px;
    }

    /* Mobile Mega Menu Adjustments */
    .mega-menu {
        position: static !important;
        transform: none !important;
        min-width: auto;
        max-width: none;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        border-top: 1px solid #e5e7eb;
        animation: none;
    }

    .mega-item-content {
        border-radius: 8px;
    }

    .mega-item-image {
        height: 80px;
    }

    .mega-item-text {
        padding: 0.75rem;
    }

    .mega-item-title {
        font-size: 0.9rem;
    }

    .mega-item-description {
        font-size: 0.8rem;
    }

    .mega-menu-footer {
        padding-top: 1rem;
        margin-top: 0.5rem;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem;
    }

    /* Mobile Dark Card Adjustments */
    .service-card {
        margin-bottom: 1.5rem;
    }

    .service-card:hover {
        transform: translateY(-5px) scale(1.01);
    }

    .service-image {
        height: 150px;
    }

    .service-content {
        padding: 1rem;
    }

    .service-content .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .card {
        margin-bottom: 1.5rem;
    }

    .feature-box {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .alert {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .stat-item {
        padding: 0.75rem;
    }

    /* Contact Page Mobile Adjustments */
    .contact-form-container {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .contact-form .btn-primary {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .contact-info .card {
        margin-bottom: 1.5rem;
    }

    .map-placeholder {
        height: 300px !important;
    }

    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    .cta-buttons .btn:last-child {
        margin-bottom: 0;
    }

    /* About Page Mobile Adjustments */
    .about-image .image-placeholder,
    .why-choose-image .image-placeholder {
        height: 250px !important;
        margin-bottom: 2rem;
    }

    .value-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .service-overview-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .service-overview-content {
        padding-left: 0.5rem;
    }

    .stat-item {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }

    .reason-item {
        padding: 0.75rem 0;
    }

    .stats-section .row {
        text-align: center;
    }
}

/* About Page Styling */
.about-section {
    background: #f8fafc;
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

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

.about-content .lead {
    color: var(--mcfs-primary);
    font-weight: 600;
}

.about-image .image-placeholder {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%) !important;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.about-image .image-placeholder:hover {
    background: linear-gradient(135deg, #4b5563 0%, #6b7280 100%) !important;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Values Section */
.values-section {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%) !important;
}

.value-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: var(--mcfs-accent);
}

.value-card .value-icon {
    transition: all 0.3s ease;
}

.value-card:hover .value-icon {
    transform: scale(1.1);
    color: var(--mcfs-accent) !important;
}

.value-card h4 {
    color: var(--mcfs-primary);
    font-weight: 700;
}

.value-card p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Services Overview */
.services-overview {
    background: #f8fafc;
}

.service-overview-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.service-overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--mcfs-accent);
}

.service-overview-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 80px;
}

.service-overview-content {
    padding-left: 1rem;
}

.service-overview-content h5 {
    color: var(--mcfs-primary);
    font-weight: 700;
}

.service-overview-content p {
    color: #6b7280;
    line-height: 1.5;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--mcfs-primary) 0%, #1e40af 100%) !important;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.stats-section .container {
    position: relative;
    z-index: 2;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 2rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.stat-number {
    color: var(--mcfs-accent);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.stat-label {
    color: rgba(255, 255, 255, 0.9);
}

/* Why Choose Us Section */
.why-choose-us {
    background: #f8fafc;
}

.why-choose-image .image-placeholder {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%) !important;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.why-choose-image .image-placeholder:hover {
    background: linear-gradient(135deg, #4b5563 0%, #6b7280 100%) !important;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.reason-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(245, 158, 11, 0.1);
}

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

.reason-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.reason-item h5 {
    color: var(--mcfs-primary);
    font-weight: 700;
}

.reason-item p {
    color: #6b7280;
    line-height: 1.6;
}

@media (max-width: 576px) {
    .hero-section .display-4 {
        font-size: 1.75rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .feature-item {
        padding: 1rem;
    }
    
    .gallery-thumbnail {
        height: 120px;
    }
}

/* Print Styles */
@media print {
    .navbar, footer, .hero-section, .cta-section {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
