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

html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

:root {
    --min-font-size: 14px;
    --max-font-size: 18px;
    --responsive-font-size: clamp(var(--min-font-size), 1.1vw, var(--max-font-size));
}

body {
    background-color: #231e3f;
    background-image: radial-gradient(ellipse at 50% 40%,
            rgba(115, 99, 218, 0.25) 0%,
            #231e3f 60%);

    font-family: 'Lilita One', cursive;
    min-height: 100vh;
    color: #fff;
    display: flex;
    flex-direction: column;
    font-size: var(--responsive-font-size);
    flex-grow: 1;
}

/* --- COMMON UTILS --- */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.main-wrapper {
    width: 100%;
    max-width: 1200px;
    /* Increased max width for modern look */
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HEADER (UNCHANGED STYLES) --- */
.header {
    margin-top: 10px;
    margin-bottom: 30px;
    position: relative;
}

.top-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 25px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: clamp(55px, 5vw, 80px);
    position: relative;
    z-index: 1001;
    width: 98vw;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links-right {
    position: relative;
    display: flex;
    align-items: center;
}

.discord-link {
    display: flex;
    align-items: center;
    gap: 0;
    background-color: rgba(88, 101, 242, 0.8);
    padding: 8px 10px;
    border-radius: 15px;
    border: 1px solid rgba(88, 101, 242, 1);
    color: #fff;
    text-decoration: none;
    font-size: clamp(0.9rem, 1.2vw, 1.0rem);
    margin-right: 10px;
    transition: all 0.3s ease;
    overflow: hidden;
    white-space: nowrap;
}

.discord-link span {
    max-width: 0;
    opacity: 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.discord-link:hover {
    background-color: rgba(88, 101, 242, 1);
    gap: 8px;
    padding: 8px 12px;
}

.discord-link:hover span {
    max-width: 200px;
    opacity: 1;
}

.discord-link .fab {
    font-size: 1.2rem;
}

.bmc-link {
    display: flex;
    align-items: center;
    gap: 0;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.9) 0%, rgba(255, 152, 0, 0.9) 100%);
    padding: 8px 10px;
    border-radius: 15px;
    border: none;
    color: #fff;
    text-decoration: none;
    font-size: clamp(0.9rem, 1.2vw, 1.0rem);
    margin-right: 10px;
    transition: all 0.3s ease;
    overflow: hidden;
    white-space: nowrap;
}

.bmc-link span {
    max-width: 0;
    opacity: 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.bmc-link:hover {
    background: linear-gradient(135deg, rgba(255, 193, 7, 1) 0%, rgba(255, 152, 0, 1) 100%);
    gap: 8px;
    padding: 8px 12px;
}

.bmc-link:hover span {
    max-width: 200px;
    opacity: 1;
}

.bmc-link .fas {
    font-size: 1.2rem;
}

.bmc-icon {
    width: 1.2rem;
    height: 1.2rem;
    filter: invert(1);
}

.nav-center-title {
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header h1 {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    margin-bottom: 0;
    color: #fff;
    position: relative;
    text-align: center;
}

.author-credit {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: rgba(255, 255, 255, 0.9);
    font-weight: normal;
    display: block;
    text-align: center;
    margin: -2px auto 0;
    width: fit-content;
}

/* --- BURGER MENU & OVERLAY --- */
.burger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 2.2rem;
    height: 2.2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2010;
    position: relative;
}

.burger-menu span {
    width: 2.2rem;
    height: 0.25rem;
    background: #fff;
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease-in-out;
}

.menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.menu-overlay a {
    color: #fff;
    text-decoration: none;
    font-size: 2.5rem;
    margin: 15px 0;
    transition: color 0.3s ease, transform 0.3s ease;
}

.menu-overlay a:hover,
.menu-overlay a.active {
    color: #f1c40f;
    transform: scale(1.05);
}

.menu-close {
    position: absolute;
    top: 30px;
    right: 50px;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    z-index: 2010;
}

.menu-close:hover {
    color: #f1c40f;
    transform: scale(1.1);
}

/* --- LANGUAGE SELECTOR --- */
#languageSelector {
    cursor: pointer;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    transition: background-color 0.2s ease;
    color: #fff;
}

.language-option:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.lang-flag {
    width: 24px;
    height: auto;
    border-radius: 4px;
    vertical-align: middle;
}

#selectedLanguage {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#languageDropdown {
    display: none;
    position: absolute;
    top: 110%;
    right: 0;
    background: #2c2c2c;
    border-radius: 10px;
    overflow: hidden;
    z-index: 1001;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#languageSelector.open #languageDropdown {
    display: block;
}

