/* --- Global Styles & Variables --- */
:root {
    --primary-red: #FF2C2C;
    --dark-red: #cc0000;
    --darker-red: #990000;
    --bg-dark: #121212;
    --bg-darker: #050505;
    --text-light: #ffffff;
    --text-gray: #b0b0b0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    background-image: url('bg.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    position: relative;
    cursor: none;
}

main {
    padding-top: 100px;
    padding-bottom: 50px;
}

/* --- Custom Cursor Styles --- */
#custom-cursor { position: fixed; left: 0; top: 0; width: 32px; height: 32px; background-color: var(--primary-red); border-radius: 50%; mix-blend-mode: difference; pointer-events: none; z-index: 9999; transform: translate(-50%, -50%); transition: width 0.3s ease, height 0.3s ease; }
.cursor-particle { position: fixed; background: var(--primary-red); border-radius: 50%; pointer-events: none; z-index: 9998; transform-origin: center; animation: spray 0.6s ease-out forwards; }
@keyframes spray { from { opacity: 1; transform: translate(-50%, -50%) scale(1); } to { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(0); } }

/* --- Dynamic Effects Styles --- */
.particles { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; }
.particle { position: absolute; background: var(--primary-red); border-radius: 50%; opacity: 0.3; animation: float 15s infinite linear; }
@keyframes float { 0% { transform: translateY(100vh) rotate(0deg); opacity: 0; } 10% { opacity: 0.3; } 90% { opacity: 0.3; } 100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; } }
.loading { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-dark); display: flex; align-items: center; justify-content: center; z-index: 9999; transition: opacity 0.5s ease; }
.loading.hidden { opacity: 0; pointer-events: none; }
.loader { width: 50px; height: 50px; border: 3px solid rgba(255, 44, 44, 0.3); border-top: 3px solid var(--primary-red); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.scroll-progress { position: fixed; top: 0; left: 0; width: 0%; height: 3px; background: linear-gradient(90deg, var(--primary-red), var(--darker-red)); z-index: 1001; transition: width 0.1s ease; }

/* --- Header Styles --- */
.main-header { background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(10px); border-bottom: 1px solid var(--glass-border); padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; position: fixed; top: 0; width: 100%; z-index: 1000; transition: all 0.3s ease; }
.main-header.scrolled { background: rgba(0, 0, 0, 0.8); box-shadow: 0 8px 32px rgba(255, 44, 44, 0.1); }
.nav-link-home { background: linear-gradient(135deg, var(--primary-red), var(--darker-red)); border-radius: 50px; color: white; padding: 0.75rem 2rem; text-decoration: none; font-weight: 600; transition: all 0.3s ease; position: relative; overflow: hidden; }
.nav-link-home::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent); transition: left 0.6s ease; }
.nav-link-home:hover::before { left: 100%; }
.nav-link-home:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(255, 44, 44, 0.4); }
.nav-links { list-style: none; display: flex; gap: 2rem; align-items: center; }
.nav-link { color: var(--text-light); text-decoration: none; padding: 0.5rem 1rem; position: relative; font-weight: 500; transition: all 0.3s ease; }
.nav-link::after { content: ''; position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%); width: 0; height: 2px; background: linear-gradient(90deg, var(--primary-red), var(--darker-red)); transition: width 0.3s ease; }
.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: var(--primary-red); transform: translateY(-1px); }
.hamburger-menu { display: none; flex-direction: column; justify-content: space-around; width: 2rem; height: 2rem; background: transparent; border: none; cursor: pointer; padding: 0; z-index: 10; }
.hamburger-menu span { width: 2rem; height: 0.25rem; background: white; border-radius: 10px; transition: all 0.3s linear; position: relative; transform-origin: 1px; }
.hamburger-menu.is-active span:nth-child(1) { transform: rotate(45deg); }
.hamburger-menu.is-active span:nth-child(2) { opacity: 0; transform: translateX(20px); }
.hamburger-menu.is-active span:nth-child(3) { transform: rotate(-45deg); }

/* --- About Page Specific Styles --- */
.about-section {
    display: flex;
    align-items: center;
    max-width: 1920px;
    margin: auto;
    margin-top: -100px; /* Moves the entire section down 50px from -150px */
    position: relative;
    z-index: 2;
    padding: 2rem 2rem 2rem 0;
}

.image-container {
    width: 65%;
    position: relative;
    height: 650px;
}

.about-main-image {
    width: 797px;
    height: 580px;
    left: 74px;
    top: 73.5px;
    position: absolute;
    z-index: 1;
}

