﻿:root {
    /* สีส้มสดใส ดึงมาจากความโดดเด่นของโลโก้ */
    --primary-color: #ff0000; 
    
    /* พื้นหลังสีเทาดำเข้มๆ ดูแพงและสบายตา (ไม่ดำสนิท) */
    --bg-color: #121417;     
    
    /* สีของกล่องเนื้อหา ให้สว่างกว่าพื้นหลังเล็กน้อยให้มีมิติ */
    --card-bg: #1A1D21;      
    
    /* สีตัวอักษรหลัก ขาวแบบไม่จ้าเกินไป */
    --text-main: #F3F4F6;    
    
    /* สีตัวอักษรรอง เทาอ่อน */
    --text-muted: #9CA3AF;   
    
    /* พื้นหลังเมนูด้านบน แบบโปร่งแสงนิดๆ */
    --nav-bg: rgba(18, 20, 23, 0.95); 
    
    /* พื้นหลังช่องกรอกข้อมูล (ถ้ามี) */
    --input-bg: rgba(255, 255, 255, 0.05);
}

 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
     font-family: 'Kanit', sans-serif;
 }

 body {
     background-color: var(--bg-color);
     color: var(--text-main);
     overflow-x: hidden;
     display: flex;
     flex-direction: column;
     min-height: 100vh;
 }

 /* =========================================
           Navigation Bar
        ========================================= */
 header {
     background: var(--nav-bg);
     backdrop-filter: blur(10px);
     position: fixed;
     top: 0;
     width: 100%;
     z-index: 1000;
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding: 15px 50px;
     border-bottom: 1px solid rgba(255, 87, 34, 0.1);
 }

 header .logo {
    display: flex;
    align-items: center; /* 👈 เพิ่มบรรทัดนี้เพื่อบังคับให้เนื้อหาตรงกลาง */
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
    color: var(--text-main);
    text-decoration: none;
}

 header .logo span {
     color: var(--primary-color);
 }

 .nav-menu {
     display: flex;
     list-style: none;
     gap: 30px;
     align-items: center;
 }

 .nav-menu li {
     position: relative;
 }

 .nav-menu a {
     color: var(--text-main);
     text-decoration: none;
     font-size: 16px;
     font-weight: 500;
     transition: 0.3s;
     padding: 10px 0;
     display: inline-block;
 }

 .nav-menu a:hover {
     color: var(--primary-color);
 }

 .dropdown-content {
     display: none;
     position: absolute;
     top: 100%;
     left: 0;
     background: var(--card-bg);
     min-width: 200px;
     box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
     border-radius: 8px;
     overflow: hidden;
     border: 1px solid rgba(255, 87, 34, 0.2);
 }

 .dropdown-content li {
     width: 100%;
     list-style: none;
 }

 .dropdown-content a {
     padding: 12px 20px;
     display: block;
     border-bottom: 1px solid rgba(255, 255, 255, 0.02);
     font-size: 15px;
 }

 .dropdown-content a:hover {
     background: var(--primary-color);
     color: #fff;
     padding-left: 25px;
 }

 .dropdown:hover .dropdown-content {
     display: block;
     animation: fadeIn 0.3s ease;
 }

 @keyframes fadeIn {
     from {
         opacity: 0;
         transform: translateY(10px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 .menu-toggle {
     display: none;
 }

 .menu-icon {
     display: none;
     font-size: 28px;
     cursor: pointer;
     color: var(--text-main);
 }

@media (max-width: 768px) {
     header {
         padding: 15px 20px;
     }

     .menu-icon {
         display: block;
     }

     .nav-menu {
         display: none;
         flex-direction: column;
         position: absolute;
         top: 100%;
         left: 0;
         width: 100%;
         background: var(--nav-bg);
         padding: 20px 0;
         border-bottom: 1px solid rgba(255, 87, 34, 0.2);
     }

     .menu-toggle:checked~.nav-menu {
         display: flex;
     }

     .dropdown-content {
         position: static;
         box-shadow: none;
         border: none;
         background: rgba(255, 255, 255, 0.02);
         display: none;
         padding-left: 20px;
         width: 100%;
     }

     .dropdown:hover .dropdown-content {
         display: block;
     }

     .about-slider,
     .about-slides,
     .about-slide img {
         min-height: 360px;
     }

     .about-slider-btn {
         width: 40px;
         height: 40px;
     }
 }

 /* =========================================
           Hero & Content
        ========================================= */
 main {
     flex: 1;
 }

 .about-hero {
     text-align: center;
     padding: 100px 20px 40px;
 }

 .about-hero h1 {
     font-size: clamp(40px, 8vw, 72px);
     margin-bottom: 18px;
 }

 .about-hero h1 span {
     color: var(--primary-color);
 }

 .about-hero p {
     max-width: 760px;
     margin: 0 auto;
     color: var(--text-muted);
     line-height: 1.8;
     font-size: 1rem;
 }

 .about-section {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
     gap: 40px;
     align-items: center;
     max-width: 1200px;
     margin: 0 auto;
     padding: 40px 20px;
 }

 .about-text h2 {
     font-size: clamp(32px, 5vw, 44px);
     margin-bottom: 20px;
     color: var(--primary-color);
 }

 .about-text p {
     margin-bottom: 20px;
     color: var(--text-muted);
     line-height: 1.8;
 }

.about-image img {
     width: 100%;
     height: auto;
     border-radius: 20px;
     box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
 }

.about-slider {
     position: relative;
     width: 100%;
     min-height: 520px;
     border-radius: 24px;
     overflow: hidden;
     background: linear-gradient(145deg, #171a1f, #0f1114);
     border: 1px solid rgba(255, 255, 255, 0.08);
     box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
 }

.about-slides {
     position: relative;
     width: 100%;
     min-height: 520px;
 }

.about-slide {
     position: absolute;
     inset: 0;
     opacity: 0;
     visibility: hidden;
     display: flex;
     align-items: center;
     justify-content: center;
     padding: 18px;
     background: #0f1114;
     transition: opacity 0.45s ease, visibility 0.45s ease;
 }

.about-slide.is-active {
     opacity: 1;
     visibility: visible;
 }

.about-slide img {
     width: 100%;
     height: 100%;
     min-height: 484px;
     object-fit: contain;
     display: block;
     border-radius: 18px;
 }

.about-slider-btn {
     position: absolute;
     top: 50%;
     transform: translateY(-50%);
     width: 46px;
     height: 46px;
     border: none;
     border-radius: 50%;
     background: rgba(12, 14, 18, 0.72);
     color: #fff;
     display: flex;
     align-items: center;
     justify-content: center;
     cursor: pointer;
     z-index: 2;
     transition: background 0.25s ease;
 }

.about-slider-btn:hover {
     background: rgba(255, 0, 0, 0.92);
 }

.about-slider-btn.prev {
     left: 16px;
 }

.about-slider-btn.next {
     right: 16px;
 }

.about-slider-dots {
     position: absolute;
     left: 50%;
     bottom: 18px;
     transform: translateX(-50%);
     display: flex;
     gap: 10px;
     z-index: 2;
 }

.about-dot {
     width: 12px;
     height: 12px;
     border: none;
     border-radius: 999px;
     background: rgba(255, 255, 255, 0.35);
     cursor: pointer;
     transition: background 0.25s ease, transform 0.25s ease;
 }

.about-dot.is-active {
     background: var(--primary-color);
     transform: scale(1.1);
 }

.showcase-section {
     display: grid;
     grid-template-columns: minmax(320px, 1fr) minmax(360px, 1.05fr);
     gap: 56px;
     align-items: center;
     max-width: 1420px;
     margin: 72px auto 100px;
     padding: 0 20px;
 }

.showcase-copy h2 {
     margin: 0 0 20px;
     font-size: clamp(28px, 3.5vw, 46px);
     line-height: 1.1;
     color: #ffffff;
     letter-spacing: -0.03em;
     max-width: 620px;
 }

.showcase-copy p {
     margin: 0 0 26px;
     color: #9ba4b4;
     font-size: 1rem;
     line-height: 1.95;
     max-width: 640px;
 }

.showcase-copy strong {
     color: #d4d7de;
 }

.showcase-copy-image {
     margin: 0 0 28px;
     border-radius: 24px;
     overflow: hidden;
     border: 1px solid rgba(255, 255, 255, 0.08);
     background: rgba(255, 255, 255, 0.02);
     box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
 }

.showcase-copy-image img {
     width: 100%;
     display: block;
     max-height: 280px;
     object-fit: cover;
 }

.showcase-frame {
     position: relative;
     min-height: 680px;
     padding: 22px;
     border-radius: 30px;
     overflow: hidden;
     background: linear-gradient(160deg, #0f1114 0%, #090b0f 100%);
     border: 1px solid rgba(255, 255, 255, 0.08);
     box-shadow: 0 32px 70px rgba(0, 0, 0, 0.36);
 }

.showcase-frame img {
     width: 100%;
     height: 100%;
     min-height: 566px;
     object-fit: cover;
     display: block;
     border-radius: 22px;
     background: #0b0d11;
 }

@media (max-width: 980px) {
     .showcase-section {
         grid-template-columns: 1fr;
         gap: 30px;
         margin: 48px auto 70px;
     }

     .showcase-copy h2 {
         font-size: clamp(24px, 8vw, 34px);
     }

     .showcase-copy p {
         line-height: 1.8;
     }

     .showcase-copy-image img {
         max-height: 220px;
     }

     .showcase-frame {
         min-height: 500px;
         padding: 14px;
         border-radius: 24px;
     }

     .showcase-frame img {
         min-height: 400px;
     }
 }

 .values-header {
     max-width: 1200px;
     margin: 0 auto;
     padding: 0 20px;
     text-align: center;
     margin-top: 40px;
 }

 .values-header h2 {
     font-size: clamp(32px, 5vw, 44px);
     margin-bottom: 15px;
 }

 .values-grid {
     max-width: 1200px;
     margin: 0 auto 60px;
     padding: 0 20px;
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
     gap: 25px;
 }

 .value-card {
     background: var(--card-bg);
     border-radius: 20px;
     padding: 30px;
     border: 1px solid rgba(255,255,255,0.05);
     box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
     transition: transform 0.3s ease;
 }

 .value-card:hover {
     transform: translateY(-6px);
 }

 .value-icon {
     width: 60px;
     height: 60px;
     border-radius: 50%;
     background: rgba(255,255,255,0.05);
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 28px;
     margin-bottom: 18px;
 }

 .value-card h3 {
     font-size: 20px;
     margin-bottom: 15px;
     color: var(--text-main);
 }

 .value-card p {
     color: var(--text-muted);
     line-height: 1.8;
 }

 .hero {
     height: 60vh;
     margin-top: 60px;
     display: flex;
     flex-direction: column;
     justify-content: center;
     align-items: center;
     text-align: center;
     background: linear-gradient(to bottom, rgba(99, 68, 47, 0.45), rgba(12, 8, 5, 0.72)), url('../../images/band_design.jpg') center/cover;
     padding: 0 20px;
 }

 .hero h1 {
     font-size: clamp(40px, 8vw, 80px);
     margin-bottom: 15px;
     font-weight: 900;
 }

 .hero h1 span {
     color: var(--primary-color);
     text-shadow: 0 0 20px rgba(255, 87, 34, 0.4);
 }

 .hero p {
     font-size: clamp(16px, 4vw, 20px);
     color: var(--text-muted);
     max-width: 650px;
     line-height: 1.6;
 }

 .container {
     max-width: 1200px;
     margin: 0 auto;
     padding: 50px 20px;
 }

 .section-title {
     text-align: left;
     font-size: 35px;
     margin-bottom: 40px;
     font-weight: 800;
     border-left: 5px solid var(--primary-color);
     padding-left: 15px;
 }

.grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
     gap: 30px;
 }

.portfolio-section {
    position: relative;
    padding: 10px 20px 110px;
}

.portfolio-shell {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(280px, 0.88fr) minmax(360px, 1.12fr);
    gap: 34px;
    align-items: center;
}

.portfolio-copy,
.portfolio-gallery,
.portfolio-only-images {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

.portfolio-copy.is-visible,
.portfolio-gallery.is-visible,
.portfolio-only-images.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-header {
    max-width: 1200px;
    margin: 0 auto 26px;
    text-align: center;
}

.portfolio-header .portfolio-eyebrow {
    margin-bottom: 16px;
}

.portfolio-title {
    text-align: center;
    margin-bottom: 0;
    position: relative;
    display: inline-block;
    padding-left: 32px;
}

.portfolio-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 52px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 0, 0, 0.2), var(--primary-color), rgba(255, 0, 0, 0.2));
}

.portfolio-only-images {
    width: min(1200px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.portfolio-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.18);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    transform: translateY(24px);
    opacity: 0;
}

.portfolio-only-images.is-visible .portfolio-card {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-card:nth-child(1) { transition-delay: 0.05s; }
.portfolio-card:nth-child(2) { transition-delay: 0.10s; }
.portfolio-card:nth-child(3) { transition-delay: 0.15s; }
.portfolio-card:nth-child(4) { transition-delay: 0.20s; }
.portfolio-card:nth-child(5) { transition-delay: 0.25s; }
.portfolio-card:nth-child(6) { transition-delay: 0.30s; }
.portfolio-card:nth-child(7) { transition-delay: 0.35s; }
.portfolio-card:nth-child(8) { transition-delay: 0.40s; }

.portfolio-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 0, 0, 0.22);
    box-shadow: 0 32px 70px rgba(0, 0, 0, 0.26);
}

.portfolio-card img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    cursor: zoom-in;
}

