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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3 {
    margin-bottom: 20px;
}

/* Header & Hero Section (Black Theme) */
.hero {
    background-color: #000;
    color: #fff;
    padding: 30px 0 80px;
    position: relative;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 80px;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.byd-logo {
    height: 40px;
    filter: brightness(0) invert(1); /* Make logo white for black background */
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #e31837;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 52px;
    line-height: 1.1;
    margin-bottom: 25px;
}

.highlight {
    color: #e31837;
}

.hero-text p {
    font-size: 18px;
    margin-bottom: 35px;
    color: #ccc;
}

.hero-image {
    flex: 1;
}

.hero-image img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(227, 24, 55, 0.2);
}

.cta-button {
    display: inline-block;
    padding: 18px 35px;
    background-color: #25d366;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 18px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.cta-button:hover {
    transform: scale(1.05);
    background-color: #1ebe57;
}

/* Blinking Effect */
.promo-box {
    background-color: #ffeb3b;
    padding: 12px 25px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 35px;
    font-weight: 800;
    color: #000;
    border: 2px solid #000;
}

.blinking {
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* Catalog Section */
.catalog {
    padding: 100px 0;
    background-color: #fff;
}

.section-title {
    text-align: center;
    font-size: 38px;
    margin-bottom: 70px;
    color: #111;
}

.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.car-card {
    background-color: #fff;
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.car-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: #e31837;
}

.car-card img {
    border-radius: 12px;
    margin-bottom: 25px;
}

.car-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.car-card p {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
}

.detail-link {
    display: inline-block;
    color: #e31837;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 8px 20px;
    border: 2px solid #e31837;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.detail-link:hover {
    background-color: #e31837;
    color: #fff;
}

/* Special Promo Section */
.special-promo {
    padding: 100px 0;
    background: linear-gradient(135deg, #111 0%, #000 100%);
    color: #fff;
    text-align: center;
}

.promo-content h2 {
    font-size: 42px;
    color: #ffeb3b;
    margin-bottom: 20px;
}

.promo-content p {
    font-size: 20px;
    margin-bottom: 40px;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.promo-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 15px;
    border: 1px dashed #ffeb3b;
    font-weight: 600;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.promo-item:hover {
    transform: scale(1.05);
    background-color: rgba(255, 255, 255, 0.2);
}

.promo-footer {
    font-style: italic;
    color: #aaa;
    margin-bottom: 30px;
}

/* Gallery Section */
.gallery {
    padding: 100px 0;
    background-color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.gallery-item img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
}

.gallery-item:hover img {
    transform: scale(1.15);
}

/* Footer */
footer {
    background-color: #000;
    color: #fff;
    padding: 80px 0 30px;
    border-top: 1px solid #222;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 50px;
}

.byd-logo-footer {
    height: 35px;
    margin-bottom: 25px;
    filter: brightness(0) invert(1);
}

.footer-info h3, .footer-social h3 {
    color: #e31837;
    margin-bottom: 25px;
    font-size: 22px;
}

.footer-social ul {
    list-style: none;
}

.footer-social ul li {
    margin-bottom: 12px;
}

.footer-social ul li a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-social ul li a:hover {
    color: #fff;
}

.footer-social ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-icon-font {
    font-size: 24px;
    color: #fff;
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block;
    width: 30px;
    text-align: center;
}

.footer-social ul li a:hover .footer-icon-font {
    transform: scale(1.2);
    color: #e31837;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #222;
    padding-top: 30px;
    font-size: 14px;
    color: #555;
}

.developer {
    margin-top: 10px;
    font-size: 12px;
    color: #333;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Color Gallery Styles */
.color-section {
    padding: 80px 0;
    background-color: #fcfcfc;
    border-top: 1px solid #eee;
}

.color-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.color-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 120px;
}

.color-swatch {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.color-item:hover .color-swatch {
    transform: scale(1.15);
}

.color-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* Photo-based Color Gallery */
.color-photo-section {
    padding: 80px 0;
    background-color: #fff;
    border-top: 1px solid #eee;
}

.color-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.color-photo-item {
    text-align: center;
    background: #fdfdfd;
    padding: 15px;
    border-radius: 15px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.color-photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border-color: #e31837;
}

.color-photo-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

.color-photo-item span {
    display: block;
    font-weight: 600;
    color: #111;
    font-size: 16px;
}

/* Pre-order "Heboh" Styles (Denza B5) */
.preorder-hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://placehold.co/1920x1080/111/fff?text=Denza+B5+Atmosphere');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 150px 0;
}

.preorder-badge {
    display: inline-block;
    background: #e31837;
    color: #fff;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    animation: pulse-red 2s infinite;
}

.glow-text {
    font-size: 64px;
    font-weight: 800;
    text-transform: uppercase;
    background: linear-gradient(to right, #fff, #e31837, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shine 3s linear infinite;
    margin-bottom: 20px;
}

.exclusive-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.1);
    margin: 50px auto;
    max-width: 800px;
    position: relative;
    overflow: hidden;
}

.exclusive-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(227, 24, 55, 0.3), transparent 30%);
    animation: rotate-bg 4s linear infinite;
}

