html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: #181a1b;
    color: #f8f9fa;
    display: flex;
    flex-direction: column;
}

/* Make all paragraphs white */
p {
    color: #ffffff !important;
}

/* Make card titles white */
.card-title.text-light {
    color: #ffffff !important;
}

.navbar,
.footer {
    background-color: #111;
}

.carousel-item img {
    height: 400px;
    object-fit: cover;
    filter: brightness(0.7);
}

.carousel-caption h5,
.carousel-caption p {
    text-shadow: 0 2px 8px #000;
}

footer.footer-custom {
    background: #000;
    color: #eee;
    border-top: 1px solid #222;
    font-size: 1rem;
    letter-spacing: 0.02em;
    margin-top: auto;
    position: relative;
    bottom: 0;
    width: 100%;
}

.main-content {
    flex: 1;
}

.footer-custom .footer-icon svg {
    vertical-align: middle;
    color: #aaa;
    transition: color 0.2s;
}

.footer-custom .footer-icon:hover svg {
    color: #fff;
}

/* Car Cards Styling */
.car-card-img {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.price {
    font-size: 1.5rem;
}

.car-specs {

    padding-left: 10px;
}

/* Car Detail Page Styling */
.car-detail-img {
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.car-info-card {
    position: sticky;
    top: 20px;
}

.specifications-card,
.description-card {
    background-color: #1a1d20 !important;
}

.table-dark {
    --bs-table-bg: #1a1d20;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

/* Homepage Styles */
.hero-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #181a1b 0%, #1a1d20 100%);
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-image {
    max-width: 100%;
    height: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: translateY(-10px);
}

.bg-darker {
    background-color: #0f1114 !important;
}

.features-section {
    background: linear-gradient(135deg, #0f1114 0%, #181a1b 100%);
}

.feature-card {
    background-color: #1a1d20;
    border-radius: 15px;
    border: 1px solid #2d3436;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: #007bff;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #007bff, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.feature-icon svg {
    fill: #2d3436;
    color: #2d3436;
}

.cta-section {
    background: linear-gradient(135deg, #181a1b 0%, #1a1d20 100%);
}

.btn-primary {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
}

.btn-outline-light {
    border: 2px solid #f8f9fa;
    padding: 10px 28px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: #f8f9fa;
    color: #181a1b;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(248, 249, 250, 0.2);
}

/* Remove old carousel styles */
.carousel-item img {
    display: none;
}

.carousel-caption h5,
.carousel-caption p {
    display: none;
}

/* Sell Page Styles */
.sell-hero-section {
    position: relative;
    padding: 50px 0;
    background: linear-gradient(135deg, #181a1b 0%, #1a1d20 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.sell-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 123, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 191, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(0, 86, 179, 0.1) 0%, transparent 50%);
    animation: floating-orbs 15s ease-in-out infinite;
    z-index: 1;
}

.sell-hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background-image:
        linear-gradient(45deg, transparent 45%, rgba(0, 123, 255, 0.05) 50%, transparent 55%),
        linear-gradient(-45deg, transparent 45%, rgba(0, 191, 255, 0.03) 50%, transparent 55%);
    background-size: 60px 60px;
    animation: sliding-lines 20s linear infinite;
    z-index: 1;
}

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

.sell-icon {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border-radius: 50%;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0, 123, 255, 0.3);
}

.sell-icon svg {
    fill: #2d3436;
    color: #2d3436;
}

.why-sell-section {
    background: linear-gradient(135deg, #0f1114 0%, #181a1b 100%);
}

.contact-section {
    background: linear-gradient(135deg, #181a1b 0%, #1a1d20 100%);
}

.contact-card {
    background-color: #1a1d20;
    border-radius: 20px;
    border: 1px solid #2d3436;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.contact-item svg {
    flex-shrink: 0;
}

/* Contact Page - Business Card Style */
.contact-page-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #181a1b 0%, #1a1d20 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.business-card {
    background: linear-gradient(145deg, #1a1d20, #0f1114);
    border-radius: 20px;
    padding: 40px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid #2d3436;
    max-width: 500px;
    margin: 0 auto;
}

.company-name {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #007bff, #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.company-tagline {
    color: #adb5bd;
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 0;
}

.contact-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border-left: 4px solid #007bff;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #007bff, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-info h5 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-info p {
    color: #adb5bd !important;
    margin-bottom: 0;
    line-height: 1.4;
}

.social-links {
    border-top: 1px solid #2d3436;
    padding-top: 20px;
}

.social-link {
    color: #adb5bd;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.social-link:hover {
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
    transform: translateY(-2px);
}

.business-card .btn-primary {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.business-card .btn-primary:hover {
    background: linear-gradient(45deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
}

/* Glowing Blue Text Effect for Paragraphs */
.sell-hero-section h1 {
    position: relative;
    z-index: 3;
    animation: title-glow 3s ease-in-out infinite alternate;
}

.sell-hero-section p.lead {
    position: relative;
    z-index: 3;
    color: #ffffff;
    text-shadow:
        0 0 5px #00bfff,
        0 0 10px #00bfff,
        0 0 15px #00bfff,
        0 0 20px #0088cc;
    animation: glow-pulse 2s ease-in-out infinite alternate;
}

@keyframes title-glow {
    from {
        text-shadow:
            0 0 10px rgba(255, 255, 255, 0.5),
            0 0 20px rgba(0, 191, 255, 0.3);
    }

    to {
        text-shadow:
            0 0 20px rgba(255, 255, 255, 0.8),
            0 0 40px rgba(0, 191, 255, 0.6);
    }
}

@keyframes glow-pulse {
    from {
        text-shadow:
            0 0 5px #00bfff,
            0 0 10px #00bfff,
            0 0 15px #00bfff,
            0 0 20px #0088cc;
    }

    to {
        text-shadow:
            0 0 10px #00bfff,
            0 0 20px #00bfff,
            0 0 30px #00bfff,
            0 0 40px #0088cc;
    }
}

/* Contact Page Glowing Animations */
.business-card {
    background: linear-gradient(145deg, #1a1d20, #0f1114);
    border-radius: 20px;
    padding: 40px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 30px rgba(0, 191, 255, 0.1);
    border: 1px solid #007bff;
    max-width: 500px;
    margin: 0 auto;
    animation: card-glow 3s ease-in-out infinite alternate;
    position: relative;
    overflow: hidden;
}

.business-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #007bff, #00bfff, #007bff, #0056b3);
    background-size: 400% 400%;
    border-radius: 20px;
    z-index: -1;
    animation: gradient-shift 4s ease infinite;
}

.company-name {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #00bfff, #007bff, #00bfff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    animation: text-glow 2s ease-in-out infinite alternate;
    text-shadow: 0 0 20px rgba(0, 191, 255, 0.5);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #007bff, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    box-shadow:
        0 0 20px rgba(0, 191, 255, 0.4),
        inset 0 0 20px rgba(0, 191, 255, 0.1);
    animation: icon-pulse 2.5s ease-in-out infinite alternate;
}

.contact-icon svg {
    fill: #2d3436;
    color: #2d3436;
}

.contact-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(0, 191, 255, 0.05);
    border-radius: 10px;
    border-left: 4px solid #00bfff;
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.1);
    animation: row-glow 3s ease-in-out infinite alternate;
}

.social-link {
    color: #adb5bd;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 10px;
    border-radius: 50%;
    background: rgba(0, 191, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.2);
    animation: social-shimmer 2s ease-in-out infinite alternate;
}

.business-card .btn-primary {
    background: linear-gradient(45deg, #007bff, #00bfff);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow:
        0 0 20px rgba(0, 191, 255, 0.4),
        0 5px 15px rgba(0, 0, 0, 0.3);
    animation: button-glow 2s ease-in-out infinite alternate;
}

/* Keyframe Animations */
@keyframes card-glow {
    from {
        box-shadow:
            0 20px 60px rgba(0, 0, 0, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            0 0 30px rgba(0, 191, 255, 0.1);
    }

    to {
        box-shadow:
            0 20px 60px rgba(0, 0, 0, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            0 0 50px rgba(0, 191, 255, 0.3);
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes text-glow {
    from {
        filter: drop-shadow(0 0 10px rgba(0, 191, 255, 0.5));
    }

    to {
        filter: drop-shadow(0 0 20px rgba(0, 191, 255, 0.8));
    }
}

@keyframes icon-pulse {
    from {
        box-shadow:
            0 0 15px rgba(0, 191, 255, 0.3),
            inset 0 0 15px rgba(0, 191, 255, 0.1);
    }

    to {
        box-shadow:
            0 0 25px rgba(0, 191, 255, 0.6),
            inset 0 0 25px rgba(0, 191, 255, 0.2);
    }
}

@keyframes row-glow {
    from {
        box-shadow: 0 0 10px rgba(0, 191, 255, 0.1);
        background: rgba(0, 191, 255, 0.05);
    }

    to {
        box-shadow: 0 0 20px rgba(0, 191, 255, 0.2);
        background: rgba(0, 191, 255, 0.08);
    }
}

@keyframes social-shimmer {
    from {
        box-shadow: 0 0 10px rgba(0, 191, 255, 0.2);
        background: rgba(0, 191, 255, 0.1);
    }

    to {
        box-shadow: 0 0 20px rgba(0, 191, 255, 0.4);
        background: rgba(0, 191, 255, 0.15);
    }
}

@keyframes button-glow {
    from {
        box-shadow:
            0 0 15px rgba(0, 191, 255, 0.3),
            0 5px 15px rgba(0, 0, 0, 0.3);
    }

    to {
        box-shadow:
            0 0 30px rgba(0, 191, 255, 0.6),
            0 8px 25px rgba(0, 0, 0, 0.4);
    }
}

/* New Homepage Styles */
.hero-section {
    background: linear-gradient(135deg, #0f1114 0%, #181a1b 50%, #1a1d21 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.stat-card {
    background: linear-gradient(45deg, rgba(0, 123, 255, 0.1), rgba(0, 86, 179, 0.1));
    border-radius: 15px;
    border: 1px solid rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.3);
}

.featured-car-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.featured-car-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 123, 255, 0.2);
}

.car-card-img-large {
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-car-card:hover .car-card-img-large {
    transform: scale(1.05);
}

/* Animated Hero Section */
.hero-section-animated {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

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

.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://media3.giphy.com/media/v1.Y2lkPTc5MGI3NjExNGI3bTN2bzUzeWJueHhzMDkwazZqcW82YXV6ejRhZmRjOWh0cDMxciZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/UFn6UyBa5KdBsSwhIW/giphy.gif') center center;
    background-size: cover;
    background-repeat: no-repeat;
    animation: slowZoom 20s ease-in-out infinite alternate;
}

.hero-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.4) 50%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
}

.hero-title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-buttons .btn {
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

@keyframes floating-orbs {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

@keyframes sliding-lines {
    0% {
        transform: translate(-50px, -50px);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

@keyframes slowZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

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

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

/* Responsive button spacing */
@media (max-width: 576px) {
    .btn.me-3 {
        margin-right: 0 !important;
        margin-bottom: 1rem !important;
        display: block;
        width: 100%;
    }

    .btn+.btn {
        width: 100%;
    }

    .hero-title {
        font-size: 2.5rem !important;
    }

    .hero-subtitle {
        font-size: 1.1rem !important;
    }

    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
}

/* Add Car Page Styles */
.add-car-section {
    background: linear-gradient(135deg, #181a1b 0%, #1a1d20 100%);
    min-height: 100vh;
}

.add-car-card {
    background: linear-gradient(145deg, #1a1d20, #0f1114);
    border-radius: 20px;
    border: 1px solid #2d3436;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.form-section {
    border-bottom: 1px solid #2d3436;
    padding-bottom: 2rem;
}

.form-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.section-title {
    color: #007bff;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.form-control,
.form-select {
    background-color: #2d3436;
    border: 1px solid #495057;
    color: #ffffff;
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    background-color: #2d3436;
    border-color: #007bff;
    color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-control::placeholder {
    color: #adb5bd;
}

.form-label {
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-text {
    color: #adb5bd;
}

.is-invalid {
    border-color: #dc3545;
}

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

/* Success Page Styles */
.success-section {
    background: linear-gradient(135deg, #181a1b 0%, #1a1d20 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.success-card {
    background: linear-gradient(145deg, #1a1d20, #0f1114);
    border-radius: 20px;
    border: 1px solid #28a745;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(40, 167, 69, 0.2);
}

.success-icon {
    animation: successPulse 2s ease-in-out infinite;
}

.car-preview-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid #2d3436;
}

.action-buttons .btn {
    margin-bottom: 1rem;
}

@keyframes successPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@media (max-width: 768px) {
    .action-buttons .btn {
        width: 100%;
        margin-bottom: 1rem;
    }

    .add-car-card {
        margin: 1rem;
        padding: 2rem !important;
    }
}