.portfolio-card:hover img {
    transform: scale(1.08);
}

.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2200;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 24px;
    box-shadow: 0 38px 90px rgba(0, 0, 0, 0.48);
    transform: scale(0.96);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.lightbox-overlay.active .lightbox-image {
    transform: scale(1);
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.lightbox-close:hover {
    transform: scale(1.05);
    background: rgba(255, 0, 0, 0.9);
}

/* full width section spacing */
.portfolio-section {
    padding: 50px 18px 100px;
    background: linear-gradient(180deg, rgba(18,20,23,0) 0%, rgba(18,20,23,0.08) 50%, rgba(18,20,23,0.18) 100%);
}

.portfolio-fullwidth {
    width: 100%;
    max-width: none;
}

@media (max-width: 980px) {
    .portfolio-only-images {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 640px) {
    .portfolio-section {
        padding: 40px 14px 80px;
    }

    .portfolio-header {
        padding: 0 6px;
    }

    .portfolio-title {
        font-size: 2rem;
    }
}

.gallery-note {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.7;
    max-width: 680px;
}

.portfolio-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}

.portfolio-card {
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 45px rgba(0, 0, 0, 0.18);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    transform: translateY(24px);
    opacity: 0;
}

.portfolio-gallery.is-visible .portfolio-card {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-card:nth-child(1) { transition-delay: 0.05s; }
.portfolio-card:nth-child(2) { transition-delay: 0.10s; }
.portfolio-card:nth-child(3) { transition-delay: 0.15s; }
.portfolio-card:nth-child(4) { transition-delay: 0.20s; }
.portfolio-card:nth-child(5) { transition-delay: 0.25s; }
.portfolio-card:nth-child(6) { transition-delay: 0.30s; }
.portfolio-card:nth-child(7) { transition-delay: 0.35s; }
.portfolio-card:nth-child(8) { transition-delay: 0.40s; }

.portfolio-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 0, 0, 0.22);
    box-shadow: 0 32px 70px rgba(0, 0, 0, 0.26);
}

