/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
    background-color: #f4f4f4;
}

/* ตั้งค่า Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

/* เมนู Dropdown */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #444;
    min-width: 200px;
    padding: 10px 0;
    border-radius: 5px;
    list-style: none;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    text-align: left;
}

/* เมนูที่อยู่ใน Dropdown */
.dropdown-menu li {
    padding: 10px 20px;
    border-bottom: 1px solid #666;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

/* ปรับสไตล์ของลิงก์ */
.dropdown-menu a {
    color: white;
    text-decoration: none;
    display: block;
}

.dropdown-menu a:hover {
    background-color: #555;
}

/* แสดงเมนูเมื่อมี class show */
.dropdown.show .dropdown-menu {
    display: block;
}

/* สำหรับมือถือ */
@media (max-width: 800px) {
    .dropdown-menu {
        position: relative;
        width: 100%;
        left: 0;
        transform: none;
        box-shadow: none;
    }
}

/* Navbar Container */
.navbar-container {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.8); 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    transition: background-color 0.3s ease-in-out;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 15px 20px;
    color: white;
    position: relative;
    z-index: 1002;
}

/* โลโก้ */
.navbar .logo a {
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

/* เมนูปกติ */
.nav-links {
    list-style: none;
    display: flex;
    transition: transform 0.3s ease-in-out;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #00bcd4;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1100;
    position: absolute;
    right: 10px;
    top: 15px;
}

.hamburger .bar {
    background-color: white;
    height: 3px;
    width: 25px;
    margin: 4px 0;
    transition: all 0.3s ease;
}

/* footer */
footer {
    color: #fff;
    background-color: #333;
    padding: 20px;
    text-align: center;
    margin-top: 50px;
}

/* Content Section */
section {
    padding: 80px 40px;
    margin-top: 70px;
    background: #fff;
    min-height: 100vh;
    max-width: 1200px; 
    margin: 0 auto; 
}

h2 {
    margin-bottom: 20px; 
}

h3 {
    margin-bottom: 20px; 
}

p {
    margin-top: 10px; 
    margin-bottom: 10px;
}

#home {
    background: linear-gradient(135deg, #00bcd4, #009688);
}

#about {
    background: #e4e4e4;
}

#services {
    background: #d4d4d4;
}

#contact {
    background: #c4c4c4;
}

/* สำหรับมือถือ */
@media screen and (max-width: 800px) {
    .hamburger {
        display: flex;
    }

    .navbar {
        flex-direction: column;
        text-align: center;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: rgba(34, 34, 34, 0.95);
        position: absolute;
        top: 60px;
        left: 0;
        z-index: 1001;
        padding: 10px 0;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links li {
        padding: 15px 0;
        width: 100%;
    }

    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .navbar-container {
        flex-direction: column;
        text-align: center;
    }
}
