:root {
    --bg-main: #09090b; 
    --bg-card: #18181b; 
    --color-red: #E11D48; 
    --color-blue: #00C3FF; 
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --gradient-rb: linear-gradient(135deg, var(--color-red), var(--color-blue));
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; } /* ปรับขนาด Base Font ให้ใหญ่ขึ้นเล็กน้อย */

body {
    font-family: 'Prompt', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-light);
    line-height: 1.7; /* ปรับการเว้นบรรทัดให้อ่านง่าย */
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }

/* Utilities */
.text-gradient {
    background: var(--gradient-rb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}
.section-title { font-size: 2.8rem; font-weight: 800; margin-bottom: 20px; line-height: 1.3;}
.section-subtitle { color: var(--text-muted); margin-bottom: 40px; font-size: 1.2rem; }

/* Buttons */
.btn {
    display: inline-block; padding: 14px 32px; border-radius: 30px;
    font-weight: 600; cursor: pointer; transition: var(--transition); text-align: center; font-size: 1.1rem;
}
.btn-primary {
    background: var(--gradient-rb); color: #fff; border: none;
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.4);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0, 195, 255, 0.5); }
.btn-outline {
    background: transparent; color: var(--text-light); border: 2px solid var(--text-muted);
}
.btn-outline:hover { border-color: var(--color-blue); color: var(--color-blue); box-shadow: 0 0 15px rgba(0, 195, 255, 0.2); }
.btn-login { background: var(--color-blue); color: #000; padding: 10px 24px; font-size: 1rem;}
.btn-login:hover { background: #fff; box-shadow: 0 0 15px var(--color-blue); }

/* Language Switcher */
.lang-switch {
    display: flex; align-items: center; gap: 8px;
    font-size: 1rem; font-weight: 600; color: var(--text-muted); margin-right: 15px;
}
.lang-switch a { transition: var(--transition); padding: 5px; }
.lang-switch a:hover { color: var(--color-blue); }
.lang-switch a.active { color: var(--text-light); border-bottom: 2px solid var(--color-red); }
.lang-switch span { color: #334155; }

/* Navbar */
.navbar {
    position: fixed; top: 0; width: 100%; background: rgba(9, 9, 11, 0.95);
    backdrop-filter: blur(10px); z-index: 1000; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo-text { font-size: 26px; font-weight: 800; letter-spacing: 1px; }
.nav-links { display: flex; list-style: none; gap: 30px; }
.nav-links a { font-weight: 500; font-size: 1.05rem; transition: var(--transition); color: var(--text-light); }
.nav-links a:hover { color: var(--color-blue); }
.highlight-link { color: var(--color-red) !important; font-weight: 600 !important; }
.nav-actions { display: flex; align-items: center; gap: 15px; }
.hamburger { display: none; font-size: 26px; cursor: pointer; color: var(--color-blue); }

/* Hero */
.hero {
    position: relative; height: 100vh; min-height: 700px; display: flex; align-items: center;
    justify-content: center; text-align: center; padding-top: 80px; overflow: hidden;
}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(225, 29, 72, 0.15) 0%, rgba(9,9,11,1) 70%); z-index: -1;
}
.hero h1 { font-size: 4.5rem; line-height: 1.3; margin-bottom: 20px; }
.hero p { font-size: 1.3rem; color: var(--text-muted); max-width: 800px; margin: 0 auto 40px; font-weight: 400;}
.hero-buttons { display: flex; gap: 20px; justify-content: center; }

/* Slider Section & Dots */
.slider-section { padding: 90px 0; background: var(--bg-card); }
.slider-container {
    position: relative; width: 100%; height: 480px;
    border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.slides { display: flex; width: 100%; height: 100%; transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); }
.slide {
    min-width: 100%; height: 100%; background-size: cover; background-position: center;
    display: flex; align-items: flex-end; padding: 60px 50px;
}
.slide-content h3 { font-size: 2.5rem; color: #fff; margin-bottom: 15px; text-shadow: 2px 2px 4px rgba(0,0,0,0.8); line-height: 1.2;}
.slide-content p { color: #ddd; font-size: 1.25rem; text-shadow: 1px 1px 3px rgba(0,0,0,0.8); max-width: 800px;}
.prev-slide, .next-slide {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.5); color: #fff; border: none;
    width: 60px; height: 60px; border-radius: 50%; cursor: pointer;
    font-size: 24px; transition: var(--transition); z-index: 10;
}
.prev-slide { left: 20px; }
.next-slide { right: 20px; }
.prev-slide:hover, .next-slide:hover { background: var(--color-red); }
.slider-dots {
    position: absolute; bottom: 25px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 12px; z-index: 10;
}
.dot {
    width: 14px; height: 14px; background: rgba(255,255,255,0.4);
    border-radius: 50%; cursor: pointer; transition: var(--transition);
}
.dot.active { background: var(--color-blue); transform: scale(1.3); box-shadow: 0 0 10px var(--color-blue); }

/* Interactive Banners */
.interactive-banners {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
    margin-top: -60px; position: relative; z-index: 10;
}
.banner-card {
    position: relative; height: 280px; border-radius: 15px; overflow: hidden;
    display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
    border: 1px solid rgba(255,255,255,0.1); transition: var(--transition);
}
.banner-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center; transition: transform 0.6s; z-index: 1;
}
.banner-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(9,9,11,1) 10%, rgba(9,9,11,0.3)); z-index: 2;
}
.banner-text { position: relative; z-index: 3; padding: 20px; }
.banner-text i { font-size: 45px; color: var(--color-blue); margin-bottom: 15px; }
.banner-text h3 { font-size: 1.4rem; margin-bottom: 10px; font-weight: 600;}
.banner-text p { color: var(--text-muted); font-size: 1rem; margin-bottom: 15px; line-height: 1.4;}
.explore-btn { color: var(--color-red); font-size: 1rem; font-weight: 600; opacity: 0; transition: var(--transition); transform: translateY(10px); display: inline-block;}