.portfolio-card-media {
    position: relative;
    min-height: 200px;
    overflow: hidden;
}

.portfolio-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.portfolio-card:hover .portfolio-card-media img {
    transform: scale(1.06);
}

.portfolio-card-copy {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.portfolio-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 0, 0, 0.12);
    border: 1px solid rgba(255, 0, 0, 0.16);
    color: var(--primary-color);
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    max-width: fit-content;
}

.portfolio-card-copy h3 {
    font-size: 1.15rem;
    margin: 0;
    color: #fff;
}

.portfolio-card-copy p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.75;
    font-size: 0.98rem;
}

.portfolio-thumbs,
.portfolio-controls {
    display: none;
}

.portfolio-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 0, 0, 0.08);
    color: #ff8e8e;
    font-size: 0.92rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portfolio-eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 14px rgba(255, 0, 0, 0.65);
}

.portfolio-title {
    margin-bottom: 22px;
}

.portfolio-copy p {
    color: var(--text-muted);
    line-height: 1.9;
    font-size: 1rem;
    max-width: 470px;
}

.portfolio-notes {
    display: grid;
    gap: 14px;
    margin-top: 30px;
}

.portfolio-note {
    padding: 18px 20px;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

.portfolio-note strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.02rem;
    color: #fff;
}

