/* Import Google Font: Itim */
@import url('https://fonts.googleapis.com/css2?family=Itim&display=swap');

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%; /* ให้แน่ใจว่าครอบคลุมเต็มความกว้าง */
    margin: 0;
    padding: 0;
    background-color: transparent; /* กำหนดพื้นหลังเป็นโปร่งใสอย่างชัดเจน */
    overflow-x: hidden; /* ป้องกัน scrollbar แนวนอนที่ไม่ต้องการ */
}

body {
    font-family: 'Itim', cursive;
    scroll-behavior: smooth;
    color: #111;
    /* background: transparent; */ /* ลบบรรทัดนี้ถ้ามี เพราะกำหนดใน html, body แล้ว */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    background-image: url('../images/2025-04-27_23.55.49.png'); /* ตรวจสอบ path รูปภาพ */
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Overlay สำหรับมืดลงพื้นหลัง */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6); /* Dim effect */
}

.hero-content {
    position: relative;
    color: white;
    z-index: 2;
}

.hero-content h1 {
    font-size: 6rem;
    background: linear-gradient(180deg, red, black); /* Gradient from red to black */
    -webkit-background-clip: text; /* Text clip to apply gradient */
    color: transparent;
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.8); /* Text shadow for depth */
    margin-bottom: 1rem;

    /* white outline for WebKit + general stroke */
    -webkit-text-stroke: 1px #fff;
    text-stroke: 1px #fff; /* some browsers may pick this up */
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.hero-content .btn {
    padding: 1rem 2rem;
    background-color: #ff0000;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 30px;
    transition: background-color 0.3s;
}

/* เปลี่ยนสีปุ่มเมื่อ hover */
.hero-content .btn:hover {
    background-color: #000000;
}

/* about Section */
.about {
    min-height: 100vh; /* เพิ่มความสูงขั้นต่ำให้เท่ากับความสูงหน้าจอ */
    padding: 4rem 2rem;
    text-align: center;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    width: 100%;
}

/* Card Container */
.card-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 300px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.card-content p {
    font-size: 1rem;
    color: #666;
}

/* เพิ่ม CSS สำหรับ Scroll Effect */
html {
    scroll-behavior: smooth; /* เพิ่มการเลื่อนลงอย่างราบรื่น */
}

/* Sticky Navigation or Back-to-top button (ถ้าต้องการ) */

