@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Montserrat:wght@700;800;900&family=Mitr:wght@300;400;500;600&display=swap');

:root {
    --primary-red: #E52329;
    --primary-red-hover: #ff2c33;
    --bg-dark: #000000;
    --bg-dark-grey: #0A0A0A;
    --bg-light-grey: #f4f4f4;
    --text-white: #ffffff;
    --text-dark: #333333;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

body.lang-th,
body.lang-th *:not(i):not([class*="fa-"]),
body.lang-th h1,
body.lang-th h2,
body.lang-th h3,
body.lang-th h4,
body.lang-th .nav-link,
body.lang-th .btn,
body.lang-th .cta-btn,
body.lang-th .sub-nav-item,
body.lang-th .slogan,
body.lang-th .countdown-box .label,
body.lang-th .info-card h3 {
    font-family: 'Mitr', sans-serif !important;
}

h1,
h2,
h3,
.nav-link,
.btn {
    font-family: var(--font-heading);
    text-transform: uppercase;
}

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

.btn {
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--text-white);
    border: none;
}

.btn-primary:hover {
    background-color: var(--primary-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(229, 35, 41, 0.4);
}

.btn-white {
    background-color: var(--text-white);
    color: var(--bg-dark);
    border: none;
}

.btn-white:hover {
    background-color: #eee;
    transform: translateY(-2px);
}

/* Patterns */
.pattern-hex {
    background-color: var(--bg-dark-grey);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg id='hexagons' fill='%23222222' fill-opacity='0.4' fill-rule='nonzero'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.91v12.68l11 6.35 11-6.35V17.91L14 11.56l-11 6.35z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.pattern-topo {
    background-color: var(--bg-light-grey);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M10 10c0 10-10 10-10 20s10 10 10 20-10 10-10 20 10 10 10 20' stroke='%23d1d1d1' fill='none' stroke-opacity='0.4'/%3E%3Cpath d='M30 10c0 10-10 10-10 20s10 10 10 20-10 10-10 20 10 10 10 20' stroke='%23d1d1d1' fill='none' stroke-opacity='0.4'/%3E%3Cpath d='M50 10c0 10-10 10-10 20s10 10 10 20-10 10-10 20 10 10 10 20' stroke='%23d1d1d1' fill='none' stroke-opacity='0.4'/%3E%3C/svg%3E");
    color: var(--text-dark);
}

/* Header */
.top-bar {
    background-color: var(--primary-red);
    padding: 8px 0;
    font-size: 14px;
}

.logo-topbar {
    transition: var(--transition);
}


.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.socials {
    display: flex;
    gap: 15px;
}

.socials a {
    color: white;
    font-size: 18px;
    transition: var(--transition);
}

.socials a:hover {
    transform: scale(1.1);
}

.lang-switch {
    display: flex;
    gap: 10px;
    align-items: center;
}

.lang-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-weight: bold;
    opacity: 0.7;
    transition: var(--transition);
}

.lang-btn.active {
    opacity: 1;
    text-decoration: underline;
}

nav {
    background-color: var(--bg-dark);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    margin-right: 30px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.logo:hover,
.logo-topbar:hover {
    transform: scale(1.05);
}


.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1100;
    position: relative;
    padding: 10px;
    margin-right: -10px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-white);
    transition: var(--transition);
}

.nav-link {
    color: var(--text-white);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-red);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        /* Adjust based on navbar height */
        left: -100%;
        flex-direction: column;
        background-color: var(--bg-dark-grey);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
        padding: 40px 0;
        z-index: 999;
        gap: 20px;
    }

    .nav-links.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    /* Hamburger Animation */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* Hero Section */
.hero {
    height: 80vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 30px;
    line-height: 1.1;
}

/* Sub-Nav */
.sub-nav {
    background-color: var(--bg-dark-grey);
    padding: 40px 0;
}

.sub-nav .container {
    display: flex;
    justify-content: center;
    gap: 50px;
}

.sub-nav-item {
    color: var(--text-white);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 24px;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.sub-nav-item:hover {
    color: var(--primary-red);
    border-bottom: 2px solid var(--primary-red);
}

/* Events Section */
.events {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

.events h2 {
    font-size: 36px;
    margin-bottom: 40px;
    text-align: center;
}

.event-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.event-card {
    display: flex;
    background-color: var(--bg-dark-grey);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.event-card:hover {
    transform: scale(1.02);
}

.event-img {
    flex: 1;
    background-size: cover;
    background-position: center;
    min-height: 250px;
}

.event-info {
    flex: 1.5;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.event-info h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.event-date,
.event-location {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-date i,
.event-location i {
    color: var(--primary-red);
    width: 16px;
    text-align: center;
}

/* Welcome Section */
.welcome {
    padding: 100px 0;
    background-color: var(--bg-light-grey);
    color: var(--text-dark);
}

.welcome h2 {
    font-size: 40px;
    margin-bottom: 10px;
}

.slogan {
    color: var(--primary-red);
    font-weight: 900;
    font-size: 24px;
    margin-bottom: 30px;
    font-family: var(--font-heading);
    text-transform: uppercase;
}

.welcome-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Footer */
footer {
    background-color: var(--bg-dark-grey);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

footer h4 {
    margin-bottom: 25px;
    font-size: 18px;
}

.about-footer p {
    font-size: 14px;
    opacity: 0.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-link {
    color: var(--text-white);
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--primary-red);
    opacity: 1;
}



.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    opacity: 0.5;
}


/* Responsive */
@media (max-width: 992px) {

    .welcome-content,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 36px;
    }

    .sub-nav .container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .event-card {
        flex-direction: column;
    }
}