.portfolio-note span {
    color: var(--text-muted);
    line-height: 1.7;
}

.portfolio-stage {
    position: relative;
    padding: 20px;
    border-radius: 30px;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(255, 0, 0, 0.2), transparent 32%),
        linear-gradient(160deg, #1b2025 0%, #0d0f12 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

.portfolio-glow {
    position: absolute;
    inset: auto -80px -100px auto;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.35), rgba(255, 0, 0, 0));
    filter: blur(10px);
    pointer-events: none;
}

.portfolio-slides {
    position: relative;
    min-height: 560px;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.28);
}

.portfolio-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.7s ease, transform 0.85s ease;
    pointer-events: none;
}

.portfolio-slide.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

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

.portfolio-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(4, 5, 7, 0.88) 0%, rgba(4, 5, 7, 0.16) 52%, rgba(4, 5, 7, 0.05) 100%);
}

.portfolio-slide figcaption {
    position: absolute;
    left: 26px;
    right: 26px;
    bottom: 26px;
    z-index: 2;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(15, 17, 20, 0.62);
    backdrop-filter: blur(8px);
    color: #fff;
    line-height: 1.65;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.24);
}

.portfolio-controls {
    position: absolute;
    top: 28px;
    right: 28px;
    z-index: 3;
    display: flex;
    gap: 10px;
}

