/* ===================================
   DriveSmart UAE - Bootstrap Overrides
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Urbanist:ital,wght@0,100..900;1,100..900&display=swap');

/* CSS Variables */
:root {
    --primary-color: #FF9500;
    --primary-hover: #E68600;
    --bg-dark: #181A20;
    --bg-dark-secondary: #1A1A1A;
    --bg-dark-card: #1E2025;
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --text-muted: #808080;

    /* Bootstrap Overrides */
    --bs-body-bg: #181A20;
    --bs-body-color: #FFFFFF;
    --bs-body-font-family: "Urbanist", sans-serif;
    --bs-primary: #FF9500;
    --bs-secondary: #B0B0B0;
    --bs-border-color: #34373E;
    --bs-border-radius: 1rem;
}

/* Base Styles */
body {
    font-family: "Urbanist", sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Header */
.header {
    backdrop-filter: blur(5px);
    background-color: var(--bg-dark);
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    width: 160px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(13, 13, 13, 0.7) 0%, rgba(13, 13, 13, 0.9) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

/* Card Component */
.card {
    background-color: var(--bg-dark-card);
    border: 1px solid #34373E;
    border-radius: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

/* Icon Card */
.icon-card {
    background-color: var(--bg-dark-card);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.icon-card:hover {
    transform: translateY(-4px);
}

.icon-card-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 149, 0, 0.1);
    border-radius: 0.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* Team Card */
.team-card {
    background-color: var(--bg-dark-card);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-8px);
}

.team-card-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.social-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-hover);
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    padding: 2rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo img {
    max-width: 200px;
    margin-bottom: 1rem;
}

.footer-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-color);
}

/* Utility Classes */
.text-primary-custom {
    color: var(--primary-color);
}

.bg-dark-secondary {
    background-color: var(--bg-dark-secondary);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #000000;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #000000;
}

.btn-outline-secondary {
    border-color: var(--bs-border-color);
    color: var(--text-primary);
}

.btn-outline-secondary:hover {
    background-color: var(--bg-dark-card);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Form Controls */
.form-control {
    background-color: var(--bg-dark-card);
    border-color: var(--bs-border-color);
    color: var(--text-primary);
}

.form-control:focus {
    background-color: var(--bg-dark-card);
    border-color: var(--primary-color);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.25rem rgba(255, 149, 0, 0.25);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.input-group-text {
    background-color: var(--bg-dark-card);
    border-color: var(--bs-border-color);
    color: var(--text-secondary);
}

/* Accordion */
.accordion-item {
    background-color: var(--bg-dark-card);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    overflow: hidden;
}

.accordion-button {
    background-color: var(--bg-dark-card);
    color: var(--text-primary);
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 500;
}

.accordion-button:not(.collapsed) {
    background-color: var(--bg-dark-card);
    color: var(--primary-color);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--bs-border-color);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23B0B0B0'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FF9500'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    background-color: var(--bg-dark-card);
    border-top: 1px solid var(--bs-border-color);
    padding: 1.5rem;
}

/* Sidebar Navigation Layout */
.sidebar-layout {
    display: flex;
    gap: 2rem;
    min-height: 70vh;
}

.sidebar-nav {
    background-color: var(--bg-dark-card);
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
}

.sidebar-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav-item {
    margin-bottom: 0.5rem;
}

.sidebar-nav-item:last-child {
    margin-bottom: 0;
}

.sidebar-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 500;
}

.sidebar-nav-link:hover {
    background-color: rgba(255, 149, 0, 0.1);
    color: var(--primary-color);
}

.sidebar-nav-link.active {
    background-color: rgba(255, 149, 0, 0.1);
    color: var(--primary-color);
}

.content-area {
    flex: 1;
    background-color: var(--bg-dark-card);
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    padding: 2rem;
    min-height: 400px;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.content-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.content-section .text-secondary {
    line-height: 1.8;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        min-height: 300px;
    }

    .hero-content {
        padding: 1.5rem;
    }

    .team-card-image {
        height: 250px;
    }

    .sidebar-layout {
        flex-direction: column;
    }

    .sidebar-nav {
        width: 100%;
        position: static;
        max-height: none;
    }
}
