/* GLOBAL */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #050505;
    color: #fff;
}

/* TOP BAR */
.top-bar {
    width: 100%;
    background: rgba(10,10,10,0.95);
    padding: 6px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #ff0000;
    position: sticky;
    top: 0;
    z-index: 20;
}

.social-links a {
    margin-right: 15px;
    color: #ffd700;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.social-links a:hover {
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
}

.mini-logo img {
    height: 32px;
}

/* HEADER */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 2px solid #ff0000;
}

.logo img {
    height: 60px;
    animation: logoPulse 3s infinite;
}

.nav a {
    margin-left: 18px;
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    transition: 0.3s;
    position: relative;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #ff0000;
    box-shadow: 0 0 8px #ff0000;
    transition: 0.3s;
}

.nav a:hover {
    color: #ffd700;
    text-shadow: 0 0 10px #ffd700;
}

.nav a:hover::after {
    width: 100%;
}

/* HERO */
.hero {
    position: relative;
    height: 60vh;
    background: url('../assets/images/MDR_road_backgrand.webp') center/cover no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(255,0,0,0.35), rgba(0,0,0,0.9));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: heroFadeIn 1.5s ease-out;
}

.hero-title {
    font-size: 40px;
    text-shadow: 0 0 20px #ff0000;
    animation: titleGlow 3s infinite;
}

.hero-subtitle {
    font-size: 18px;
    margin-top: 8px;
    color: #ffd700;
}

.hero-buttons {
    margin-top: 20px;
}

.btn {
    display: inline-block;
    margin: 10px 8px;
    padding: 10px 22px;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 0 10px rgba(255,255,255,0.2);
    transition: 0.3s;
}

.btn-red {
    background: #ff0000;
}

.btn-green {
    background: #00ff00;
}

.btn-gold {
    background: #ffd700;
    color: #000;
}

.btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 0 15px #00ff00;
}

/* FEATURED */
.featured {
    text-align: center;
    padding: 40px 16px;
}

.section-title {
    font-size: 24px;
    text-shadow: 0 0 12px #ff0000;
    animation: sectionGlow 3s infinite;
}

.cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.card {
    position: relative;
    background: rgba(20, 20, 20, 0.95);
    padding: 16px;
    border-radius: 12px;
    width: 280px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
}

.card img {
    width: 100%;
    border-radius: 8px;
}

.card h3 {
    margin-top: 10px;
    font-size: 18px;
    color: #ffd700;
}

.card p {
    font-size: 14px;
    margin-top: 6px;
    color: #ccc;
}

.card-glow {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    border: 1px solid rgba(255,0,0,0.4);
    box-shadow: 0 0 18px rgba(255,0,0,0.6);
    opacity: 0;
    transition: 0.3s;
}

.card-anim {
    transition: 0.3s;
}

.card-anim:hover {
    transform: translateY(-6px) scale(1.03);
}

.card-anim:hover .card-glow {
    opacity: 1;
}

