/* style.css (เวอร์ชันก่อนเพิ่ม Facebook Share Button) */

/* --- 1. CSS Variables --- */
:root {
    --primary-color: #ff0000;
    --primary-hover: #ff9900;
    --dark-bg: #121212;
    --light-bg: #181818;
    --text-light: #ffffff;
    --text-dark: #b3b3b3;
    --glass-bg: rgba(20, 20, 20, 0.5);
}

/* --- 2. Basic & Global Settings --- */
html, body {
    height: 100%;
    margin: 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Kanit', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.dark-section {
    background-color: var(--light-bg);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px -5px rgba(255, 0, 0, 0.6);
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px -5px rgba(255, 100, 100, 0.8);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid var(--primary-color);
}
.btn-secondary:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px -5px rgba(255, 100, 100, 0.5);
}

.sold-out {
    background-color: #555 !important;
    border-color: #555 !important;
    color: #aaa !important;
    pointer-events: none;
    cursor: default;
}
.sold-out:hover {
    transform: none;
    box-shadow: none;
}


/* --- 3. Preloader --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-bg);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.75s ease, visibility 0.75s ease;
}

.preloader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


/* --- 4. Header & Navigation --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /* Adjusted padding for larger logo */
    padding: 10px 0;
    background: transparent;
    transition: transform 0.4s ease, background-color 0.4s ease, padding 0.4s ease;
}

.main-header.scrolled {
    background-color: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 5px 0; /* Adjusted scrolled padding */
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.main-header.header-hidden {
    transform: translateY(-100%);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

.nav-logo {
    display: inline-block;
}

.nav-logo img {
    height: 150px; /* Large logo size for Desktop */
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.nav-logo:hover img {
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}
.nav-link.active {
     color: var(--primary-color);
}


.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: white;
    transition: all 0.3s ease-in-out;
}


/* --- 5. Slideshow for Home Section --- */
.slideshow-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: var(--dark-bg);
    padding-top: 170px; /* Adjusted for large header */
    height: 100vh;
}

.mySlides {
    display: none;
    height: calc(100vh - 170px);
    width: 100%;
    position: absolute;
    top: 170px;
    left: 0;
}
.mySlides:first-child {
    display: block;
}

.mySlides a { /* Style for clickable slides */
     display: block;
     height: 100%;
     text-decoration: none;
}
.mySlides a:focus {
     outline: none;
}


.mySlides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.slide-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    color: #fff;
    z-index: 2;
}

.slide-text h1.border { /* Style for H1 */
    background-color: rgba(20, 20, 20, 0.7);
    padding: 18px 25px;
    font-size: 2.8rem;
    letter-spacing: 10px;
    text-transform: uppercase;
    display: inline-block;
    margin: 0 0 15px 0; /* Adjusted margin */
    /* font-weight: 700; (adjust if needed) */
}

.slide-text p {
    font-size: 1.5rem;
    margin-top: 10px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: calc(170px + (100vh - 170px) / 2); /* Adjusted position */
    transform: translateY(-50%);
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.5);
    z-index: 3;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}