.banner-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0, 195, 255, 0.2); border-color: var(--color-blue);}
.banner-card:hover .banner-bg { transform: scale(1.1); }
.banner-card:hover .explore-btn { opacity: 1; transform: translateY(0); }

/* About Section */
.about-section { padding: 110px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-image { position: relative; }
.about-image img { width: 100%; border-radius: 15px; position: relative; z-index: 2; }
.glow-box {
    position: absolute; top: -15px; left: -15px; width: 100%; height: 100%;
    background: var(--gradient-rb); border-radius: 15px; z-index: 1; filter: blur(25px); opacity: 0.5;
}
.about-content p { margin-bottom: 20px; color: var(--text-muted); font-size: 1.15rem; }

/* Services */
.services-section { padding: 110px 0; background: var(--bg-card); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-card {
    background: var(--bg-main); padding: 50px 30px; border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.05); position: relative; overflow: hidden;
    transition: var(--transition); cursor: pointer; text-align: center;
}
.icon-wrapper {
    width: 80px; height: 80px; margin: 0 auto 25px; border-radius: 50%;
    background: rgba(225, 29, 72, 0.1); display: flex; align-items: center; justify-content: center;
    font-size: 35px; color: var(--color-red); transition: var(--transition);
}
.service-card h3 { margin-bottom: 15px; font-size: 1.4rem; }
.service-card p { color: var(--text-muted); font-size: 1.05rem; }
.card-glow {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 4px;
    background: var(--gradient-rb); transform: scaleX(0); transition: var(--transition);
}
.service-card:hover { transform: translateY(-10px); border-color: rgba(0, 195, 255, 0.3); }
.service-card:hover .icon-wrapper { background: var(--color-red); color: #fff; transform: rotate(10deg); }
.service-card:hover .card-glow { transform: scaleX(1); }

/* News & Partners */
.news-section { padding: 110px 0; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.news-card {
    background: var(--bg-card); border-radius: 15px; overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05); transition: var(--transition);
}
.news-card img { width: 100%; height: 220px; object-fit: cover; }
.news-info { padding: 30px; }
.news-date { display: block; color: var(--color-blue); font-size: 0.95rem; margin-bottom: 10px; font-weight: 600; }
.news-info h4 { font-size: 1.3rem; margin-bottom: 15px; line-height: 1.4; }
.news-info p { color: var(--text-muted); font-size: 1rem; }
.news-card:hover { transform: translateY(-8px); border-color: var(--color-red); box-shadow: 0 10px 25px rgba(225, 29, 72, 0.15); }

.partners-section { padding: 70px 0; background: var(--bg-card); border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); }
.partners-logo { display: flex; justify-content: center; flex-wrap: wrap; gap: 30px; margin-top: 40px; }
.partners-logo span {
    font-size: 1.6rem; font-weight: 800; color: #475569; padding: 15px 35px;
    border: 1px solid #334155; border-radius: 8px; transition: var(--transition); cursor: default;
}
.partners-logo span:hover { color: var(--text-light); border-color: var(--color-blue); text-shadow: 0 0 10px var(--color-blue); }

/* Footer */
footer { padding: 80px 0 20px; background: #000; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; margin-bottom: 40px; }
.footer-about p { color: var(--text-muted); margin: 20px 0; max-width: 350px; font-size: 1.05rem;}
.social-icons a {
    display: inline-flex; width: 45px; height: 45px; background: var(--bg-card);
    align-items: center; justify-content: center; border-radius: 50%;
    margin-right: 12px; transition: var(--transition); font-size: 1.2rem;
}
.social-icons a:hover { background: var(--color-red); color: #fff; transform: scale(1.1); }
.footer-links h4 { margin-bottom: 25px; color: #fff; font-size: 1.2rem;}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; font-size: 1.05rem;}
.footer-links a { color: var(--text-muted); transition: var(--transition); }
.footer-links a:hover { color: var(--color-blue); padding-left: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 25px; color: var(--text-muted); font-size: 1rem; }

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .interactive-banners { grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 40px;}
    .hero h1 { font-size: 3.8rem; }
}

@media (max-width: 992px) {
    .hero h1 { font-size: 3.2rem; }
    .services-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute; top: 80px; left: -100%; width: 100%; background: rgba(9, 9, 11, 0.98);
        flex-direction: column; text-align: center; padding: 30px 0; transition: var(--transition);
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }
    .nav-links.active { left: 0; }
    .hamburger { display: block; }
    
    .hero { min-height: 600px; padding-top: 100px; }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; padding: 0 10px;}
    .hero-buttons { flex-direction: column; width: 100%; padding: 0 20px;}
    
    .interactive-banners, .services-grid, .news-grid, .footer-grid { grid-template-columns: 1fr; }
    .slider-container { height: 400px; }
    .slide { padding: 40px 20px; }
    .slide-content h3 { font-size: 1.8rem; }
    .slide-content p { font-size: 1rem; }
    .section-title { font-size: 2.2rem; }
}