.portfolio-arrow {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(10, 11, 14, 0.55);
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.portfolio-arrow:hover {
    transform: translateY(-2px);
    background: rgba(255, 0, 0, 0.92);
    border-color: rgba(255, 0, 0, 0.92);
}

.portfolio-thumbs {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.portfolio-thumb {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 18px;
    padding: 10px;
    color: #fff;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-thumb img {
    width: 100%;
    height: 88px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    margin-bottom: 10px;
}

.portfolio-thumb span {
    display: block;
    font-size: 0.92rem;
    color: #d8dde7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.portfolio-thumb:hover,
.portfolio-thumb.is-active {
    transform: translateY(-4px);
    border-color: rgba(255, 0, 0, 0.45);
    background: rgba(255, 0, 0, 0.12);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.card-img-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 360px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 18px;
    background: rgba(255, 255, 255, 0.02);
 }
 .card {
     background: var(--card-bg);
     border-radius: 10px;
     padding: 30px;
     transition: 0.3s;
     position: relative;
     overflow: hidden;
 }

 .card::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     width: 4px;
     height: 100%;
     background: var(--primary-color);
     transform: scaleY(0);
     transition: 0.3s;
     transform-origin: bottom;
 }

 .card:hover {
     transform: translateX(10px);
     background: #24150d;
 }

 .card:hover::before {
     transform: scaleY(1);
 }

 .card h3 {
     position: relative;
     z-index: 1;
     margin-bottom: 10px;
     font-size: 24px;
     color: #fff;
 }

 .card p {
     position: relative;
     z-index: 1;
     color: var(--text-muted);
     line-height: 1.6;
 }

 /* =========================================
           Footer
        ========================================= */
 footer {
     background: var(--card-bg);
     padding: 50px 20px 20px;
     border-top: 1px solid rgba(255, 87, 34, 0.2);
     margin-top: auto;
 }

 .footer-container {
     max-width: 1200px;
     margin: 0 auto;
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
     gap: 30px;
 }

 .footer-col h4 {
     font-size: 20px;
     margin-bottom: 20px;
     color: var(--text-main);
     font-weight: bold;
     text-transform: uppercase;
 }

 .footer-col h4 span {
     color: var(--primary-color);
 }

 .footer-col p {
     color: var(--text-muted);
     line-height: 1.6;
     font-size: 15px;
     margin-bottom: 15px;
 }

 .footer-col ul {
     list-style: none;
 }

 .footer-col ul li {
     margin-bottom: 12px;
 }

 .footer-col ul a {
     color: var(--text-muted);
     text-decoration: none;
     transition: 0.3s;
     display: inline-block;
 }

 .footer-col ul a:hover {
     color: var(--primary-color);
     transform: translateX(5px);
 }

 .social-links a {
     display: inline-block;
     margin-right: 10px;
     color: var(--text-main);
     background: rgba(255, 255, 255, 0.05);
     width: 40px;
     height: 40px;
     text-align: center;
     line-height: 40px;
     border-radius: 5px;
     transition: 0.3s;
     text-decoration: none;
 }

 .social-links a:hover {
     background: var(--primary-color);
     color: #fff;
     transform: translateY(-3px);
     box-shadow: 0 5px 15px rgba(255, 87, 34, 0.3);
 }

 .footer-bottom {
     text-align: center;
     padding-top: 20px;
     margin-top: 40px;
     border-top: 1px solid rgba(255, 255, 255, 0.05);
     color: var(--text-muted);
     font-size: 14px;
 }

 .footer-dropdown {
     position: relative;
     display: inline-block;
     margin-top: 15px;
 }

 .footer-dropbtn {
     background-color: rgba(255, 0, 0, 0.1);
     color: var(--primary-color);
     border: 1px solid var(--primary-color);
     padding: 12px 20px;
     font-size: 15px;
     font-weight: bold;
     border-radius: 8px;
     cursor: pointer;
     display: flex;
     align-items: center;
     gap: 10px;
     transition: 0.3s ease;
     width: 100%;
     justify-content: space-between;
 }

 .footer-dropbtn:hover {
     background-color: var(--primary-color);
     color: #fff;
     transform: translateY(-2px);
 }

 .footer-drop-content {
     display: none;
     position: absolute;
     bottom: calc(100% + 10px);
     left: 0;
     background-color: var(--card-bg);
     min-width: 280px;
     box-shadow: 0px -8px 25px rgba(0, 0, 0, 0.7);
     border: 1px solid rgba(255, 0, 0, 0.3);
     border-radius: 10px;
     z-index: 10;
     overflow: hidden;
 }

 .footer-drop-content a {
     color: var(--text-main);
     padding: 14px 20px;
     text-decoration: none;
     display: block;
     font-size: 15px;
     border-bottom: 1px solid rgba(255, 255, 255, 0.05);
     transition: 0.3s ease;
 }

 .footer-drop-content a:last-child {
     border-bottom: none;
 }

 .footer-drop-content a:hover {
     background-color: rgba(255, 0, 0, 0.2);
     color: var(--primary-color);
     padding-left: 25px;
 }

 .footer-drop-content.show-menu {
     display: block;
     animation: fadeUpDrop 0.3s ease;
 }

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

 /* =========================================
           Left Icon (Back to Main Index)
        ========================================= */
 .header-left {
     display: flex;
     align-items: center;
     gap: 25px;
     /* ระยะห่างระหว่างไอคอนกับโลโก้ */
 }

 .back-to-main {
     color: var(--text-main);
     font-size: 18px;
     text-decoration: none;
     display: flex;
     align-items: center;
     justify-content: center;
     width: 40px;
     height: 40px;
     border-radius: 50%;
     background: rgba(255, 255, 255, 0.05);
     border: 1px solid rgba(255, 255, 255, 0.1);
     transition: 0.3s ease;
 }

 .back-to-main:hover {
     color: var(--primary-color);
     background: rgba(255, 255, 255, 0.1);
     border-color: var(--primary-color);
     transform: scale(1.05);
 }

 /* =========================================
           ปรับขนาด Logo ให้ใหญ่และชัดเจน
        ========================================= */
 header .logo img {
     height: 65px;
     /* เพิ่มขนาดความสูงให้ใหญ่ขึ้น (จากเดิม 40px) */
     max-width: 250px;
     /* จำกัดความกว้างไม่ให้ล้นไปทับเมนู */
     width: auto;
     object-fit: contain;
     transition: 0.3s ease;
 }

 header .logo img:hover {
     transform: scale(1.02);
     /* ลูกเล่นขยายตอนเมาส์ชี้เบาๆ */
 }

 /* Responsive มือถือ */
 @media (max-width: 768px) {
     header {
         padding: 10px 20px;
     }

     .menu-icon {
         display: block;
     }

     .nav-menu {
         display: none;
         flex-direction: column;
         position: absolute;
         top: 100%;
         left: 0;
         width: 100%;
         background: var(--nav-bg);
         padding: 20px 0;
         border-bottom: 1px solid rgba(255, 87, 34, 0.2);
     }

     .menu-toggle:checked~.nav-menu {
         display: flex;
     }

     .dropdown-content {
         position: static;
         box-shadow: none;
         border: none;
         background: rgba(255, 255, 255, 0.02);
         display: none;
         padding-left: 20px;
         width: 100%;
     }

     .dropdown:hover .dropdown-content {
         display: block;
     }

     /* ลดขนาดโลโก้ลงมาหน่อยในมือถือ เพื่อไม่ให้กินพื้นที่แถบด้านบน */
     header .logo img {
         height: 45px;
     }
 }
 .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.card:hover .card-img-wrapper img {
    transform: scale(1.08);
}

@media (max-width: 980px) {
    .portfolio-shell {
        grid-template-columns: 1fr;
    }

    .portfolio-copy p {
        max-width: none;
    }

    .portfolio-slides {
        min-height: 480px;
    }
}

@media (max-width: 768px) {
    .portfolio-section {
        padding: 0 20px 80px;
    }

    .portfolio-stage {
        padding: 14px;
        border-radius: 24px;
    }

    .portfolio-slides {
        min-height: 360px;
        border-radius: 18px;
    }

    .portfolio-slide figcaption {
        left: 14px;
        right: 14px;
        bottom: 14px;
        padding: 13px 14px;
        font-size: 0.94rem;
    }

    .portfolio-controls {
        top: 18px;
        right: 18px;
    }

    .portfolio-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }

    .portfolio-thumbs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .portfolio-thumb {
        padding: 8px;
        border-radius: 14px;
    }

    .portfolio-thumb img {
        height: 72px;
        margin-bottom: 8px;
    }

    .portfolio-thumb span {
        font-size: 0.86rem;
    }
}

/* Skeleton Loading */
body.is-loading {
    overflow: hidden;
}

body.is-loading > *:not(.skeleton-loader) {
    visibility: hidden;
}

body.page-ready > *:not(.skeleton-loader) {
    visibility: visible;
}

.skeleton-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    background: #0f1417;
    transition: opacity 0.35s ease;
}

