/* <!-- public/assets/css/main.css --> */
body { 
    font-family: 'Kanit', sans-serif; 
}

.gradient-bg { 
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%); 
}

.service-card:hover { 
    transform: translateY(-10px); 
    transition: all 0.3s ease; 
}

.hero-text { 
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8); 
}

.fade-in {
    animation: fadeIn 0.6s ease-in;
}

/* Hero Section Background Styles */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/bg/bg1.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.08; /* ความจางมาก */
    filter: brightness(0.4) contrast(1.2);
    z-index: 1;
}

/* Alternative: ใช้ pseudo-element */
.hero-with-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/bg/bg1.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.08;
    filter: brightness(0.3);
    z-index: 1;
}

/* ทำให้ content อยู่เหนือ background */
.hero-content {
    position: relative;
    z-index: 10;
}

/* สำหรับ responsive - ปรับภาพให้เหมาะสมกับหน้าจอเล็ก */
@media (max-width: 768px) {
    .hero-bg {
        opacity: 0.05;
        background-position: center top;
    }
}

/* เพิ่มเงาให้ข้อความอ่านง่ายขึ้น */
.hero-text-shadow {
    text-shadow: 
        2px 2px 4px rgba(0,0,0,0.8),
        0 0 10px rgba(0,0,0,0.5),
        0 0 20px rgba(0,0,0,0.3);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-text {
        font-size: 2.5rem;
    }
}
/* ===== Redesign 2026 (ตามแบบ image1 ในบรีฟ) ===== */
.nav-link {
    position: relative;
    padding: 0.5rem 0.9rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #fff;
    transition: color 0.2s;
}
.nav-link:hover,
.nav-link.is-active { color: #ef4444; }
.nav-link.is-active::after {
    content: '';
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0;
    height: 2px;
    background: #ef4444;
}

/* หัวข้อ section แบบมีแถบแดงด้านหน้า */
.section-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.35rem;
    font-weight: 600;
    color: #fff;
}
.section-title::before {
    content: '';
    width: 4px;
    height: 1.4em;
    background: #dc2626;
    border-radius: 2px;
}

/* การ์ดกรอบแดงจาง พื้นดำ */
.panel {
    background: linear-gradient(180deg, rgba(24, 24, 27, 0.92), rgba(9, 9, 11, 0.95));
    border: 1px solid rgba(220, 38, 38, 0.28);
    border-radius: 0.9rem;
}

.service-tile img { transition: transform 0.4s ease; }
.service-tile:hover img { transform: scale(1.06); }

.hero-glow {
    background:
        radial-gradient(ellipse at 75% 40%, rgba(220, 38, 38, 0.28), transparent 55%),
        linear-gradient(135deg, #000 0%, #120404 55%, #000 100%);
}

/* การ์ดแบบไม่มีกรอบ กลืนกับพื้นหลัง */
.card-flat {
    background: transparent;
    border: 0;
    border-radius: 0.9rem;
}

/* ไล่ขอบรูปให้จางกลืนกับพื้นหลัง (ใช้กับรูปใน .card-flat) */
.img-fade {
    -webkit-mask-image:
        linear-gradient(to right, transparent 0%, #000 3%, #000 97%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, #000 3%, #000 96%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(to right, transparent 0%, #000 3%, #000 97%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, #000 3%, #000 96%, transparent 100%);
    mask-composite: intersect;
}

/* จางขอบเบา ๆ สำหรับรูปอินโฟกราฟิกที่มีตัวหนังสือใกล้ขอบ */
.img-fade-soft {
    -webkit-mask-image:
        linear-gradient(to right, transparent 0%, #000 3%, #000 97%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, #000 3%, #000 97%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(to right, transparent 0%, #000 3%, #000 97%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, #000 3%, #000 97%, transparent 100%);
    mask-composite: intersect;
}

/* หน้าแรก: แถบรูป hero ไล่จางจากซ้าย */
.hero-strip {
    -webkit-mask-image:
        linear-gradient(to right, transparent 0%, #000 30%),
        linear-gradient(to bottom, transparent 0%, #000 8%);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(to right, transparent 0%, #000 30%),
        linear-gradient(to bottom, transparent 0%, #000 8%);
    mask-composite: intersect;
}

/* รูปหน้าร้าน ไล่จางจากด้านบน */
.storefront-fade {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 35%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 35%);
}

/* ป้าย "ติดตามเรา" แบบแท็บแดงเฉียง */
.follow-tab {
    background: linear-gradient(90deg, #b91c1c, #dc2626);
    clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
    padding-right: 2.5rem;
}
