/* --- Variables & Reset --- */
:root {
    --primary-blue: #0A192F;
    --secondary-blue: #112240;
    --gold: #D4AF37;
    --gold-hover: #b5952f;
    --text-light: #E6F1FF;
    --text-dark: #333333;
    --bg-light: #15154681;
    --gradient-overlay: linear-gradient(rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 0.4));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Navigation --- */
nav {
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 600;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--gold);
}

.lang-switch button {
    background: none;
    border: none;
    cursor: pointer;
    font-weight: bold;
    color: var(--text-dark);
    padding: 5px;
}

.lang-switch button.active {
    color: var(--gold);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-blue);
}

/* --- Buttons --- */
.btn-primary {
    display: inline-block;
    background: linear-gradient(45deg, #d4af37, #f3e5ab);
    color: var(--primary-blue);
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: 0.3s transform, 0.3s box-shadow;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    background: var(--gradient-overlay), url('img/home.png') center/cover;
    display: flex;
    align-items: center;
    color: var(--text-light);
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    padding-top: 80px;
}
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

/* Background Layer */
.hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-bg img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

/* Active Slide */
.hero-bg img.active {
    opacity: 1;
}

/* Content อยู่ด้านบน */
.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding: 20px;
}

/* Mobile ปรับภาพให้ดูดี */
@media (max-width: 768px) {
    .hero {
        height: 80vh;
    }
}
.hero::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 18px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* --- About Section --- */
.about {
    padding: 100px 0;
    background: #fff;    
    background: var(--gradient-overlay), url('img/bgg01.png') center/cover;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    color: var(--primary-blue);
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #ffffff;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.5s;
}

.about-image img:hover {
    transform: scale(1.02);
}

/* --- Services Section --- */
.services {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e0e5ec 100%);
    position: relative;
}

.section-title {
    text-align: center;
    color: var(--primary-blue);
    font-size: 2.2rem;
    margin-bottom: 50px;
}

.services-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.service-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
    border-left: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    border-left-color: var(--gold);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.service-icon {
    font-size: 2rem;
    color: var(--gold);
    margin-top: 5px;
}

.service-card h3 {
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.diagram-img {
    width: 100%;
    max-width: 400px;
    display: block;
    margin: 0 auto;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* --- Coming Soon / Contact --- */
.coming-soon {
    padding: 100px 0;
    background: var(--primary-blue);
    color: var(--text-light);
    clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%);
}

.cs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-top: 50px;
}

.cs-text h2 {
    color: var(--gold);
    font-size: 2rem;
    margin-bottom: 10px;
}

.cs-text h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cs-text p {
    margin-bottom: 30px;
    opacity: 0.8;
}

.notify-form {
    display: flex;
    gap: 10px;
}

.notify-form input {
    padding: 12px 15px;
    flex: 1;
    border: none;
    border-radius: 5px;
    outline: none;
}

.phone-img {
    width: 100%;
    max-width: 300px;
    display: block;
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    transform: perspective(800px) rotateY(-15deg);
    transition: 0.5s;
}

.phone-img:hover {
    transform: perspective(800px) rotateY(0deg);
}

/* --- Footer --- */
footer {
    background: var(--secondary-blue);
    color: var(--text-light);
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-right p {
    display: inline-block;
    margin-right: 20px;
    font-size: 0.9rem;
}

.footer-right i {
    color: var(--gold);
}

.footer-social a {
    color: var(--text-light);
    font-size: 1.5rem;
    transition: 0.3s;
}

.footer-social a:hover {
    color: var(--gold);
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero h1 { font-size: 2.5rem; }
    .about-grid, .services-content, .cs-grid {
        grid-template-columns: 1fr;
    }
    .coming-soon { clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%); }
    .phone-img { transform: none; margin-top: 40px;}
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 20px;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }
    .nav-links.active { display: flex; }
    .menu-toggle { display: block; }
    
    .hero h1 { font-size: 2rem; }
    .notify-form { flex-direction: column; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-right p { display: block; margin: 10px 0; }
}
