/* กำหนดสีหลักและฟอนต์ */
:root {
    --primary-color: #00B4DB; 
    --primary-gradient: linear-gradient(135deg, #00B4DB 0%, #0083B0 100%); 
    --text-dark: #1d1d1f; 
    --text-light: #86868b;
    --bg-color: #fbfbfd; 
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Prompt', sans-serif; }
body { background-color: var(--bg-color); color: var(--text-dark); overflow-x: hidden; }

/* Navbar */
.navbar {
    display: flex; justify-content: space-between; align-items: center; padding: 1rem 5%;
    background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    position: fixed; width: 100%; top: 0; z-index: 1000; border-bottom: 1px solid rgba(0,0,0,0.05);
}
.logo { font-size: 1.5rem; font-weight: 700; color: var(--text-dark); letter-spacing: -0.5px; }
.nav-links { list-style: none; display: flex; gap: 2.5rem; }
.nav-links a { text-decoration: none; color: var(--text-dark); font-weight: 400; font-size: 0.95rem; transition: color 0.3s ease; }
.nav-links a:hover { color: var(--primary-color); }

/* Hero Section */
.hero {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding-top: 8rem; padding-bottom: 3rem; min-height: 60vh;
}
.hero-content { max-width: 800px; padding: 0 1rem; animation: fadeUp 1s ease-out; }
.hero h1 { font-size: 5rem; font-weight: 700; line-height: 1.05; letter-spacing: -2px; margin-bottom: 1.5rem; }
.hero p { font-size: 1.3rem; color: var(--text-light); margin-bottom: 3rem; max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.5; }

.btn-primary {
    display: inline-block; background: var(--primary-gradient); color: white; padding: 1.2rem 3rem; 
    border-radius: 40px; text-decoration: none; font-size: 1.1rem; font-weight: 600; 
    box-shadow: 0 10px 25px rgba(0, 180, 219, 0.3); transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(0, 180, 219, 0.4); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================
   ระบบสไลด์โชว์รถ (Carousel)
   ========================================= */
.carousel-section { width: 100%; padding-bottom: 5rem; display: flex; justify-content: center; }

.motorcycle-carousel-container {
    overflow: hidden; position: relative; width: 100%; max-width: 1200px; 
    margin: 0 auto; background-color: #fbfbfd; border-radius: 12px; padding: 20px 0 60px 0; 
}

.carousel-track {
    display: flex; gap: 20px; 
    /* ห้ามใส่ transition ตรงนี้เด็ดขาด ปล่อยให้ JavaScript จัดการ */
}

.carousel-slide {
    flex: 0 0 calc((100% - 40px) / 3); 
    text-align: center; padding: 20px; background-color: white; border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); box-sizing: border-box; 
}
.carousel-slide img {
    width: 100%; height: 280px; object-fit: cover; border-radius: 12px; margin-bottom: 15px;
}

.slide-details h3 { margin: 0 0 5px; color: #333; }
.slide-details p { color: #00B4DB; font-weight: bold; }

.carousel-btn {
    position: absolute; top: 40%; transform: translateY(-50%); background-color: rgba(255, 255, 255, 0.9); 
    border: none; width: 45px; height: 45px; border-radius: 50%; font-size: 1.2rem; color: #333; 
    cursor: pointer; z-index: 10; box-shadow: 0 4px 15px rgba(0,0,0,0.15); transition: all 0.3s ease;
    display: flex; align-items: center; justify-content: center;
}
.carousel-btn:hover { background-color: #ffffff; transform: translateY(-50%) scale(1.1); color: #00B4DB; }
.prev-btn { left: 15px; }
.next-btn { right: 15px; }

.carousel-dots {
    position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px;
}
.dot { width: 12px; height: 12px; background-color: #cbd5e0; border-radius: 50%; cursor: pointer; transition: all 0.3s ease; }
.dot:hover { background-color: #90cdf4; }
.dot.active { background-color: #00B4DB; transform: scale(1.4); box-shadow: 0 0 8px rgba(0, 180, 219, 0.5); }

@media (max-width: 900px) {
    .carousel-slide { flex: 0 0 calc((100% - 20px) / 2); }
    .hero h1 { font-size: 3.5rem; }
    .nav-links { display: none; }
}
@media (max-width: 600px) {
    .carousel-slide { flex: 0 0 100%; }
    .carousel-btn { display: none; }
}