/* BRAND STRIP */
.brand-strip {
    margin-top: 20px;
    padding: 12px 16px;
    text-align: center;
    background: linear-gradient(90deg, #ff0000, #ffd700, #00ff00);
    color: #000;
    font-size: 14px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    animation: stripGlow 4s infinite;
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 16px;
    background: #111;
    border-top: 2px solid #ff0000;
    font-size: 14px;
}

/* ANIMATIONS */
@keyframes logoPulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 0 #ff0000); }
    50% { transform: scale(1.03); filter: drop-shadow(0 0 12px #ff0000); }
    100% { transform: scale(1); filter: drop-shadow(0 0 0 #ff0000); }
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: scale(1.02); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes titleGlow {
    0% { text-shadow: 0 0 10px #ff0000; }
    50% { text-shadow: 0 0 25px #ffd700; }
    100% { text-shadow: 0 0 10px #ff0000; }
}

@keyframes sectionGlow {
    0% { text-shadow: 0 0 8px #ff0000; }
    50% { text-shadow: 0 0 16px #00ff00; }
    100% { text-shadow: 0 0 8px #ff0000; }
}

@keyframes stripGlow {
    0% { box-shadow: 0 0 8px #ff0000; }
    50% { box-shadow: 0 0 16px #00ff00; }
    100% { box-shadow: 0 0 8px #ff0000; }
}

/* ENGINE PAGE SPECIFIC */

.hero-engine {
    background: url('../assets/images/MDR_Engine.jpg') center/cover no-repeat;
}

/* Sections */
.engine-section {
    padding: 40px 16px;
    max-width: 1100px;
    margin: 0 auto;
}

.engine-text {
    font-size: 15px;
    line-height: 1.6;
    color: #ddd;
    text-align: left;
}

/* Highlights */
.engine-highlight {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 24px;
}

.engine-highlight-item {
    flex: 1 1 260px;
    background: rgba(20,20,20,0.95);
    border-radius: 10px;
    padding: 16px;
    border: 1px solid rgba(255,215,0,0.4);
    box-shadow: 0 0 12px rgba(255,215,0,0.4);
}

/* Feature grid */
.engine-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 24px;
}

.engine-card {
    flex: 1 1 260px;
    background: rgba(20,20,20,0.95);
    border-radius: 10px;
    padding: 16px;
    border: 1px solid rgba(0,255,0,0.3);
    box-shadow: 0 0 12px rgba(0,255,0,0.3);
}

/* Media */
.engine-media {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 24px;
    align-items: flex-start;
}

.engine-image img {
    width: 100%;
    max-width: 520px;
    border-radius: 10px;
    box-shadow: 0 0 18px #ff0000;
}

.engine-video video {
    width: 100%;
    max-width: 520px;
    border-radius: 10px;
    box-shadow: 0 0 18px #00ff00;
}

/* Pricing */
.engine-pricing-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 24px;
}

.price-card {
    flex: 1 1 260px;
    background: rgba(20,20,20,0.95);
    border-radius: 10px;
    padding: 16px;
    border: 1px solid rgba(255,0,0,0.4);
    box-shadow: 0 0 12px rgba(255,0,0,0.4);
}

.price-compare {
    border-color: rgba(255,255,0,0.5);
    box-shadow: 0 0 12px rgba(255,255,0,0.5);
}

.price-tag {
    font-size: 22px;
    color: #ffd700;
    margin: 8px 0;
}

/* Chart */
.engine-chart {
    margin-top: 30px;
    background: rgba(15,15,15,0.95);
    border-radius: 10px;
    padding: 16px;
    border: 1px solid rgba(255,0,0,0.4);
}

.engine-chart h3 {
    margin-bottom: 12px;
    color: #ffd700;
}

.chart-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0;
}

.chart-bar {
    flex: 1;
    height: 12px;
    border-radius: 6px;
    background: #333;
    position: relative;
    overflow: hidden;
}

.bar-green::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 85%;
    background: linear-gradient(90deg, #00ff00, #ffd700);
    box-shadow: 0 0 10px #00ff00;
}

.bar-red::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 60%;
    background: linear-gradient(90deg, #ff0000, #ffaa00);
    box-shadow: 0 0 10px #ff0000;
}

/* CTA */
.engine-cta {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ROAD PAGE SPECIFIC */

.hero-road {
    background: url('../assets/images/MDR_Road.jpg') center/cover no-repeat;
}

/* ABOUT PAGE SPECIFIC */

.hero-about {
    background: url('../assets/images/MDR_road_backgrand.webp') center/cover no-repeat;
}
/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}
.lang-switcher a {
    color: #aaa;
    text-decoration: none;
    font-size: 12px;
    padding: 2px 6px;
    border: 1px solid #333;
    border-radius: 4px;
    transition: 0.2s;
}
.lang-switcher a:hover,
.lang-switcher a.active {
    color: #ffd700;
    border-color: #ffd700;
    text-shadow: 0 0 6px #ffd700;
}

.language-selector {
    width: 100%;
    background: rgba(10,10,10,0.85);
    padding: 8px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    border-bottom: 2px solid #00ff00;
    justify-content: center;
}

.language-selector span {
    color: #ffd700;
    font-size: 14px;
    margin-right: 10px;
}

.language-selector a {
    color: #fff;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(20,20,20,0.9);
    border: 1px solid rgba(255,255,255,0.2);
    transition: 0.3s;
    font-size: 14px;
}

.language-selector a:hover {
    background: #00ff00;
    color: #000;
    box-shadow: 0 0 12px #00ff00;
    transform: translateY(-2px);
}




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

.card {
    background: #111;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    color: #fff;
    box-shadow: 0 0 15px #00e1ff55;
    transition: 0.3s;
}

.card img {
    width: 100%;
    border-radius: 10px;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px #00e1ff;
}

.lang-warning {
    background: linear-gradient(90deg, #ff3b3b, #ff9900);
    color: #fff;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: bold;
    margin: 10px 0;
    text-align: center;
    box-shadow: 0 0 10px rgba(255, 80, 80, 0.6);
    animation: warnPulse 1.8s infinite;
}

@keyframes warnPulse {
    0% { box-shadow: 0 0 10px rgba(255, 80, 80, 0.6); }
    50% { box-shadow: 0 0 18px rgba(255, 120, 0, 0.9); }
    100% { box-shadow: 0 0 10px rgba(255, 80, 80, 0.6); }
}