.interactive-image {
    position: absolute;
    cursor: pointer;
    z-index: 2;
    transition: transform 0.3s ease;
}

#img-about1 {
    width: 348px;
    height: 436px;
    left: 412px;
    top: 80.5px;
}

#img-about2 {
    width: 171px;
    height: 118px;
    left: 293px;
    top: 174px;
}

#img-about3 {
    width: 452px;
    height: 257px;
    left: 409px;
    top: 386px;
}


.interactive-image:hover {
    transform: scale(1.05);
}

.interactive-image img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease-in-out;
}

.interactive-image .alter-img {
    opacity: 0;
}

.interactive-image:hover .alter-img {
    opacity: 1;
}

.interactive-image.active .alter-img {
    opacity: 1;
}

.text-container {
    width: 35%;
    padding: 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    color: var(--text-light);
    height: fit-content;
}

.description-content.hidden {
    display: none;
}

.description-content h2 {
    color: var(--primary-red);
    font-family: 'Kanit', sans-serif;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.description-content h3 {
    color: var(--primary-red);
    font-family: 'Kanit', sans-serif;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.description-content p, .description-content ul {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1rem;
}
.description-content ul {
    list-style-position: inside;
    padding-left: 1rem;
}

.mascot-images {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.mascot-images img {
    width: 50%;
    border-radius: 10px;
}

/* --- Floating Action Button Styles --- */
.floating-elements { position: fixed; top: 50%; right: 2rem; transform: translateY(-50%); display: flex; flex-direction: column; gap: 1rem; z-index: 100; }
.floating-btn { width: 60px; height: 60px; border-radius: 50%; background: var(--glass-bg); backdrop-filter: blur(10px); border: 1px solid var(--glass-border); color: var(--text-light); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; font-size: 1.5rem; }
.floating-btn:hover { background: var(--primary-red); transform: scale(1.1); box-shadow: 0 10px 25px rgba(255, 44, 44, 0.4); }

/* --- Footer Styles --- */
.main-footer { background: var(--bg-darker); border-top: 1px solid var(--glass-border); padding: 3rem 5%; }
.footer-container { max-width: 1400px; margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.social-icons { display: flex; gap: 1rem; }
.social-icons a { color: var(--text-gray); border: 1px solid var(--glass-border); border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; }
.social-icons a:hover { color: var(--text-light); background-color: var(--primary-red); border-color: var(--primary-red); transform: translateY(-3px); }
.social-icons svg { width: 20px; height: 20px; }
.language-switcher { display: flex; align-items: center; gap: 0.5rem; color: var(--text-gray); font-weight: 500; }
.language-switcher svg { width: 24px; height: 24px; }
.language-switcher span { cursor: pointer; transition: color 0.3s ease; }
.language-switcher span:hover { color: var(--primary-red); }
.footer-divider { border: 0; height: 1px; background: var(--glass-border); margin-bottom: 2rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; color: var(--text-gray); }
.footer-logo { height: 70px; width: auto; }
.footer-contact p { margin: 0; }
.footer-contact a { color: var(--primary-red); text-decoration: none; font-weight: 500; transition: color 0.3s ease; }
.footer-contact a:hover { color: var(--dark-red); }
.footer-copyright { text-align: right; }

/* --- Responsive Styles --- */
@media (max-width: 1200px) {
    .about-section {
        flex-direction: column;
        align-items: center;
        margin-top: 0; /* Adjusted from -50px */
        padding: 2rem;
    }
    .image-container, .text-container {
        width: 100%;
        max-width: 800px; 
    }
    .image-container {
        transform: scale(0.9);
        height: 580px;
        margin-bottom: -50px;
    }
}

@media (max-width: 768px) {
    .main-header { padding: 1rem; }
    .main-nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: rgba(0, 0, 0, 0.9); backdrop-filter: blur(10px); }
    .main-nav.is-active { display: flex; }
    .nav-links { flex-direction: column; width: 100%; padding: 1rem 0; }
    .nav-link { padding: 1.5rem; text-align: center; width: 100%; }
    .hamburger-menu { display: flex; }
    .floating-elements { display: none; }
    .footer-top, .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 1.5rem; }
    .footer-bottom { flex-direction: column-reverse; }
    
    .about-section {
        margin-top: 50px; /* Adjusted from 0 */
    }

    .image-container {
       transform: scale(0.7);
       height: 450px;
       margin-bottom: -150px;
    }
    .text-container {
        padding: 1rem;
        width: 100%;
    }
}