.exclusive-card-content {
    position: relative;
    z-index: 1;
    background: #000;
    padding: 30px;
    border-radius: 20px;
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(227, 24, 55, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(227, 24, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(227, 24, 55, 0); }
}

@keyframes shine {
    to { background-position: 200% center; }
}

@keyframes rotate-bg {
    100% { transform: rotate(1turn); }
}

.floating-anim {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Floating WA */
.floating-wa {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 65px;
    height: 65px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    transition: all 0.3s ease;
}

.floating-wa:hover {
    transform: scale(1.1) rotate(10deg);
}

.floating-wa img {
    width: 38px;
    height: 38px;
}

/* Price Section */
.price-section {
    padding: 60px 0;
    background-color: #f9f9f9;
    text-align: center;
    border-top: 1px solid #eee;
}

.price-card {
    background: #fff;
    display: inline-block;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 2px solid #e31837;
}

.price-card h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.price-value {
    font-size: 48px;
    font-weight: 800;
    color: #e31837;
    margin-bottom: 20px;
}

/* Atto 2 Cyber-Energy Theme */
.atto2-exclusive-theme .hero, 
.atto2-exclusive-theme .detail-hero {
    background: linear-gradient(135deg, #001f3f 0%, #0074d9 100%);
}

.atto2-exclusive-theme .glow-text-atto2 {
    font-size: 64px;
    font-weight: 800;
    text-transform: uppercase;
    background: linear-gradient(to right, #7fdbff, #0074d9, #7fdbff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shine 3s linear infinite;
}

.atto2-exclusive-theme .preorder-badge {
    background: #7fdbff;
    color: #001f3f;
}

.atto2-exclusive-theme .cta-button {
    background-color: #0074d9;
    box-shadow: 0 4px 15px rgba(0, 116, 217, 0.4);
}

/* Footer Sales Card */
.footer-sales-card-container {
    margin-top: 25px;
    max-width: 350px;
}

.footer-sales-card-container img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(255,255,255,0.1);
    transition: transform 0.3s ease;
}

.footer-sales-card-container img:hover {
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .footer-sales-card-container {
        margin: 25px auto 0;
    }
}

/* Detail Page Styles */
.detail-hero {
    padding: 100px 0 60px;
    background-color: #f9f9f9;
}

.detail-container {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.detail-image {
    flex: 1;
}

.detail-image img {
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.detail-info {
    flex: 1;
}

.detail-info h2 {
    font-size: 42px;
    color: #111;
    margin-bottom: 10px;
}

.car-tagline {
    font-size: 20px;
    color: #e31837;
    font-weight: 600;
    margin-bottom: 25px;
}

.detail-info p {
    font-size: 17px;
    color: #555;
    margin-bottom: 30px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
}

.specs-table td {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.specs-table td:first-child {
    font-weight: 600;
    color: #333;
    width: 40%;
}

/* Comparison Table */
.spec-section {
    padding: 80px 0;
    background-color: #fff;
}

.spec-container {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
    margin-top: 30px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.comparison-table th {
    background-color: #111;
    color: #fff;
    padding: 20px;
    text-align: left;
    font-size: 18px;
}

.comparison-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}

.comparison-table tr:hover {
    background-color: #f9f9f9;
}

.comparison-table .spec-label {
    width: 30%;
    background-color: #fcfcfc;
    font-weight: 600;
    color: #111;
    border-right: 1px solid #eee;
}

.comparison-table .spec-value {
    width: 35%;
    text-align: center;
}

@media (max-width: 768px) {
    .comparison-table {
        min-width: 100%;
        display: block;
    }
    .comparison-table thead {
        display: none;
    }
    .comparison-table tr {
        display: block;
        margin-bottom: 40px;
        border: 1px solid #eee;
        border-radius: 12px;
        background: #fff;
        overflow: hidden;
    }
    .comparison-table td {
        display: flex;
        justify-content: space-between;
        padding: 14px 20px;
        text-align: right;
        border-bottom: 1px solid #f9f9f9;
    }
    .comparison-table td::before {
        content: attr(data-label);
        font-weight: 600;
        text-align: left;
        color: #e31837;
        margin-right: 15px;
        font-size: 14px;
    }
    .comparison-table .spec-label {
        display: block;
        background-color: #111;
        color: #fff;
        width: 100%;
        text-align: center;
        font-size: 16px;
        padding: 12px;
        border-right: none;
    }
    .comparison-table .spec-value {
        width: 100%;
        font-size: 14px;
    }
}

.back-link {
    display: inline-block;
    margin-bottom: 30px;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #e31837;
}

@media (max-width: 992px) {
    .detail-container {
        flex-direction: column;
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-text h1 { font-size: 42px; }
}

@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-text h1 { font-size: 38px; }

    /* Mobile Menu */
    .nav-toggle-label {
        display: block;
        position: relative;
        height: 20px;
        width: 30px;
    }

    .nav-toggle-label span,
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        display: block;
        background: #fff;
        height: 3px;
        width: 100%;
        border-radius: 2px;
        position: absolute;
        transition: all .3s ease;
    }

    .nav-toggle-label span::before { content: ""; top: -8px; }
    .nav-toggle-label span::after { content: ""; top: 8px; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: #111;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right .4s ease-in-out;
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }

    .nav-toggle:checked ~ .nav-links {
        right: 0;
    }

    .nav-toggle:checked ~ .nav-toggle-label span {
        background: transparent;
    }

    .nav-toggle:checked ~ .nav-toggle-label span::before {
        transform: rotate(45deg);
        top: 0;
    }

    .nav-toggle:checked ~ .nav-toggle-label span::after {
        transform: rotate(-45deg);
        top: 0;
    }
}

@media (max-width: 768px) {
    .section-title { font-size: 30px; }
    .promo-content h2 { font-size: 32px; }
}
