@import url("clash-display.css");

:root {
    --c-dark: #212529;
    --c-brand: #4e57d4;
    --c-brand-light: #6970dd;
    --c-brand-rgb: 78, 87, 212;
    --c-body: #727272;
    --font-base: "ClashDisplay", sans-serif;
    --box-shadow: 0px 15px 25px rgba(0, 0, 0, 0.08);
    --transition: all 0.5s ease;
}

body {
    font-family: var(--font-base);
    line-height: 1.7;
    color: var(--c-body);
    
}
.top-bar {
    background-color: #FFD700;
    color: #000000;
    padding: 5px 20px;
    font-size: 14px;
    flex-wrap: wrap; /* ทำให้เนื้อหาห่อบรรทัด */
  }
  .top-bar a {
    color: #000000;
    text-decoration: none;
    margin-right: 15px;
  }
  .top-bar a:hover {
    text-decoration: underline;
    color: white;
  }

.left-section, .right-section {
    display: flex;
    align-items: center;
}

.left-section span, .right-section span {
    margin-right: 15px;
}

.icon {
    margin-right: 5px;
}

.language-select {
    margin-left: 15px;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 600;
}

a {
    text-decoration: none;
    color: var(--c-brand);
    transition: var(--transition);
}

a:hover {
    color: var(--c-brand-light);
}

img 
{
    max-width: 100%;
    height: auto;
}
.section-padding {
    padding-top: 140px;
    padding-bottom: 140px;
}

.navbar {
    box-shadow: var(--box-shadow);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--c-dark);
}

.navbar-nav .nav-link.active {
    color: var(--c-brand);
}
.carousel-item img {
    width: 100%;
height: auto;
max-height: 600px; /* กำหนดความสูงสูงสุดตามความต้องการ */
object-fit: contain; /* แสดงภาพทั้งหมด โดยไม่ตัดส่วนใดส่วนหนึ่งออก */
}

.carousel-caption {
    position: absolute;
    bottom: 20%;
    left: 10%;
    color: white;
    text-align: left;
}

.carousel-indicators button {
    background-color: white;
}
.card {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.profile-pic {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
}
.social-icons a {
    margin: 0 10px;
    font-size: 24px;
    color: #ffffff;
    transition: transform 0.3s ease;
}
.social-icons a:hover {
    transform: scale(1.2);
    color: #ffc107;
}

.training-content {
    max-width: 800px;
    margin: 50px auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    animation: slideIn 1.5s ease-out;
  }

  h1, h2 {
    color: #ff0000;
    transition: color 0.3s ease;
  }

  h1:hover, h2:hover {
    color: #ff5a5a;
  }

  h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
  }

  h2 {
    font-size: 1.8rem;
    margin-top: 30px;
  }

  ul {
    padding-left: 20px;
  }

  ul li {
    margin-bottom: 10px;
  }

  

  @keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }

  @keyframes slideIn {
    from {
      opacity: 0;
      transform: translateY(50px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

.row {
    align-items: center;
}
.intro-text {
    text-align: left;
}
.portfolio-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }
  .portfolio-card img {
    width: 100%;
    height: auto;
  }
/* ปุ่มสำหรับ Learn More */
.btn-primary {
    background-color: #FFC107; /* สีพื้นหลัง */
    color: #212529; /* สีข้อความ */
    border: none; /* ลบขอบปุ่ม */
    border-radius: 8px; /* ขอบมน */
    padding: 10px 20px; /* ระยะห่างภายใน */
    transition: all 0.3s ease; /* เอฟเฟกต์การเปลี่ยนแปลง */
}

.btn-primary:hover {
    background-color: #e0a800; /* สีพื้นหลังเมื่อเมาส์วาง */
    color: #ffffff; /* สีข้อความเมื่อเมาส์วาง */
    transform: translateY(-2px); /* ยกปุ่มขึ้นเล็กน้อย */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* เพิ่มเงา */
}
.footer {
            background-color: #FFD700;
            padding: 20px 0;
            margin-top: 40px;
            color: rgb(0, 0, 0);
        }

        .footer a {
            color: #000000;
        }

        .footer a:hover {
            color: white;
        }

        .footer-content {
            display: flex;
            align-items: center; /* จัดให้ข้อความอยู่ตรงกลางแนวตั้ง */
            justify-content: space-between; /* จัดให้ข้อความและรูปแยกกัน */
            flex-wrap: wrap; /* ปรับให้รองรับมือถือ */
        }

        .footer-text {
            text-align: center;
            flex-grow: 1;
        }

        /* ปรับขนาดรูปภาพใน Footer */
        .footer-img {
            max-width: 100px; /* ปรับขนาดรูปภาพ */
            height: auto;
        }

        @media (max-width: 768px) {
            .footer-content {
                flex-direction: column; /* จัดเรียงแนวตั้งสำหรับจอเล็ก */
                text-align: center;
            }

            .footer-img {
                margin-top: 10px;
            }
        }

.important-text {
    color: #FFD700;
    font-weight: bold;
}