/* --- NEW LAYOUT: HERO SECTION --- */
.hero-section {
    text-align: center;
    width: 100%;
    margin: 0 auto 60px;
    animation: fadeInDown 0.8s ease-out;
}

.hero-section h2 {
    font-size: 3rem;
    color: #f1c40f;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-section p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* --- NEW LAYOUT: FEATURE ROWS (ZIG ZAG) --- */
.features-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 30px;
    margin-bottom: 40px;
}

.feature-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.feature-visual {
    width: 100%;
    height: auto;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    align-self: center;
}

.feature-content h3 {
    color: #f39c12;
    font-size: 2rem;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(243, 156, 18, 0.5);
    padding-bottom: 8px;
    width: 100%;
}

.feature-content p {
    margin-bottom: 25px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-family: 'Lilita One', cursive;
    text-decoration: none;
    display: inline-block;
    align-self: center;
    /* Centers button in the card */
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* --- NEW LAYOUT: DISCORD BANNER --- */
.discord-promo-banner {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.3), rgba(120, 144, 255, 0.2));
    border: 2px solid rgba(88, 101, 242, 0.5);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    display: block;
}

.discord-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.discord-promo-banner:hover {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.4), rgba(120, 144, 255, 0.3));
    border-color: rgba(88, 101, 242, 0.8);
    transform: scale(1.01);
}

.discord-promo-title {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.discord-promo-title i {
    color: #5865f2;
}

.discord-promo-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* --- NEW LAYOUT: INFO GRID (Updates & Videos) --- */
.community-header {
    text-align: center;
    margin-bottom: 0;
}

.grid-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 80px;
}

.subsection-title {
    font-size: 1.5rem;
    color: #f1c40f;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Updates styling within grid */
.update-item {
    background: rgba(0, 0, 0, 0.2);
    border-left: 4px solid #f39c12;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.update-item:hover {
    background: rgba(0, 0, 0, 0.3);
    border-left-color: #f1c40f;
    transform: translateX(5px);
}

.update-date {
    font-size: 0.8rem;
    color: #f39c12;
    font-weight: bold;
    margin-bottom: 4px;
}

.update-title {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 4px;
    font-weight: 600;
}

.update-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

/* Video grid inside the 1/2 column */
.videos-grid-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.video-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    border-color: rgba(241, 196, 15, 0.6);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
}

.video-thumbnail iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 10px;
}

.video-title {
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.video-description {
    font-size: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- TESTIMONIALS --- */
.testimonials-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 2.2rem;
    color: #f1c40f;
    margin-bottom: 30px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

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

.testimonial-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(241, 196, 15, 0.6);
}

.testimonial-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 15px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f39c12, #f1c40f);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #231e3f;
    font-size: 1rem;
    overflow: hidden;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.testimonial-role {
    font-size: 0.8rem;
    color: #f39c12;
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 20px;
    margin-top: auto;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

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

/* --- RESPONSIVE --- */

@media (max-width: 900px) {

    .feature-row,
    .feature-row.reverse {
        display: flex;
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .feature-content {
        align-items: center;
        order: 1;
    }

    .feature-visual {
        order: 2;
        width: 100%;
    }

    .grid-section {
        grid-template-columns: 1fr;
    }

    .discord-content-wrapper {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8rem;
    }

    .top-nav-bar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
        height: auto;
        padding: 15px;
    }

    .nav-center-title {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .nav-links-right {
        order: 3;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .burger-menu {
        order: 1;
    }

    .nav-center-title {
        order: 2;
    }
}

@media (max-width: 850px) {
    .discord-link span {
        display: none;
    }

    .discord-link {
        padding: 8px 10px;
    }

    .bmc-link span {
        display: none;
    }

    .bmc-link {
        padding: 8px 10px;
    }
}

@media (max-width: 600px) {
    .videos-grid-compact {
        grid-template-columns: 1fr;
    }

    .hero-section h2 {
        font-size: 2rem;
    }
}