@font-face {
    font-family: prompt;
    src: url(converted-fonts/Prompt-SemiBold.woff);
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    font-family: prompt;
    overflow-x: hidden;

    background: 
    radial-gradient(circle at 20% 30%, rgba(0,255,200,0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0,200,150,0.1) 0%, transparent 50%),
    linear-gradient(135deg, #001f1f, #00332e, #004d40);

    background-blend-mode: screen;
    
}
#p1{
    min-height: 100vh;
    overflow-x: hidden;
    margin-top: 5%;
}

#Home{
    min-height: 100vh;
    background: 
     url(IMG/ดีไซน์ที่ยังไม่ได้ตั้งชื่อ\ \(12\).png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}


.container{
    margin: 0 auto;
}
.Logo {
    display: flex;
    margin-left: 100px;
}
.Logo h1{
    align-items: center;
    display: flex;
    margin-left: 50px;
    font-size: 30px;
    color: #000000;
}
.content{
    width: 100%;
    position: absolute;
    top: 35%;
    text-align: center;
    transform: translate(-50% -50%);
}
.content h1{
    color: #fff;
    font-size: 3rem;
}
.content p{
    display: inline-block;
    font-size: 1.5rem;
    background: linear-gradient(to right, rgb(199, 255, 201),rgb(193, 255, 186));
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.content span{
    font-size: 1rem;
    color: #c6c6c6;
}
@media screen and (max-width: 1200px){
    .content h1{
        font-size: 20px;
    }
    .content span{
        font-size: 16px;
    }
    .content p{
        font-size: 20px;
    }
}
header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 2%;
    background: linear-gradient(to right,#d2f3c2, #ffffff);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.Heromenu{
    display: flex;
    flex-direction: column;
    margin-top: 1rem;
}
.Heromenu p{
    margin-left: 1rem;
    color: rgba(142, 142, 142, 0.9);
}
.Heromenu h2{
    font-size: 20px;
}
@media screen and (max-width: 1200px){
    .Heromenu h2{
    font-size: 20px;
    align-items: center;
    line-height: 1.5rem;
    }
    .Heromenu p{
    font-size: 10px;
    align-items: center;
    }
    
}
.logo{
    display: flex;
}
.logo h2{
    display: flex;
    align-items: center;
    margin-left: 1rem;
}
.logo img {
    margin-left: 1rem;
    display: flex;
    width: 80px;
    height: auto;
    object-fit: cover;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    z-index: 999;
}

.nav-links li a {
    text-decoration: none;
    color: #000000;
    font-weight: 500;
    transition: ease-out color 0.3s;
}

.nav-links li a:hover {
    color: #00ff37;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: #24e62a;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.toggle div:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.toggle div:nth-child(2) {
    opacity: 0;
}

.hamburger.toggle div:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}
@media screen and (max-width: 1200px) {
    .nav-links {
        position: absolute;
        top: 70px;
        right: -220px; 
        background: #a5fcc0;
        flex-direction: column;
        width: 200px;
        padding: 20px;
        border-radius: 8px 0 0 8px;
        box-shadow: -2px 2px 10px rgba(0,0,0,0.1);
        transition: right 0.4s ease;
        display: flex;
    }

    .nav-links.active {
        right: 0; 
    }

    .hamburger {
        display: flex;
    }
    .logo img {
        width: 120px;
    }
}
.pracha h2{
    display: flex;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 2%;
    color: white;
}
.card {
  width: 300px;
  border-radius: 12px;
  overflow: hidden;
  margin: 20px;
  cursor: pointer;
}

.card-inner {
  background-color: #f0f0f0ff;
  border-radius: 12px;
  box-shadow: 1px 5px 10px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease
}

.card:hover .card-inner {
  transform: scale(1.05);
  box-shadow: 1px 5px 10px 8px rgba(0, 0, 0, 0.2);
}

.card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.caption{
  padding: 15px;
  display: flex;
  flex-direction: column;
}
.caption .btn{
    display: inline-block;
    text-decoration: none;
    padding-bottom: 3rem;
}

.caption a{
    flex: 1;
    color: #09b700;
    transition:  0.3s ease-in-out;
}
.btn:hover{
    color: rgb(63, 255, 104);
}
.cardcontainer{
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    flex: 1;
    margin-bottom: 10%;
}

.concard {
  display: flex;
}

.card {
  width: 300px;
  display: flex;
  flex-direction: column; /* บังคับ caption ดันการ์ดลง */
}

.card-inner {
  display: flex;
  flex-direction: column;
  flex: 1; /* ทำให้ยืดเต็มสูงสุด */
}

.caption {
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* ดันปุ่มไปล่าง */
  flex: 1; /* ให้ caption ยืด */
  padding-bottom: 3rem;
}


    footer{
      padding:16px;
      background:#edfbf3;
      text-align:center;
      font-size:14px;
      color:#6b7280;
    }
    .video{
        display: flex;
        flex: 1;
        justify-content: center;
    }
    video{
        margin-top: 5%;
        min-height: 50vh;
        border-radius: 8px;
        display: block;
        box-shadow: 3px -2px 8px 8px rgba(0, 0, 0, 0.23);
    }
    @media screen and (max-width: 1200px) {
        video{
            width: 100%;
            height: auto;
        }
        
    }

/* FAB container */
.fab-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
}

/* ปุ่มหลัก */
.fab {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: none;
  background: #2ecc71; /* เขียวหลัก */
  color: white;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Options container */
.fab-options {
  position: absolute;
  bottom: 80px; /* อยู่เหนือปุ่มหลัก */
  right: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px; /* ระยะห่างระหว่างปุ่ม */
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

/* Active state */
.fab-options.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ปุ่มย่อย */
.fab-option {
  width: 55px;
  height: 55px;
  border-radius: 50%; /* ทำให้กลมจริง */
  background: #f7f7f7; /* เขียวเข้ม */
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.25);
  transition: background 0.3s;
}

.fab-option:hover {
  background: #2edb76; /* เขียวเข้มขึ้นเมื่อ hover */
}
.fab-option img {
  width: 60%;   /* ขนาดรูป (ปรับได้ตามใจ) */
  height: 60%;
  object-fit: contain; /* ทำให้รูปไม่เบี้ยว */
}
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}
.fade-up:nth-child(1) { transition-delay: 0.1s; }
.fade-up:nth-child(1) { transition-delay: 0.3s; }
.fade-up:nth-child(1) { transition-delay: 0.5s; }



