/* === Global Styles, Resets & Scrollbar === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

html, body {
    margin: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1a2a44, #121212), url('https://www.transparenttextures.com/patterns/stardust.png');
    background-blend-mode: overlay;
    color: #e0e0e0;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a2a44;
}

::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 5px;
    border: 2px solid #1a2a44;
}

::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}

/* === Navbar === */
.navbar {
    background: #1e2b47;
    border-bottom: 1px solid #2a3a5a;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar .logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #3b82f6;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.navbar .logo img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.navbar .logo h1 {
    font-size: 1.2em;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

.nav-links {
    display: flex;
    gap: 10px;
    transition: all 0.3s ease;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #93c5fd;
    font-weight: 500;
    font-size: 1em;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-links a i {
    font-size: 0.9em;
    transition: transform 0.3s ease;
}

.nav-links a:hover {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.3);
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.nav-links a:hover i {
    transform: rotate(15deg);
}

.nav-links a.active {
    color: #ffffff;
    background: #3b82f6;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.hamburger {
    display: none;
    font-size: 1.5em;
    color: #93c5fd;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.hamburger.active {
    transform: rotate(90deg);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    background-color: rgba(59, 130, 246, 0.15);
    border-radius: 20px;
    padding: 4px;
    margin-left: 15px;
    border: 1px solid #2a3a5a;
}

.lang-switcher button {
    background-color: transparent;
    border: none;
    color: #93c5fd;
    padding: 6px 12px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9em;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.lang-switcher button.active {
    background-color: #3b82f6;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}


/* === Footer === */
footer {
    text-align: center;
    padding: 15px;
    color: #93c5fd;
    font-size: 0.9em;
    background: #1e2b47;
    border-top: 1px solid #2a3a5a;
    width: 100%;
    flex-shrink: 0;
}

/* === Index Page: Hero Section === */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    padding: 60px 20px;
    margin: 20px;
    animation: fadeIn 1s ease-in-out forwards;
    opacity: 0;
    max-width: 1000px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-image {
    text-align: center;
}

.hero-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 3px solid #3b82f6;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-image img:hover {
    transform: rotate(10deg) scale(1.05);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.hero-content {
    text-align: left;
    padding: 20px;
}

.hero-content h2 {
    font-size: 3.2em;
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.5em;
    color: #b0b8d1;
    margin-bottom: 30px;
    line-height: 1.4;
    white-space: pre-line; /* ทำให้เคารพการขึ้นบรรทัดใหม่ */
}

.hero-content .buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-content a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    font-size: 1em;
    transition: all 0.3s ease;
}

.hero-content a.invite {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.hero-content a.invite:hover {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.hero-content a.discord {
    background: linear-gradient(90deg, #5865f2, #404eed);
}

.hero-content a.discord:hover {
    background: linear-gradient(90deg, #404eed, #5865f2);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

.main-content {
    flex: 1;
}

/* === Commands Page === */
.commands-main-content {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px 0;
    padding-bottom: 40px;
}

.commands-column {
    flex: 1;
    padding-right: 20px;
    animation: fadeInLeft 0.8s ease-in-out forwards;
    opacity: 0;
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.search-column {
    width: 300px;
    position: sticky;
    top: 80px; /* Adjusted for navbar height */
    animation: slideInRight 0.8s ease-in-out forwards;
    opacity: 0;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.search-container {
    position: relative;
    width: 100%;
}

.search-container input {
    width: 100%;
    padding: 12px 20px 12px 50px;
    background: #1e2b47;
    border: 2px solid #3b82f6;
    border-radius: 25px;
    color: #e0e0e0;
    font-size: 1.1em;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

.search-container input::placeholder {
    color: #b0b8d1;
    font-style: italic;
}

.search-container input:focus {
    border-color: #2563eb;
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    background: #252f4a;
}

.search-container i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #b0b8d1;
    font-size: 1.2em;
    transition: color 0.3s ease, transform 0.3s ease;
}

.search-container input:focus + i {
    color: #2563eb;
    transform: translateY(-50%) scale(1.1);
}

.commands-section {
    width: 100%;
}

.commands-section h2.main-title {
    font-size: 2.2em;
    color: #ffffff;
    margin-bottom: 25px;
    text-align: left;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.command-category {
    background: #1e2b47;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid #2a3a5a;
}

.command-category:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25);
    border-color: #3b82f6;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
}

.category-header h3 {
    font-size: 1.4em;
    color: #e0e0e0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-header h3 i {
    color: #3b82f6;
    font-size: 1.2em;
    width: 25px;
    text-align: center;
}

.category-header .toggle-icon {
    font-size: 1.2em;
    color: #93c5fd;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.command-category.active .toggle-icon {
    transform: rotate(180deg);
}

.category-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), padding 0.5s ease;
    padding: 0 25px;
    color: #b0b8d1;
}

.no-results {
    display: none; /* Hidden by default */
    text-align: center;
    padding: 40px 20px;
    color: #b0b8d1;
    font-size: 1.2em;
}

footer a {
    color: #3b82f6;
    text-decoration: none;
    margin-left: 5px;
}

footer a:hover {
    text-decoration: underline;
}

/* === Developer Page === */
.developer-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.developer-section {
    max-width: 670px;
    margin: 20px auto;
    padding: 20px;
    background: #252f4a;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.developer-section h2 {
    font-size: 2em;
    color: #ffffff;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

.developers {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.developer-card {
    background: #1e2b47;
    background-image: url('https://www.transparenttextures.com/patterns/stardust.png');
    background-blend-mode: overlay;
    border: 1px solid #3b82f6;
    border-radius: 12px;
    padding: 20px;
    width: 100%;
    max-width: 300px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: zoomIn 0.8s ease-in-out forwards;
    opacity: 0;
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.developer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(59, 130, 246, 0.3);
}

.developer-card .profile-container {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.developer-card img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid #3b82f6;
    transition: transform 0.3s ease;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.developer-card img:hover {
    transform: rotate(10deg) scale(1.05);
}

.developer-card .status-dot {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #252f4a;
    background-color: #808080; /* Default: Offline (gray) */
}

.developer-card .status-dot.online { background-color: #43b581; } /* Online (green) */
.developer-card .status-dot.idle { background-color: #faa61a; } /* Idle (yellow) */
.developer-card .status-dot.dnd { background-color: #f04747; } /* Do Not Disturb (red) */
.developer-card .status-dot.offline { background-color: #808080; } /* Offline (gray) */

.developer-card .status-text {
    font-size: 0.8em;
    color: #b0b8d1;
    margin-top: 5px;
    font-weight: 500;
}

.developer-card h3 {
    font-size: 1.5em;
    color: #ffffff;
    margin-bottom: 8px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

.developer-card p.role {
    font-size: 1em;
    color: #3b82f6;
    margin-bottom: 8px;
    font-weight: 500;
}

.developer-card p.description {
    font-size: 0.9em;
    color: #b0b8d1;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background: #3b82f6;
    color: #fff;
    text-align: center;
    line-height: 35px;
    border-radius: 50%;
    font-size: 1.2em;
    transition: background 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    background: #2563eb;
    transform: rotate(360deg);
    transition: transform 0.5s ease;
}

/* === Support Page === */
.support-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.support-section {
    max-width: 800px;
    margin: 30px auto;
    padding: 20px;
    background: #252f4a;
    border-radius: 10px;
    text-align: center;
}

.support-section h2 {
    font-size: 1.8em;
    color: #ffffff;
    margin-bottom: 15px;
}

.support-section p {
    font-size: 1em;
    color: #b0b8d1;
    margin-bottom: 20px;
}

.support-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.support-links a {
    display: inline-block;
    padding: 10px 20px;
    background: #3b82f6;
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.support-links a:hover {
    background: #2563eb;
    transform: translateY(-3px);
}

/* Popup for Support Page */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 200;
    justify-content: center;
    align-items: center;
    animation: fadeInPopup 0.3s ease-in-out forwards;
}

@keyframes fadeInPopup {
    from { opacity: 0; }
    to { opacity: 1; }
}

.popup-content {
    background: #1e2b47;
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #3b82f6;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
    text-align: center;
    position: relative;
    max-width: 500px;
    width: 90%;
}

.popup-content h3 {
    font-size: 1.5em;
    color: #ffffff;
    margin-bottom: 20px;
}

.bank-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.bank-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1em;
    color: #b0b8d1;
}

.bank-info p i {
    color: #3b82f6;
    font-size: 1.2em;
}

.bank-info p span {
    color: #ffffff;
    font-weight: 500;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: #b0b8d1;
    font-size: 1.5em;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #ffffff;
}

/* === Legal Pages (Terms, Privacy) === */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
}

.legal-section {
    max-width: 1000px;
    width: 90%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.legal-card {
    background: rgba(37, 47, 74, 0.9);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    animation: fadeInCard 0.8s ease-in-out forwards;
    opacity: 0;
}

@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.legal-card h3 {
    font-size: 2em;
    color: #3b82f6;
    margin-bottom: 20px;
    border-bottom: 3px solid #3b82f6;
    padding-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.legal-card p {
    font-size: 1.1em;
    color: #b0b8d1;
    margin-bottom: 20px;
    line-height: 1.8;
}

.legal-card ul {
    list-style: none;
    padding-left: 25px;
    margin-bottom: 20px;
}

.legal-card ul li {
    position: relative;
    font-size: 1.1em;
    color: #b0b8d1;
    margin-bottom: 15px;
}

/* === Responsive Navbar === */
@media (max-width: 768px) {
    .navbar {
        flex-direction: row;
        gap: 10px;
        padding: 10px 20px;
    }
    .navbar .logo img {
        width: 35px;
        height: 35px;
    }
    .navbar .logo h1 {
        font-size: 1em;
    }
    .hamburger {
        display: block;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #1e2b47;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        animation: fadeInMenu 0.3s ease-in-out forwards;
        opacity: 0;
    }
    .nav-links.active {
        display: flex;
        opacity: 1;
    }
    @keyframes fadeInMenu {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .nav-links a {
        font-size: 1em;
        padding: 10px 20px;
        width: 80%;
        text-align: center;
        margin: 5px 0;
    }
    .lang-switcher {
        width: 80%;
        text-align: center;
        margin: 5px 0;
    }
    footer {
        font-size: 0.8em;
        padding: 10px;
    }

    /* Responsive Hero */
    .hero { flex-direction: column; gap: 25px; padding: 30px 15px; margin: 15px; text-align: center; }
    .hero-image { margin-bottom: 30px; }
    .hero-image img { width: 150px; height: 150px; }
    .hero-content { text-align: center; }
    .hero-content h2 { font-size: 2.4em; }
    .hero-content p { font-size: 1.2em; margin-bottom: 25px; }
    .hero-content a { font-size: 0.9em; padding: 10px 20px; }

    /* Responsive Commands */
    .commands-main-content { flex-direction: column; align-items: center; width: 95%; }
    .commands-column { width: 100%; padding-right: 0; margin-bottom: 20px; }
    .search-column { width: 100%; max-width: 350px; position: static; }
    .commands-section h2.main-title { font-size: 2em; }
    .category-header { padding: 15px 20px; }
    .category-header h3 { font-size: 1.2em; }
    .category-content { padding: 0 20px; }
    .search-container input { padding: 10px 15px 10px 45px; font-size: 1em; }
    .search-container i { left: 15px; font-size: 1em; }

    /* Responsive Support */
    .support-section { margin: 15px; padding: 15px; }
    .support-section h2 { font-size: 1.5em; }
    .support-section p { font-size: 0.9em; }
    .support-links a { font-size: 0.9em; padding: 8px 15px; }
    .popup-content { padding: 20px; max-width: 350px; }
    .popup-content h3 { font-size: 1.3em; }
    .bank-info p { font-size: 0.9em; }
    .bank-info p i { font-size: 1em; }

    /* Responsive Legal */
    .main-content { padding: 20px 15px; }
    .legal-card { padding: 20px; }
    .legal-card h3 { font-size: 1.5em; } 
    .legal-card p, 
    .legal-card ul li { 
        font-size: 0.9em; 
    }

    .lang-switcher {
        margin-left: 0;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .navbar .logo h1 { font-size: 0.9em; }
    .nav-links a { font-size: 0.9em; padding: 8px 15px; }

    /* Responsive Hero */
    .hero { padding: 20px 10px; margin: 10px; }
    .hero-image img { width: 120px; height: 120px; }
    .hero-content h2 { font-size: 2em; }
    .hero-content p { font-size: 1em; }
    .hero-content a { font-size: 0.8em; padding: 8px 15px; }

    /* Responsive Commands */
    .commands-main-content { width: 100%; padding: 10px; }
    .search-column { max-width: 280px; }
    .commands-section h2.main-title { font-size: 1.8em; }
    .category-header h3 { font-size: 1.1em; }
    .search-container input { padding: 8px 15px 8px 40px; font-size: 0.9em; }
    .search-container i { left: 12px; font-size: 0.9em; }

    /* Responsive Support */
    .support-section { margin: 10px; padding: 10px; }
    .support-section h2 { font-size: 1.3em; }
    .support-section p { font-size: 0.8em; }
    .support-links a { font-size: 0.8em; padding: 6px 12px; }
    .popup-content { padding: 15px; max-width: 300px; }
    .popup-content h3 { font-size: 1.2em; }
    .bank-info p { font-size: 0.8em; }
    .bank-info p i { font-size: 0.9em; }

    /* Responsive Legal */
    .main-content { padding: 15px 10px; }
    .legal-card { padding: 15px; }
    .legal-card h3 { font-size: 1.3em; }
    .legal-card p,
    .legal-card ul li {
        font-size: 0.8em;
    }
    footer { font-size: 0.8em; padding: 8px; }
}

/* Language content visibility */
.lang-content:not(.active) {
    display: none;
}