/* --- 6. Parallax Section (for Parallax-2) --- */
.parallax {
    position: relative;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.parallax-2 {
    background-image: url('assets/parallax-bg2.jpg');
    min-height: 500px;
}

.caption {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
}

.caption span.border {
    background-color: rgba(20, 20, 20, 0.7);
    color: #fff;
    padding: 18px;
    font-size: 2.5rem;
    letter-spacing: 10px;
    text-transform: uppercase;
}


/* --- 7. Component-Specific Sections --- */

/* ABOUT SECTION */
.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
}
.about-image {
    flex: 1;
    overflow: hidden;
    border-radius: 15px;
}
.about-image img {
    width: 100%;
    display: block;
    transform: scale(1.1);
    transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.about-image.aos-animate img {
    transform: scale(1);
}
.about-content { flex: 1.5; }
.about-content h2 { text-align: left; }
.about-content h2::after {
    left: 0;
    transform: translateX(0);
}
.about-content p {
    margin-bottom: 20px;
    color: var(--text-dark);
}

/* MUSIC SECTION */
.discography-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.album-card {
    background: var(--dark-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.album-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.7);
}
.album-card img {
    width: 100%;
    display: block;
    transform: scale(1.1);
    transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.album-card.aos-animate img {
    transform: scale(1);
}
.album-info { padding: 20px; text-align: center; }
.album-info h3 { margin-bottom: 5px; }
.album-info p {
    color: var(--text-dark);
    margin-bottom: 15px;
}
.streaming-links a {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin: 0 7px;
    display: inline-block;
    transition: color 0.3s ease;
}
.streaming-links a:hover { color: var(--primary-color); }

/* TOUR SECTION */
.tour-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.tour-item {
    display: flex;
    align-items: center;
    background: var(--light-bg);
    padding: 20px;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}
.tour-item:hover { background-color: #282828; }
.tour-date {
    text-align: center;
    margin-right: 30px;
    font-weight: 700;
}
.tour-date span {
    display: block;
    font-size: 2rem;
    color: var(--primary-color);
}
.tour-info { flex-grow: 1; }
.tour-info p { color: var(--text-dark); }
/* .sold-out rule is already defined under .btn */

/* NEWS SECTION */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.news-card {
    background: var(--dark-bg);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.7);
}
.news-image {
     overflow: hidden;
     height: 200px;
}
.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.1);
    transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.news-card.aos-animate .news-image img {
    transform: scale(1);
}
.news-content { padding: 20px; }
.news-category {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 5px;
    margin-bottom: 10px;
}
.news-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-light);
}
.news-date {
    font-size: 0.8rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    display: block;
}
.news-excerpt {
    font-size: 0.9rem;
    color: var(--text-dark);
}

/* MODAL STYLE */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.modal-content {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}
.modal-overlay.active .modal-content { transform: translateY(0); }
.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}
.modal-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 20px;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.modal-category {
    background: var(--primary-color);
    color: white;
    padding: 4px 10px;
    font-size: 0.8rem;
    border-radius: 5px;
}
.modal-date {
    font-size: 0.9rem;
    color: var(--text-dark);
}
.modal-title { font-size: 2rem; margin-bottom: 20px; }
.modal-body {
    color: var(--text-dark);
    line-height: 1.8;
}
#modal-ticket-btn {
    margin-top: 20px;
    display: inline-block;
}


/* --- 8. Back To Top Button --- */
#back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    text-decoration: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease, background-color 0.3s ease;
}

#back-to-top-btn:hover {
    background-color: var(--primary-hover);
}

#back-to-top-btn.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* --- 9. Footer --- */
.footer-logo {
    text-align: center;
    margin-bottom: px;
}

.footer-logo img {
    height: 100px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

.main-footer {
    padding: 40px 0;
    text-align: center;
    background-color: #0a0a0a;
}
.footer-social {
    /* Add margin if logo is present */
    margin-top: 20px;
}
.footer-social a {
    color: var(--text-dark);
    font-size: 1.8rem;
    margin: 0 15px;
    transition: color 0.3s ease;
}
.footer-social a:hover { color: var(--primary-color); }

.footer-contact {
    margin-top: 20px;
    color: var(--text-dark);
    font-size: 0.9rem;
}
.footer-contact a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-contact a:hover {
    color: var(--primary-color);
}
.back-to-top-paragraph {
     margin-top: 20px;
}
.footer-top-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}
.footer-top-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.copyright {
    margin-top: 10px;
    color: #555;
    font-size: 0.9rem;
}


/* --- 10. Responsive Design (Must be last) --- */
@media(max-width: 768px) {
    .section-title { font-size: 2rem; }

    .hamburger { display: block; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-menu {
        position: fixed;
        left: -100%;
        /* Header height scrolled on tablet ~130px */
        top: 130px;
        flex-direction: column;
        background-color: #181818;
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
    }
    .nav-menu.active { left: 0; }
    .nav-menu li { padding: 15px 0; }

    .about-container { flex-direction: column; }
    .about-content h2 { text-align: center; }
    .about-content h2::after { left: 50%; transform: translateX(-50%); }

    .tour-item { flex-direction: column; text-align: center; gap: 15px; }
    .tour-date { margin: 0; }
    .tour-info { margin-bottom: 15px; }

    /* Logo size for Tablet */
    .nav-logo img {
        height: 120px;
    }

    /* Fixed Header Padding for smaller screens */
    .main-header,
    .main-header.sc