body.is-loading .skeleton-loader {
    opacity: 1;
    pointer-events: auto;
}

body.page-ready .skeleton-loader {
    opacity: 0;
}

.sk-topbar,
.sk-thumb,
.sk-line,
.sk-tags,
.sk-dot {
    position: relative;
    overflow: hidden;
    background: #1c2429;
    border-radius: 10px;
}

.sk-shimmer::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.18) 50%, rgba(255,255,255,0) 100%);
    animation: skeleton-shimmer 1.25s infinite;
}

.sk-wrap,
.sk-canvas {
    width: min(1200px, 94vw);
    margin: 92px auto 0;
}

.sk-wrap {
    display: grid;
    gap: 20px;
}

.sk-topbar {
    height: 76px;
    border-radius: 0;
}

.sk-line {
    height: 14px;
    margin-bottom: 10px;
}

.sk-title {
    height: 42px;
    width: min(520px, 72%);
}

.sk-mid {
    width: 76%;
}

.sk-short {
    width: 58%;
}

.sk-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
}

.sk-panel {
    background: #151d21;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 16px;
}

.sk-product-head,
.sk-product-grid,
.sk-about-hero,
.sk-about-main,
.sk-about-values-head,
.sk-about-values-grid,
.sk-section,
.sk-hero,
.sk-grid,
.sk-split,
.sk-map {
    display: none;
}

