/* Color Palette based on Logo #1e576f */
:root {
    --primary-color: #1e576f;
    --primary-light: #2a7a94;
    --primary-dark: #154352;
    --secondary-color: #3d9bb8;
    --accent-color: #4fb3d1;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --info-color: #3d9bb8;
    --danger-color: #dc3545;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    overflow-x: hidden;
}

/* Bootstrap Color Overrides */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--primary-light) !important;
    border-color: var(--primary-light) !important;
}

.btn-success {
    background-color: var(--success-color) !important;
    border-color: var(--success-color) !important;
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
}

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

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

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

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

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

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

/* Background Container with Crossfade Animation */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.background-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.background-container img.active {
    opacity: 0.3;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

/* Navigation Bar */
.navbar {
    background: rgba(30, 87, 111, 0.9) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 1rem 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.navbar.scrolled {
    background: rgba(30, 87, 111, 0.95) !important;
    box-shadow: 0 4px 20px rgba(30, 87, 111, 0.4);
}

.navbar-brand {
    font-size: 1.4rem;
    color: #fff !important;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #fff !important;
}

.nav-link.active {
    color: #fff !important;
    font-weight: bold;
    border-bottom: 2px solid var(--accent-color);
}

/* Sections */
.section {
    position: relative;
    padding: 80px 0;
    z-index: 1;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Home Section */
.home-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.circular-logo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(79, 179, 209, 0.5);
    box-shadow: 0 8px 30px rgba(30, 87, 111, 0.5);
    background: #fff;
    padding: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.circular-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(30, 87, 111, 0.7);
    border-color: var(--accent-color);
}

.home-section h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.quick-links .btn {
    transition: all 0.3s ease;
    border-width: 2px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.quick-links .btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.quick-links .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    color: #fff;
}

.quick-links .btn:hover i {
    transform: scale(1.2);
}

/* Product Button Colors */
.btn-product-tyres {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
}

.btn-product-tyres:hover {
    background-color: var(--primary-light) !important;
    border-color: var(--primary-light) !important;
    color: #fff !important;
}

.btn-product-adhesives {
    background-color: var(--success-color) !important;
    border-color: var(--success-color) !important;
    color: #fff !important;
}

.btn-product-adhesives:hover {
    background-color: #218838 !important;
    border-color: #218838 !important;
    color: #fff !important;
}

.btn-product-paints {
    background-color: var(--warning-color) !important;
    border-color: var(--warning-color) !important;
    color: #000 !important;
}

.btn-product-paints:hover {
    background-color: #e0a800 !important;
    border-color: #e0a800 !important;
    color: #000 !important;
}

.btn-product-fittings {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    color: #fff !important;
}

.btn-product-fittings:hover {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: #fff !important;
}

.contact-buttons .btn {
    transition: all 0.3s ease;
}

.contact-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* About Section */
.about-section {
    background: #f8f9fa;
}

.about-section .card {
    border: none;
    border-radius: 15px;
}

.about-section .card-body {
    background: #fff;
    border-radius: 15px;
}

.brands-list h5 {
    color: var(--primary-color);
    font-weight: bold;
}

.brands-list ul li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

/* Products Section */
.products-section {
    background: #fff;
}

.product-category {
    margin-bottom: 4rem;
}

.product-category .card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.product-category .card-header {
    border-radius: 15px 15px 0 0 !important;
    padding: 1.5rem;
}

.brand-badge {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(30, 87, 111, 0.3);
}

.brand-logo {
    max-width: 150px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

.product-card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(30, 87, 111, 0.2);
    border-color: var(--primary-color);
}

.product-card img {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-card .card-body {
    padding: 1.5rem;
}

.product-card .card-title {
    color: #333;
    font-weight: bold;
    margin-bottom: 1rem;
}

.product-card .card-text {
    color: #666;
    line-height: 1.6;
}

/* Carousel Styling */
.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    background: rgba(30, 87, 111, 0.7);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    transition: background 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(30, 87, 111, 0.9);
}

.carousel-control-prev {
    left: 10px;
}

.carousel-control-next {
    right: 10px;
}

/* Contact Section */
.contact-section {
    background: #f8f9fa;
}

.contact-section .card {
    border: none;
    border-radius: 15px;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    border-radius: 10px;
}

/* Footer */
.footer {
    background: var(--primary-dark) !important;
    padding: 2rem 0;
}

/* Modal Styling */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    border-radius: 15px 15px 0 0;
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .circular-logo {
        width: 200px;
        height: 200px;
        border-width: 4px;
    }

    .home-section h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .quick-links .btn {
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    .product-card img {
        height: 200px;
    }

    .brand-badge {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    .brand-logo {
        max-width: 120px;
        max-height: 60px;
    }

    .map-container iframe {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .circular-logo {
        width: 200px;
        height: 200px;
        border-width: 3px;
    }

    .home-section {
        padding-top: 100px;
    }

    .section {
        padding: 60px 0;
    }

    .contact-buttons .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Animation for fade in */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeIn 0.6s ease-out;
}

/* Link Styling */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-light);
}

a.text-decoration-none:hover {
    color: var(--primary-light) !important;
}

/* Additional Color Accents */
.quick-links .btn-outline-light:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.contact-buttons .btn-primary {
    box-shadow: 0 4px 15px rgba(30, 87, 111, 0.3);
}

.contact-buttons .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(30, 87, 111, 0.4);
}

.contact-buttons .btn-success:hover {
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

/* Section Background Variations */
.about-section {
    background: var(--bg-light);
}

.contact-section {
    background: var(--bg-light);
}

/* Smooth transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease;
}

