/* Reset basic styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", sans-serif;
    color: #222;
    background-color: #dee1e5b3;
    line-height: 1.6;
}

/* Header */
#headerInner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: fixed;
    /* ตรึงไว้ด้านบน */
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffffc1;
    /* สีพื้นหลัง กันโปร่งใส */
    z-index: 1000;
    /* เอาไว้ด้านหน้าทุกอย่าง */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    /* เพิ่มเงาให้ดูมีเลเยอร์ */
}

/* ปรับ logo link ให้อยู่ตรงกลางแนวเดียวกัน */
#logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    /* ลบขีดเส้นใต้ */
    size: 30px;
}

/* ลบขีดเส้นใต้จาก logo-text ด้วย (เผื่อมี style ทับซ้อน) */
#logo .logo-text {
    text-decoration: none;
    color: #3a3a56;
    font-size: 25px;
    margin-left: 10px;
    font-weight: bolder
}

/* เพิ่มความเนียนเวลา hover ที่ logo ไม่ให้ขีดเส้นใต้ */
#logo:hover,
#logo:hover .logo-text {
    text-decoration: none;
    color: #3a3a56;
}


#headerInner nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

#headerInner nav a {
    font-size: 20px;
    font-weight: bold;
    color: #3a3a56;
    text-decoration: none;
    transition: all 0.3s ease;
}

#headerInner nav a:hover {
    color: #fbd065;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
  }
  
  .background-video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.6);
  }
  
  .overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
  }
  
  .hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    color: #fff;
    text-align: left;
  }
  
  .hero-left, .hero-right {
    flex: 1;
    min-width: 300px;
  }
  
  .hero-left h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #fff;
  }
  
  .hero-left p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #eee;
  }
  
  .cta-btn {
    display: inline-block;
    background-color: #facc15;
    color: #000;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  .cta-btn:hover {
    background-color: #fde047;
    transform: scale(1.05);
  }
  
  .project-logo {
    text-align: center;
  }
  
  .project-logo img {
    max-width: 160px;
    margin-bottom: 10px;
  }
  
  .tagline {
    font-size: 1rem;
    color: #facc15;
    font-weight: bold;
  }
  
  /* Responsive enhancements */
  @media (max-width: 768px) {
    .hero-content {
      flex-direction: column;
      text-align: center;
    }
  
    .hero-left, .hero-right {
      text-align: center;
    }
  }
  
  
  
  /* เปลี่ยนสีพื้นหลังของ about-project เป็นสีเทา */
  .about-project {
    padding: 60px 20px;
    background-color: #f3f4f6;
    text-align: center;
  }
  
  .about-wrapper {
    max-width: 800px;
    margin: 0 auto;
  }
  
  .about-project h3 {
    font-size: 2rem;
    color: #3a3a56;
    margin-bottom: 20px;
  }
  
  .about-project p {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.8;
  }
  
/* Categories Section */
.categories {
    padding: 60px 20px;
    background: #fff;
    text-align: center;
}

.categories h2 {
    font-size: 2rem;
    margin-bottom: 40px;
}

.category-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
    text-decoration: none;
    color: inherit;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.card p {
    margin-top: 0.5rem;
    color: #555;
    font-size: 0.95rem;
}

.coming-soon {
    color: #888;
    opacity: 0.6;
    pointer-events: none;
    cursor: default;
}

/* Responsive */
@media (min-width: 640px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.4rem;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .hero h1 {
        font-size: 4rem;
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}