/* Product skeleton: portfolio header + gallery cards */
body.skeleton-product .sk-product-head,
body.skeleton-product .sk-product-grid {
    display: grid;
}

body.skeleton-product .sk-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.sk-pcard {
    background: #151d21;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 12px;
}

.sk-pcard .sk-thumb {
    margin-bottom: 10px;
}

.sk-tags {
    height: 28px;
    width: 46%;
    border-radius: 999px;
    margin-top: 8px;
}

/* About skeleton: hero + split content + values cards */
body.skeleton-about .sk-about-hero,
body.skeleton-about .sk-about-main,
body.skeleton-about .sk-about-values-head,
body.skeleton-about .sk-about-values-grid {
    display: grid;
}

body.skeleton-about .sk-about-main {
    grid-template-columns: 1.15fr 1fr;
    gap: 16px;
}

.sk-portrait {
    aspect-ratio: 4 / 5;
}

body.skeleton-about .sk-about-values-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.sk-vcard {
    background: #151d21;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 14px;
}

.sk-dot {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    margin-bottom: 12px;
}

/* Keep existing fallback template (home/contact currently uses sk-section) */
body.skeleton-home .sk-hero,
body.skeleton-home .sk-grid,
body.skeleton-contact .sk-hero,
body.skeleton-contact .sk-split,
body.skeleton-contact .sk-map {
    display: grid;
}

body.skeleton-home .sk-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

body.skeleton-home .sk-card:nth-child(n+4) {
    display: none;
}

body.skeleton-contact .sk-split {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.sk-mapbox {
    aspect-ratio: 16 / 5;
}

@keyframes skeleton-shimmer {
    to { transform: translateX(100%); }
}

@media (max-width: 1024px) {
    body.skeleton-product .sk-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .sk-wrap,
    .sk-canvas {
        margin-top: 84px;
        gap: 14px;
    }

    .sk-title {
        height: 34px;
        width: 84%;
    }

    .sk-line {
        height: 12px;
    }

    body.skeleton-product .sk-product-grid,
    body.skeleton-about .sk-about-values-grid,
    body.skeleton-home .sk-grid {
        grid-template-columns: 1fr !important;
    }

    body.skeleton-about .sk-about-main,
    body.skeleton-contact .sk-split {
        grid-template-columns: 1fr !important;
    }

    .sk-pcard:nth-child(n+5) {
        display: none;
    }

    .sk-mapbox {
        aspect-ratio: 16 / 7;
    }
}
