html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scrollbar from 200vw */
    box-sizing: border-box; /* Ensure consistent box model */
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #18151f;
    color: #fff;
    transition: background 0.5s, color 0.5s, border-color 0.5s, box-shadow 0.5s;
}

header {
    background: linear-gradient(180deg, #2d232e 0%, #18151f 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: background 0.5s, color 0.5s, border-color 0.5s, box-shadow 0.5s;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 32px;
    max-width: 800px;
    margin: 32px auto 0 auto;
    gap: 18px;
    position: relative;
    background: rgba(20, 24, 40, 0.3); /* noch transparenterer Hintergrund */
    border-radius: 40px;                /* starke Abrundung */
    border: 2px solid rgba(58, 65, 87, 0.6);          /* transparenterer Rand */
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.1);
    transition: background 0.5s, color 0.5s, border-color 0.5s, box-shadow 0.5s;
    margin-bottom: 40px;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 32px 0 24px 0;
}

.logo {
    height: 220px;
    width: auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    background: #fff1;
    transition: transform 0.5s ease;
}

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

.header-logo {
    height: 50px;
    width: 50px;
    margin-right: 28px;
    vertical-align: middle;
    display: block;
    border-radius: 22%;
    object-fit: cover;
    background: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.nav-btn {
    display: flex;
    align-items: center;
    padding: 10px 25px;
    border-radius: 30px;
    background: #23202b;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    border: none;
    position: relative;
    overflow: hidden;
}

.nav-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease-out, height 0.6s ease-out;
}

.nav-btn:hover::after {
    width: 300px;
    height: 300px;
}

.nav-btn.highlight {
    background: #ffd43b;
    color: #23202b;
    box-shadow: 0 2px 8px #ffd43b44;
}

.nav-btn:hover {
    background: #ffd43b;
    color: #23202b;
}

@media (max-width: 700px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 10px;
    }
    .nav-links {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        margin-top: 10px;
    }
    .logo {
        height: 130px;
    }
    .logo-container {
        margin: 18px 0 12px 0;
    }
}

.info-section {
    max-width: 600px;
    margin: 0 auto;
    background: #23202b;
    border-radius: 16px;
    box-shadow: 0 2px 16px #0002;
    padding: 32px 24px;
    margin-top: 24px;
    color: #fff;
    transition: background 0.5s, color 0.5s, border-color 0.5s, box-shadow 0.5s;
    animation: fadeIn 0.6s ease-out;
}

.info-section h2 {
    color: #ffd43b;
    margin-top: 24px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.info-section h2::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(88, 101, 242, 0.4), transparent);
    animation: scanLine 3s ease-in-out infinite;
}

@keyframes scanLine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.info-section ul {
    padding-left: 22px;
    margin-bottom: 18px;
}

.info-section ul li {
    position: relative;
    padding-left: 25px;
    transition: all 0.3s ease;
}

.info-section ul li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #5865f2;
    animation: pulseArrow 2s ease-in-out infinite;
}

@keyframes pulseArrow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

.info-section ul li:hover {
    transform: translateX(10px);
    color: #5865f2;
}

.info-section ul li:hover::before {
    animation: bounceArrow 0.5s ease-in-out;
}

@keyframes bounceArrow {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

.discord-cta {
    display: inline-block;
    background: #ffd43b;
    color: #23202b;
    font-weight: bold;
    padding: 10px 28px;
    border-radius: 30px;
    text-decoration: none;
    margin: 10px 0 18px 0;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px #ffd43b44;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.discord-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.discord-cta:hover::before {
    left: 100%;
}

.discord-cta:hover {
    background: #fff;
    color: #23202b;
}

.owner-box {
    background: linear-gradient(rgba(24,21,31,0.7), rgba(24,21,31,0.7)), url('background.png') center/cover no-repeat;
    border-left: 4px solid #ffd43b;
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 18px;
    margin-top: 8px;
    text-align: center;
    position: relative;
    color: #fff;
    overflow: hidden;
    transition: background 0.5s, color 0.5s, border-color 0.5s, box-shadow 0.5s;
    animation: glowPulse 3s infinite, float 6s ease-in-out infinite;
}

.owner-box b, .owner-box span {
    display: block;
    margin: 0 auto;
}

.owner-box blockquote {
    margin: 10px 0 0 0;
    color: #ffd43b;
    font-style: italic;
    border-left: none;
    padding-left: 0;
}

.owner-pic {
    display: block;
    margin: 0 auto 10px auto;
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #ffd43b;
    box-shadow: 0 2px 8px #0004;
}

@media (max-width: 700px) {
    .info-section {
        padding: 16px 6px;
    }
}

#theme-toggle {
    margin-left: auto;
    background: #23202b;
    color: #ffd43b;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

#theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
}

#animated-stats {
    text-align: center;
    margin: 24px 0 0 0;
    font-size: 2.2rem;
    font-weight: bold;
    color: #ffd43b;
    letter-spacing: 2px;
    min-height: 40px;
    transition: color 0.3s;
    animation: fadeIn 0.8s ease-out;
}

.discord-widget {
    display: flex;
    justify-content: center;
    margin: 32px 0;
}
.custom-discord-widget {
    max-width: 900px;
    margin: 32px auto;
    background: rgba(24, 21, 31, 0.85);
    border-radius: 22px;
    box-shadow: 0 8px 40px 0 rgba(0,0,0,0.25), 0 1.5px 8px 0 rgba(0,0,0,0.10);
    backdrop-filter: blur(8px);
    padding: 0 0 18px 0;
    overflow: hidden;
}

.discord-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 32px 18px 32px;
    border-bottom: 1.5px solid rgba(255,255,255,0.07);
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.08);
    font-size: 1.18em;
    font-weight: 600;
    background: rgba(24,21,31,0.92);
}

.discord-content-row {
    display: flex;
    flex-direction: row;
    gap: 36px;
    flex-wrap: wrap;
}
.discord-channels {
    min-width: 220px;
    max-width: 270px;
    flex: 0 0 240px;
    overflow: hidden;
    padding: 16px 0 16px 0;
    border-right: 2px solid rgba(255,255,255,0.07);
    background: rgba(24,21,31,0.93);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.discord-messages {
    flex: 1 1 0;
    min-width: 420px;
    max-width: 900px;
    padding: 16px 0 16px 0;
    background: transparent;
    overflow-y: auto;
    max-height: 420px;
    scrollbar-width: thin;
    scrollbar-color: #23202b #18151f;
}
.discord-messages::-webkit-scrollbar {
    width: 8px;
    background: #18151f;
    border-radius: 8px;
}
.discord-messages::-webkit-scrollbar-thumb {
    background: #23202b;
    border-radius: 8px;
}
.channel {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px 8px 18px;
    border-radius: 8px;
    font-size: 1.04em;
    color: #b5b5b5;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    margin-bottom: 2px;
    font-weight: 500;
}
.channel.active {
    background: linear-gradient(90deg, #2563eb 60%, #1e293b 100%);
    color: #fff;
    box-shadow: 0 2px 8px #2563eb22;
}
.channel:not(.active):hover:not(.disabled) {
    background: rgba(37,99,235,0.10);
    color: #fff;
}
.channel.disabled {
    opacity: 0.45;
    pointer-events: none;
    filter: grayscale(0.7);
}
.channel-icon {
    font-size: 1.25em;
    margin-right: 8px;
    display: inline-block;
    width: 1.5em;
    text-align: center;
}
.discord-messages {
    margin: 20px 0 16px 0;
    border-radius: 0 0 18px 0;
    box-shadow: none;
    background: transparent;
}
.discord-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px 10px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 1rem;
}
.discord-message:last-child {
    border-bottom: none;
}
.msg-avatar img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    box-shadow: 0 1px 4px #0003;
    background: #23202b;
}
.msg-main {
    flex: 1;
    min-width: 0;
}
.msg-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}
.msg-user {
    font-weight: 600;
    color: #fff;
    font-size: 1.05em;
    margin-right: 2px;
    word-break: break-all;
}
.msg-role {
    font-size: 0.85em;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 8px;
    margin-right: 4px;
    margin-left: 2px;
    vertical-align: middle;
    letter-spacing: 0.5px;
}
.msg-role.creators {
    background: #e014a1;
    color: #fff;
}
.msg-role.var {
    background: #ffd43b;
    color: #23202b;
}
.msg-time {
    font-size: 0.82em;
    color: #b5b5b5;
    margin-left: 6px;
    font-weight: 400;
}
.msg-text {
    color: #e6e6e6;
    font-size: 1em;
    line-height: 1.5;
    word-break: break-word;
    white-space: pre-line;
}
.discord-join {
    text-align: center;
    margin-top: 18px;
}
.join-discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #5865f2, #4752c4);
    color: #fff;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
    font-size: 1.08em;
}
.join-discord-btn:hover {
    background: linear-gradient(135deg, #4752c4, #3c45a5);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(88, 101, 242, 0.4);
}
.discord-icon {
    font-size: 1.1rem;
}
body.light-mode .custom-discord-widget {
    background: rgba(255,255,255,0.97);
    box-shadow: 0 8px 40px 0 rgba(30,41,59,0.10), 0 1.5px 8px 0 rgba(30,41,59,0.08);
}
body.light-mode .discord-header {
    background: rgba(255,255,255,0.98);
    border-bottom: 1.5px solid #e2e8f0;
    color: #23202b;
}
body.light-mode .discord-channels {
    background: #f8fafc;
    border-right: 2px solid #e2e8f0;
}
body.light-mode .channel {
    color: #475569;
}
body.light-mode .channel.active {
    background: linear-gradient(90deg, #ffd43b 60%, #f8fafc 100%);
    color: #23202b;
    box-shadow: 0 2px 8px #ffd43b22;
}
body.light-mode .channel:not(.active):hover:not(.disabled) {
    background: rgba(255,212,59,0.10);
    color: #23202b;
}
body.light-mode .discord-messages {
    background: transparent;
    box-shadow: none;
}
body.light-mode .discord-message {
    border-bottom: 1px solid #e2e8f0;
}
body.light-mode .msg-user {
    color: #23202b;
}
body.light-mode .msg-role.creators {
    background: #e014a1;
    color: #fff;
}
body.light-mode .msg-role.var {
    background: #ffd43b;
    color: #23202b;
}
body.light-mode .msg-time {
    color: #7b7b7b;
}
body.light-mode .msg-text {
    color: #23202b;
}
@media (max-width: 1400px) {
    .custom-discord-widget {
        max-width: 99vw;
        margin: 12px 0;
    }
    .discord-messages {
        min-width: 0;
        max-width: 100vw;
    }
}
@media (max-width: 900px) {
    .discord-content-row {
        flex-direction: column;
        gap: 0;
        flex-wrap: nowrap;
    }
    .discord-channels, .discord-messages {
        max-width: 100%;
        min-width: 0;
        flex: unset;
        padding: 0;
    }
    .discord-header {
        padding: 16px 10px 12px 10px;
        font-size: 1em;
    }
    .discord-input-row {
        margin: 12px 6px 0 6px;
        padding: 8px 10px;
    }
}

.team-title {
    text-align: center;
    margin: 40px 0 24px 0;
    font-size: 2.8rem;
    color: #ffd43b;
    position: relative;
    padding-bottom: 20px;
    text-shadow: 0 2px 10px rgba(255, 212, 59, 0.3);
}

.team-title::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #ffd43b, transparent);
    border-radius: 2px;
}

.team-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto 32px auto;
    padding: 20px;
    position: relative;
}

.team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 212, 59, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.team-member {
    background: #23202b;
    border-radius: 18px;
    box-shadow: 0 2px 16px #0002;
    padding: 28px 24px 20px 24px;
    text-align: center;
    width: 220px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transition: background 0.5s, color 0.5s, border-color 0.5s, box-shadow 0.5s;
    animation: fadeIn 0.6s ease-out;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.team-pic {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 22%;
    border: 3px solid #ffd43b;
    margin-bottom: 16px;
    background: #18151f;
    transition: transform 0.5s ease, border-color 0.3s ease;
    position: relative;
}

/* Add dot for profile images with "zahl" in filename */
.team-pic[src*="zahl"]::after {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #ffd43b;
    border-radius: 50%;
    border: 3px solid #23202b;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

body.light-mode .team-pic[src*="zahl"]::after {
    background: #e6b800;
    border-color: #fff;
}

.team-member:hover .team-pic {
    transform: scale(1.05) rotate(2deg);
}

.team-member h2 {
    margin: 0 0 8px 0;
    font-size: 1.3rem;
    color: #ffd43b;
}

.team-role {
    color: #fff;
    font-size: 1.05rem;
    margin: 0;
    opacity: 0.85;
}

body.light-mode .team-title {
    color: #d97706;
    text-shadow: 0 2px 10px rgba(217, 119, 6, 0.15);
}
body.light-mode .team-title::before {
    background: linear-gradient(90deg, transparent, #e6b800, transparent);
}
body.light-mode .team-section::before {
    background: radial-gradient(circle at center, rgba(230, 184, 0, 0.1) 0%, transparent 70%);
}
body.light-mode .team-section + div .nav-btn {
    background: linear-gradient(45deg, #fff, #f7f7fa);
    border-color: #e6b800;
}
body.light-mode .team-section + div .nav-btn:hover {
    box-shadow: 0 5px 15px rgba(230, 184, 0, 0.2);
}
body.light-mode .team-member {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: #1e293b;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 16px rgba(148, 163, 184, 0.1);
}
body.light-mode .team-pic {
    border: 3px solid #d97706;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.2);
}
body.light-mode .team-role {
    color: #475569;
}

body, header, .navbar, .info-section, .owner-box, .team-member, .team-title, .team-pic, .nav-btn {
    transition: background 0.5s, color 0.5s, border-color 0.5s, box-shadow 0.5s;
}

#theme-animation {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}
#theme-animation.active {
    opacity: 1;
}
.theme-anim-svg {
    width: 200px;
    height: 200px;
    filter: drop-shadow(0 0 60px #ffd43b88) drop-shadow(0 0 20px #fff8);
    transform-style: preserve-3d;
    animation: totem-pop-spin-3d 0.5s cubic-bezier(.5,2,.5,1) forwards, totem-pulse 0.5s 0.5s cubic-bezier(.5,2,.5,1) 2 alternate, fade-out-spin-3d 1s 1.5s linear forwards;
}
.theme-anim-svg.moon {
    filter: drop-shadow(0 0 60px #6ec6ff88) drop-shadow(0 0 20px #fff8);
}
@keyframes totem-pop-spin-3d {
    0% { transform: perspective(600px) scale(0.1) rotateY(0deg); opacity: 0; }
    60% { transform: perspective(600px) scale(1.2) rotateY(90deg); opacity: 1; }
    100% { transform: perspective(600px) scale(1) rotateY(0deg); opacity: 1; }
}
@keyframes totem-pulse {
    0% { transform: perspective(600px) scale(1) rotateY(0deg); }
    100% { transform: perspective(600px) scale(1.12) rotateY(0deg); }
}
@keyframes fade-out-spin-3d {
    0% { opacity: 1; transform: perspective(600px) scale(1) rotateY(0deg); }
    100% { opacity: 0; transform: perspective(600px) scale(0.5) rotateY(120deg) translateY(80px); }
}
.totem-particles {
    position: absolute;
    left: 50%;
    top: 50%;
    pointer-events: none;
    z-index: 10000;
}
.totem-particle {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    opacity: 0.85;
    background: var(--color, #ffd43b);
    box-shadow: 0 0 16px 4px var(--color-glow, #ffd43b88);
    animation: particle-fly 1.2s cubic-bezier(.5,2,.5,1) forwards;
}
.totem-particle.moon {
    background: #6ec6ff;
    box-shadow: 0 0 16px 4px #6ec6ff88;
}
@keyframes particle-fly {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
    60% { opacity: 1; }
    100% {
        transform: translate(var(--tx, 0), var(--ty, 0)) scale(1.2) rotate(var(--rot, 0deg));
        opacity: 0;
    }
}

.faq-section {
    max-width: 600px;
    margin: 40px auto 32px auto;
    background: #23202b;
    border-radius: 16px;
    box-shadow: 0 2px 16px #0002;
    padding: 32px 24px;
    color: #fff;
    animation: fadeIn 0.6s ease-out;
}
.faq-section h2 {
    color: #ffd43b;
    margin-top: 0;
    margin-bottom: 18px;
    text-align: center;
}
.faq-item {
    margin-bottom: 18px;
    border-radius: 8px;
    background: #18151f;
    box-shadow: 0 1px 6px #0001;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.6s ease-out;
}
.faq-item:hover {
    transform: translateX(5px);
}
.faq-item summary {
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 14px 18px;
    outline: none;
    color: #ffd43b;
    background: none;
    border: none;
    transition: color 0.3s ease, background-color 0.3s ease;
}
.faq-item[open] {
    animation: scaleIn 0.3s ease-out;
}
.faq-item p {
    margin: 0;
    padding: 0 18px 14px 18px;
    color: #fff;
    font-size: 1rem;
    opacity: 0.95;
}
body.light-mode .faq-section {
    background: #fff;
    color: #23202b;
}
body.light-mode .faq-section h2 {
    color: #e6b800;
}
body.light-mode .faq-item {
    background: #f7f7fa;
    box-shadow: 0 1px 6px #e6b80022;
}
body.light-mode .faq-item summary {
    color: #e6b800;
}
body.light-mode .faq-item[open] summary {
    color: #23202b;
}
body.light-mode .faq-item p {
    color: #23202b;
}

body.no-theme-anim #theme-animation {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: none !important;
}

.faq-upvote {
    display: inline-flex;
    align-items: center;
    background: #23202b;
    color: #ffd43b;
    border: none;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 1.1rem;
    font-weight: bold;
    margin: 10px 0 0 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 4px #0002;
    gap: 8px;
    pointer-events: auto;
    cursor: pointer;
    animation: fadeIn 0.6s ease-out;
}
.faq-upvote:hover {
    transform: scale(1.05);
}
.faq-upvote:active {
    transform: scale(0.95);
}
.faq-upvote.voted {
    background: #888 !important;
    color: #fff !important;
    opacity: 0.7;
    pointer-events: auto !important;
    cursor: pointer !important;
}
.faq-upvote .upvote-count {
    font-size: 1rem;
    margin-left: 4px;
}
.faq-missing {
    margin-top: 32px;
    padding: 18px 16px;
    background: #18151f;
    border-radius: 10px;
    text-align: center;
    color: #ffd43b;
    font-size: 1.1rem;
    box-shadow: 0 1px 8px #0001;
}
.faq-missing a {
    color: #ffd43b;
    text-decoration: underline;
    font-weight: bold;
}
body.light-mode .faq-upvote {
    background: #f7f7fa;
    color: #e6b800;
}
body.light-mode .faq-upvote:hover {
    background: #e6b800;
    color: #fff;
}
body.light-mode .faq-missing {
    background: #fffbe6;
    color: #e6b800;
}
body.light-mode .faq-missing a {
    color: #e6b800;
}

.about-us-section {
    max-width: 1000px;
    margin: 40px auto 60px auto;
    padding: 0 20px;
    color: #fff;
}

.about-us-title {
    text-align: center;
    margin: 0 0 40px 0;
    font-size: 2.8rem;
    color: #e014a1;
    position: relative;
    animation: slideIn 0.6s ease-out;
}
.about-us-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 6px;
    background: #e014a1;
    margin: 10px auto 0 auto;
    border-radius: 3px;
    animation: slideIn 0.6s ease-out;
}

.about-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.about-us-grid-item {
    background: #18151f;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    padding: 28px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.6s ease-out;
}

.about-us-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.about-us-grid-item h2 {
    color: #e014a1;
    margin-top: 0;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* Specific H2 colors for the grid items */
.about-us-grid-item.top-right h2,
.about-us-grid-item.bottom-right h2 {
    color: #6ec6ff;
}

.about-us-grid-item p, .about-us-grid-item li {
    font-size: 1rem;
    line-height: 1.6;
    color: #fff;
}

.about-us-grid-item ul {
    padding-left: 20px;
    color: #fff;
}

#animated-stats {
    font-size: 2.5rem;
    font-weight: bold;
    color: #6ec6ff;
    margin-bottom: 15px;
    text-align: left;
}

#animated-stats span {
    display: block;
    font-size: 1rem;
    font-weight: normal;
    color: #ccc;
}

#reviews-carousel {
    margin: 40px 0;
    padding: 20px;
    background: #23202b;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

#reviews-carousel p {
    background: #18151f;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-style: italic;
    line-height: 1.6;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    animation: fadeIn 0.6s ease-out;
}

#reviews-carousel p:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

#reviews-carousel p::before {
    content: '"';
    font-size: 4rem;
    color: #e014a1;
    opacity: 0.2;
    position: absolute;
    top: -10px;
    left: 10px;
    font-family: Georgia, serif;
}

#reviews-carousel .review-author {
    display: block;
    margin-top: 12px;
    font-weight: bold;
    color: #e014a1;
    font-style: normal;
}

.about-us-grid .owner-box {
    background: none;
    border-left: none;
    padding: 0;
    text-align: left;
    box-shadow: none;
}
.about-us-grid .owner-box b,
.about-us-grid .owner-box span {
     display: inline;
     margin: 0;
     color: #fff;
}

.about-us-grid .owner-box blockquote {
    margin: 10px 0;
    color: #fff;
    font-style: normal;
    border-left: 4px solid #e014a1;
    padding-left: 10px;
}

/* Specific styles for the layout */
.about-us-grid .top-left, .about-us-grid .bottom-right {
    grid-column: span 1;
}
.about-us-grid .top-right, .about-us-grid .bottom-left {
     grid-column: span 1;
}

@media (min-width: 768px) {
     .about-us-grid {
         grid-template-columns: 1.5fr 1fr;
         grid-template-areas:
             'top-left top-right'
             'perks reviews';
     }
     .about-us-grid-item.bottom-left {
         grid-area: perks;
     }
     .about-us-grid-item.bottom-right {
         grid-area: reviews;
     }
     .about-us-grid-item.top-left {
         grid-area: top-left;
     }
     .about-us-grid-item.top-right {
         grid-area: top-right;
     }
}

body.light-mode .about-us-section h2 {
    color: #e014a1;
}
body.light-mode .about-us-grid-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 16px rgba(148, 163, 184, 0.1);
    border-radius: 16px;
}
body.light-mode .about-us-title {
     color: #e014a1;
}
body.light-mode .about-us-grid-item p, body.light-mode .about-us-grid-item li {
    color: #000;
}
body.light-mode #animated-stats {
    color: #6ec6ff;
}
body.light-mode #animated-stats span {
    /* Removed as the span is no longer used in HTML */
}
body.light-mode #reviews-carousel {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
body.light-mode #reviews-carousel p {
    background: #f7f7fa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
body.light-mode #reviews-carousel p:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
body.light-mode #reviews-carousel p::before {
    color: #e014a1;
}
body.light-mode #reviews-carousel .review-author {
    color: #e014a1;
}
body.light-mode .about-us-grid .owner-box blockquote {
    border-left-color: #e014a1;
    color: #000;
}

/* Global animation keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 5px rgba(255, 212, 59, 0.2); }
    50% { box-shadow: 0 0 20px rgba(255, 212, 59, 0.4); }
    100% { box-shadow: 0 0 5px rgba(255, 212, 59, 0.2); }
}

/* Apply animations to elements */
.info-section, .team-member, .faq-section, .about-us-grid-item {
    animation: fadeIn 0.6s ease-out;
}

.nav-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease-out, height 0.6s ease-out;
}

.nav-btn:hover::after {
    width: 300px;
    height: 300px;
}

.team-member {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.team-pic {
    transition: transform 0.5s ease, border-color 0.3s ease;
}

.team-member:hover .team-pic {
    transform: scale(1.05) rotate(2deg);
}

.faq-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateX(5px);
}

.faq-item summary {
    transition: color 0.3s ease, background-color 0.3s ease;
}

.faq-item[open] {
    animation: scaleIn 0.3s ease-out;
}

.discord-cta {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.discord-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.discord-cta:hover::before {
    left: 100%;
}

.owner-box {
    animation: glowPulse 3s infinite, float 6s ease-in-out infinite;
}

.about-us-title::after {
    animation: slideIn 0.6s ease-out;
}

#animated-stats {
    animation: fadeIn 0.8s ease-out;
}

.about-us-grid-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-us-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Enhanced reviews carousel animations */
#reviews-carousel p {
    animation: fadeIn 0.6s ease-out;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#reviews-carousel p:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img[loading] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Enhanced theme toggle animation */
#theme-toggle {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
}

/* Logo animation */
.logo:hover {
    transform: scale(1.05);
}

/* FAQ upvote button animation */
.faq-upvote {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-upvote:hover {
    transform: scale(1.05);
}

.faq-upvote:active {
    transform: scale(0.95);
}

/* Team section title animation */
.team-title:hover {
    transform: scale(1.05);
}

/* Light mode specific animations */
body.light-mode .team-title::before {
    background: linear-gradient(90deg, transparent, #e6b800, transparent);
}

body.light-mode .team-section::before {
    background: radial-gradient(circle at center, rgba(230, 184, 0, 0.1) 0%, transparent 70%);
}

body.light-mode .team-section + div .nav-btn {
    background: linear-gradient(45deg, #fff, #f7f7fa);
    border-color: #e6b800;
}

body.light-mode .team-section + div .nav-btn:hover {
    box-shadow: 0 5px 15px rgba(230, 184, 0, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .team-title {
        font-size: 2.2rem;
        margin: 30px 0 20px 0;
    }
    
    .team-section {
        gap: 20px;
        padding: 15px;
    }
    
    .team-section + div .nav-btn {
        padding: 10px 24px;
        font-size: 1.1rem;
    }
}

/* Enhanced Back Button */
.team-section + div .nav-btn {
    background: linear-gradient(45deg, #23202b, #2d232e);
    padding: 12px 32px;
    font-size: 1.2rem;
    border: 2px solid #ffd43b;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.team-section + div .nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 212, 59, 0.2),
        transparent
    );
    transition: 0.5s;
}

.team-section + div .nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 212, 59, 0.3);
}

.team-section + div .nav-btn:hover::before {
    left: 100%;
}

/* Social Page Styles */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.social-card {
    background: #23202b;
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #ffd43b;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.social-card:hover::before {
    transform: scaleX(1);
}

.social-card h3 {
    color: #ffd43b;
    margin: 0 0 10px 0;
    font-size: 1.4rem;
}

.social-card p {
    margin: 0 0 15px 0;
    opacity: 0.9;
}

.social-stats {
    display: block;
    font-weight: bold;
    color: #ffd43b;
    font-size: 1.1rem;
}

/* Platform-specific colors */
.social-card.discord::before { background: #5865F2; }
.social-card.youtube::before { background: #FF0000; }
.social-card.twitter::before { background: #1DA1F2; }
.social-card.instagram::before { background: #E1306C; }

.social-card.discord:hover { box-shadow: 0 8px 25px rgba(88, 101, 242, 0.2); }
.social-card.youtube:hover { box-shadow: 0 8px 25px rgba(255, 0, 0, 0.2); }
.social-card.twitter:hover { box-shadow: 0 8px 25px rgba(29, 161, 242, 0.2); }
.social-card.instagram:hover { box-shadow: 0 8px 25px rgba(225, 48, 108, 0.2); }

/* Light mode adjustments */
body.light-mode .social-card {
    background: #fff;
    color: #23202b;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

body.light-mode .social-card h3 {
    color: #e6b800;
}

body.light-mode .social-stats {
    color: #e6b800;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .social-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .social-card {
        padding: 20px;
    }
}

.hero-area {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    box-sizing: border-box;
}

.thumbnail-background {
    display: flex;
    white-space: nowrap;
    min-width: 200%;
    align-items: center;
    justify-content: flex-start;
    animation: scroll-left 18s linear infinite;
    position: relative;
    background: rgba(0, 0, 0, 0.1);
    gap: 0;
    padding: 10px;
    border-radius: 10px;
}

.thumbnail-background img {
    height: 200px;
    width: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 16px 0 0;
    padding: 0;
    display: block;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.thumbnail-background img:last-child {
    margin-right: 0;
}

.hero-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1; /* Ensure text is above background */
    text-align: center;
    color: #fff;
    width: 90%;
    max-width: 800px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

main {
    position: relative; /* Keep relative for other sections */
    overflow: hidden;
    /* Remove height/min-height as hero-area now handles this */
    margin: 0; /* Ensure no default margin */
    padding: 0; /* Ensure no default padding */
    box-sizing: border-box; /* Ensure consistent box model */
}

body.light-mode .hero-area {
    background: #f7f7fa; /* Light mode background for hero area */
}

body.light-mode .thumbnail-background::after {
    background: rgba(255, 255, 255, 0.7); /* Adjusted for light mode */
}

body.light-mode .thumbnail-background {
    background: rgba(255, 255, 255, 0.1);
}

body.light-mode .thumbnail-background img {
    filter: brightness(0.8) grayscale(10%); /* More colorful for light mode */
    opacity: 0.5;
}

/* Responsive adjustments for thumbnail grid */
@media (max-width: 1200px) {
    .thumbnail-background {
        grid-template-columns: repeat(12, 1fr);
        grid-template-rows: repeat(2, 16vh);
    }
}

@media (max-width: 900px) {
    .thumbnail-background {
        grid-template-columns: repeat(8, 1fr);
        grid-template-rows: repeat(2, 14vh);
    }
}

@media (max-width: 768px) {
    .thumbnail-background {
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: repeat(2, 12vh);
    }
}

@media (max-width: 500px) {
    .thumbnail-background {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 10vh);
    }
}

.hero-logo {
    width: 250px; /* Adjust as needed */
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.4));
}

.hero-main-text {
    font-size: 4.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
    line-height: 1.1;
}

.hero-sub-text {
    font-size: 2.2rem;
    font-style: italic;
    margin-top: 0;
    margin-bottom: 40px;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.join-team-btn {
    background: #e014a1;
    color: #fff;
    font-size: 1.3rem;
    font-weight: bold;
    padding: 16px 40px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(224, 20, 161, 0.3);
    text-decoration: none;
}
a.footer-social-btn.tiktok {
    background: linear-gradient(45deg,#000000,#25F4EE,#FE2C55);
    background-size: 200% 200%;
    transition: all 0.3s ease;
    color: white;
}

.join-team-btn:hover {
    background: #ff33bb;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(224, 20, 161, 0.5);
}

@media (max-width: 768px) {
    .hero-main-text {
        font-size: 3rem;
    }
    .hero-sub-text {
        font-size: 1.5rem;
    }
    .join-team-btn {
        padding: 12px 30px;
        font-size: 1.1rem;
    }
    .hero-logo {
        width: 180px;
    }
}

body.light-mode .hero-main-text,
body.light-mode .hero-sub-text {
    color: #23202b;
    text-shadow: none;
}

body.light-mode .hero-text-overlay {
    background: rgba(255, 255, 255, 0.2);
}

body.light-mode .join-team-btn {
    background: #e014a1;
    color: #fff;
}

body.light-mode .join-team-btn:hover {
    background: #ff33bb;
    box-shadow: 0 8px 30px rgba(224, 20, 161, 0.3);
}

@keyframes scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.thumbnails-multiline {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 0;
    margin-bottom: 0;
    height: calc(5 * 200px + 4 * 6px);
    overflow: hidden;
}
.thumbnail-row {
    width: 100vw;
    overflow: hidden;
    position: relative;
    margin: 0;
}
.thumbnail-row:nth-child(1) .thumbnail-background {
    animation-duration: 18s;
}
.thumbnail-row:nth-child(2) .thumbnail-background {
    animation-duration: 20s;
}
.thumbnail-row:nth-child(3) .thumbnail-background {
    animation-duration: 16s;
}
.thumbnail-row:nth-child(4) .thumbnail-background {
    animation-duration: 22s;
}
.thumbnail-row:nth-child(5) .thumbnail-background {
    animation-duration: 14s;
}

.hamburger-fixed {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 1001;
    background: rgba(20, 24, 40, 0.8);
    border: 2px solid rgba(58, 65, 87, 0.6);
    font-size: 2.2rem;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hamburger-fixed:hover {
    background: rgba(20, 24, 40, 0.9);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

body.light-mode .hamburger-fixed {
    background: rgba(255, 255, 255, 0.8);
    color: #23202b;
    border-color: rgba(230, 184, 0, 0.6);
}

body.light-mode .hamburger-fixed:hover {
    background: rgba(255, 255, 255, 0.9);
}

.discord-messages {
  margin: 20px 0 16px 0;
  padding: 0 2px;
  max-height: 340px;
  overflow-y: auto;
  background: rgba(24,21,31,0.7);
  border-radius: 12px;
  box-shadow: 0 2px 12px #0002;
}
.discord-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 1rem;
}
.discord-message:last-child {
  border-bottom: none;
}
.msg-avatar img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: 0 1px 4px #0003;
  background: #23202b;
}
.msg-main {
  flex: 1;
  min-width: 0;
}
.msg-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.msg-user {
  font-weight: 600;
  color: #fff;
  font-size: 1.05em;
  margin-right: 2px;
  word-break: break-all;
}
.msg-role {
  font-size: 0.85em;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 8px;
  margin-right: 4px;
  margin-left: 2px;
  vertical-align: middle;
  letter-spacing: 0.5px;
}
.msg-role.creators {
  background: #e014a1;
  color: #fff;
}
.msg-role.var {
  background: #5865f2;
  color: #fff;
}
.msg-time {
  font-size: 0.82em;
  color: #b5b5b5;
  margin-left: 6px;
  font-weight: 400;
}
.msg-text {
  color: #e6e6e6;
  font-size: 1em;
  line-height: 1.5;
  word-break: break-word;
  white-space: pre-line;
}
body.light-mode .discord-messages {
  background: #f8fafc;
  box-shadow: 0 2px 12px #0001;
}
body.light-mode .discord-message {
  border-bottom: 1px solid #e2e8f0;
}
body.light-mode .msg-user {
  color: #23202b;
}
body.light-mode .msg-role.creators {
  background: #e014a1;
  color: #fff;
}
body.light-mode .msg-role.var {
  background: #ffd43b;
  color: #23202b;
}
body.light-mode .msg-time {
  color: #7b7b7b;
}
body.light-mode .msg-text {
  color: #23202b;
}

.discord-input-row {
  display: flex;
  align-items: center;
  background: rgba(30, 31, 34, 0.95);
  border-radius: 8px;
  padding: 0 16px;
  margin: 16px 12px 12px 12px;
  min-height: 48px;
  box-shadow: 0 1px 0 0 rgba(0,0,0,0.2);
  border: 1px solid rgba(79,84,92,0.3);
}
.discord-input-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 12px;
}
.discord-input-field {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 16px;
  padding: 12px 0;
  outline: none;
}
.discord-input-icon {
  margin-left: 12px;
  font-size: 22px;
  color: #b9bbbe;
  cursor: pointer;
  transition: color 0.2s;
  user-select: none;
  display: flex;
  align-items: center;
}
.discord-input-icon:hover {
  color: #fff;
}
.discord-input-send {
  background: #5865f2;
  border: none;
  border-radius: 6px;
  margin-left: 12px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #fff;
  transition: background 0.2s;
}
.discord-input-send:hover {
  background: #4752c4;
}

/* Thumbnail Hover Animation */
.thumbnails-multiline img, .thumbnail-background img {
  transition: transform 0.22s cubic-bezier(.4,1.7,.7,1), box-shadow 0.22s cubic-bezier(.4,1.7,.7,1);
}
.thumbnails-multiline img:hover, .thumbnail-background img:hover {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 8px 32px #23272a55, 0 2px 8px #5865f2aa;
  z-index: 2;
}

/* Flame Box Styling */
.flame-box {
    margin-top: 20px;
    background: #23202b;
    border: 2px solid #ffd43b;
    box-shadow: 0 8px 32px rgba(88, 101, 242, 0.3);
    animation: flameGlow 3s ease-in-out infinite alternate, float 6s ease-in-out infinite;
}

.flame-box:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 40px rgba(88, 101, 242, 0.5);
}

@keyframes flameGlow {
    0% { box-shadow: 0 8px 32px rgba(88, 101, 242, 0.3); }
    100% { box-shadow: 0 8px 32px rgba(88, 101, 242, 0.6), 0 0 20px rgba(88, 101, 242, 0.4); }
}

/* Floating animation for owner boxes */
.owner-box {
    animation: float 6s ease-in-out infinite;
}

.flame-box {
    animation: float 6s ease-in-out infinite, flameGlow 3s ease-in-out infinite alternate;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Global animation keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 5px rgba(255, 212, 59, 0.2); }
    50% { box-shadow: 0 0 20px rgba(255, 212, 59, 0.4); }
    100% { box-shadow: 0 0 5px rgba(255, 212, 59, 0.2); }
}

/* Apply animations to elements */
.info-section, .team-member, .faq-section, .about-us-grid-item {
    animation: fadeIn 0.6s ease-out;
}

.nav-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease-out, height 0.6s ease-out;
}

.nav-btn:hover::after {
    width: 300px;
    height: 300px;
}

.team-member {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.team-pic {
    transition: transform 0.5s ease, border-color 0.3s ease;
}

.team-member:hover .team-pic {
    transform: scale(1.05) rotate(2deg);
}

.faq-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateX(5px);
}

.faq-item summary {
    transition: color 0.3s ease, background-color 0.3s ease;
}

.faq-item[open] {
    animation: scaleIn 0.3s ease-out;
}

.discord-cta {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.discord-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.discord-cta:hover::before {
    left: 100%;
}

.owner-box {
    animation: glowPulse 3s infinite, float 6s ease-in-out infinite;
}

.about-us-title::after {
    animation: slideIn 0.6s ease-out;
}

#animated-stats {
    animation: fadeIn 0.8s ease-out;
}

.about-us-grid-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-us-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Enhanced reviews carousel animations */
#reviews-carousel p {
    animation: fadeIn 0.6s ease-out;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#reviews-carousel p:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img[loading] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Enhanced theme toggle animation */
#theme-toggle {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
}

/* Logo animation */
.logo:hover {
    transform: scale(1.05);
}

/* FAQ upvote button animation */
.faq-upvote {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-upvote:hover {
    transform: scale(1.05);
}

.faq-upvote:active {
    transform: scale(0.95);
}

/* Team section title animation */
.team-title:hover {
    transform: scale(1.05);
}

/* Light mode specific animations */
body.light-mode .team-title::before {
    background: linear-gradient(90deg, transparent, #e6b800, transparent);
}

body.light-mode .team-section::before {
    background: radial-gradient(circle at center, rgba(230, 184, 0, 0.1) 0%, transparent 70%);
}

body.light-mode .team-section + div .nav-btn {
    background: linear-gradient(45deg, #fff, #f7f7fa);
    border-color: #e6b800;
}

body.light-mode .team-section + div .nav-btn:hover {
    box-shadow: 0 5px 15px rgba(230, 184, 0, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .team-title {
        font-size: 2.2rem;
        margin: 30px 0 20px 0;
    }
    
    .team-section {
        gap: 20px;
        padding: 15px;
    }
    
    .team-section + div .nav-btn {
        padding: 10px 24px;
        font-size: 1.1rem;
    }
}

/* Enhanced Back Button */
.team-section + div .nav-btn {
    background: linear-gradient(45deg, #23202b, #2d232e);
    padding: 12px 32px;
    font-size: 1.2rem;
    border: 2px solid #ffd43b;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.team-section + div .nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 212, 59, 0.2),
        transparent
    );
    transition: 0.5s;
}

.team-section + div .nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 212, 59, 0.3);
}

.team-section + div .nav-btn:hover::before {
    left: 100%;
}

/* Social Page Styles */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.social-card {
    background: #23202b;
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #ffd43b;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.social-card:hover::before {
    transform: scaleX(1);
}

.social-card h3 {
    color: #ffd43b;
    margin: 0 0 10px 0;
    font-size: 1.4rem;
}

.social-card p {
    margin: 0 0 15px 0;
    opacity: 0.9;
}

.social-stats {
    display: block;
    font-weight: bold;
    color: #ffd43b;
    font-size: 1.1rem;
}

/* Platform-specific colors */
.social-card.discord::before { background: #5865F2; }
.social-card.youtube::before { background: #FF0000; }
.social-card.twitter::before { background: #1DA1F2; }
.social-card.instagram::before { background: #E1306C; }

.social-card.discord:hover { box-shadow: 0 8px 25px rgba(88, 101, 242, 0.2); }
.social-card.youtube:hover { box-shadow: 0 8px 25px rgba(255, 0, 0, 0.2); }
.social-card.twitter:hover { box-shadow: 0 8px 25px rgba(29, 161, 242, 0.2); }
.social-card.instagram:hover { box-shadow: 0 8px 25px rgba(225, 48, 108, 0.2); }

/* Light mode adjustments */
body.light-mode .social-card {
    background: #fff;
    color: #23202b;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

body.light-mode .social-card h3 {
    color: #e6b800;
}

body.light-mode .social-stats {
    color: #e6b800;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .social-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .social-card {
        padding: 20px;
    }
}

.hero-area {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    box-sizing: border-box;
}

.thumbnail-background {
    display: flex;
    white-space: nowrap;
    min-width: 200%;
    align-items: center;
    justify-content: flex-start;
    animation: scroll-left 18s linear infinite;
    position: relative;
    background: rgba(0, 0, 0, 0.1);
    gap: 0;
    padding: 10px;
    border-radius: 10px;
}

.thumbnail-background img {
    height: 200px;
    width: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 16px 0 0;
    padding: 0;
    display: block;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.thumbnail-background img:last-child {
    margin-right: 0;
}

.hero-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1; /* Ensure text is above background */
    text-align: center;
    color: #fff;
    width: 90%;
    max-width: 800px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

main {
    position: relative; /* Keep relative for other sections */
    overflow: hidden;
    /* Remove height/min-height as hero-area now handles this */
    margin: 0; /* Ensure no default margin */
    padding: 0; /* Ensure no default padding */
    box-sizing: border-box; /* Ensure consistent box model */
}

body.light-mode .hero-area {
    background: #f7f7fa; /* Light mode background for hero area */
}

body.light-mode .thumbnail-background::after {
    background: rgba(255, 255, 255, 0.7); /* Adjusted for light mode */
}

body.light-mode .thumbnail-background {
    background: rgba(255, 255, 255, 0.1);
}

body.light-mode .thumbnail-background img {
    filter: brightness(0.8) grayscale(10%); /* More colorful for light mode */
    opacity: 0.5;
}

/* Responsive adjustments for thumbnail grid */
@media (max-width: 1200px) {
    .thumbnail-background {
        grid-template-columns: repeat(12, 1fr);
        grid-template-rows: repeat(2, 16vh);
    }
}

@media (max-width: 900px) {
    .thumbnail-background {
        grid-template-columns: repeat(8, 1fr);
        grid-template-rows: repeat(2, 14vh);
    }
}

@media (max-width: 768px) {
    .thumbnail-background {
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: repeat(2, 12vh);
    }
}

@media (max-width: 500px) {
    .thumbnail-background {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 10vh);
    }
}

.hero-logo {
    width: 250px; /* Adjust as needed */
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.4));
}

.hero-main-text {
    font-size: 4.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
    line-height: 1.1;
}

.hero-sub-text {
    font-size: 2.2rem;
    font-style: italic;
    margin-top: 0;
    margin-bottom: 40px;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.join-team-btn {
    background: #e014a1;
    color: #fff;
    font-size: 1.3rem;
    font-weight: bold;
    padding: 16px 40px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(224, 20, 161, 0.3);
}

.join-team-btn:hover {
    background: #ff33bb;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(224, 20, 161, 0.5);
}

@media (max-width: 768px) {
    .hero-main-text {
        font-size: 3rem;
    }
    .hero-sub-text {
        font-size: 1.5rem;
    }
    .join-team-btn {
        padding: 12px 30px;
        font-size: 1.1rem;
    }
    .hero-logo {
        width: 180px;
    }
}

body.light-mode .hero-main-text,
body.light-mode .hero-sub-text {
    color: #23202b;
    text-shadow: none;
}

body.light-mode .hero-text-overlay {
    background: rgba(255, 255, 255, 0.2);
}

body.light-mode .join-team-btn {
    background: #e014a1;
    color: #fff;
}

body.light-mode .join-team-btn:hover {
    background: #ff33bb;
    box-shadow: 0 8px 30px rgba(224, 20, 161, 0.3);
}

@keyframes scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.thumbnails-multiline {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 0;
    margin-bottom: 0;
    height: calc(5 * 200px + 4 * 6px);
    overflow: hidden;
}
.thumbnail-row {
    width: 100vw;
    overflow: hidden;
    position: relative;
    margin: 0;
}
.thumbnail-row:nth-child(1) .thumbnail-background {
    animation-duration: 18s;
}
.thumbnail-row:nth-child(2) .thumbnail-background {
    animation-duration: 20s;
}
.thumbnail-row:nth-child(3) .thumbnail-background {
    animation-duration: 16s;
}
.thumbnail-row:nth-child(4) .thumbnail-background {
    animation-duration: 22s;
}
.thumbnail-row:nth-child(5) .thumbnail-background {
    animation-duration: 14s;
}

.hamburger-fixed {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 1001;
    background: rgba(20, 24, 40, 0.8);
    border: 2px solid rgba(58, 65, 87, 0.6);
    font-size: 2.2rem;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hamburger-fixed:hover {
    background: rgba(20, 24, 40, 0.9);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

body.light-mode .hamburger-fixed {
    background: rgba(255, 255, 255, 0.8);
    color: #23202b;
    border-color: rgba(230, 184, 0, 0.6);
}

body.light-mode .hamburger-fixed:hover {
    background: rgba(255, 255, 255, 0.9);
}

.discord-messages {
  margin: 20px 0 16px 0;
  padding: 0 2px;
  max-height: 340px;
  overflow-y: auto;
  background: rgba(24,21,31,0.7);
  border-radius: 12px;
  box-shadow: 0 2px 12px #0002;
}
.discord-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 1rem;
}
.discord-message:last-child {
  border-bottom: none;
}
.msg-avatar img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: 0 1px 4px #0003;
  background: #23202b;
}
.msg-main {
  flex: 1;
  min-width: 0;
}
.msg-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.msg-user {
  font-weight: 600;
  color: #fff;
  font-size: 1.05em;
  margin-right: 2px;
  word-break: break-all;
}
.msg-role {
  font-size: 0.85em;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 8px;
  margin-right: 4px;
  margin-left: 2px;
  vertical-align: middle;
  letter-spacing: 0.5px;
}
.msg-role.creators {
  background: #e014a1;
  color: #fff;
}
.msg-role.var {
  background: #5865f2;
  color: #fff;
}
.msg-time {
  font-size: 0.82em;
  color: #b5b5b5;
  margin-left: 6px;
  font-weight: 400;
}
.msg-text {
  color: #e6e6e6;
  font-size: 1em;
  line-height: 1.5;
  word-break: break-word;
  white-space: pre-line;
}
body.light-mode .discord-messages {
  background: #f8fafc;
  box-shadow: 0 2px 12px #0001;
}
body.light-mode .discord-message {
  border-bottom: 1px solid #e2e8f0;
}
body.light-mode .msg-user {
  color: #23202b;
}
body.light-mode .msg-role.creators {
  background: #e014a1;
  color: #fff;
}
body.light-mode .msg-role.var {
  background: #ffd43b;
  color: #23202b;
}
body.light-mode .msg-time {
  color: #7b7b7b;
}
body.light-mode .msg-text {
  color: #23202b;
}

.discord-input-row {
  display: flex;
  align-items: center;
  background: rgba(30, 31, 34, 0.95);
  border-radius: 8px;
  padding: 0 16px;
  margin: 16px 12px 12px 12px;
  min-height: 48px;
  box-shadow: 0 1px 0 0 rgba(0,0,0,0.2);
  border: 1px solid rgba(79,84,92,0.3);
}
.discord-input-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 12px;
}
.discord-input-field {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 16px;
  padding: 12px 0;
  outline: none;
}
.discord-input-icon {
  margin-left: 12px;
  font-size: 22px;
  color: #b9bbbe;
  cursor: pointer;
  transition: color 0.2s;
  user-select: none;
  display: flex;
  align-items: center;
}
.discord-input-icon:hover {
  color: #fff;
}
.discord-input-send {
  background: #5865f2;
  border: none;
  border-radius: 6px;
  margin-left: 12px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #fff;
  transition: background 0.2s;
}
.discord-input-send:hover {
  background: #4752c4;
}

/* Thumbnail Hover Animation */
.thumbnails-multiline img, .thumbnail-background img {
  transition: transform 0.22s cubic-bezier(.4,1.7,.7,1), box-shadow 0.22s cubic-bezier(.4,1.7,.7,1);
}
.thumbnails-multiline img:hover, .thumbnail-background img:hover {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 8px 32px #23272a55, 0 2px 8px #5865f2aa;
  z-index: 2;
}

/* Flame Box Styling */
.flame-box {
    margin-top: 20px;
    background: #23202b;
    border: 2px solid #ffd43b;
    box-shadow: 0 8px 32px rgba(88, 101, 242, 0.3);
    animation: flameGlow 3s ease-in-out infinite alternate, float 6s ease-in-out infinite;
}

.flame-box:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 40px rgba(88, 101, 242, 0.5);
}

@keyframes flameGlow {
    0% { box-shadow: 0 8px 32px rgba(88, 101, 242, 0.3); }
    100% { box-shadow: 0 8px 32px rgba(88, 101, 242, 0.6), 0 0 20px rgba(88, 101, 242, 0.4); }
}

/* Floating animation for owner boxes */
.owner-box {
    animation: float 6s ease-in-out infinite;
}

.flame-box {
    animation: float 6s ease-in-out infinite, flameGlow 3s ease-in-out infinite alternate;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Global animation keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 5px rgba(255, 212, 59, 0.2); }
    50% { box-shadow: 0 0 20px rgba(255, 212, 59, 0.4); }
    100% { box-shadow: 0 0 5px rgba(255, 212, 59, 0.2); }
}

/* Apply animations to elements */
.info-section, .team-member, .faq-section, .about-us-grid-item {
    animation: fadeIn 0.6s ease-out;
}

.nav-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease-out, height 0.6s ease-out;
}

.nav-btn:hover::after {
    width: 300px;
    height: 300px;
}

.team-member {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.team-pic {
    transition: transform 0.5s ease, border-color 0.3s ease;
}

.team-member:hover .team-pic {
    transform: scale(1.05) rotate(2deg);
}

.faq-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateX(5px);
}

.faq-item summary {
    transition: color 0.3s ease, background-color 0.3s ease;
}

.faq-item[open] {
    animation: scaleIn 0.3s ease-out;
}

.discord-cta {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.discord-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.discord-cta:hover::before {
    left: 100%;
}

.owner-box {
    animation: glowPulse 3s infinite, float 6s ease-in-out infinite;
}

.about-us-title::after {
    animation: slideIn 0.6s ease-out;
}

#animated-stats {
    animation: fadeIn 0.8s ease-out;
}

.about-us-grid-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-us-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Enhanced reviews carousel animations */
#reviews-carousel p {
    animation: fadeIn 0.6s ease-out;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#reviews-carousel p:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img[loading] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Enhanced theme toggle animation */
#theme-toggle {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
}

/* Logo animation */
.logo:hover {
    transform: scale(1.05);
}

/* FAQ upvote button animation */
.faq-upvote {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-upvote:hover {
    transform: scale(1.05);
}

.faq-upvote:active {
    transform: scale(0.95);
}

/* Team section title animation */
.team-title:hover {
    transform: scale(1.05);
}

/* Light mode specific animations */
body.light-mode .team-title::before {
    background: linear-gradient(90deg, transparent, #e6b800, transparent);
}

body.light-mode .team-section::before {
    background: radial-gradient(circle at center, rgba(230, 184, 0, 0.1) 0%, transparent 70%);
}

body.light-mode .team-section + div .nav-btn {
    background: linear-gradient(45deg, #fff, #f7f7fa);
    border-color: #e6b800;
}

body.light-mode .team-section + div .nav-btn:hover {
    box-shadow: 0 5px 15px rgba(230, 184, 0, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .team-title {
        font-size: 2.2rem;
        margin: 30px 0 20px 0;
    }
    
    .team-section {
        gap: 20px;
        padding: 15px;
    }
    
    .team-section + div .nav-btn {
        padding: 10px 24px;
        font-size: 1.1rem;
    }
}

/* Enhanced Back Button */
.team-section + div .nav-btn {
    background: linear-gradient(45deg, #23202b, #2d232e);
    padding: 12px 32px;
    font-size: 1.2rem;
    border: 2px solid #ffd43b;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.team-section + div .nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 212, 59, 0.2),
        transparent
    );
    transition: 0.5s;
}

.team-section + div .nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 212, 59, 0.3);
}

.team-section + div .nav-btn:hover::before {
    left: 100%;
}

/* Social Page Styles */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.social-card {
    background: #23202b;
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #ffd43b;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.social-card:hover::before {
    transform: scaleX(1);
}

.social-card h3 {
    color: #ffd43b;
    margin: 0 0 10px 0;
    font-size: 1.4rem;
}

.social-card p {
    margin: 0 0 15px 0;
    opacity: 0.9;
}

.social-stats {
    display: block;
    font-weight: bold;
    color: #ffd43b;
    font-size: 1.1rem;
}

/* Platform-specific colors */
.social-card.discord::before { background: #5865F2; }
.social-card.youtube::before { background: #FF0000; }
.social-card.twitter::before { background: #1DA1F2; }
.social-card.instagram::before { background: #E1306C; }

.social-card.discord:hover { box-shadow: 0 8px 25px rgba(88, 101, 242, 0.2); }
.social-card.youtube:hover { box-shadow: 0 8px 25px rgba(255, 0, 0, 0.2); }
.social-card.twitter:hover { box-shadow: 0 8px 25px rgba(29, 161, 242, 0.2); }
.social-card.instagram:hover { box-shadow: 0 8px 25px rgba(225, 48, 108, 0.2); }

/* Light mode adjustments */
body.light-mode .social-card {
    background: #fff;
    color: #23202b;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

body.light-mode .social-card h3 {
    color: #e6b800;
}

body.light-mode .social-stats {
    color: #e6b800;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .social-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .social-card {
        padding: 20px;
    }
}

.hero-area {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    box-sizing: border-box;
}

.thumbnail-background {
    display: flex;
    white-space: nowrap;
    min-width: 200%;
    align-items: center;
    justify-content: flex-start;
    animation: scroll-left 18s linear infinite;
    position: relative;
    background: rgba(0, 0, 0, 0.1);
    gap: 0;
    padding: 10px;
    border-radius: 10px;
}

.thumbnail-background img {
    height: 200px;
    width: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 16px 0 0;
    padding: 0;
    display: block;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.thumbnail-background img:last-child {
    margin-right: 0;
}

.hero-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1; /* Ensure text is above background */
    text-align: center;
    color: #fff;
    width: 90%;
    max-width: 800px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

main {
    position: relative; /* Keep relative for other sections */
    overflow: hidden;
    /* Remove height/min-height as hero-area now handles this */
    margin: 0; /* Ensure no default margin */
    padding: 0; /* Ensure no default padding */
    box-sizing: border-box; /* Ensure consistent box model */
}

body.light-mode .hero-area {
    background: #f7f7fa; /* Light mode background for hero area */
}

body.light-mode .thumbnail-background::after {
    background: rgba(255, 255, 255, 0.7); /* Adjusted for light mode */
}

body.light-mode .thumbnail-background {
    background: rgba(255, 255, 255, 0.1);
}

body.light-mode .thumbnail-background img {
    filter: brightness(0.8) grayscale(10%); /* More colorful for light mode */
    opacity: 0.5;
}

/* Responsive adjustments for thumbnail grid */
@media (max-width: 1200px) {
    .thumbnail-background {
        grid-template-columns: repeat(12, 1fr);
        grid-template-rows: repeat(2, 16vh);
    }
}

@media (max-width: 900px) {
    .thumbnail-background {
        grid-template-columns: repeat(8, 1fr);
        grid-template-rows: repeat(2, 14vh);
    }
}

@media (max-width: 768px) {
    .thumbnail-background {
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: repeat(2, 12vh);
    }
}

@media (max-width: 500px) {
    .thumbnail-background {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 10vh);
    }
}

.hero-logo {
    width: 250px; /* Adjust as needed */
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.4));
}

.hero-main-text {
    font-size: 4.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
    line-height: 1.1;
}

.hero-sub-text {
    font-size: 2.2rem;
    font-style: italic;
    margin-top: 0;
    margin-bottom: 40px;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.join-team-btn {
    background: #e014a1;
    color: #fff;
    font-size: 1.3rem;
    font-weight: bold;
    padding: 16px 40px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(224, 20, 161, 0.3);
}

.join-team-btn:hover {
    background: #ff33bb;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(224, 20, 161, 0.5);
}

@media (max-width: 768px) {
    .hero-main-text {
        font-size: 3rem;
    }
    .hero-sub-text {
        font-size: 1.5rem;
    }
    .join-team-btn {
        padding: 12px 30px;
        font-size: 1.1rem;
    }
    .hero-logo {
        width: 180px;
    }
}

body.light-mode .hero-main-text,
body.light-mode .hero-sub-text {
    color: #23202b;
    text-shadow: none;
}

body.light-mode .hero-text-overlay {
    background: rgba(255, 255, 255, 0.2);
}

body.light-mode .join-team-btn {
    background: #e014a1;
    color: #fff;
}

body.light-mode .join-team-btn:hover {
    background: #ff33bb;
    box-shadow: 0 8px 30px rgba(224, 20, 161, 0.3);
}

@keyframes scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.thumbnails-multiline {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 0;
    margin-bottom: 0;
    height: calc(5 * 200px + 4 * 6px);
    overflow: hidden;
}
.thumbnail-row {
    width: 100vw;
    overflow: hidden;
    position: relative;
    margin: 0;
}
.thumbnail-row:nth-child(1) .thumbnail-background {
    animation-duration: 18s;
}
.thumbnail-row:nth-child(2) .thumbnail-background {
    animation-duration: 20s;
}
.thumbnail-row:nth-child(3) .thumbnail-background {
    animation-duration: 16s;
}
.thumbnail-row:nth-child(4) .thumbnail-background {
    animation-duration: 22s;
}
.thumbnail-row:nth-child(5) .thumbnail-background {
    animation-duration: 14s;
}

.hamburger-fixed {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 1001;
    background: rgba(20, 24, 40, 0.8);
    border: 2px solid rgba(58, 65, 87, 0.6);
    font-size: 2.2rem;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hamburger-fixed:hover {
    background: rgba(20, 24, 40, 0.9);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

body.light-mode .hamburger-fixed {
    background: rgba(255, 255, 255, 0.8);
    color: #23202b;
    border-color: rgba(230, 184, 0, 0.6);
}

body.light-mode .hamburger-fixed:hover {
    background: rgba(255, 255, 255, 0.9);
}

.discord-messages {
  margin: 20px 0 16px 0;
  padding: 0 2px;
  max-height: 340px;
  overflow-y: auto;
  background: rgba(24,21,31,0.7);
  border-radius: 12px;
  box-shadow: 0 2px 12px #0002;
}
.discord-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 1rem;
}
.discord-message:last-child {
  border-bottom: none;
}
.msg-avatar img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: 0 1px 4px #0003;
  background: #23202b;
}
.msg-main {
  flex: 1;
  min-width: 0;
}
.msg-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.msg-user {
  font-weight: 600;
  color: #fff;
  font-size: 1.05em;
  margin-right: 2px;
  word-break: break-all;
}
.msg-role {
  font-size: 0.85em;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 8px;
  margin-right: 4px;
  margin-left: 2px;
  vertical-align: middle;
  letter-spacing: 0.5px;
}
.msg-role.creators {
  background: #e014a1;
  color: #fff;
}
.msg-role.var {
  background: #5865f2;
  color: #fff;
}
.msg-time {
  font-size: 0.82em;
  color: #b5b5b5;
  margin-left: 6px;
  font-weight: 400;
}
.msg-text {
  color: #e6e6e6;
  font-size: 1em;
  line-height: 1.5;
  word-break: break-word;
  white-space: pre-line;
}
body.light-mode .discord-messages {
  background: #f8fafc;
  box-shadow: 0 2px 12px #0001;
}
body.light-mode .discord-message {
  border-bottom: 1px solid #e2e8f0;
}
body.light-mode .msg-user {
  color: #23202b;
}
body.light-mode .msg-role.creators {
  background: #e014a1;
  color: #fff;
}
body.light-mode .msg-role.var {
  background: #ffd43b;
  color: #23202b;
}
body.light-mode .msg-time {
  color: #7b7b7b;
}
body.light-mode .msg-text {
  color: #23202b;
}

.discord-input-row {
  display: flex;
  align-items: center;
  background: rgba(30, 31, 34, 0.95);
  border-radius: 8px;
  padding: 0 16px;
  margin: 16px 12px 12px 12px;
  min-height: 48px;
  box-shadow: 0 1px 0 0 rgba(0,0,0,0.2);
  border: 1px solid rgba(79,84,92,0.3);
}
.discord-input-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 12px;
}
.discord-input-field {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 16px;
  padding: 12px 0;
  outline: none;
}
.discord-input-icon {
  margin-left: 12px;
  font-size: 22px;
  color: #b9bbbe;
  cursor: pointer;
  transition: color 0.2s;
  user-select: none;
  display: flex;
  align-items: center;
}
.discord-input-icon:hover {
  color: #fff;
}
.discord-input-send {
  background: #5865f2;
  border: none;
  border-radius: 6px;
  margin-left: 12px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #fff;
  transition: background 0.2s;
}
.discord-input-send:hover {
  background: #4752c4;
}

/* Thumbnail Hover Animation */
.thumbnails-multiline img, .thumbnail-background img {
  transition: transform 0.22s cubic-bezier(.4,1.7,.7,1), box-shadow 0.22s cubic-bezier(.4,1.7,.7,1);
}
.thumbnails-multiline img:hover, .thumbnail-background img:hover {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 8px 32px #23272a55, 0 2px 8px #5865f2aa;
  z-index: 2;
}

/* Flame Box Styling */
.flame-box {
    margin-top: 20px;
    background: #23202b;
    border: 2px solid #ffd43b;
    box-shadow: 0 8px 32px rgba(88, 101, 242, 0.3);
    animation: flameGlow 3s ease-in-out infinite alternate, float 6s ease-in-out infinite;
}

.flame-box:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 40px rgba(88, 101, 242, 0.5);
}

@keyframes flameGlow {
    0% { box-shadow: 0 8px 32px rgba(88, 101, 242, 0.3); }
    100% { box-shadow: 0 8px 32px rgba(88, 101, 242, 0.6), 0 0 20px rgba(88, 101, 242, 0.4); }
}

/* Floating animation for owner boxes */
.owner-box {
    animation: float 6s ease-in-out infinite;
}

.flame-box {
    animation: float 6s ease-in-out infinite, flameGlow 3s ease-in-out infinite alternate;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Global animation keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 5px rgba(255, 212, 59, 0.2); }
    50% { box-shadow: 0 0 20px rgba(255, 212, 59, 0.4); }
    100% { box-shadow: 0 0 5px rgba(255, 212, 59, 0.2); }
}

/* Apply animations to elements */
.info-section, .team-member, .faq-section, .about-us-grid-item {
    animation: fadeIn 0.6s ease-out;
}

.nav-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease-out, height 0.6s ease-out;
}

.nav-btn:hover::after {
    width: 300px;
    height: 300px;
}

.team-member {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.team-pic {
    transition: transform 0.5s ease, border-color 0.3s ease;
}

.team-member:hover .team-pic {
    transform: scale(1.05) rotate(2deg);
}

.faq-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateX(5px);
}

.faq-item summary {
    transition: color 0.3s ease, background-color 0.3s ease;
}

.faq-item[open] {
    animation: scaleIn 0.3s ease-out;
}

.discord-cta {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.discord-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.discord-cta:hover::before {
    left: 100%;
}

.owner-box {
    animation: glowPulse 3s infinite, float 6s ease-in-out infinite;
}

.about-us-title::after {
    animation: slideIn 0.6s ease-out;
}

#animated-stats {
    animation: fadeIn 0.8s ease-out;
}

.about-us-grid-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-us-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Enhanced reviews carousel animations */
#reviews-carousel p {
    animation: fadeIn 0.6s ease-out;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#reviews-carousel p:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img[loading] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Enhanced theme toggle animation */
#theme-toggle {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
}

/* Logo animation */
.logo:hover {
    transform: scale(1.05);
}

/* FAQ upvote button animation */
.faq-upvote {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-upvote:hover {
    transform: scale(1.05);
}

.faq-upvote:active {
    transform: scale(0.95);
}

/* Team section title animation */
.team-title:hover {
    transform: scale(1.05);
}

/* Light mode specific animations */
body.light-mode .team-title::before {
    background: linear-gradient(90deg, transparent, #e6b800, transparent);
}

body.light-mode .team-section::before {
    background: radial-gradient(circle at center, rgba(230, 184, 0, 0.1) 0%, transparent 70%);
}

body.light-mode .team-section + div .nav-btn {
    background: linear-gradient(45deg, #fff, #f7f7fa);
    border-color: #e6b800;
}

body.light-mode .team-section + div .nav-btn:hover {
    box-shadow: 0 5px 15px rgba(230, 184, 0, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .team-title {
        font-size: 2.2rem;
        margin: 30px 0 20px 0;
    }
    
    .team-section {
        gap: 20px;
        padding: 15px;
    }
    
    .team-section + div .nav-btn {
        padding: 10px 24px;
        font-size: 1.1rem;
    }
}

/* Enhanced Back Button */
.team-section + div .nav-btn {
    background: linear-gradient(45deg, #23202b, #2d232e);
    padding: 12px 32px;
    font-size: 1.2rem;
    border: 2px solid #ffd43b;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.team-section + div .nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 212, 59, 0.2),
        transparent
    );
    transition: 0.5s;
}

.team-section + div .nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 212, 59, 0.3);
}

.team-section + div .nav-btn:hover::before {
    left: 100%;
}

/* Social Page Styles */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.social-card {
    background: #23202b;
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #ffd43b;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.social-card:hover::before {
    transform: scaleX(1);
}

.social-card h3 {
    color: #ffd43b;
    margin: 0 0 10px 0;
    font-size: 1.4rem;
}

.social-card p {
    margin: 0 0 15px 0;
    opacity: 0.9;
}

.social-stats {
    display: block;
    font-weight: bold;
    color: #ffd43b;
    font-size: 1.1rem;
}

/* Platform-specific colors */
.social-card.discord::before { background: #5865F2; }
.social-card.youtube::before { background: #FF0000; }
.social-card.twitter::before { background: #1DA1F2; }
.social-card.instagram::before { background: #E1306C; }

.social-card.discord:hover { box-shadow: 0 8px 25px rgba(88, 101, 242, 0.2); }
.social-card.youtube:hover { box-shadow: 0 8px 25px rgba(255, 0, 0, 0.2); }
.social-card.twitter:hover { box-shadow: 0 8px 25px rgba(29, 161, 242, 0.2); }
.social-card.instagram:hover { box-shadow: 0 8px 25px rgba(225, 48, 108, 0.2); }

/* Light mode adjustments */
body.light-mode .social-card {
    background: #fff;
    color: #23202b;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

body.light-mode .social-card h3 {
    color: #e6b800;
}

body.light-mode .social-stats {
    color: #e6b800;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .social-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .social-card {
        padding: 20px;
    }
}

.hero-area {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    box-sizing: border-box;
}

.thumbnail-background {
    display: flex;
    white-space: nowrap;
    min-width: 200%;
    align-items: center;
    justify-content: flex-start;
    animation: scroll-left 18s linear infinite;
    position: relative;
    background: rgba(0, 0, 0, 0.1);
    gap: 0;
    padding: 10px;
    border-radius: 10px;
}

.thumbnail-background img {
    height: 200px;
    width: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 16px 0 0;
    padding: 0;
    display: block;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.thumbnail-background img:last-child {
    margin-right: 0;
}

.hero-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1; /* Ensure text is above background */
    text-align: center;
    color: #fff;
    width: 90%;
    max-width: 800px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

main {
    position: relative; /* Keep relative for other sections */
    overflow: hidden;
    /* Remove height/min-height as hero-area now handles this */
    margin: 0; /* Ensure no default margin */
    padding: 0; /* Ensure no default padding */
    box-sizing: border-box; /* Ensure consistent box model */
}

body.light-mode .hero-area {
    background: #f7f7fa; /* Light mode background for hero area */
}

body.light-mode .thumbnail-background::after {
    background: rgba(255, 255, 255, 0.7); /* Adjusted for light mode */
}

body.light-mode .thumbnail-background {
    background: rgba(255, 255, 255, 0.1);
}

body.light-mode .thumbnail-background img {
    filter: brightness(0.8) grayscale(10%); /* More colorful for light mode */
    opacity: 0.5;
}

/* Responsive adjustments for thumbnail grid */
@media (max-width: 1200px) {
    .thumbnail-background {
        grid-template-columns: repeat(12, 1fr);
        grid-template-rows: repeat(2, 16vh);
    }
}

@media (max-width: 900px) {
    .thumbnail-background {
        grid-template-columns: repeat(8, 1fr);
        grid-template-rows: repeat(2, 14vh);
    }
}

@media (max-width: 768px) {
    .thumbnail-background {
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: repeat(2, 12vh);
    }
}

@media (max-width: 500px) {
    .thumbnail-background {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 10vh);
    }
}

.hero-logo {
    width: 250px; /* Adjust as needed */
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.4));
}

.hero-main-text {
    font-size: 4.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
    line-height: 1.1;
}

.hero-sub-text {
    font-size: 2.2rem;
    font-style: italic;
    margin-top: 0;
    margin-bottom: 40px;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.join-team-btn {
    background: #e014a1;
    color: #fff;
    font-size: 1.3rem;
    font-weight: bold;
    padding: 16px 40px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(224, 20, 161, 0.3);
}

.join-team-btn:hover {
    background: #ff33bb;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(224, 20, 161, 0.5);
}

@media (max-width: 768px) {
    .hero-main-text {
        font-size: 3rem;
    }
    .hero-sub-text {
        font-size: 1.5rem;
    }
    .join-team-btn {
        padding: 12px 30px;
        font-size: 1.1rem;
    }
    .hero-logo {
        width: 180px;
    }
}

body.light-mode .hero-main-text,
body.light-mode .hero-sub-text {
    color: #23202b;
    text-shadow: none;
}

body.light-mode .hero-text-overlay {
    background: rgba(255, 255, 255, 0.2);
}

body.light-mode .join-team-btn {
    background: #e014a1;
    color: #fff;
}

body.light-mode .join-team-btn:hover {
    background: #ff33bb;
    box-shadow: 0 8px 30px rgba(224, 20, 161, 0.3);
}

@keyframes scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.thumbnails-multiline {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 0;
    margin-bottom: 0;
    height: calc(5 * 200px + 4 * 6px);
    overflow: hidden;
}
.thumbnail-row {
    width: 100vw;
    overflow: hidden;
    position: relative;
    margin: 0;
}
.thumbnail-row:nth-child(1) .thumbnail-background {
    animation-duration: 18s;
}
.thumbnail-row:nth-child(2) .thumbnail-background {
    animation-duration: 20s;
}
.thumbnail-row:nth-child(3) .thumbnail-background {
    animation-duration: 16s;
}
.thumbnail-row:nth-child(4) .thumbnail-background {
    animation-duration: 22s;
}
.thumbnail-row:nth-child(5) .thumbnail-background {
    animation-duration: 14s;
}

.hamburger-fixed {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 1001;
    background: rgba(20, 24, 40, 0.8);
    border: 2px solid rgba(58, 65, 87, 0.6);
    font-size: 2.2rem;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hamburger-fixed:hover {
    background: rgba(20, 24, 40, 0.9);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

body.light-mode .hamburger-fixed {
    background: rgba(255, 255, 255, 0.8);
    color: #23202b;
    border-color: rgba(230, 184, 0, 0.6);
}

body.light-mode .hamburger-fixed:hover {
    background: rgba(255, 255, 255, 0.9);
}

.discord-messages {
  margin: 20px 0 16px 0;
  padding: 0 2px;
  max-height: 340px;
  overflow-y: auto;
  background: rgba(24,21,31,0.7);
  border-radius: 12px;
  box-shadow: 0 2px 12px #0002;
}
.discord-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 1rem;
}
.discord-message:last-child {
  border-bottom: none;
}
.msg-avatar img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: 0 1px 4px #0003;
  background: #23202b;
}
.msg-main {
  flex: 1;
  min-width: 0;
}
.msg-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.msg-user {
  font-weight: 600;
  color: #fff;
  font-size: 1.05em;
  margin-right: 2px;
  word-break: break-all;
}
.msg-role {
  font-size: 0.85em;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 8px;
  margin-right: 4px;
  margin-left: 2px;
  vertical-align: middle;
  letter-spacing: 0.5px;
}
.msg-role.creators {
  background: #e014a1;
  color: #fff;
}
.msg-role.var {
  background: #5865f2;
  color: #fff;
}
.msg-time {
  font-size: 0.82em;
  color: #b5b5b5;
  margin-left: 6px;
  font-weight: 400;
}
.msg-text {
  color: #e6e6e6;
  font-size: 1em;
  line-height: 1.5;
  word-break: break-word;
  white-space: pre-line;
}
body.light-mode .discord-messages {
  background: #f8fafc;
  box-shadow: 0 2px 12px #0001;
}
body.light-mode .discord-message {
  border-bottom: 1px solid #e2e8f0;
}
body.light-mode .msg-user {
  color: #23202b;
}
body.light-mode .msg-role.creators {
  background: #e014a1;
  color: #fff;
}
body.light-mode .msg-role.var {
  background: #ffd43b;
  color: #23202b;
}
body.light-mode .msg-time {
  color: #7b7b7b;
}
body.light-mode .msg-text {
  color: #23202b;
}

.discord-input-row {
  display: flex;
  align-items: center;
  background: rgba(30, 31, 34, 0.95);
  border-radius: 8px;
  padding: 0 16px;
  margin: 16px 12px 12px 12px;
  min-height: 48px;
  box-shadow: 0 1px 0 0 rgba(0,0,0,0.2);
  border: 1px solid rgba(79,84,92,0.3);
}
.discord-input-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 12px;
}
.discord-input-field {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 16px;
  padding: 12px 0;
  outline: none;
}
.discord-input-icon {
  margin-left: 12px;
  font-size: 22px;
  color: #b9bbbe;
  cursor: pointer;
  transition: color 0.2s;
  user-select: none;
  display: flex;
  align-items: center;
}
.discord-input-icon:hover {
  color: #fff;
}
.discord-input-send {
  background: #5865f2;
  border: none;
  border-radius: 6px;
  margin-left: 12px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #fff;
  transition: background 0.2s;
}
.discord-input-send:hover {
  background: #4752c4;
}

/* Thumbnail Hover Animation */
.thumbnails-multiline img, .thumbnail-background img {
  transition: transform 0.22s cubic-bezier(.4,1.7,.7,1), box-shadow 0.22s cubic-bezier(.4,1.7,.7,1);
}
.thumbnails-multiline img:hover, .thumbnail-background img:hover {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 8px 32px #23272a55, 0 2px 8px #5865f2aa;
  z-index: 2;
}

/* Flame Box Styling */
.flame-box {
    margin-top: 20px;
    background: #23202b;
    border: 2px solid #ffd43b;
    box-shadow: 0 8px 32px rgba(88, 101, 242, 0.3);
    animation: flameGlow 3s ease-in-out infinite alternate, float 6s ease-in-out infinite;
}

.flame-box:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 40px rgba(88, 101, 242, 0.5);
}

@keyframes flameGlow {
    0% { box-shadow: 0 8px 32px rgba(88, 101, 242, 0.3); }
    100% { box-shadow: 0 8px 32px rgba(88, 101, 242, 0.6), 0 0 20px rgba(88, 101, 242, 0.4); }
}

/* Floating animation for owner boxes */
.owner-box {
    animation: float 6s ease-in-out infinite;
}

.flame-box {
    animation: float 6s ease-in-out infinite, flameGlow 3s ease-in-out infinite alternate;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Global animation keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 5px rgba(255, 212, 59, 0.2); }
    50% { box-shadow: 0 0 20px rgba(255, 212, 59, 0.4); }
    100% { box-shadow: 0 0 5px rgba(255, 212, 59, 0.2); }
}

/* Apply animations to elements */
.info-section, .team-member, .faq-section, .about-us-grid-item {
    animation: fadeIn 0.6s ease-out;
}

.nav-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease-out, height 0.6s ease-out;
}

.nav-btn:hover::after {
    width: 300px;
    height: 300px;
}

.team-member {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.team-pic {
    transition: transform 0.5s ease, border-color 0.3s ease;
}

.team-member:hover .team-pic {
    transform: scale(1.05) rotate(2deg);
}

.faq-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateX(5px);
}

.faq-item summary {
    transition: color 0.3s ease, background-color 0.3s ease;
}

.faq-item[open] {
    animation: scaleIn 0.3s ease-out;
}

.discord-cta {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.discord-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.discord-cta:hover::before {
    left: 100%;
}

.owner-box {
    animation: glowPulse 3s infinite, float 6s ease-in-out infinite;
}

.about-us-title::after {
    animation: slideIn 0.6s ease-out;
}

#animated-stats {
    animation: fadeIn 0.8s ease-out;
}

.about-us-grid-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-us-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Enhanced reviews carousel animations */
#reviews-carousel p {
    animation: fadeIn 0.6s ease-out;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#reviews-carousel p:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img[loading] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Enhanced theme toggle animation */
#theme-toggle {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
}

/* Logo animation */
.logo:hover {
    transform: scale(1.05);
}

/* FAQ upvote button animation */
.faq-upvote {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-upvote:hover {
    transform: scale(1.05);
}

.faq-upvote:active {
    transform: scale(0.95);
}

/* Team section title animation */
.team-title:hover {
    transform: scale(1.05);
}

/* Light mode specific animations */
body.light-mode .team-title::before {
    background: linear-gradient(90deg, transparent, #e6b800, transparent);
}

body.light-mode .team-section::before {
    background: radial-gradient(circle at center, rgba(230, 184, 0, 0.1) 0%, transparent 70%);
}

body.light-mode .team-section + div .nav-btn {
    background: linear-gradient(45deg, #fff, #f7f7fa);
    border-color: #e6b800;
}

body.light-mode .team-section + div .nav-btn:hover {
    box-shadow: 0 5px 15px rgba(230, 184, 0, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .team-title {
        font-size: 2.2rem;
        margin: 30px 0 20px 0;
    }
    
    .team-section {
        gap: 20px;
        padding: 15px;
    }
    
    .team-section + div .nav-btn {
        padding: 10px 24px;
        font-size: 1.1rem;
    }
}

/* Enhanced Back Button */
.team-section + div .nav-btn {
    background: linear-gradient(45deg, #23202b, #2d232e);
    padding: 12px 32px;
    font-size: 1.2rem;
    border: 2px solid #ffd43b;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.team-section + div .nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 212, 59, 0.2),
        transparent
    );
    transition: 0.5s;
}

.team-section + div .nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 212, 59, 0.3);
}

.team-section + div .nav-btn:hover::before {
    left: 100%;
}

/* Social Page Styles */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.social-card {
    background: #23202b;
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #ffd43b;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.social-card:hover::before {
    transform: scaleX(1);
}

.social-card h3 {
    color: #ffd43b;
    margin: 0 0 10px 0;
    font-size: 1.4rem;
}

.social-card p {
    margin: 0 0 15px 0;
    opacity: 0.9;
}

.social-stats {
    display: block;
    font-weight: bold;
    color: #ffd43b;
    font-size: 1.1rem;
}

/* Platform-specific colors */
.social-card.discord::before { background: #5865F2; }
.social-card.youtube::before { background: #FF0000; }
.social-card.twitter::before { background: #1DA1F2; }
.social-card.instagram::before { background: #E1306C; }

.social-card.discord:hover { box-shadow: 0 8px 25px rgba(88, 101, 242, 0.2); }
.social-card.youtube:hover { box-shadow: 0 8px 25px rgba(255, 0, 0, 0.2); }
.social-card.twitter:hover { box-shadow: 0 8px 25px rgba(29, 161, 242, 0.2); }
.social-card.instagram:hover { box-shadow: 0 8px 25px rgba(225, 48, 108, 0.2); }

/* Light mode adjustments */
body.light-mode .social-card {
    background: #fff;
    color: #23202b;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

body.light-mode .social-card h3 {
    color: #e6b800;
}

body.light-mode .social-stats {
    color: #e6b800;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .social-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .social-card {
        padding: 20px;
    }
}

.hero-area {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    box-sizing: border-box;
}

.thumbnail-background {
    display: flex;
    white-space: nowrap;
    min-width: 200%;
    align-items: center;
    justify-content: flex-start;
    animation: scroll-left 18s linear infinite;
    position: relative;
    background: rgba(0, 0, 0, 0.1);
    gap: 0;
    padding: 10px;
    border-radius: 10px;
}

.thumbnail-background img {
    height: 200px;
    width: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 16px 0 0;
    padding: 0;
    display: block;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.thumbnail-background img:last-child {
    margin-right: 0;
}

.hero-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1; /* Ensure text is above background */
    text-align: center;
    color: #fff;
    width: 90%;
    max-width: 800px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

main {
    position: relative; /* Keep relative for other sections */
    overflow: hidden;
    /* Remove height/min-height as hero-area now handles this */
    margin: 0; /* Ensure no default margin */
    padding: 0; /* Ensure no default padding */
    box-sizing: border-box; /* Ensure consistent box model */
}

body.light-mode .hero-area {
    background: #f7f7fa; /* Light mode background for hero area */
}

body.light-mode .thumbnail-background::after {
    background: rgba(255, 255, 255, 0.7); /* Adjusted for light mode */
}

body.light-mode .thumbnail-background {
    background: rgba(255, 255, 255, 0.1);
}

body.light-mode .thumbnail-background img {
    filter: brightness(0.8) grayscale(10%); /* More colorful for light mode */
    opacity: 0.5;
}

/* Responsive adjustments for thumbnail grid */
@media (max-width: 1200px) {
    .thumbnail-background {
        grid-template-columns: repeat(12, 1fr);
        grid-template-rows: repeat(2, 16vh);
    }
}

@media (max-width: 900px) {
    .thumbnail-background {
        grid-template-columns: repeat(8, 1fr);
        grid-template-rows: repeat(2, 14vh);
    }
}

@media (max-width: 768px) {
    .thumbnail-background {
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: repeat(2, 12vh);
    }
}

@media (max-width: 500px) {
    .thumbnail-background {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 10vh);
    }
}

.hero-logo {
    width: 250px; /* Adjust as needed */
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.4));
}

.hero-main-text {
    font-size: 4.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
    line-height: 1.1;
}

.hero-sub-text {
    font-size: 2.2rem;
    font-style: italic;
    margin-top: 0;
    margin-bottom: 40px;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.join-team-btn {
    background: #e014a1;
    color: #fff;
    font-size: 1.3rem;
    font-weight: bold;
    padding: 16px 40px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(224, 20, 161, 0.3);
}

.join-team-btn:hover {
    background: #ff33bb;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(224, 20, 161, 0.5);
}

@media (max-width: 768px) {
    .hero-main-text {
        font-size: 3rem;
    }
    .hero-sub-text {
        font-size: 1.5rem;
    }
    .join-team-btn {
        padding: 12px 30px;
        font-size: 1.1rem;
    }
    .hero-logo {
        width: 180px;
    }
}

body.light-mode .hero-main-text,
body.light-mode .hero-sub-text {
    color: #23202b;
    text-shadow: none;
}

body.light-mode .hero-text-overlay {
    background: rgba(255, 255, 255, 0.2);
}

body.light-mode .join-team-btn {
    background: #e014a1;
    color: #fff;
}

body.light-mode .join-team-btn:hover {
    background: #ff33bb;
    box-shadow: 0 8px 30px rgba(224, 20, 161, 0.3);
}

@keyframes scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.thumbnails-multiline {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 0;
    margin-bottom: 0;
    height: calc(5 * 200px + 4 * 6px);
    overflow: hidden;
}
.thumbnail-row {
    width: 100vw;
    overflow: hidden;
    position: relative;
    margin: 0;
}
.thumbnail-row:nth-child(1) .thumbnail-background {
    animation-duration: 18s;
}
.thumbnail-row:nth-child(2) .thumbnail-background {
    animation-duration: 20s;
}
.thumbnail-row:nth-child(3) .thumbnail-background {
    animation-duration: 16s;
}
.thumbnail-row:nth-child(4) .thumbnail-background {
    animation-duration: 22s;
}
.thumbnail-row:nth-child(5) .thumbnail-background {
    animation-duration: 14s;
}

.hamburger-fixed {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 1001;
    background: rgba(20, 24, 40, 0.8);
    border: 2px solid rgba(58, 65, 87, 0.6);
    font-size: 2.2rem;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hamburger-fixed:hover {
    background: rgba(20, 24, 40, 0.9);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

body.light-mode .hamburger-fixed {
    background: rgba(255, 255, 255, 0.8);
    color: #23202b;
    border-color: rgba(230, 184, 0, 0.6);
}

body.light-mode .hamburger-fixed:hover {
    background: rgba(255, 255, 255, 0.9);
}

.discord-messages {
  margin: 20px 0 16px 0;
  padding: 0 2px;
  max-height: 340px;
  overflow-y: auto;
  background: rgba(24,21,31,0.7);
  border-radius: 12px;
  box-shadow: 0 2px 12px #0002;
}
.discord-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 1rem;
}
.discord-message:last-child {
  border-bottom: none;
}
.msg-avatar img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: 0 1px 4px #0003;
  background: #23202b;
}
.msg-main {
  flex: 1;
  min-width: 0;
}
.msg-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.msg-user {
  font-weight: 600;
  color: #fff;
  font-size: 1.05em;
  margin-right: 2px;
  word-break: break-all;
}
.msg-role {
  font-size: 0.85em;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 8px;
  margin-right: 4px;
  margin-left: 2px;
  vertical-align: middle;
  letter-spacing: 0.5px;
}
.msg-role.creators {
  background: #e014a1;
  color: #fff;
}
.msg-role.var {
  background: #5865f2;
  color: #fff;
}
.msg-time {
  font-size: 0.82em;
  color: #b5b5b5;
  margin-left: 6px;
  font-weight: 400;
}
.msg-text {
  color: #e6e6e6;
  font-size: 1em;
  line-height: 1.5;
  word-break: break-word;
  white-space: pre-line;
}
body.light-mode .discord-messages {
  background: #f8fafc;
  box-shadow: 0 2px 12px #0001;
}
body.light-mode .discord-message {
  border-bottom: 1px solid #e2e8f0;
}
body.light-mode .msg-user {
  color: #23202b;
}
body.light-mode .msg-role.creators {
  background: #e014a1;
  color: #fff;
}
body.light-mode .msg-role.var {
  background: #ffd43b;
  color: #23202b;
}
body.light-mode .msg-time {
  color: #7b7b7b;
}
body.light-mode .msg-text {
  color: #23202b;
}

.discord-input-row {
  display: flex;
  align-items: center;
  background: rgba(30, 31, 34, 0.95);
  border-radius: 8px;
  padding: 0 16px;
  margin: 16px 12px 12px 12px;
  min-height: 48px;
  box-shadow: 0 1px 0 0 rgba(0,0,0,0.2);
  border: 1px solid rgba(79,84,92,0.3);
}
.discord-input-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 12px;
}
.discord-input-field {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 16px;
  padding: 12px 0;
  outline: none;
}
.discord-input-icon {
  margin-left: 12px;
  font-size: 22px;
  color: #b9bbbe;
  cursor: pointer;
  transition: color 0.2s;
  user-select: none;
  display: flex;
  align-items: center;
}
.discord-input-icon:hover {
  color: #fff;
}
.discord-input-send {
  background: #5865f2;
  border: none;
  border-radius: 6px;
  margin-left: 12px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #fff;
  transition: background 0.2s;
}
.discord-input-send:hover {
  background: #4752c4;
}

/* Thumbnail Hover Animation */
.thumbnails-multiline img, .thumbnail-background img {
  transition: transform 0.22s cubic-bezier(.4,1.7,.7,1), box-shadow 0.22s cubic-bezier(.4,1.7,.7,1);
}
.thumbnails-multiline img:hover, .thumbnail-background img:hover {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 8px 32px #23272a55, 0 2px 8px #5865f2aa;
  z-index: 2;
}

/* Flame Box Styling */
.flame-box {
    margin-top: 20px;
    background: #23202b;
    border: 2px solid #ffd43b;
    box-shadow: 0 8px 32px rgba(88, 101, 242, 0.3);
    animation: flameGlow 3s ease-in-out infinite alternate, float 6s ease-in-out infinite;
}

.flame-box:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 40px rgba(88, 101, 242, 0.5);
}

@keyframes flameGlow {
    0% { box-shadow: 0 8px 32px rgba(88, 101, 242, 0.3); }
    100% { box-shadow: 0 8px 32px rgba(88, 101, 242, 0.6), 0 0 20px rgba(88, 101, 242, 0.4); }
}

/* Floating animation for owner boxes */
.owner-box {
    animation: float 6s ease-in-out infinite;
}

.flame-box {
    animation: float 6s ease-in-out infinite, flameGlow 3s ease-in-out infinite alternate;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Global animation keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 5px rgba(255, 212, 59, 0.2); }
    50% { box-shadow: 0 0 20px rgba(255, 212, 59, 0.4); }
    100% { box-shadow: 0 0 5px rgba(255, 212, 59, 0.2); }
}

/* Apply animations to elements */
.info-section, .team-member, .faq-section, .about-us-grid-item {
    animation: fadeIn 0.6s ease-out;
}

.nav-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease-out, height 0.6s ease-out;
}

.nav-btn:hover::after {
    width: 300px;
    height: 300px;
}

.team-member {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.team-pic {
    transition: transform 0.5s ease, border-color 0.3s ease;
}

.team-member:hover .team-pic {
    transform: scale(1.05) rotate(2deg);
}

.faq-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateX(5px);
}

.faq-item summary {
    transition: color 0.3s ease, background-color 0.3s ease;
}

.faq-item[open] {
    animation: scaleIn 0.3s ease-out;
}

.discord-cta {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.discord-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.discord-cta:hover::before {
    left: 100%;
}

.owner-box {
    animation: glowPulse 3s infinite, float 6s ease-in-out infinite;
}

.about-us-title::after {
    animation: slideIn 0.6s ease-out;
}

#animated-stats {
    animation: fadeIn 0.8s ease-out;
}

.about-us-grid-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-us-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Enhanced reviews carousel animations */
#reviews-carousel p {
    animation: fadeIn 0.6s ease-out;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#reviews-carousel p:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img[loading] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Enhanced theme toggle animation */
#theme-toggle {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
}

/* Logo animation */
.logo:hover {
    transform: scale(1.05);
}

/* FAQ upvote button animation */
.faq-upvote {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-upvote:hover {
    transform: scale(1.05);
}

.faq-upvote:active {
    transform: scale(0.95);
}

/* Team section title animation */
.team-title:hover {
    transform: scale(1.05);
}

/* Light mode specific animations */
body.light-mode .team-title::before {
    background: linear-gradient(90deg, transparent, #e6b800, transparent);
}

body.light-mode .team-section::before {
    background: radial-gradient(circle at center, rgba(230, 184, 0, 0.1) 0%, transparent 70%);
}

body.light-mode .team-section + div .nav-btn {
    background: linear-gradient(45deg, #fff, #f7f7fa);
    border-color: #e6b800;
}

body.light-mode .team-section + div .nav-btn:hover {
    box-shadow: 0 5px 15px rgba(230, 184, 0, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .team-title {
        font-size: 2.2rem;
        margin: 30px 0 20px 0;
    }
    
    .team-section {
        gap: 20px;
        padding: 15px;
    }
    
    .team-section + div .nav-btn {
        padding: 10px 24px;
        font-size: 1.1rem;
    }
}

/* Enhanced Back Button */
.team-section + div .nav-btn {
    background: linear-gradient(45deg, #23202b, #2d232e);
    padding: 12px 32px;
    font-size: 1.2rem;
    border: 2px solid #ffd43b;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.team-section + div .nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 212, 59, 0.2),
        transparent
    );
    transition: 0.5s;
}

.team-section + div .nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 212, 59, 0.3);
}

.team-section + div .nav-btn:hover::before {
    left: 100%;
}

/* Social Page Styles */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.social-card {
    background: #23202b;
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #ffd43b;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.social-card:hover::before {
    transform: scaleX(1);
}

.social-card h3 {
    color: #ffd43b;
    margin: 0 0 10px 0;
    font-size: 1.4rem;
}

.social-card p {
    margin: 0 0 15px 0;
    opacity: 0.9;
}

.social-stats {
    display: block;
    font-weight: bold;
    color: #ffd43b;
    font-size: 1.1rem;
}

/* Platform-specific colors */
.social-card.discord::before { background: #5865F2; }
.social-card.youtube::before { background: #FF0000; }
.social-card.twitter::before { background: #1DA1F2; }
.social-card.instagram::before { background: #E1306C; }

.social-card.discord:hover { box-shadow: 0 8px 25px rgba(88, 101, 242, 0.2); }
.social-card.youtube:hover { box-shadow: 0 8px 25px rgba(255, 0, 0, 0.2); }
.social-card.twitter:hover { box-shadow: 0 8px 25px rgba(29, 161, 242, 0.2); }
.social-card.instagram:hover { box-shadow: 0 8px 25px rgba(225, 48, 108, 0.2); }

/* Light mode adjustments */
body.light-mode .social-card {
    background: #fff;
    color: #23202b;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

body.light-mode .social-card h3 {
    color: #e6b800;
}

body.light-mode .social-stats {
    color: #e6b800;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .social-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .social-card {
        padding: 20px;
    }
}

.hero-area {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    box-sizing: border-box;
}

.thumbnail-background {
    display: flex;
    white-space: nowrap;
    min-width: 200%;
    align-items: center;
    justify-content: flex-start;
    animation: scroll-left 18s linear infinite;
    position: relative;
    background: rgba(0, 0, 0, 0.1);
    gap: 0;
    padding: 10px;
    border-radius: 10px;
}

.thumbnail-background img {
    height: 200px;
    width: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 16px 0 0;
    padding: 0;
    display: block;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.thumbnail-background img:last-child {
    margin-right: 0;
}

.hero-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1; /* Ensure text is above background */
    text-align: center;
    color: #fff;
    width: 90%;
    max-width: 800px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

main {
    position: relative; /* Keep relative for other sections */
    overflow: hidden;
    /* Remove height/min-height as hero-area now handles this */
    margin: 0; /* Ensure no default margin */
    padding: 0; /* Ensure no default padding */
    box-sizing: border-box; /* Ensure consistent box model */
}

body.light-mode .hero-area {
    background: #f7f7fa; /* Light mode background for hero area */
}

body.light-mode .thumbnail-background::after {
    background: rgba(255, 255, 255, 0.7); /* Adjusted for light mode */
}

body.light-mode .thumbnail-background {
    background: rgba(255, 255, 255, 0.1);
}

body.light-mode .thumbnail-background img {
    filter: brightness(0.8) grayscale(10%); /* More colorful for light mode */
    opacity: 0.5;
}

/* Responsive adjustments for thumbnail grid */
@media (max-width: 1200px) {
    .thumbnail-background {
        grid-template-columns: repeat(12, 1fr);
        grid-template-rows: repeat(2, 16vh);
    }
}

@media (max-width: 900px) {
    .thumbnail-background {
        grid-template-columns: repeat(8, 1fr);
        grid-template-rows: repeat(2, 14vh);
    }
}

@media (max-width: 768px) {
    .thumbnail-background {
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: repeat(2, 12vh);
    }
}

@media (max-width: 500px) {
    .thumbnail-background {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 10vh);
    }
}

.hero-logo {
    width: 250px; /* Adjust as needed */
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.4));
}

.hero-main-text {
    font-size: 4.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
    line-height: 1.1;
}

.hero-sub-text {
    font-size: 2.2rem;
    font-style: italic;
    margin-top: 0;
    margin-bottom: 40px;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.join-team-btn {
    background: #e014a1;
    color: #fff;
    font-size: 1.3rem;
    font-weight: bold;
    padding: 16px 40px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(224, 20, 161, 0.3);
}

.join-team-btn:hover {
    background: #ff33bb;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(224, 20, 161, 0.5);
}

@media (max-width: 768px) {
    .hero-main-text {
        font-size: 3rem;
    }
    .hero-sub-text {
        font-size: 1.5rem;
    }
    .join-team-btn {
        padding: 12px 30px;
        font-size: 1.1rem;
    }
    .hero-logo {
        width: 180px;
    }
}

body.light-mode .hero-main-text,
body.light-mode .hero-sub-text {
    color: #23202b;
    text-shadow: none;
}

body.light-mode .hero-text-overlay {
    background: rgba(255, 255, 255, 0.2);
}

body.light-mode .join-team-btn {
    background: #e014a1;
    color: #fff;
}

body.light-mode .join-team-btn:hover {
    background: #ff33bb;
    box-shadow: 0 8px 30px rgba(224, 20, 161, 0.3);
}

@keyframes scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.thumbnails-multiline {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 0;
    margin-bottom: 0;
    height: calc(5 * 200px + 4 * 6px);
    overflow: hidden;
}
.thumbnail-row {
    width: 100vw;
    overflow: hidden;
    position: relative;
    margin: 0;
}
.thumbnail-row:nth-child(1) .thumbnail-background {
    animation-duration: 18s;
}
.thumbnail-row:nth-child(2) .thumbnail-background {
    animation-duration: 20s;
}
.thumbnail-row:nth-child(3) .thumbnail-background {
    animation-duration: 16s;
}
.thumbnail-row:nth-child(4) .thumbnail-background {
    animation-duration: 22s;
}
.thumbnail-row:nth-child(5) .thumbnail-background {
    animation-duration: 14s;
}

.hamburger-fixed {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 1001;
    background: rgba(20, 24, 40, 0.8);
    border: 2px solid rgba(58, 65, 87, 0.6);
    font-size: 2.2rem;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hamburger-fixed:hover {
    background: rgba(20, 24, 40, 0.9);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

body.light-mode .hamburger-fixed {
    background: rgba(255, 255, 255, 0.8);
    color: #23202b;
    border-color: rgba(230, 184, 0, 0.6);
}

body.light-mode .hamburger-fixed:hover {
    background: rgba(255, 255, 255, 0.9);
}

.discord-messages {
  margin: 20px 0 16px 0;
  padding: 0 2px;
  max-height: 340px;
  overflow-y: auto;
  background: rgba(24,21,31,0.7);
  border-radius: 12px;
  box-shadow: 0 2px 12px #0002;
}
.discord-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 1rem;
}
.discord-message:last-child {
  border-bottom: none;
}
.msg-avatar img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: 0 1px 4px #0003;
  background: #23202b;
}
.msg-main {
  flex: 1;
  min-width: 0;
}
.msg-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.msg-user {
  font-weight: 600;
  color: #fff;
  font-size: 1.05em;
  margin-right: 2px;
  word-break: break-all;
}
.msg-role {
  font-size: 0.85em;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 8px;
  margin-right: 4px;
  margin-left: 2px;
  vertical-align: middle;
  letter-spacing: 0.5px;
}
.msg-role.creators {
  background: #e014a1;
  color: #fff;
}
.msg-role.var {
  background: #5865f2;
  color: #fff;
}
.msg-time {
  font-size: 0.82em;
  color: #b5b5b5;
  margin-left: 6px;
  font-weight: 400;
}
.msg-text {
  color: #e6e6e6;
  font-size: 1em;
  line-height: 1.5;
  word-break: break-word;
  white-space: pre-line;
}
body.light-mode .discord-messages {
  background: #f8fafc;
  box-shadow: 0 2px 12px #0001;
}
body.light-mode .discord-message {
  border-bottom: 1px solid #e2e8f0;
}
body.light-mode .msg-user {
  color: #23202b;
}
body.light-mode .msg-role.creators {
  background: #e014a1;
  color: #fff;
}
body.light-mode .msg-role.var {
  background: #ffd43b;
  color: #23202b;
}
body.light-mode .msg-time {
  color: #7b7b7b;
}
body.light-mode .msg-text {
  color: #23202b;
}

.discord-input-row {
  display: flex;
  align-items: center;
  background: rgba(30, 31, 34, 0.95);
  border-radius: 8px;
  padding: 0 16px;
  margin: 16px 12px 12px 12px;
  min-height: 48px;
  box-shadow: 0 1px 0 0 rgba(0,0,0,0.2);
  border: 1px solid rgba(79,84,92,0.3);
}
.discord-input-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 12px;
}
.discord-input-field {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 16px;
  padding: 12px 0;
  outline: none;
}
.discord-input-icon {
  margin-left: 12px;
  font-size: 22px;
  color: #b9bbbe;
  cursor: pointer;
  transition: color 0.2s;
  user-select: none;
  display: flex;
  align-items: center;
}
.discord-input-icon:hover {
  color: #fff;
}
.discord-input-send {
  background: #5865f2;
  border: none;
  border-radius: 6px;
  margin-left: 12px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #fff;
  transition: background 0.2s;
}
.discord-input-send:hover {
  background: #4752c4;
}

/* Thumbnail Hover Animation */
.thumbnails-multiline img, .thumbnail-background img {
  transition: transform 0.22s cubic-bezier(.4,1.7,.7,1), box-shadow 0.22s cubic-bezier(.4,1.7,.7,1);
}
.thumbnails-multiline img:hover, .thumbnail-background img:hover {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 8px 32px #23272a55, 0 2px 8px #5865f2aa;
  z-index: 2;
}

/* Flame Box Styling */
.flame-box {
    margin-top: 20px;
    background: #23202b;
    border: 2px solid #ffd43b;
    box-shadow: 0 8px 32px rgba(88, 101, 242, 0.3);
    animation: flameGlow 3s ease-in-out infinite alternate, float 6s ease-in-out infinite;
}

.flame-box:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 40px rgba(88, 101, 242, 0.5);
}

@keyframes flameGlow {
    0% { box-shadow: 0 8px 32px rgba(88, 101, 242, 0.3); }
    100% { box-shadow: 0 8px 32px rgba(88, 101, 242, 0.6), 0 0 20px rgba(88, 101, 242, 0.4); }
}

/* Floating animation for owner boxes */
.owner-box {
    animation: float 6s ease-in-out infinite;
}

.flame-box {
    animation: float 6s ease-in-out infinite, flameGlow 3s ease-in-out infinite alternate;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Global animation keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 5px rgba(255, 212, 59, 0.2); }
    50% { box-shadow: 0 0 20px rgba(255, 212, 59, 0.4); }
    100% { box-shadow: 0 0 5px rgba(255, 212, 59, 0.2); }
}

/* Apply animations to elements */
.info-section, .team-member, .faq-section, .about-us-grid-item {
    animation: fadeIn 0.6s ease-out;
}

.nav-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease-out, height 0.6s ease-out;
}

.nav-btn:hover::after {
    width: 300px;
    height: 300px;
}

.team-member {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.team-pic {
    transition: transform 0.5s ease, border-color 0.3s ease;
}

.team-member:hover .team-pic {
    transform: scale(1.05) rotate(2deg);
}

.faq-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateX(5px);
}

.faq-item summary {
    transition: color 0.3s ease, background-color 0.3s ease;
}

.faq-item[open] {
    animation: scaleIn 0.3s ease-out;
}

.discord-cta {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.discord-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.discord-cta:hover::before {
    left: 100%;
}

.owner-box {
    animation: glowPulse 3s infinite, float 6s ease-in-out infinite;
}

.about-us-title::after {
    animation: slideIn 0.6s ease-out;
}

#animated-stats {
    animation: fadeIn 0.8s ease-out;
}

.about-us-grid-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-us-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Enhanced reviews carousel animations */
#reviews-carousel p {
    animation: fadeIn 0.6s ease-out;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#reviews-carousel p:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img[loading] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Enhanced theme toggle animation */
#theme-toggle {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
}

/* Logo animation */
.logo:hover {
    transform: scale(1.05);
}

/* FAQ upvote button animation */
.faq-upvote {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-upvote:hover {
    transform: scale(1.05);
}

.faq-upvote:active {
    transform: scale(0.95);
}

/* Team section title animation */
.team-title:hover {
    transform: scale(1.05);
}

/* Light mode specific animations */
body.light-mode .team-title::before {
    background: linear-gradient(90deg, transparent, #e6b800, transparent);
}

body.light-mode .team-section::before {
    background: radial-gradient(circle at center, rgba(230, 184, 0, 0.1) 0%, transparent 70%);
}

body.light-mode .team-section + div .nav-btn {
    background: linear-gradient(45deg, #fff, #f7f7fa);
    border-color: #e6b800;
}

body.light-mode .team-section + div .nav-btn:hover {
    box-shadow: 0 5px 15px rgba(230, 184, 0, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .team-title {
        font-size: 2.2rem;
        margin: 30px 0 20px 0;
    }
    
    .team-section {
        gap: 20px;
        padding: 15px;
    }
    
    .team-section + div .nav-btn {
        padding: 10px 24px;
        font-size: 1.1rem;
    }
}

/* Enhanced Back Button */
.team-section + div .nav-btn {
    background: linear-gradient(45deg, #23202b, #2d232e);
    padding: 12px 32px;
    font-size: 1.2rem;
    border: 2px solid #ffd43b;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.team-section + div .nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 212, 59, 0.2),
        transparent
    );
    transition: 0.5s;
}

.team-section + div .nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 212, 59, 0.3);
}

.team-section + div .nav-btn:hover::before {
    left: 100%;
}

/* Social Page Styles */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.social-card {
    background: #23202b;
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #ffd43b;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.social-card:hover::before {
    transform: scaleX(1);
}

.social-card h3 {
    color: #ffd43b;
    margin: 0 0 10px 0;
    font-size: 1.4rem;
}

.social-card p {
    margin: 0 0 15px 0;
    opacity: 0.9;
}

.social-stats {
    display: block;
    font-weight: bold;
    color: #ffd43b;
    font-size: 1.1rem;
}

/* Platform-specific colors */
.social-card.discord::before { background: #5865F2; }
.social-card.youtube::before { background: #FF0000; }
.social-card.twitter::before { background: #1DA1F2; }
.social-card.instagram::before { background: #E1306C; }

.social-card.discord:hover { box-shadow: 0 8px 25px rgba(88, 101, 242, 0.2); }
.social-card.youtube:hover { box-shadow: 0 8px 25px rgba(255, 0, 0, 0.2); }
.social-card.twitter:hover { box-shadow: 0 8px 25px rgba(29, 161, 242, 0.2); }
.social-card.instagram:hover { box-shadow: 0 8px 25px rgba(225, 48, 108, 0.2); }

/* Light mode adjustments */
body.light-mode .social-card {
    background: #fff;
    color: #23202b;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

body.light-mode .social-card h3 {
    color: #e6b800;
}

body.light-mode .social-stats {
    color: #e6b800;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .social-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .social-card {
        padding: 20px;
    }
}

.hero-area {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    box-sizing: border-box;
}

.thumbnail-background {
    display: flex;
    white-space: nowrap;
    min-width: 200%;
    align-items: center;
    justify-content: flex-start;
    animation: scroll-left 18s linear infinite;
    position: relative;
    background: rgba(0, 0, 0, 0.1);
    gap: 0;
    padding: 10px;
    border-radius: 10px;
}

.thumbnail-background img {
    height: 200px;
    width: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 16px 0 0;
    padding: 0;
    display: block;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.thumbnail-background img:last-child {
    margin-right: 0;
}

.hero-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1; /* Ensure text is above background */
    text-align: center;
    color: #fff;
    width: 90%;
    max-width: 800px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

main {
    position: relative; /* Keep relative for other sections */
    overflow: hidden;
    /* Remove height/min-height as hero-area now handles this */
    margin: 0; /* Ensure no default margin */
    padding: 0; /* Ensure no default padding */
    box-sizing: border-box; /* Ensure consistent box model */
}

body.light-mode .hero-area {
    background: #f7f7fa; /* Light mode background for hero area */
}

body.light-mode .thumbnail-background::after {
    background: rgba(255, 255, 255, 0.7); /* Adjusted for light mode */
}

body.light-mode .thumbnail-background {
    background: rgba(255, 255, 255, 0.1);
}

body.light-mode .thumbnail-background img {
    filter: brightness(0.8) grayscale(10%); /* More colorful for light mode */
    opacity: 0.5;
}

/* Responsive adjustments for thumbnail grid */
@media (max-width: 1200px) {
    .thumbnail-background {
        grid-template-columns: repeat(12, 1fr);
        grid-template-rows: repeat(2, 16vh);
    }
}

@media (max-width: 900px) {
    .thumbnail-background {
        grid-template-columns: repeat(8, 1fr);
        grid-template-rows: repeat(2, 14vh);
    }
}

@media (max-width: 768px) {
    .thumbnail-background {
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: repeat(2, 12vh);
    }
}

@media (max-width: 500px) {
    .thumbnail-background {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 10vh);
    }
}

.hero-logo {
    width: 250px; /* Adjust as needed */
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.4));
}

.hero-main-text {
    font-size: 4.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
    line-height: 1.1;
}

.hero-sub-text {
    font-size: 2.2rem;
    font-style: italic;
    margin-top: 0;
    margin-bottom: 40px;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.join-team-btn {
    background: #e014a1;
    color: #fff;
    font-size: 1.3rem;
    font-weight: bold;
    padding: 16px 40px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(224, 20, 161, 0.3);
}

.join-team-btn:hover {
    background: #ff33bb;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(224, 20, 161, 0.5);
}

@media (max-width: 768px) {
    .hero-main-text {
        font-size: 3rem;
    }
    .hero-sub-text {
        font-size: 1.5rem;
    }
    .join-team-btn {
        padding: 12px 30px;
        font-size: 1.1rem;
    }
    .hero-logo {
        width: 180px;
    }
}

body.light-mode .hero-main-text,
body.light-mode .hero-sub-text {
    color: #23202b;
    text-shadow: none;
}

body.light-mode .hero-text-overlay {
    background: rgba(255, 255, 255, 0.2);
}

body.light-mode .join-team-btn {
    background: #e014a1;
    color: #fff;
}

body.light-mode .join-team-btn:hover {
    background: #ff33bb;
    box-shadow: 0 8px 30px rgba(224, 20, 161, 0.3);
}

@keyframes scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.thumbnails-multiline {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 0;
    margin-bottom: 0;
    height: calc(5 * 200px + 4 * 6px);
    overflow: hidden;
}
.thumbnail-row {
    width: 100vw;
    overflow: hidden;
    position: relative;
    margin: 0;
}
.thumbnail-row:nth-child(1) .thumbnail-background {
    animation-duration: 18s;
}
.thumbnail-row:nth-child(2) .thumbnail-background {
    animation-duration: 20s;
}
.thumbnail-row:nth-child(3) .thumbnail-background {
    animation-duration: 16s;
}
.thumbnail-row:nth-child(4) .thumbnail-background {
    animation-duration: 22s;
}
.thumbnail-row:nth-child(5) .thumbnail-background {
    animation-duration: 14s;
}

.hamburger-fixed {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 1001;
    background: rgba(20, 24, 40, 0.8);
    border: 2px solid rgba(58, 65, 87, 0.6);
    font-size: 2.2rem;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hamburger-fixed:hover {
    background: rgba(20, 24, 40, 0.9);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

body.light-mode .hamburger-fixed {
    background: rgba(255, 255, 255, 0.8);
    color: #23202b;
    border-color: rgba(230, 184, 0, 0.6);
}

body.light-mode .hamburger-fixed:hover {
    background: rgba(255, 255, 255, 0.9);
}

.discord-messages {
  margin: 20px 0 16px 0;
  padding: 0 2px;
  max-height: 340px;
  overflow-y: auto;
  background: rgba(24,21,31,0.7);
  border-radius: 12px;
  box-shadow: 0 2px 12px #0002;
}
.discord-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 1rem;
}
.discord-message:last-child {
  border-bottom: none;
}
.msg-avatar img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: 0 1px 4px #0003;
  background: #23202b;
}
.msg-main {
  flex: 1;
  min-width: 0;
}
.msg-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.msg-user {
  font-weight: 600;
  color: #fff;
  font-size: 1.05em;
  margin-right: 2px;
  word-break: break-all;
}
.msg-role {
  font-size: 0.85em;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 8px;
  margin-right: 4px;
  margin-left: 2px;
  vertical-align: middle;
  letter-spacing: 0.5px;
}
.msg-role.creators {
  background: #e014a1;
  color: #fff;
}
.msg-role.var {
  background: #5865f2;
  color: #fff;
}
.msg-time {
  font-size: 0.82em;
  color: #b5b5b5;
  margin-left: 6px;
  font-weight: 400;
}
.msg-text {
  color: #e6e6e6;
  font-size: 1em;
  line-height: 1.5;
  word-break: break-word;
  white-space: pre-line;
}
body.light-mode .discord-messages {
  background: #f8fafc;
  box-shadow: 0 2px 12px #0001;
}
body.light-mode .discord-message {
  border-bottom: 1px solid #e2e8f0;
}
body.light-mode .msg-user {
  color: #23202b;
}
body.light-mode .msg-role.creators {
  background: #e014a1;
  color: #fff;
}
body.light-mode .msg-role.var {
  background: #ffd43b;
  color: #23202b;
}
body.light-mode .msg-time {
  color: #7b7b7b;
}
body.light-mode .msg-text {
  color: #23202b;
}

.discord-input-row {
  display: flex;
  align-items: center;
  background: rgba(30, 31, 34, 0.95);
  border-radius: 8px;
  padding: 0 16px;
  margin: 16px 12px 12px 12px;
  min-height: 48px;
  box-shadow: 0 1px 0 0 rgba(0,0,0,0.2);
  border: 1px solid rgba(79,84,92,0.3);
}
.discord-input-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 12px;
}
.discord-input-field {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 16px;
  padding: 12px 0;
  outline: none;
}
.discord-input-icon {
  margin-left: 12px;
  font-size: 22px;
  color: #b9bbbe;
  cursor: pointer;
  transition: color 0.2s;
  user-select: none;
  display: flex;
  align-items: center;
}
.discord-input-icon:hover {
  color: #fff;
}
.discord-input-send {
  background: #5865f2;
  border: none;
  border-radius: 6px;
  margin-left: 12px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #fff;
  transition: background 0.2s;
}
.discord-input-send:hover {
  background: #4752c4;
}

/* Thumbnail Hover Animation */
.thumbnails-multiline img, .thumbnail-background img {
  transition: transform 0.22s cubic-bezier(.4,1.7,.7,1), box-shadow 0.22s cubic-bezier(.4,1.7,.7,1);
}
.thumbnails-multiline img:hover, .thumbnail-background img:hover {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 8px 32px #23272a55, 0 2px 8px #5865f2aa;
  z-index: 2;
}

/* Flame Box Styling */
.flame-box {
    margin-top: 20px;
    background: #23202b;
    border: 2px solid #ffd43b;
    box-shadow: 0 8px 32px rgba(88, 101, 242, 0.3);
    animation: flameGlow 3s ease-in-out infinite alternate, float 6s ease-in-out infinite;
}

.flame-box:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 40px rgba(88, 101, 242, 0.5);
}

@keyframes flameGlow {
    0% { box-shadow: 0 8px 32px rgba(88, 101, 242, 0.3); }
    100% { box-shadow: 0 8px 32px rgba(88, 101, 242, 0.6), 0 0 20px rgba(88, 101, 242, 0.4); }
}

/* Floating animation for owner boxes */
.owner-box {
    animation: float 6s ease-in-out infinite;
}

.flame-box {
    animation: float 6s ease-in-out infinite, flameGlow 3s ease-in-out infinite alternate;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Global animation keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 5px rgba(255, 212, 59, 0.2); }
    50% { box-shadow: 0 0 20px rgba(255, 212, 59, 0.4); }
    100% { box-shadow: 0 0 5px rgba(255, 212, 59, 0.2); }
}

/* Apply animations to elements */
.info-section, .team-member, .faq-section, .about-us-grid-item {
    animation: fadeIn 0.6s ease-out;
}

.nav-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease-out, height 0.6s ease-out;
}

.nav-btn:hover::after {
    width: 300px;
    height: 300px;
}

.team-member {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.team-pic {
    transition: transform 0.5s ease, border-color 0.3s ease;
}

.team-member:hover .team-pic {
    transform: scale(1.05) rotate(2deg);
}

.faq-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateX(5px);
}

.faq-item summary {
    transition: color 0.3s ease, background-color 0.3s ease;
}

.faq-item[open] {
    animation: scaleIn 0.3s ease-out;
}

.discord-cta {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.discord-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.discord-cta:hover::before {
    left: 100%;
}

.owner-box {
    animation: glowPulse 3s infinite, float 6s ease-in-out infinite;
}

.about-us-title::after {
    animation: slideIn 0.6s ease-out;
}

#animated-stats {
    animation: fadeIn 0.8s ease-out;
}

.about-us-grid-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-us-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Enhanced reviews carousel animations */
#reviews-carousel p {
    animation: fadeIn 0.6s ease-out;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#reviews-carousel p:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img[loading] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Enhanced theme toggle animation */
#theme-toggle {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
}

/* Logo animation */
.logo:hover {
    transform: scale(1.05);
}

/* FAQ upvote button animation */
.faq-upvote {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-upvote:hover {
    transform: scale(1.05);
}

.faq-upvote:active {
    transform: scale(0.95);
}
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scrollbar from 200vw */
    box-sizing: border-box; /* Ensure consistent box model */
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #18151f;
    color: #fff;
    transition: background 0.5s, color 0.5s, border-color 0.5s, box-shadow 0.5s;
}

header {
    background: linear-gradient(180deg, #2d232e 0%, #18151f 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: background 0.5s, color 0.5s, border-color 0.5s, box-shadow 0.5s;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 32px;
    max-width: 800px;
    margin: 32px auto 0 auto;
    gap: 18px;
    position: relative;
    background: rgba(20, 24, 40, 0.3); /* noch transparenterer Hintergrund */
    border-radius: 40px;                /* starke Abrundung */
    border: 2px solid rgba(58, 65, 87, 0.6);          /* transparenterer Rand */
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.1);
    transition: background 0.5s, color 0.5s, border-color 0.5s, box-shadow 0.5s;
    margin-bottom: 40px;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 32px 0 24px 0;
}

.logo {
    height: 220px;
    width: auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    background: #fff1;
    transition: transform 0.5s ease;
}

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

.header-logo {
    height: 50px;
    width: 50px;
    margin-right: 28px;
    vertical-align: middle;
    display: block;
    border-radius: 22%;
    object-fit: cover;
    background: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 18px;
    margin: 0;
    padding: 0;
}

.nav-btn {
    display: flex;
    align-items: center;
    padding: 10px 26px;
    border-radius: 30px;
    background: #23202b;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    border: none;
    position: relative;
    overflow: hidden;
}

.nav-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease-out, height 0.6s ease-out;
}

.nav-btn:hover::after {
    width: 300px;
    height: 300px;
}

.nav-btn.highlight {
    background: #ffd43b;
    color: #23202b;
    box-shadow: 0 2px 8px #ffd43b44;
}

.nav-btn:hover {
    background: #ffd43b;
    color: #23202b;
}

@media (max-width: 700px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 10px;
    }
    .nav-links {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        margin-top: 10px;
    }
    .logo {
        height: 130px;
    }
    .logo-container {
        margin: 18px 0 12px 0;
    }
}

.info-section {
    max-width: 600px;
    margin: 0 auto;
    background: #23202b;
    border-radius: 16px;
    box-shadow: 0 2px 16px #0002;
    padding: 32px 24px;
    margin-top: 24px;
    color: #fff;
    transition: background 0.5s, color 0.5s, border-color 0.5s, box-shadow 0.5s;
    animation: fadeIn 0.6s ease-out;
}

.info-section h2 {
    color: #ffd43b;
    margin-top: 24px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.info-section h2::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(88, 101, 242, 0.4), transparent);
    animation: scanLine 3s ease-in-out infinite;
}

@keyframes scanLine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.info-section ul {
    padding-left: 22px;
    margin-bottom: 18px;
}

.info-section ul li {
    position: relative;
    padding-left: 25px;
    transition: all 0.3s ease;
}

.info-section ul li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #5865f2;
    animation: pulseArrow 2s ease-in-out infinite;
}

@keyframes pulseArrow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

.info-section ul li:hover {
    transform: translateX(10px);
    color: #5865f2;
}

.info-section ul li:hover::before {
    animation: bounceArrow 0.5s ease-in-out;
}

@keyframes bounceArrow {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

.discord-cta {
    display: inline-block;
    background: #ffd43b;
    color: #23202b;
    font-weight: bold;
    padding: 10px 28px;
    border-radius: 30px;
    text-decoration: none;
    margin: 10px 0 18px 0;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px #ffd43b44;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.discord-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.discord-cta:hover::before {
    left: 100%;
}

.discord-cta:hover {
    background: #fff;
    color: #23202b;
}

.owner-box {
    background: linear-gradient(rgba(24,21,31,0.7), rgba(24,21,31,0.7)), url('background.png') center/cover no-repeat;
    border-left: 4px solid #ffd43b;
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 18px;
    margin-top: 8px;
    text-align: center;
    position: relative;
    color: #fff;
    overflow: hidden;
    transition: background 0.5s, color 0.5s, border-color 0.5s, box-shadow 0.5s;
    animation: glowPulse 3s infinite, float 6s ease-in-out infinite;
}

.owner-box b, .owner-box span {
    display: block;
    margin: 0 auto;
}

.owner-box blockquote {
    margin: 10px 0 0 0;
    color: #ffd43b;
    font-style: italic;
    border-left: none;
    padding-left: 0;
}

.owner-pic {
    display: block;
    margin: 0 auto 10px auto;
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #ffd43b;
    box-shadow: 0 2px 8px #0004;
}

@media (max-width: 700px) {
    .info-section {
        padding: 16px 6px;
    }
}

#theme-toggle {
    margin-left: auto;
    background: #23202b;
    color: #ffd43b;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

#theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
}

#animated-stats {
    text-align: center;
    margin: 24px 0 0 0;
    font-size: 2.2rem;
    font-weight: bold;
    color: #ffd43b;
    letter-spacing: 2px;
    min-height: 40px;
    transition: color 0.3s;
    animation: fadeIn 0.8s ease-out;
}

.discord-widget {
    display: flex;
    justify-content: center;
    margin: 32px 0;
}
.custom-discord-widget {
    max-width: 900px;
    margin: 32px auto;
    background: rgba(24, 21, 31, 0.85);
    border-radius: 22px;
    box-shadow: 0 8px 40px 0 rgba(0,0,0,0.25), 0 1.5px 8px 0 rgba(0,0,0,0.10);
    backdrop-filter: blur(8px);
    padding: 0 0 18px 0;
    overflow: hidden;
}

.discord-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 32px 18px 32px;
    border-bottom: 1.5px solid rgba(255,255,255,0.07);
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.08);
    font-size: 1.18em;
    font-weight: 600;
    background: rgba(24,21,31,0.92);
}

.discord-content-row {
    display: flex;
    flex-direction: row;
    gap: 36px;
    flex-wrap: wrap;
}
.discord-channels {
    min-width: 220px;
    max-width: 270px;
    flex: 0 0 240px;
    overflow: hidden;
    padding: 16px 0 16px 0;
    border-right: 2px solid rgba(255,255,255,0.07);
    background: rgba(24,21,31,0.93);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.discord-messages {
    flex: 1 1 0;
    min-width: 420px;
    max-width: 900px;
    padding: 16px 0 16px 0;
    background: transparent;
    overflow-y: auto;
    max-height: 420px;
    scrollbar-width: thin;
    scrollbar-color: #23202b #18151f;
}
.discord-messages::-webkit-scrollbar {
    width: 8px;
    background: #18151f;
    border-radius: 8px;
}
.discord-messages::-webkit-scrollbar-thumb {
    background: #23202b;
    border-radius: 8px;
}
.channel {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px 8px 18px;
    border-radius: 8px;
    font-size: 1.04em;
    color: #b5b5b5;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    margin-bottom: 2px;
    font-weight: 500;
}
.channel.active {
    background: linear-gradient(90deg, #2563eb 60%, #1e293b 100%);
    color: #fff;
    box-shadow: 0 2px 8px #2563eb22;
}
.channel:not(.active):hover:not(.disabled) {
    background: rgba(37,99,235,0.10);
    color: #fff;
}
.channel.disabled {
    opacity: 0.45;
    pointer-events: none;
    filter: grayscale(0.7);
}
.channel-icon {
    font-size: 1.25em;
    margin-right: 8px;
    display: inline-block;
    width: 1.5em;
    text-align: center;
}
.discord-messages {
    margin: 20px 0 16px 0;
    border-radius: 0 0 18px 0;
    box-shadow: none;
    background: transparent;
}
.discord-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px 10px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 1rem;
}
.discord-message:last-child {
    border-bottom: none;
}
.msg-avatar img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    box-shadow: 0 1px 4px #0003;
    background: #23202b;
}
.msg-main {
    flex: 1;
    min-width: 0;
}
.msg-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}
.msg-user {
    font-weight: 600;
    color: #fff;
    font-size: 1.05em;
    margin-right: 2px;
    word-break: break-all;
}
.msg-role {
    font-size: 0.85em;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 8px;
    margin-right: 4px;
    margin-left: 2px;
    vertical-align: middle;
    letter-spacing: 0.5px;
}
.msg-role.creators {
    background: #e014a1;
    color: #fff;
}
.msg-role.var {
    background: #ffd43b;
    color: #23202b;
}
.msg-time {
    font-size: 0.82em;
    color: #b5b5b5;
    margin-left: 6px;
    font-weight: 400;
}
.msg-text {
    color: #e6e6e6;
    font-size: 1em;
    line-height: 1.5;
    word-break: break-word;
    white-space: pre-line;
}
.discord-join {
    text-align: center;
    margin-top: 18px;
}
.join-discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #5865f2, #4752c4);
    color: #fff;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
    font-size: 1.08em;
}
.join-discord-btn:hover {
    background: linear-gradient(135deg, #4752c4, #3c45a5);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(88, 101, 242, 0.4);
}
.discord-icon {
    font-size: 1.1rem;
}
body.light-mode .custom-discord-widget {
    background: rgba(255,255,255,0.97);
    box-shadow: 0 8px 40px 0 rgba(30,41,59,0.10), 0 1.5px 8px 0 rgba(30,41,59,0.08);
}
body.light-mode .discord-header {
    background: rgba(255,255,255,0.98);
    border-bottom: 1.5px solid #e2e8f0;
    color: #23202b;
}
body.light-mode .discord-channels {
    background: #f8fafc;
    border-right: 2px solid #e2e8f0;
}
body.light-mode .channel {
    color: #475569;
}
body.light-mode .channel.active {
    background: linear-gradient(90deg, #ffd43b 60%, #f8fafc 100%);
    color: #23202b;
    box-shadow: 0 2px 8px #ffd43b22;
}
body.light-mode .channel:not(.active):hover:not(.disabled) {
    background: rgba(255,212,59,0.10);
    color: #23202b;
}
body.light-mode .discord-messages {
    background: transparent;
    box-shadow: none;
}
body.light-mode .discord-message {
    border-bottom: 1px solid #e2e8f0;
}
body.light-mode .msg-user {
    color: #23202b;
}
body.light-mode .msg-role.creators {
    background: #e014a1;
    color: #fff;
}
body.light-mode .msg-role.var {
    background: #ffd43b;
    color: #23202b;
}
body.light-mode .msg-time {
    color: #7b7b7b;
}
body.light-mode .msg-text {
    color: #23202b;
}
@media (max-width: 1400px) {
    .custom-discord-widget {
        max-width: 99vw;
        margin: 12px 0;
    }
    .discord-messages {
        min-width: 0;
        max-width: 100vw;
    }
}
@media (max-width: 900px) {
    .discord-content-row {
        flex-direction: column;
        gap: 0;
        flex-wrap: nowrap;
    }
    .discord-channels, .discord-messages {
        max-width: 100%;
        min-width: 0;
        flex: unset;
        padding: 0;
    }
    .discord-header {
        padding: 16px 10px 12px 10px;
        font-size: 1em;
    }
    .discord-input-row {
        margin: 12px 6px 0 6px;
        padding: 8px 10px;
    }
}

.team-title {
    text-align: center;
    margin: 40px 0 24px 0;
    font-size: 2.8rem;
    color: #ffd43b;
    position: relative;
    padding-bottom: 20px;
    text-shadow: 0 2px 10px rgba(255, 212, 59, 0.3);
}

.team-title::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #ffd43b, transparent);
    border-radius: 2px;
}

.team-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto 32px auto;
    padding: 20px;
    position: relative;
}

.team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 212, 59, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.team-member {
    background: #23202b;
    border-radius: 18px;
    box-shadow: 0 2px 16px #0002;
    padding: 28px 24px 20px 24px;
    text-align: center;
    width: 220px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transition: background 0.5s, color 0.5s, border-color 0.5s, box-shadow 0.5s;
    animation: fadeIn 0.6s ease-out;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.team-pic {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 22%;
    border: 3px solid #ffd43b;
    margin-bottom: 16px;
    background: #18151f;
    transition: transform 0.5s ease, border-color 0.3s ease;
    position: relative;
}

/* Add dot for profile images with "zahl" in filename */
.team-pic[src*="zahl"]::after {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #ffd43b;
    border-radius: 50%;
    border: 3px solid #23202b;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

body.light-mode .team-pic[src*="zahl"]::after {
    background: #e6b800;
    border-color: #fff;
}

.team-member:hover .team-pic {
    transform: scale(1.05) rotate(2deg);
}

.team-member h2 {
    margin: 0 0 8px 0;
    font-size: 1.3rem;
    color: #ffd43b;
}

.team-role {
    color: #fff;
    font-size: 1.05rem;
    margin: 0;
    opacity: 0.85;
}

body.light-mode .team-title {
    color: #d97706;
    text-shadow: 0 2px 10px rgba(217, 119, 6, 0.15);
}
body.light-mode .team-title::before {
    background: linear-gradient(90deg, transparent, #e6b800, transparent);
}
body.light-mode .team-section::before {
    background: radial-gradient(circle at center, rgba(230, 184, 0, 0.1) 0%, transparent 70%);
}
body.light-mode .team-section + div .nav-btn {
    background: linear-gradient(45deg, #fff, #f7f7fa);
    border-color: #e6b800;
}
body.light-mode .team-section + div .nav-btn:hover {
    box-shadow: 0 5px 15px rgba(230, 184, 0, 0.2);
}
body.light-mode .team-member {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: #1e293b;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 16px rgba(148, 163, 184, 0.1);
}
body.light-mode .team-pic {
    border: 3px solid #d97706;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.2);
}
body.light-mode .team-role {
    color: #475569;
}

body, header, .navbar, .info-section, .owner-box, .team-member, .team-title, .team-pic, .nav-btn {
    transition: background 0.5s, color 0.5s, border-color 0.5s, box-shadow 0.5s;
}

#theme-animation {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}
#theme-animation.active {
    opacity: 1;
}
.theme-anim-svg {
    width: 200px;
    height: 200px;
    filter: drop-shadow(0 0 60px #ffd43b88) drop-shadow(0 0 20px #fff8);
    transform-style: preserve-3d;
    animation: totem-pop-spin-3d 0.5s cubic-bezier(.5,2,.5,1) forwards, totem-pulse 0.5s 0.5s cubic-bezier(.5,2,.5,1) 2 alternate, fade-out-spin-3d 1s 1.5s linear forwards;
}
.theme-anim-svg.moon {
    filter: drop-shadow(0 0 60px #6ec6ff88) drop-shadow(0 0 20px #fff8);
}
@keyframes totem-pop-spin-3d {
    0% { transform: perspective(600px) scale(0.1) rotateY(0deg); opacity: 0; }
    60% { transform: perspective(600px) scale(1.2) rotateY(90deg); opacity: 1; }
    100% { transform: perspective(600px) scale(1) rotateY(0deg); opacity: 1; }
}
@keyframes totem-pulse {
    0% { transform: perspective(600px) scale(1) rotateY(0deg); }
    100% { transform: perspective(600px) scale(1.12) rotateY(0deg); }
}
@keyframes fade-out-spin-3d {
    0% { opacity: 1; transform: perspective(600px) scale(1) rotateY(0deg); }
    100% { opacity: 0; transform: perspective(600px) scale(0.5) rotateY(120deg) translateY(80px); }
}
.totem-particles {
    position: absolute;
    left: 50%;
    top: 50%;
    pointer-events: none;
    z-index: 10000;
}
.totem-particle {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    opacity: 0.85;
    background: var(--color, #ffd43b);
    box-shadow: 0 0 16px 4px var(--color-glow, #ffd43b88);
    animation: particle-fly 1.2s cubic-bezier(.5,2,.5,1) forwards;
}
.totem-particle.moon {
    background: #6ec6ff;
    box-shadow: 0 0 16px 4px #6ec6ff88;
}
@keyframes particle-fly {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
    60% { opacity: 1; }
    100% {
        transform: translate(var(--tx, 0), var(--ty, 0)) scale(1.2) rotate(var(--rot, 0deg));
        opacity: 0;
    }
}

.faq-section {
    max-width: 600px;
    margin: 40px auto 32px auto;
    background: #23202b;
    border-radius: 16px;
    box-shadow: 0 2px 16px #0002;
    padding: 32px 24px;
    color: #fff;
    animation: fadeIn 0.6s ease-out;
}
.faq-section h2 {
    color: #ffd43b;
    margin-top: 0;
    margin-bottom: 18px;
    text-align: center;
}
.faq-item {
    margin-bottom: 18px;
    border-radius: 8px;
    background: #18151f;
    box-shadow: 0 1px 6px #0001;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.6s ease-out;
}
.faq-item:hover {
    transform: translateX(5px);
}
.faq-item summary {
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 14px 18px;
    outline: none;
    color: #ffd43b;
    background: none;
    border: none;
    transition: color 0.3s ease, background-color 0.3s ease;
}
.faq-item[open] {
    animation: scaleIn 0.3s ease-out;
}
.faq-item p {
    margin: 0;
    padding: 0 18px 14px 18px;
    color: #fff;
    font-size: 1rem;
    opacity: 0.95;
}
body.light-mode .faq-section {
    background: #fff;
    color: #23202b;
}
body.light-mode .faq-section h2 {
    color: #e6b800;
}
body.light-mode .faq-item {
    background: #f7f7fa;
    box-shadow: 0 1px 6px #e6b80022;
}
body.light-mode .faq-item summary {
    color: #e6b800;
}
body.light-mode .faq-item[open] summary {
    color: #23202b;
}
body.light-mode .faq-item p {
    color: #23202b;
}

body.no-theme-anim #theme-animation {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: none !important;
}

.faq-upvote {
    display: inline-flex;
    align-items: center;
    background: #23202b;
    color: #ffd43b;
    border: none;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 1.1rem;
    font-weight: bold;
    margin: 10px 0 0 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 4px #0002;
    gap: 8px;
    pointer-events: auto;
    cursor: pointer;
    animation: fadeIn 0.6s ease-out;
}
.faq-upvote:hover {
    transform: scale(1.05);
}
.faq-upvote:active {
    transform: scale(0.95);
}
.faq-upvote.voted {
    background: #888 !important;
    color: #fff !important;
    opacity: 0.7;
    pointer-events: auto !important;
    cursor: pointer !important;
}
.faq-upvote .upvote-count {
    font-size: 1rem;
    margin-left: 4px;
}
.faq-missing {
    margin-top: 32px;
    padding: 18px 16px;
    background: #18151f;
    border-radius: 10px;
    text-align: center;
    color: #ffd43b;
    font-size: 1.1rem;
    box-shadow: 0 1px 8px #0001;
}
.faq-missing a {
    color: #ffd43b;
    text-decoration: underline;
    font-weight: bold;
}
body.light-mode .faq-upvote {
    background: #f7f7fa;
    color: #e6b800;
}
body.light-mode .faq-upvote:hover {
    background: #e6b800;
    color: #fff;
}
body.light-mode .faq-missing {
    background: #fffbe6;
    color: #e6b800;
}
body.light-mode .faq-missing a {
    color: #e6b800;
}

.about-us-section {
    max-width: 1000px;
    margin: 40px auto 60px auto;
    padding: 0 20px;
    color: #fff;
}

.about-us-title {
    text-align: center;
    margin: 0 0 40px 0;
    font-size: 2.8rem;
    color: #e014a1;
    position: relative;
    animation: slideIn 0.6s ease-out;
}
.about-us-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 6px;
    background: #e014a1;
    margin: 10px auto 0 auto;
    border-radius: 3px;
    animation: slideIn 0.6s ease-out;
}

.about-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.about-us-grid-item {
    background: #18151f;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    padding: 28px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.6s ease-out;
}

.about-us-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.about-us-grid-item h2 {
    color: #e014a1;
    margin-top: 0;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* Specific H2 colors for the grid items */
.about-us-grid-item.top-right h2,
.about-us-grid-item.bottom-right h2 {
    color: #6ec6ff;
}

.about-us-grid-item p, .about-us-grid-item li {
    font-size: 1rem;
    line-height: 1.6;
    color: #fff;
}

.about-us-grid-item ul {
    padding-left: 20px;
    color: #fff;
}

#animated-stats {
    font-size: 2.5rem;
    font-weight: bold;
    color: #6ec6ff;
    margin-bottom: 15px;
    text-align: left;
}

#animated-stats span {
    display: block;
    font-size: 1rem;
    font-weight: normal;
    color: #ccc;
}

#reviews-carousel {
    margin: 40px 0;
    padding: 20px;
    background: #23202b;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

#reviews-carousel p {
    background: #18151f;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-style: italic;
    line-height: 1.6;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    animation: fadeIn 0.6s ease-out;
}

#reviews-carousel p:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

#reviews-carousel p::before {
    content: '"';
    font-size: 4rem;
    color: #e014a1;
    opacity: 0.2;
    position: absolute;
    top: -10px;
    left: 10px;
    font-family: Georgia, serif;
}

#reviews-carousel .review-author {
    display: block;
    margin-top: 12px;
    font-weight: bold;
    color: #e014a1;
    font-style: normal;
}

.about-us-grid .owner-box {
    background: none;
    border-left: none;
    padding: 0;
    text-align: left;
    box-shadow: none;
}
.about-us-grid .owner-box b,
.about-us-grid .owner-box span {
     display: inline;
     margin: 0;
     color: #fff;
}

.about-us-grid .owner-box blockquote {
    margin: 10px 0;
    color: #fff;
    font-style: normal;
    border-left: 4px solid #e014a1;
    padding-left: 10px;
}

/* Specific styles for the layout */
.about-us-grid .top-left, .about-us-grid .bottom-right {
    grid-column: span 1;
}
.about-us-grid .top-right, .about-us-grid .bottom-left {
     grid-column: span 1;
}

@media (min-width: 768px) {
     .about-us-grid {
         grid-template-columns: 1.5fr 1fr;
         grid-template-areas:
             'top-left top-right'
             'perks reviews';
     }
     .about-us-grid-item.bottom-left {
         grid-area: perks;
     }
     .about-us-grid-item.bottom-right {
         grid-area: reviews;
     }
     .about-us-grid-item.top-left {
         grid-area: top-left;
     }
     .about-us-grid-item.top-right {
         grid-area: top-right;
     }
}

body.light-mode .about-us-section h2 {
    color: #e014a1;
}
body.light-mode .about-us-grid-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 16px rgba(148, 163, 184, 0.1);
    border-radius: 16px;
}
body.light-mode .about-us-title {
     color: #e014a1;
}
body.light-mode .about-us-grid-item p, body.light-mode .about-us-grid-item li {
    color: #000;
}
body.light-mode #animated-stats {
    color: #6ec6ff;
}
body.light-mode #animated-stats span {
    /* Removed as the span is no longer used in HTML */
}
body.light-mode #reviews-carousel {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
body.light-mode #reviews-carousel p {
    background: #f7f7fa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
body.light-mode #reviews-carousel p:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
body.light-mode #reviews-carousel p::before {
    color: #e014a1;
}
body.light-mode #reviews-carousel .review-author {
    color: #e014a1;
}
body.light-mode .about-us-grid .owner-box blockquote {
    border-left-color: #e014a1;
    color: #000;
}

/* Global animation keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 5px rgba(255, 212, 59, 0.2); }
    50% { box-shadow: 0 0 20px rgba(255, 212, 59, 0.4); }
    100% { box-shadow: 0 0 5px rgba(255, 212, 59, 0.2); }
}

/* Apply animations to elements */
.info-section, .team-member, .faq-section, .about-us-grid-item {
    animation: fadeIn 0.6s ease-out;
}

.nav-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease-out, height 0.6s ease-out;
}

.nav-btn:hover::after {
    width: 300px;
    height: 300px;
}

.team-member {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.team-pic {
    transition: transform 0.5s ease, border-color 0.3s ease;
}

.team-member:hover .team-pic {
    transform: scale(1.05) rotate(2deg);
}

.faq-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateX(5px);
}

.faq-item summary {
    transition: color 0.3s ease, background-color 0.3s ease;
}

.faq-item[open] {
    animation: scaleIn 0.3s ease-out;
}

.discord-cta {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.discord-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.discord-cta:hover::before {
    left: 100%;
}

.owner-box {
    animation: glowPulse 3s infinite, float 6s ease-in-out infinite;
}

.about-us-title::after {
    animation: slideIn 0.6s ease-out;
}

#animated-stats {
    animation: fadeIn 0.8s ease-out;
}

.about-us-grid-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-us-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Enhanced reviews carousel animations */
#reviews-carousel p {
    animation: fadeIn 0.6s ease-out;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#reviews-carousel p:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img[loading] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Enhanced theme toggle animation */
#theme-toggle {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
}

/* Logo animation */
.logo:hover {
    transform: scale(1.05);
}

/* FAQ upvote button animation */
.faq-upvote {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-upvote:hover {
    transform: scale(1.05);
}

.faq-upvote:active {
    transform: scale(0.95);
}

/* Team section title animation */
.team-title:hover {
    transform: scale(1.05);
}

/* Light mode specific animations */
body.light-mode .team-title::before {
    background: linear-gradient(90deg, transparent, #e6b800, transparent);
}

body.light-mode .team-section::before {
    background: radial-gradient(circle at center, rgba(230, 184, 0, 0.1) 0%, transparent 70%);
}

body.light-mode .team-section + div .nav-btn {
    background: linear-gradient(45deg, #fff, #f7f7fa);
    border-color: #e6b800;
}

body.light-mode .team-section + div .nav-btn:hover {
    box-shadow: 0 5px 15px rgba(230, 184, 0, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .team-title {
        font-size: 2.2rem;
        margin: 30px 0 20px 0;
    }
    
    .team-section {
        gap: 20px;
        padding: 15px;
    }
    
    .team-section + div .nav-btn {
        padding: 10px 24px;
        font-size: 1.1rem;
    }
}

/* Enhanced Back Button */
.team-section + div .nav-btn {
    background: linear-gradient(45deg, #23202b, #2d232e);
    padding: 12px 32px;
    font-size: 1.2rem;
    border: 2px solid #ffd43b;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.team-section + div .nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 212, 59, 0.2),
        transparent
    );
    transition: 0.5s;
}

.team-section + div .nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 212, 59, 0.3);
}

.team-section + div .nav-btn:hover::before {
    left: 100%;
}

/* Social Page Styles */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.social-card {
    background: #23202b;
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #ffd43b;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.social-card:hover::before {
    transform: scaleX(1);
}

.social-card h3 {
    color: #ffd43b;
    margin: 0 0 10px 0;
    font-size: 1.4rem;
}

.social-card p {
    margin: 0 0 15px 0;
    opacity: 0.9;
}

.social-stats {
    display: block;
    font-weight: bold;
    color: #ffd43b;
    font-size: 1.1rem;
}

/* Platform-specific colors */
.social-card.discord::before { background: #5865F2; }
.social-card.youtube::before { background: #FF0000; }
.social-card.twitter::before { background: #1DA1F2; }
.social-card.instagram::before { background: #E1306C; }

.social-card.discord:hover { box-shadow: 0 8px 25px rgba(88, 101, 242, 0.2); }
.social-card.youtube:hover { box-shadow: 0 8px 25px rgba(255, 0, 0, 0.2); }
.social-card.twitter:hover { box-shadow: 0 8px 25px rgba(29, 161, 242, 0.2); }
.social-card.instagram:hover { box-shadow: 0 8px 25px rgba(225, 48, 108, 0.2); }

/* Light mode adjustments */
body.light-mode .social-card {
    background: #fff;
    color: #23202b;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

body.light-mode .social-card h3 {
    color: #e6b800;
}

body.light-mode .social-stats {
    color: #e6b800;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .social-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .social-card {
        padding: 20px;
    }
}

.hero-area {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    box-sizing: border-box;
}

.thumbnail-background {
    display: flex;
    white-space: nowrap;
    min-width: 200%;
    align-items: center;
    justify-content: flex-start;
    animation: scroll-left 18s linear infinite;
    position: relative;
    background: rgba(0, 0, 0, 0.1);
    gap: 0;
    padding: 10px;
    border-radius: 10px;
}

.thumbnail-background img {
    height: 200px;
    width: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 16px 0 0;
    padding: 0;
    display: block;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.thumbnail-background img:last-child {
    margin-right: 0;
}

.hero-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1; /* Ensure text is above background */
    text-align: center;
    color: #fff;
    width: 90%;
    max-width: 800px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

main {
    position: relative; /* Keep relative for other sections */
    overflow: hidden;
    /* Remove height/min-height as hero-area now handles this */
    margin: 0; /* Ensure no default margin */
    padding: 0; /* Ensure no default padding */
    box-sizing: border-box; /* Ensure consistent box model */
}

body.light-mode .hero-area {
    background: #f7f7fa; /* Light mode background for hero area */
}

body.light-mode .thumbnail-background::after {
    background: rgba(255, 255, 255, 0.7); /* Adjusted for light mode */
}

body.light-mode .thumbnail-background {
    background: rgba(255, 255, 255, 0.1);
}

body.light-mode .thumbnail-background img {
    filter: brightness(0.8) grayscale(10%); /* More colorful for light mode */
    opacity: 0.5;
}

/* Responsive adjustments for thumbnail grid */
@media (max-width: 1200px) {
    .thumbnail-background {
        grid-template-columns: repeat(12, 1fr);
        grid-template-rows: repeat(2, 16vh);
    }
}

@media (max-width: 900px) {
    .thumbnail-background {
        grid-template-columns: repeat(8, 1fr);
        grid-template-rows: repeat(2, 14vh);
    }
}

@media (max-width: 768px) {
    .thumbnail-background {
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: repeat(2, 12vh);
    }
}

@media (max-width: 500px) {
    .thumbnail-background {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 10vh);
    }
}

.hero-logo {
    width: 250px; /* Adjust as needed */
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.4));
}

.hero-main-text {
    font-size: 4.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
    line-height: 1.1;
}

.hero-sub-text {
    font-size: 2.2rem;
    font-style: italic;
    margin-top: 0;
    margin-bottom: 40px;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.join-team-btn {
    background: #e014a1;
    color: #fff;
    font-size: 1.3rem;
    font-weight: bold;
    padding: 16px 40px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(224, 20, 161, 0.3);
}

.join-team-btn:hover {
    background: #ff33bb;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(224, 20, 161, 0.5);
}

@media (max-width: 768px) {
    .hero-main-text {
        font-size: 3rem;
    }
    .hero-sub-text {
        font-size: 1.5rem;
    }
    .join-team-btn {
        padding: 12px 30px;
        font-size: 1.1rem;
    }
    .hero-logo {
        width: 180px;
    }
}

body.light-mode .hero-main-text,
body.light-mode .hero-sub-text {
    color: #23202b;
    text-shadow: none;
}

body.light-mode .hero-text-overlay {
    background: rgba(255, 255, 255, 0.2);
}

body.light-mode .join-team-btn {
    background: #e014a1;
    color: #fff;
}

body.light-mode .join-team-btn:hover {
    background: #ff33bb;
    box-shadow: 0 8px 30px rgba(224, 20, 161, 0.3);
}

@keyframes scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.thumbnails-multiline {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 0;
    margin-bottom: 0;
    height: calc(5 * 200px + 4 * 6px);
    overflow: hidden;
}
.thumbnail-row {
    width: 100vw;
    overflow: hidden;
    position: relative;
    margin: 0;
}
.thumbnail-row:nth-child(1) .thumbnail-background {
    animation-duration: 18s;
}
.thumbnail-row:nth-child(2) .thumbnail-background {
    animation-duration: 20s;
}
.thumbnail-row:nth-child(3) .thumbnail-background {
    animation-duration: 16s;
}
.thumbnail-row:nth-child(4) .thumbnail-background {
    animation-duration: 22s;
}
.thumbnail-row:nth-child(5) .thumbnail-background {
    animation-duration: 14s;
}

.hamburger-fixed {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 1001;
    background: rgba(20, 24, 40, 0.8);
    border: 2px solid rgba(58, 65, 87, 0.6);
    font-size: 2.2rem;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hamburger-fixed:hover {
    background: rgba(20, 24, 40, 0.9);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

body.light-mode .hamburger-fixed {
    background: rgba(255, 255, 255, 0.8);
    color: #23202b;
    border-color: rgba(230, 184, 0, 0.6);
}

body.light-mode .hamburger-fixed:hover {
    background: rgba(255, 255, 255, 0.9);
}

.discord-messages {
  margin: 20px 0 16px 0;
  padding: 0 2px;
  max-height: 340px;
  overflow-y: auto;
  background: rgba(24,21,31,0.7);
  border-radius: 12px;
  box-shadow: 0 2px 12px #0002;
}
.discord-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 1rem;
}
.discord-message:last-child {
  border-bottom: none;
}
.msg-avatar img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: 0 1px 4px #0003;
  background: #23202b;
}
.msg-main {
  flex: 1;
  min-width: 0;
}
.msg-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.msg-user {
  font-weight: 600;
  color: #fff;
  font-size: 1.05em;
  margin-right: 2px;
  word-break: break-all;
}
.msg-role {
  font-size: 0.85em;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 8px;
  margin-right: 4px;
  margin-left: 2px;
  vertical-align: middle;
  letter-spacing: 0.5px;
}
.msg-role.creators {
  background: #e014a1;
  color: #fff;
}
.msg-role.var {
  background: #5865f2;
  color: #fff;
}
.msg-time {
  font-size: 0.82em;
  color: #b5b5b5;
  margin-left: 6px;
  font-weight: 400;
}
.msg-text {
  color: #e6e6e6;
  font-size: 1em;
  line-height: 1.5;
  word-break: break-word;
  white-space: pre-line;
}
body.light-mode .discord-messages {
  background: #f8fafc;
  box-shadow: 0 2px 12px #0001;
}
body.light-mode .discord-message {
  border-bottom: 1px solid #e2e8f0;
}
body.light-mode .msg-user {
  color: #23202b;
}
body.light-mode .msg-role.creators {
  background: #e014a1;
  color: #fff;
}
body.light-mode .msg-role.var {
  background: #ffd43b;
  color: #23202b;
}
body.light-mode .msg-time {
  color: #7b7b7b;
}
body.light-mode .msg-text {
  color: #23202b;
}

.discord-input-row {
  display: flex;
  align-items: center;
  background: rgba(30, 31, 34, 0.95);
  border-radius: 8px;
  padding: 0 16px;
  margin: 16px 12px 12px 12px;
  min-height: 48px;
  box-shadow: 0 1px 0 0 rgba(0,0,0,0.2);
  border: 1px solid rgba(79,84,92,0.3);
}
.discord-input-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 12px;
}
.discord-input-field {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 16px;
  padding: 12px 0;
  outline: none;
}
.discord-input-icon {
  margin-left: 12px;
  font-size: 22px;
  color: #b9bbbe;
  cursor: pointer;
  transition: color 0.2s;
  user-select: none;
  display: flex;
  align-items: center;
}
.discord-input-icon:hover {
  color: #fff;
}
.discord-input-send {
  background: #5865f2;
  border: none;
  border-radius: 6px;
  margin-left: 12px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #fff;
  transition: background 0.2s;
}
.discord-input-send:hover {
  background: #4752c4;
}

/* Thumbnail Hover Animation */
.thumbnails-multiline img, .thumbnail-background img {
  transition: transform 0.22s cubic-bezier(.4,1.7,.7,1), box-shadow 0.22s cubic-bezier(.4,1.7,.7,1);
}
.thumbnails-multiline img:hover, .thumbnail-background img:hover {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 8px 32px #23272a55, 0 2px 8px #5865f2aa;
  z-index: 2;
}

/* Flame Box Styling */
.flame-box {
    margin-top: 20px;
    background: #23202b;
    border: 2px solid #ffd43b;
    box-shadow: 0 8px 32px rgba(88, 101, 242, 0.3);
    animation: flameGlow 3s ease-in-out infinite alternate, float 6s ease-in-out infinite;
}

.flame-box:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 40px rgba(88, 101, 242, 0.5);
}

@keyframes flameGlow {
    0% { box-shadow: 0 8px 32px rgba(88, 101, 242, 0.3); }
    100% { box-shadow: 0 8px 32px rgba(88, 101, 242, 0.6), 0 0 20px rgba(88, 101, 242, 0.4); }
}

/* Floating animation for owner boxes */
.owner-box {
    animation: float 6s ease-in-out infinite;
}

.flame-box {
    animation: float 6s ease-in-out infinite, flameGlow 3s ease-in-out infinite alternate;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Global animation keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 5px rgba(255, 212, 59, 0.2); }
    50% { box-shadow: 0 0 20px rgba(255, 212, 59, 0.4); }
    100% { box-shadow: 0 0 5px rgba(255, 212, 59, 0.2); }
}

/* Apply animations to elements */
.info-section, .team-member, .faq-section, .about-us-grid-item {
    animation: fadeIn 0.6s ease-out;
}

.nav-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease-out, height 0.6s ease-out;
}

.nav-btn:hover::after {
    width: 300px;
    height: 300px;
}

.team-member {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.team-pic {
    transition: transform 0.5s ease, border-color 0.3s ease;
}

.team-member:hover .team-pic {
    transform: scale(1.05) rotate(2deg);
}

.faq-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateX(5px);
}

.faq-item summary {
    transition: color 0.3s ease, background-color 0.3s ease;
}

.faq-item[open] {
    animation: scaleIn 0.3s ease-out;
}

.discord-cta {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.discord-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.discord-cta:hover::before {
    left: 100%;
}

.owner-box {
    animation: glowPulse 3s infinite, float 6s ease-in-out infinite;
}

.about-us-title::after {
    animation: slideIn 0.6s ease-out;
}

#animated-stats {
    animation: fadeIn 0.8s ease-out;
}

.about-us-grid-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-us-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Enhanced reviews carousel animations */
#reviews-carousel p {
    animation: fadeIn 0.6s ease-out;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#reviews-carousel p:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img[loading] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Enhanced theme toggle animation */
#theme-toggle {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
}

/* Logo animation */
.logo:hover {
    transform: scale(1.05);
}

/* FAQ upvote button animation */
.faq-upvote {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-upvote:hover {
    transform: scale(1.05);
}

.faq-upvote:active {
    transform: scale(0.95);
}

/* Team section title animation */
.team-title:hover {
    transform: scale(1.05);
}

/* Light mode specific animations */
body.light-mode .team-title::before {
    background: linear-gradient(90deg, transparent, #e6b800, transparent);
}

body.light-mode .team-section::before {
    background: radial-gradient(circle at center, rgba(230, 184, 0, 0.1) 0%, transparent 70%);
}

body.light-mode .team-section + div .nav-btn {
    background: linear-gradient(45deg, #fff, #f7f7fa);
    border-color: #e6b800;
}

body.light-mode .team-section + div .nav-btn:hover {
    box-shadow: 0 5px 15px rgba(230, 184, 0, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .team-title {
        font-size: 2.2rem;
        margin: 30px 0 20px 0;
    }
    
    .team-section {
        gap: 20px;
        padding: 15px;
    }
    
    .team-section + div .nav-btn {
        padding: 10px 24px;
        font-size: 1.1rem;
    }
}

/* Enhanced Back Button */
.team-section + div .nav-btn {
    background: linear-gradient(45deg, #23202b, #2d232e);
    padding: 12px 32px;
    font-size: 1.2rem;
    border: 2px solid #ffd43b;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.team-section + div .nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 212, 59, 0.2),
        transparent
    );
    transition: 0.5s;
}

.team-section + div .nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 212, 59, 0.3);
}

.team-section + div .nav-btn:hover::before {
    left: 100%;
}

/* Social Page Styles */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.social-card {
    background: #23202b;
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #ffd43b;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.social-card:hover::before {
    transform: scaleX(1);
}

.social-card h3 {
    color: #ffd43b;
    margin: 0 0 10px 0;
    font-size: 1.4rem;
}

.social-card p {
    margin: 0 0 15px 0;
    opacity: 0.9;
}

.social-stats {
    display: block;
    font-weight: bold;
    color: #ffd43b;
    font-size: 1.1rem;
}

/* Platform-specific colors */
.social-card.discord::before { background: #5865F2; }
.social-card.youtube::before { background: #FF0000; }
.social-card.twitter::before { background: #1DA1F2; }
.social-card.instagram::before { background: #E1306C; }

.social-card.discord:hover { box-shadow: 0 8px 25px rgba(88, 101, 242, 0.2); }
.social-card.youtube:hover { box-shadow: 0 8px 25px rgba(255, 0, 0, 0.2); }
.social-card.twitter:hover { box-shadow: 0 8px 25px rgba(29, 161, 242, 0.2); }
.social-card.instagram:hover { box-shadow: 0 8px 25px rgba(225, 48, 108, 0.2); }

/* Light mode adjustments */
body.light-mode .social-card {
    background: #fff;
    color: #23202b;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

body.light-mode .social-card h3 {
    color: #e6b800;
}

body.light-mode .social-stats {
    color: #e6b800;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .social-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .social-card {
        padding: 20px;
    }
}

.hero-area {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    box-sizing: border-box;
}

.thumbnail-background {
    display: flex;
    white-space: nowrap;
    min-width: 200%;
    align-items: center;
    justify-content: flex-start;
    animation: scroll-left 18s linear infinite;
    position: relative;
    background: rgba(0, 0, 0, 0.1);
    gap: 0;
    padding: 10px;
    border-radius: 10px;
}

.thumbnail-background img {
    height: 200px;
    width: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 16px 0 0;
    padding: 0;
    display: block;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.thumbnail-background img:last-child {
    margin-right: 0;
}

.hero-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1; /* Ensure text is above background */
    text-align: center;
    color: #fff;
    width: 90%;
    max-width: 800px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

main {
    position: relative; /* Keep relative for other sections */
    overflow: hidden;
    /* Remove height/min-height as hero-area now handles this */
    margin: 0; /* Ensure no default margin */
    padding: 0; /* Ensure no default padding */
    box-sizing: border-box; /* Ensure consistent box model */
}

body.light-mode .hero-area {
    background: #f7f7fa; /* Light mode background for hero area */
}

body.light-mode .thumbnail-background::after {
    background: rgba(255, 255, 255, 0.7); /* Adjusted for light mode */
}

body.light-mode .thumbnail-background {
    background: rgba(255, 255, 255, 0.1);
}

body.light-mode .thumbnail-background img {
    filter: brightness(0.8) grayscale(10%); /* More colorful for light mode */
    opacity: 0.5;
}

/* Responsive adjustments for thumbnail grid */
@media (max-width: 1200px) {
    .thumbnail-background {
        grid-template-columns: repeat(12, 1fr);
        grid-template-rows: repeat(2, 16vh);
    }
}

@media (max-width: 900px) {
    .thumbnail-background {
        grid-template-columns: repeat(8, 1fr);
        grid-template-rows: repeat(2, 14vh);
    }
}

@media (max-width: 768px) {
    .thumbnail-background {
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: repeat(2, 12vh);
    }
}

@media (max-width: 500px) {
    .thumbnail-background {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 10vh);
    }
}

.hero-logo {
    width: 250px; /* Adjust as needed */
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.4));
}

.hero-main-text {
    font-size: 4.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
    line-height: 1.1;
}

.hero-sub-text {
    font-size: 2.2rem;
    font-style: italic;
    margin-top: 0;
    margin-bottom: 40px;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.join-team-btn {
    background: #e014a1;
    color: #fff;
    font-size: 1.3rem;
    font-weight: bold;
    padding: 16px 40px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(224, 20, 161, 0.3);
}

.join-team-btn:hover {
    background: #ff33bb;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(224, 20, 161, 0.5);
}

@media (max-width: 768px) {
    .hero-main-text {
        font-size: 3rem;
    }
    .hero-sub-text {
        font-size: 1.5rem;
    }
    .join-team-btn {
        padding: 12px 30px;
        font-size: 1.1rem;
    }
    .hero-logo {
        width: 180px;
    }
}

body.light-mode .hero-main-text,
body.light-mode .hero-sub-text {
    color: #23202b;
    text-shadow: none;
}

body.light-mode .hero-text-overlay {
    background: rgba(255, 255, 255, 0.2);
}

body.light-mode .join-team-btn {
    background: #e014a1;
    color: #fff;
}

body.light-mode .join-team-btn:hover {
    background: #ff33bb;
    box-shadow: 0 8px 30px rgba(224, 20, 161, 0.3);
}

@keyframes scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.thumbnails-multiline {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 0;
    margin-bottom: 0;
    height: calc(5 * 200px + 4 * 6px);
    overflow: hidden;
}
.thumbnail-row {
    width: 100vw;
    overflow: hidden;
    position: relative;
    margin: 0;
}
.thumbnail-row:nth-child(1) .thumbnail-background {
    animation-duration: 18s;
}
.thumbnail-row:nth-child(2) .thumbnail-background {
    animation-duration: 20s;
}
.thumbnail-row:nth-child(3) .thumbnail-background {
    animation-duration: 16s;
}
.thumbnail-row:nth-child(4) .thumbnail-background {
    animation-duration: 22s;
}
.thumbnail-row:nth-child(5) .thumbnail-background {
    animation-duration: 14s;
}

.hamburger-fixed {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 1001;
    background: rgba(20, 24, 40, 0.8);
    border: 2px solid rgba(58, 65, 87, 0.6);
    font-size: 2.2rem;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hamburger-fixed:hover {
    background: rgba(20, 24, 40, 0.9);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

body.light-mode .hamburger-fixed {
    background: rgba(255, 255, 255, 0.8);
    color: #23202b;
    border-color: rgba(230, 184, 0, 0.6);
}

body.light-mode .hamburger-fixed:hover {
    background: rgba(255, 255, 255, 0.9);
}

.discord-messages {
  margin: 20px 0 16px 0;
  padding: 0 2px;
  max-height: 340px;
  overflow-y: auto;
  background: rgba(24,21,31,0.7);
  border-radius: 12px;
  box-shadow: 0 2px 12px #0002;
}
.discord-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 1rem;
}
.discord-message:last-child {
  border-bottom: none;
}
.msg-avatar img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: 0 1px 4px #0003;
  background: #23202b;
}
.msg-main {
  flex: 1;
  min-width: 0;
}
.msg-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.msg-user {
  font-weight: 600;
  color: #fff;
  font-size: 1.05em;
  margin-right: 2px;
  word-break: break-all;
}
.msg-role {
  font-size: 0.85em;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 8px;
  margin-right: 4px;
  margin-left: 2px;
  vertical-align: middle;
  letter-spacing: 0.5px;
}
.msg-role.creators {
  background: #e014a1;
  color: #fff;
}
.msg-role.var {
  background: #5865f2;
  color: #fff;
}
.msg-time {
  font-size: 0.82em;
  color: #b5b5b5;
  margin-left: 6px;
  font-weight: 400;
}
.msg-text {
  color: #e6e6e6;
  font-size: 1em;
  line-height: 1.5;
  word-break: break-word;
  white-space: pre-line;
}
body.light-mode .discord-messages {
  background: #f8fafc;
  box-shadow: 0 2px 12px #0001;
}
body.light-mode .discord-message {
  border-bottom: 1px solid #e2e8f0;
}
body.light-mode .msg-user {
  color: #23202b;
}
body.light-mode .msg-role.creators {
  background: #e014a1;
  color: #fff;
}
body.light-mode .msg-role.var {
  background: #ffd43b;
  color: #23202b;
}
body.light-mode .msg-time {
  color: #7b7b7b;
}
body.light-mode .msg-text {
  color: #23202b;
}

.discord-input-row {
  display: flex;
  align-items: center;
  background: rgba(30, 31, 34, 0.95);
  border-radius: 8px;
  padding: 0 16px;
  margin: 16px 12px 12px 12px;
  min-height: 48px;
  box-shadow: 0 1px 0 0 rgba(0,0,0,0.2);
  border: 1px solid rgba(79,84,92,0.3);
}
.discord-input-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 12px;
}
.discord-input-field {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 16px;
  padding: 12px 0;
  outline: none;
}
.discord-input-icon {
  margin-left: 12px;
  font-size: 22px;
  color: #b9bbbe;
  cursor: pointer;
  transition: color 0.2s;
  user-select: none;
  display: flex;
  align-items: center;
}
.discord-input-icon:hover {
  color: #fff;
}
.discord-input-send {
  background: #5865f2;
  border: none;
  border-radius: 6px;
  margin-left: 12px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #fff;
  transition: background 0.2s;
}
.discord-input-send:hover {
  background: #4752c4;
}

/* Thumbnail Hover Animation */
.thumbnails-multiline img, .thumbnail-background img {
  transition: transform 0.22s cubic-bezier(.4,1.7,.7,1), box-shadow 0.22s cubic-bezier(.4,1.7,.7,1);
}
.thumbnails-multiline img:hover, .thumbnail-background img:hover {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 8px 32px #23272a55, 0 2px 8px #5865f2aa;
  z-index: 2;
}

/* Flame Box Styling */
.flame-box {
    margin-top: 20px;
    background: #23202b;
    border: 2px solid #ffd43b;
    box-shadow: 0 8px 32px rgba(88, 101, 242, 0.3);
    animation: flameGlow 3s ease-in-out infinite alternate, float 6s ease-in-out infinite;
}

.flame-box:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 40px rgba(88, 101, 242, 0.5);
}

@keyframes flameGlow {
    0% { box-shadow: 0 8px 32px rgba(88, 101, 242, 0.3); }
    100% { box-shadow: 0 8px 32px rgba(88, 101, 242, 0.6), 0 0 20px rgba(88, 101, 242, 0.4); }
}

/* Floating animation for owner boxes */
.owner-box {
    animation: float 6s ease-in-out infinite;
}

.flame-box {
    animation: float 6s ease-in-out infinite, flameGlow 3s ease-in-out infinite alternate;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Global animation keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 5px rgba(255, 212, 59, 0.2); }
    50% { box-shadow: 0 0 20px rgba(255, 212, 59, 0.4); }
    100% { box-shadow: 0 0 5px rgba(255, 212, 59, 0.2); }
}

/* Apply animations to elements */
.info-section, .team-member, .faq-section, .about-us-grid-item {
    animation: fadeIn 0.6s ease-out;
}

.nav-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease-out, height 0.6s ease-out;
}

.nav-btn:hover::after {
    width: 300px;
    height: 300px;
}

.team-member {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.team-pic {
    transition: transform 0.5s ease, border-color 0.3s ease;
}

.team-member:hover .team-pic {
    transform: scale(1.05) rotate(2deg);
}

.faq-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateX(5px);
}

.faq-item summary {
    transition: color 0.3s ease, background-color 0.3s ease;
}

.faq-item[open] {
    animation: scaleIn 0.3s ease-out;
}

.discord-cta {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.discord-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.discord-cta:hover::before {
    left: 100%;
}

.owner-box {
    animation: glowPulse 3s infinite, float 6s ease-in-out infinite;
}

.about-us-title::after {
    animation: slideIn 0.6s ease-out;
}

#animated-stats {
    animation: fadeIn 0.8s ease-out;
}

.about-us-grid-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-us-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Enhanced reviews carousel animations */
#reviews-carousel p {
    animation: fadeIn 0.6s ease-out;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#reviews-carousel p:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img[loading] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Enhanced theme toggle animation */
#theme-toggle {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
}

/* Logo animation */
.logo:hover {
    transform: scale(1.05);
}

/* FAQ upvote button animation */
.faq-upvote {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-upvote:hover {
    transform: scale(1.05);
}

.faq-upvote:active {
    transform: scale(0.95);
}

/* Team section title animation */
.team-title:hover {
    transform: scale(1.05);
}

/* Light mode specific animations */
body.light-mode .team-title::before {
    background: linear-gradient(90deg, transparent, #e6b800, transparent);
}

body.light-mode .team-section::before {
    background: radial-gradient(circle at center, rgba(230, 184, 0, 0.1) 0%, transparent 70%);
}

body.light-mode .team-section + div .nav-btn {
    background: linear-gradient(45deg, #fff, #f7f7fa);
    border-color: #e6b800;
}

body.light-mode .team-section + div .nav-btn:hover {
    box-shadow: 0 5px 15px rgba(230, 184, 0, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .team-title {
        font-size: 2.2rem;
        margin: 30px 0 20px 0;
    }
    
    .team-section {
        gap: 20px;
        padding: 15px;
    }
    
    .team-section + div .nav-btn {
        padding: 10px 24px;
        font-size: 1.1rem;
    }
}

/* Enhanced Back Button */
.team-section + div .nav-btn {
    background: linear-gradient(45deg, #23202b, #2d232e);
    padding: 12px 32px;
    font-size: 1.2rem;
    border: 2px solid #ffd43b;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.team-section + div .nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 212, 59, 0.2),
        transparent
    );
    transition: 0.5s;
}

.team-section + div .nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 212, 59, 0.3);
}

.team-section + div .nav-btn:hover::before {
    left: 100%;
}

/* Social Page Styles */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.social-card {
    background: #23202b;
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #ffd43b;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.social-card:hover::before {
    transform: scaleX(1);
}

.social-card h3 {
    color: #ffd43b;
    margin: 0 0 10px 0;
    font-size: 1.4rem;
}

.social-card p {
    margin: 0 0 15px 0;
    opacity: 0.9;
}

.social-stats {
    display: block;
    font-weight: bold;
    color: #ffd43b;
    font-size: 1.1rem;
}

/* Platform-specific colors */
.social-card.discord::before { background: #5865F2; }
.social-card.youtube::before { background: #FF0000; }
.social-card.twitter::before { background: #1DA1F2; }
.social-card.instagram::before { background: #E1306C; }

.social-card.discord:hover { box-shadow: 0 8px 25px rgba(88, 101, 242, 0.2); }
.social-card.youtube:hover { box-shadow: 0 8px 25px rgba(255, 0, 0, 0.2); }
.social-card.twitter:hover { box-shadow: 0 8px 25px rgba(29, 161, 242, 0.2); }
.social-card.instagram:hover { box-shadow: 0 8px 25px rgba(225, 48, 108, 0.2); }

/* Light mode adjustments */
body.light-mode .social-card {
    background: #fff;
    color: #23202b;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

body.light-mode .social-card h3 {
    color: #e6b800;
}

body.light-mode .social-stats {
    color: #e6b800;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .social-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .social-card {
        padding: 20px;
    }
}

.hero-area {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    box-sizing: border-box;
}

.thumbnail-background {
    display: flex;
    white-space: nowrap;
    min-width: 200%;
    align-items: center;
    justify-content: flex-start;
    animation: scroll-left 18s linear infinite;
    position: relative;
    background: rgba(0, 0, 0, 0.1);
    gap: 0;
    padding: 10px;
    border-radius: 10px;
}

.thumbnail-background img {
    height: 200px;
    width: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 16px 0 0;
    padding: 0;
    display: block;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.thumbnail-background img:last-child {
    margin-right: 0;
}

.hero-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1; /* Ensure text is above background */
    text-align: center;
    color: #fff;
    width: 90%;
    max-width: 800px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

main {
    position: relative; /* Keep relative for other sections */
    overflow: hidden;
    /* Remove height/min-height as hero-area now handles this */
    margin: 0; /* Ensure no default margin */
    padding: 0; /* Ensure no default padding */
    box-sizing: border-box; /* Ensure consistent box model */
}

body.light-mode .hero-area {
    background: #f7f7fa; /* Light mode background for hero area */
}

body.light-mode .thumbnail-background::after {
    background: rgba(255, 255, 255, 0.7); /* Adjusted for light mode */
}

body.light-mode .thumbnail-background {
    background: rgba(255, 255, 255, 0.1);
}

body.light-mode .thumbnail-background img {
    filter: brightness(0.8) grayscale(10%); /* More colorful for light mode */
    opacity: 0.5;
}

/* Responsive adjustments for thumbnail grid */
@media (max-width: 1200px) {
    .thumbnail-background {
        grid-template-columns: repeat(12, 1fr);
        grid-template-rows: repeat(2, 16vh);
    }
}

@media (max-width: 900px) {
    .thumbnail-background {
        grid-template-columns: repeat(8, 1fr);
        grid-template-rows: repeat(2, 14vh);
    }
}

@media (max-width: 768px) {
    .thumbnail-background {
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: repeat(2, 12vh);
    }
}

@media (max-width: 500px) {
    .thumbnail-background {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 10vh);
    }
}

.hero-logo {
    width: 250px; /* Adjust as needed */
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.4));
}

.hero-main-text {
    font-size: 4.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
    line-height: 1.1;
}

.hero-sub-text {
    font-size: 2.2rem;
    font-style: italic;
    margin-top: 0;
    margin-bottom: 40px;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.join-team-btn {
    background: #e014a1;
    color: #fff;
    font-size: 1.3rem;
    font-weight: bold;
    padding: 16px 40px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(224, 20, 161, 0.3);
}

.join-team-btn:hover {
    background: #ff33bb;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(224, 20, 161, 0.5);
}

@media (max-width: 768px) {
    .hero-main-text {
        font-size: 3rem;
    }
    .hero-sub-text {
        font-size: 1.5rem;
    }
    .join-team-btn {
        padding: 12px 30px;
        font-size: 1.1rem;
    }
    .hero-logo {
        width: 180px;
    }
}

body.light-mode .hero-main-text,
body.light-mode .hero-sub-text {
    color: #23202b;
    text-shadow: none;
}

body.light-mode .hero-text-overlay {
    background: rgba(255, 255, 255, 0.2);
}

body.light-mode .join-team-btn {
    background: #e014a1;
    color: #fff;
}

body.light-mode .join-team-btn:hover {
    background: #ff33bb;
    box-shadow: 0 8px 30px rgba(224, 20, 161, 0.3);
}

@keyframes scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.thumbnails-multiline {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 0;
    margin-bottom: 0;
    height: calc(5 * 200px + 4 * 6px);
    overflow: hidden;
}
.thumbnail-row {
    width: 100vw;
    overflow: hidden;
    position: relative;
    margin: 0;
}
.thumbnail-row:nth-child(1) .thumbnail-background {
    animation-duration: 18s;
}
.thumbnail-row:nth-child(2) .thumbnail-background {
    animation-duration: 20s;
}
.thumbnail-row:nth-child(3) .thumbnail-background {
    animation-duration: 16s;
}
.thumbnail-row:nth-child(4) .thumbnail-background {
    animation-duration: 22s;
}
.thumbnail-row:nth-child(5) .thumbnail-background {
    animation-duration: 14s;
}

.hamburger-fixed {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 1001;
    background: rgba(20, 24, 40, 0.8);
    border: 2px solid rgba(58, 65, 87, 0.6);
    font-size: 2.2rem;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hamburger-fixed:hover {
    background: rgba(20, 24, 40, 0.9);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

body.light-mode .hamburger-fixed {
    background: rgba(255, 255, 255, 0.8);
    color: #23202b;
    border-color: rgba(230, 184, 0, 0.6);
}

body.light-mode .hamburger-fixed:hover {
    background: rgba(255, 255, 255, 0.9);
}

.discord-messages {
  margin: 20px 0 16px 0;
  padding: 0 2px;
  max-height: 340px;
  overflow-y: auto;
  background: rgba(24,21,31,0.7);
  border-radius: 12px;
  box-shadow: 0 2px 12px #0002;
}
.discord-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 1rem;
}
.discord-message:last-child {
  border-bottom: none;
}
.msg-avatar img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: 0 1px 4px #0003;
  background: #23202b;
}
.msg-main {
  flex: 1;
  min-width: 0;
}
.msg-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.msg-user {
  font-weight: 600;
  color: #fff;
  font-size: 1.05em;
  margin-right: 2px;
  word-break: break-all;
}
.msg-role {
  font-size: 0.85em;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 8px;
  margin-right: 4px;
  margin-left: 2px;
  vertical-align: middle;
  letter-spacing: 0.5px;
}
.msg-role.creators {
  background: #e014a1;
  color: #fff;
}
.msg-role.var {
  background: #5865f2;
  color: #fff;
}
.msg-time {
  font-size: 0.82em;
  color: #b5b5b5;
  margin-left: 6px;
  font-weight: 400;
}
.msg-text {
  color: #e6e6e6;
  font-size: 1em;
  line-height: 1.5;
  word-break: break-word;
  white-space: pre-line;
}
body.light-mode .discord-messages {
  background: #f8fafc;
  box-shadow: 0 2px 12px #0001;
}
body.light-mode .discord-message {
  border-bottom: 1px solid #e2e8f0;
}
body.light-mode .msg-user {
  color: #23202b;
}
body.light-mode .msg-role.creators {
  background: #e014a1;
  color: #fff;
}
body.light-mode .msg-role.var {
  background: #ffd43b;
  color: #23202b;
}
body.light-mode .msg-time {
  color: #7b7b7b;
}
body.light-mode .msg-text {
  color: #23202b;
}

.discord-input-row {
  display: flex;
  align-items: center;
  background: rgba(30, 31, 34, 0.95);
  border-radius: 8px;
  padding: 0 16px;
  margin: 16px 12px 12px 12px;
  min-height: 48px;
  box-shadow: 0 1px 0 0 rgba(0,0,0,0.2);
  border: 1px solid rgba(79,84,92,0.3);
}
.discord-input-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 12px;
}
.discord-input-field {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 16px;
  padding: 12px 0;
  outline: none;
}
.discord-input-icon {
  margin-left: 12px;
  font-size: 22px;
  color: #b9bbbe;
  cursor: pointer;
  transition: color 0.2s;
  user-select: none;
  display: flex;
  align-items: center;
}
.discord-input-icon:hover {
  color: #fff;
}
.discord-input-send {
  background: #5865f2;
  border: none;
  border-radius: 6px;
  margin-left: 12px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #fff;
  transition: background 0.2s;
}
.discord-input-send:hover {
  background: #4752c4;
}

/* Thumbnail Hover Animation */
.thumbnails-multiline img, .thumbnail-background img {
  transition: transform 0.22s cubic-bezier(.4,1.7,.7,1), box-shadow 0.22s cubic-bezier(.4,1.7,.7,1);
}
.thumbnails-multiline img:hover, .thumbnail-background img:hover {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 8px 32px #23272a55, 0 2px 8px #5865f2aa;
  z-index: 2;
}

/* Flame Box Styling */
.flame-box {
    margin-top: 20px;
    background: #23202b;
    border: 2px solid #ffd43b;
    box-shadow: 0 8px 32px rgba(88, 101, 242, 0.3);
    animation: flameGlow 3s ease-in-out infinite alternate, float 6s ease-in-out infinite;
}

.flame-box:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 40px rgba(88, 101, 242, 0.5);
}

@keyframes flameGlow {
    0% { box-shadow: 0 8px 32px rgba(88, 101, 242, 0.3); }
    100% { box-shadow: 0 8px 32px rgba(88, 101, 242, 0.6), 0 0 20px rgba(88, 101, 242, 0.4); }
}

/* Floating animation for owner boxes */
.owner-box {
    animation: float 6s ease-in-out infinite;
}

.flame-box {
    animation: float 6s ease-in-out infinite, flameGlow 3s ease-in-out infinite alternate;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Global animation keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 5px rgba(255, 212, 59, 0.2); }
    50% { box-shadow: 0 0 20px rgba(255, 212, 59, 0.4); }
    100% { box-shadow: 0 0 5px rgba(255, 212, 59, 0.2); }
}

/* Apply animations to elements */
.info-section, .team-member, .faq-section, .about-us-grid-item {
    animation: fadeIn 0.6s ease-out;
}

.nav-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease-out, height 0.6s ease-out;
}

.nav-btn:hover::after {
    width: 300px;
    height: 300px;
}

.team-member {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.team-pic {
    transition: transform 0.5s ease, border-color 0.3s ease;
}

.team-member:hover .team-pic {
    transform: scale(1.05) rotate(2deg);
}

.faq-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateX(5px);
}

.faq-item summary {
    transition: color 0.3s ease, background-color 0.3s ease;
}

.faq-item[open] {
    animation: scaleIn 0.3s ease-out;
}

.discord-cta {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.discord-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.discord-cta:hover::before {
    left: 100%;
}

.owner-box {
    animation: glowPulse 3s infinite, float 6s ease-in-out infinite;
}

.about-us-title::after {
    animation: slideIn 0.6s ease-out;
}

#animated-stats {
    animation: fadeIn 0.8s ease-out;
}

.about-us-grid-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-us-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Enhanced reviews carousel animations */
#reviews-carousel p {
    animation: fadeIn 0.6s ease-out;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#reviews-carousel p:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img[loading] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Enhanced theme toggle animation */
#theme-toggle {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
}

/* Logo animation */
.logo:hover {
    transform: scale(1.05);
}

/* FAQ upvote button animation */
.faq-upvote {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-upvote:hover {
    transform: scale(1.05);
}

.faq-upvote:active {
    transform: scale(0.95);
}

/* Team section title animation */
.team-title:hover {
    transform: scale(1.05);
}

/* Light mode specific animations */
body.light-mode .team-title::before {
    background: linear-gradient(90deg, transparent, #e6b800, transparent);
}

body.light-mode .team-section::before {
    background: radial-gradient(circle at center, rgba(230, 184, 0, 0.1) 0%, transparent 70%);
}

body.light-mode .team-section + div .nav-btn {
    background: linear-gradient(45deg, #fff, #f7f7fa);
    border-color: #e6b800;
}

body.light-mode .team-section + div .nav-btn:hover {
    box-shadow: 0 5px 15px rgba(230, 184, 0, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .team-title {
        font-size: 2.2rem;
        margin: 30px 0 20px 0;
    }
    
    .team-section {
        gap: 20px;
        padding: 15px;
    }
    
    .team-section + div .nav-btn {
        padding: 10px 24px;
        font-size: 1.1rem;
    }
}

/* Enhanced Back Button */
.team-section + div .nav-btn {
    background: linear-gradient(45deg, #23202b, #2d232e);
    padding: 12px 32px;
    font-size: 1.2rem;
    border: 2px solid #ffd43b;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.team-section + div .nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 212, 59, 0.2),
        transparent
    );
    transition: 0.5s;
}

.team-section + div .nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 212, 59, 0.3);
}

.team-section + div .nav-btn:hover::before {
    left: 100%;
}

/* Social Page Styles */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.social-card {
    background: #23202b;
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #ffd43b;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.social-card:hover::before {
    transform: scaleX(1);
}

.social-card h3 {
    color: #ffd43b;
    margin: 0 0 10px 0;
    font-size: 1.4rem;
}

.social-card p {
    margin: 0 0 15px 0;
    opacity: 0.9;
}

.social-stats {
    display: block;
    font-weight: bold;
    color: #ffd43b;
    font-size: 1.1rem;
}

/* Platform-specific colors */
.social-card.discord::before { background: #5865F2; }
.social-card.youtube::before { background: #FF0000; }
.social-card.twitter::before { background: #1DA1F2; }
.social-card.instagram::before { background: #E1306C; }

.social-card.discord:hover { box-shadow: 0 8px 25px rgba(88, 101, 242, 0.2); }
.social-card.youtube:hover { box-shadow: 0 8px 25px rgba(255, 0, 0, 0.2); }
.social-card.twitter:hover { box-shadow: 0 8px 25px rgba(29, 161, 242, 0.2); }
.social-card.instagram:hover { box-shadow: 0 8px 25px rgba(225, 48, 108, 0.2); }

/* Light mode adjustments */
body.light-mode .social-card {
    background: #fff;
    color: #23202b;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

body.light-mode .social-card h3 {
    color: #e6b800;
}

body.light-mode .social-stats {
    color: #e6b800;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .social-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .social-card {
        padding: 20px;
    }
}

.hero-area {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    box-sizing: border-box;
}

.thumbnail-background {
    display: flex;
    white-space: nowrap;
    min-width: 200%;
    align-items: center;
    justify-content: flex-start;
    animation: scroll-left 18s linear infinite;
    position: relative;
    background: rgba(0, 0, 0, 0.1);
    gap: 0;
    padding: 10px;
    border-radius: 10px;
}

.thumbnail-background img {
    height: 200px;
    width: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 16px 0 0;
    padding: 0;
    display: block;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.thumbnail-background img:last-child {
    margin-right: 0;
}

.hero-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1; /* Ensure text is above background */
    text-align: center;
    color: #fff;
    width: 90%;
    max-width: 800px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

main {
    position: relative; /* Keep relative for other sections */
    overflow: hidden;
    /* Remove height/min-height as hero-area now handles this */
    margin: 0; /* Ensure no default margin */
    padding: 0; /* Ensure no default padding */
    box-sizing: border-box; /* Ensure consistent box model */
}

body.light-mode .hero-area {
    background: #f7f7fa; /* Light mode background for hero area */
}

body.light-mode .thumbnail-background::after {
    background: rgba(255, 255, 255, 0.7); /* Adjusted for light mode */
}

body.light-mode .thumbnail-background {
    background: rgba(255, 255, 255, 0.1);
}

body.light-mode .thumbnail-background img {
    filter: brightness(0.8) grayscale(10%); /* More colorful for light mode */
    opacity: 0.5;
}

/* Responsive adjustments for thumbnail grid */
@media (max-width: 1200px) {
    .thumbnail-background {
        grid-template-columns: repeat(12, 1fr);
        grid-template-rows: repeat(2, 16vh);
    }
}

@media (max-width: 900px) {
    .thumbnail-background {
        grid-template-columns: repeat(8, 1fr);
        grid-template-rows: repeat(2, 14vh);
    }
}

@media (max-width: 768px) {
    .thumbnail-background {
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: repeat(2, 12vh);
    }
}

@media (max-width: 500px) {
    .thumbnail-background {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 10vh);
    }
}

.hero-logo {
    width: 250px; /* Adjust as needed */
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.4));
}

.hero-main-text {
    font-size: 4.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
    line-height: 1.1;
}

.hero-sub-text {
    font-size: 2.2rem;
    font-style: italic;
    margin-top: 0;
    margin-bottom: 40px;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.join-team-btn {
    background: #e014a1;
    color: #fff;
    font-size: 1.3rem;
    font-weight: bold;
    padding: 16px 40px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(224, 20, 161, 0.3);
}

.join-team-btn:hover {
    background: #ff33bb;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(224, 20, 161, 0.5);
}

@media (max-width: 768px) {
    .hero-main-text {
        font-size: 3rem;
    }
    .hero-sub-text {
        font-size: 1.5rem;
    }
    .join-team-btn {
        padding: 12px 30px;
        font-size: 1.1rem;
    }
    .hero-logo {
        width: 180px;
    }
}

body.light-mode .hero-main-text,
body.light-mode .hero-sub-text {
    color: #23202b;
    text-shadow: none;
}

body.light-mode .hero-text-overlay {
    background: rgba(255, 255, 255, 0.2);
}

body.light-mode .join-team-btn {
    background: #e014a1;
    color: #fff;
}

body.light-mode .join-team-btn:hover {
    background: #ff33bb;
    box-shadow: 0 8px 30px rgba(224, 20, 161, 0.3);
}

@keyframes scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.thumbnails-multiline {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 0;
    margin-bottom: 0;
    height: calc(5 * 200px + 4 * 6px);
    overflow: hidden;
}
.thumbnail-row {
    width: 100vw;
    overflow: hidden;
    position: relative;
    margin: 0;
}
.thumbnail-row:nth-child(1) .thumbnail-background {
    animation-duration: 18s;
}
.thumbnail-row:nth-child(2) .thumbnail-background {
    animation-duration: 20s;
}
.thumbnail-row:nth-child(3) .thumbnail-background {
    animation-duration: 16s;
}
.thumbnail-row:nth-child(4) .thumbnail-background {
    animation-duration: 22s;
}
.thumbnail-row:nth-child(5) .thumbnail-background {
    animation-duration: 14s;
}

.hamburger-fixed {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 1001;
    background: rgba(20, 24, 40, 0.8);
    border: 2px solid rgba(58, 65, 87, 0.6);
    font-size: 2.2rem;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hamburger-fixed:hover {
    background: rgba(20, 24, 40, 0.9);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

body.light-mode .hamburger-fixed {
    background: rgba(255, 255, 255, 0.8);
    color: #23202b;
    border-color: rgba(230, 184, 0, 0.6);
}

body.light-mode .hamburger-fixed:hover {
    background: rgba(255, 255, 255, 0.9);
}

.discord-messages {
  margin: 20px 0 16px 0;
  padding: 0 2px;
  max-height: 340px;
  overflow-y: auto;
  background: rgba(24,21,31,0.7);
  border-radius: 12px;
  box-shadow: 0 2px 12px #0002;
}
.discord-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 1rem;
}
.discord-message:last-child {
  border-bottom: none;
}
.msg-avatar img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: 0 1px 4px #0003;
  background: #23202b;
}
.msg-main {
  flex: 1;
  min-width: 0;
}
.msg-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.msg-user {
  font-weight: 600;
  color: #fff;
  font-size: 1.05em;
  margin-right: 2px;
  word-break: break-all;
}
.msg-role {
  font-size: 0.85em;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 8px;
  margin-right: 4px;
  margin-left: 2px;
  vertical-align: middle;
  letter-spacing: 0.5px;
}
.msg-role.creators {
  background: #e014a1;
  color: #fff;
}
.msg-role.var {
  background: #5865f2;
  color: #fff;
}
.msg-time {
  font-size: 0.82em;
  color: #b5b5b5;
  margin-left: 6px;
  font-weight: 400;
}
.msg-text {
  color: #e6e6e6;
  font-size: 1em;
  line-height: 1.5;
  word-break: break-word;
  white-space: pre-line;
}
body.light-mode .discord-messages {
  background: #f8fafc;
  box-shadow: 0 2px 12px #0001;
}
body.light-mode .discord-message {
  border-bottom: 1px solid #e2e8f0;
}
body.light-mode .msg-user {
  color: #23202b;
}
body.light-mode .msg-role.creators {
  background: #e014a1;
  color: #fff;
}
body.light-mode .msg-role.var {
  background: #ffd43b;
  color: #23202b;
}
body.light-mode .msg-time {
  color: #7b7b7b;
}
body.light-mode .msg-text {
  color: #23202b;
}

.discord-input-row {
  display: flex;
  align-items: center;
  background: rgba(30, 31, 34, 0.95);
  border-radius: 8px;
  padding: 0 16px;
  margin: 16px 12px 12px 12px;
  min-height: 48px;
  box-shadow: 0 1px 0 0 rgba(0,0,0,0.2);
  border: 1px solid rgba(79,84,92,0.3);
}
.discord-input-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 12px;
}
.discord-input-field {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 16px;
  padding: 12px 0;
  outline: none;
}
.discord-input-icon {
  margin-left: 12px;
  font-size: 22px;
  color: #b9bbbe;
  cursor: pointer;
  transition: color 0.2s;
  user-select: none;
  display: flex;
  align-items: center;
}
.discord-input-icon:hover {
  color: #fff;
}
.discord-input-send {
  background: #5865f2;
  border: none;
  border-radius: 6px;
  margin-left: 12px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #fff;
  transition: background 0.2s;
}
.discord-input-send:hover {
  background: #4752c4;
}

/* Thumbnail Hover Animation */
.thumbnails-multiline img, .thumbnail-background img {
  transition: transform 0.22s cubic-bezier(.4,1.7,.7,1), box-shadow 0.22s cubic-bezier(.4,1.7,.7,1);
}
.thumbnails-multiline img:hover, .thumbnail-background img:hover {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 8px 32px #23272a55, 0 2px 8px #5865f2aa;
  z-index: 2;
}

/* Flame Box Styling */
.flame-box {
    margin-top: 20px;
    background: #23202b;
    border: 2px solid #ffd43b;
    box-shadow: 0 8px 32px rgba(88, 101, 242, 0.3);
    animation: flameGlow 3s ease-in-out infinite alternate, float 6s ease-in-out infinite;
}

.flame-box:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 40px rgba(88, 101, 242, 0.5);
}

@keyframes flameGlow {
    0% { box-shadow: 0 8px 32px rgba(88, 101, 242, 0.3); }
    100% { box-shadow: 0 8px 32px rgba(88, 101, 242, 0.6), 0 0 20px rgba(88, 101, 242, 0.4); }
}

/* Floating animation for owner boxes */
.owner-box {
    animation: float 6s ease-in-out infinite;
}

.flame-box {
    animation: float 6s ease-in-out infinite, flameGlow 3s ease-in-out infinite alternate;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Global animation keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 5px rgba(255, 212, 59, 0.2); }
    50% { box-shadow: 0 0 20px rgba(255, 212, 59, 0.4); }
    100% { box-shadow: 0 0 5px rgba(255, 212, 59, 0.2); }
}

/* Apply animations to elements */
.info-section, .team-member, .faq-section, .about-us-grid-item {
    animation: fadeIn 0.6s ease-out;
}

.nav-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease-out, height 0.6s ease-out;
}

.nav-btn:hover::after {
    width: 300px;
    height: 300px;
}

.team-member {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.team-pic {
    transition: transform 0.5s ease, border-color 0.3s ease;
}

.team-member:hover .team-pic {
    transform: scale(1.05) rotate(2deg);
}

.faq-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateX(5px);
}

.faq-item summary {
    transition: color 0.3s ease, background-color 0.3s ease;
}

.faq-item[open] {
    animation: scaleIn 0.3s ease-out;
}

.discord-cta {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.discord-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.discord-cta:hover::before {
    left: 100%;
}

.owner-box {
    animation: glowPulse 3s infinite, float 6s ease-in-out infinite;
}

.about-us-title::after {
    animation: slideIn 0.6s ease-out;
}

#animated-stats {
    animation: fadeIn 0.8s ease-out;
}

.about-us-grid-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-us-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Enhanced reviews carousel animations */
#reviews-carousel p {
    animation: fadeIn 0.6s ease-out;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#reviews-carousel p:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img[loading] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Enhanced theme toggle animation */
#theme-toggle {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
}

/* Logo animation */
.logo:hover {
    transform: scale(1.05);
}

/* FAQ upvote button animation */
.faq-upvote {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-upvote:hover {
    transform: scale(1.05);
}

.faq-upvote:active {
    transform: scale(0.95);
}

/* Team section title animation */
.team-title:hover {
    transform: scale(1.05);
}

/* Light mode specific animations */
body.light-mode .team-title::before {
    background: linear-gradient(90deg, transparent, #e6b800, transparent);
}

body.light-mode .team-section::before {
    background: radial-gradient(circle at center, rgba(230, 184, 0, 0.1) 0%, transparent 70%);
}

body.light-mode .team-section + div .nav-btn {
    background: linear-gradient(45deg, #fff, #f7f7fa);
    border-color: #e6b800;
}

body.light-mode .team-section + div .nav-btn:hover {
    box-shadow: 0 5px 15px rgba(230, 184, 0, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .team-title {
        font-size: 2.2rem;
        margin: 30px 0 20px 0;
    }
    
    .team-section {
        gap: 20px;
        padding: 15px;
    }
    
    .team-section + div .nav-btn {
        padding: 10px 24px;
        font-size: 1.1rem;
    }
}

/* Enhanced Back Button */
.team-section + div .nav-btn {
    background: linear-gradient(45deg, #23202b, #2d232e);
    padding: 12px 32px;
    font-size: 1.2rem;
    border: 2px solid #ffd43b;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.team-section + div .nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 212, 59, 0.2),
        transparent
    );
    transition: 0.5s;
}

.team-section + div .nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 212, 59, 0.3);
}

.team-section + div .nav-btn:hover::before {
    left: 100%;
}

/* Social Page Styles */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.social-card {
    background: #23202b;
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #ffd43b;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.social-card:hover::before {
    transform: scaleX(1);
}

.social-card h3 {
    color: #ffd43b;
    margin: 0 0 10px 0;
    font-size: 1.4rem;
}

.social-card p {
    margin: 0 0 15px 0;
    opacity: 0.9;
}

.social-stats {
    display: block;
    font-weight: bold;
    color: #ffd43b;
    font-size: 1.1rem;
}

/* Platform-specific colors */
.social-card.discord::before { background: #5865F2; }
.social-card.youtube::before { background: #FF0000; }
.social-card.twitter::before { background: #1DA1F2; }
.social-card.instagram::before { background: #E1306C; }

.social-card.discord:hover { box-shadow: 0 8px 25px rgba(88, 101, 242, 0.2); }
.social-card.youtube:hover { box-shadow: 0 8px 25px rgba(255, 0, 0, 0.2); }
.social-card.twitter:hover { box-shadow: 0 8px 25px rgba(29, 161, 242, 0.2); }
.social-card.instagram:hover { box-shadow: 0 8px 25px rgba(225, 48, 108, 0.2); }

/* Light mode adjustments */
body.light-mode .social-card {
    background: #fff;
    color: #23202b;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

body.light-mode .social-card h3 {
    color: #e6b800;
}

body.light-mode .social-stats {
    color: #e6b800;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .social-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .social-card {
        padding: 20px;
    }
}

.hero-area {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    box-sizing: border-box;
}

.thumbnail-background {
    display: flex;
    white-space: nowrap;
    min-width: 200%;
    align-items: center;
    justify-content: flex-start;
    animation: scroll-left 18s linear infinite;
    position: relative;
    background: rgba(0, 0, 0, 0.1);
    gap: 0;
    padding: 10px;
    border-radius: 10px;
}

.thumbnail-background img {
    height: 200px;
    width: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 16px 0 0;
    padding: 0;
    display: block;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.thumbnail-background img:last-child {
    margin-right: 0;
}

.hero-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1; /* Ensure text is above background */
    text-align: center;
    color: #fff;
    width: 90%;
    max-width: 800px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

main {
    position: relative; /* Keep relative for other sections */
    overflow: hidden;
    /* Remove height/min-height as hero-area now handles this */
    margin: 0; /* Ensure no default margin */
    padding: 0; /* Ensure no default padding */
    box-sizing: border-box; /* Ensure consistent box model */
}

body.light-mode .hero-area {
    background: #f7f7fa; /* Light mode background for hero area */
}

body.light-mode .thumbnail-background::after {
    background: rgba(255, 255, 255, 0.7); /* Adjusted for light mode */
}

body.light-mode .thumbnail-background {
    background: rgba(255, 255, 255, 0.1);
}

body.light-mode .thumbnail-background img {
    filter: brightness(0.8) grayscale(10%); /* More colorful for light mode */
    opacity: 0.5;
}

/* Responsive adjustments for thumbnail grid */
@media (max-width: 1200px) {
    .thumbnail-background {
        grid-template-columns: repeat(12, 1fr);
        grid-template-rows: repeat(2, 16vh);
    }
}

@media (max-width: 900px) {
    .thumbnail-background {
        grid-template-columns: repeat(8, 1fr);
        grid-template-rows: repeat(2, 14vh);
    }
}

@media (max-width: 768px) {
    .thumbnail-background {
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: repeat(2, 12vh);
    }
}

@media (max-width: 500px) {
    .thumbnail-background {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 10vh);
    }
}

.hero-logo {
    width: 250px; /* Adjust as needed */
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.4));
}

.hero-main-text {
    font-size: 4.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
    line-height: 1.1;
}

.hero-sub-text {
    font-size: 2.2rem;
    font-style: italic;
    margin-top: 0;
    margin-bottom: 40px;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.join-team-btn {
    background: #e014a1;
    color: #fff;
    font-size: 1.3rem;
    font-weight: bold;
    padding: 16px 40px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(224, 20, 161, 0.3);
}

.join-team-btn:hover {
    background: #ff33bb;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(224, 20, 161, 0.5);
}

@media (max-width: 768px) {
    .hero-main-text {
        font-size: 3rem;
    }
    .hero-sub-text {
        font-size: 1.5rem;
    }
    .join-team-btn {
        padding: 12px 30px;
        font-size: 1.1rem;
    }
    .hero-logo {
        width: 180px;
    }
}

body.light-mode .hero-main-text,
body.light-mode .hero-sub-text {
    color: #23202b;
    text-shadow: none;
}

body.light-mode .hero-text-overlay {
    background: rgba(255, 255, 255, 0.2);
}

body.light-mode .join-team-btn {
    background: #e014a1;
    color: #fff;
}

body.light-mode .join-team-btn:hover {
    background: #ff33bb;
    box-shadow: 0 8px 30px rgba(224, 20, 161, 0.3);
}

@keyframes scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.thumbnails-multiline {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 0;
    margin-bottom: 0;
    height: calc(5 * 200px + 4 * 6px);
    overflow: hidden;
}
.thumbnail-row {
    width: 100vw;
    overflow: hidden;
    position: relative;
    margin: 0;
}
.thumbnail-row:nth-child(1) .thumbnail-background {
    animation-duration: 18s;
}
.thumbnail-row:nth-child(2) .thumbnail-background {
    animation-duration: 20s;
}
.thumbnail-row:nth-child(3) .thumbnail-background {
    animation-duration: 16s;
}
.thumbnail-row:nth-child(4) .thumbnail-background {
    animation-duration: 22s;
}
.thumbnail-row:nth-child(5) .thumbnail-background {
    animation-duration: 14s;
}

.hamburger-fixed {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 1001;
    background: rgba(20, 24, 40, 0.8);
    border: 2px solid rgba(58, 65, 87, 0.6);
    font-size: 2.2rem;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hamburger-fixed:hover {
    background: rgba(20, 24, 40, 0.9);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

body.light-mode .hamburger-fixed {
    background: rgba(255, 255, 255, 0.8);
    color: #23202b;
    border-color: rgba(230, 184, 0, 0.6);
}

body.light-mode .hamburger-fixed:hover {
    background: rgba(255, 255, 255, 0.9);
}

.discord-messages {
  margin: 20px 0 16px 0;
  padding: 0 2px;
  max-height: 340px;
  overflow-y: auto;
  background: rgba(24,21,31,0.7);
  border-radius: 12px;
  box-shadow: 0 2px 12px #0002;
}
.discord-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 1rem;
}
.discord-message:last-child {
  border-bottom: none;
}
.msg-avatar img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: 0 1px 4px #0003;
  background: #23202b;
}
.msg-main {
  flex: 1;
  min-width: 0;
}
.msg-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.msg-user {
  font-weight: 600;
  color: #fff;
  font-size: 1.05em;
  margin-right: 2px;
  word-break: break-all;
}
.msg-role {
  font-size: 0.85em;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 8px;
  margin-right: 4px;
  margin-left: 2px;
  vertical-align: middle;
  letter-spacing: 0.5px;
}
.msg-role.creators {
  background: #e014a1;
  color: #fff;
}
.msg-role.var {
  background: #5865f2;
  color: #fff;
}
.msg-time {
  font-size: 0.82em;
  color: #b5b5b5;
  margin-left: 6px;
  font-weight: 400;
}
.msg-text {
  color: #e6e6e6;
  font-size: 1em;
  line-height: 1.5;
  word-break: break-word;
  white-space: pre-line;
}
body.light-mode .discord-messages {
  background: #f8fafc;
  box-shadow: 0 2px 12px #0001;
}
body.light-mode .discord-message {
  border-bottom: 1px solid #e2e8f0;
}
body.light-mode .msg-user {
  color: #23202b;
}
body.light-mode .msg-role.creators {
  background: #e014a1;
  color: #fff;
}
body.light-mode .msg-role.var {
  background: #ffd43b;
  color: #23202b;
}
body.light-mode .msg-time {
  color: #7b7b7b;
}
body.light-mode .msg-text {
  color: #23202b;
}

.discord-input-row {
  display: flex;
  align-items: center;
  background: rgba(30, 31, 34, 0.95);
  border-radius: 8px;
  padding: 0 16px;
  margin: 16px 12px 12px 12px;
  min-height: 48px;
  box-shadow: 0 1px 0 0 rgba(0,0,0,0.2);
  border: 1px solid rgba(79,84,92,0.3);
}
.discord-input-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 12px;
}
.discord-input-field {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 16px;
  padding: 12px 0;
  outline: none;
}
.discord-input-icon {
  margin-left: 12px;
  font-size: 22px;
  color: #b9bbbe;
  cursor: pointer;
  transition: color 0.2s;
  user-select: none;
  display: flex;
  align-items: center;
}
.discord-input-icon:hover {
  color: #fff;
}
.discord-input-send {
  background: #5865f2;
  border: none;
  border-radius: 6px;
  margin-left: 12px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #fff;
  transition: background 0.2s;
}
.discord-input-send:hover {
  background: #4752c4;
}

/* Thumbnail Hover Animation */
.thumbnails-multiline img, .thumbnail-background img {
  transition: transform 0.22s cubic-bezier(.4,1.7,.7,1), box-shadow 0.22s cubic-bezier(.4,1.7,.7,1);
}
.thumbnails-multiline img:hover, .thumbnail-background img:hover {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 8px 32px #23272a55, 0 2px 8px #5865f2aa;
  z-index: 2;
}

/* Flame Box Styling */
.flame-box {
    margin-top: 20px;
    background: #23202b;
    border: 2px solid #ffd43b;
    box-shadow: 0 8px 32px rgba(88, 101, 242, 0.3);
    animation: flameGlow 3s ease-in-out infinite alternate, float 6s ease-in-out infinite;
}

.flame-box:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 40px rgba(88, 101, 242, 0.5);
}

@keyframes flameGlow {
    0% { box-shadow: 0 8px 32px rgba(88, 101, 242, 0.3); }
    100% { box-shadow: 0 8px 32px rgba(88, 101, 242, 0.6), 0 0 20px rgba(88, 101, 242, 0.4); }
}

/* Floating animation for owner boxes */
.owner-box {
    animation: float 6s ease-in-out infinite;
}

.flame-box {
    animation: float 6s ease-in-out infinite, flameGlow 3s ease-in-out infinite alternate;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Global animation keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 5px rgba(255, 212, 59, 0.2); }
    50% { box-shadow: 0 0 20px rgba(255, 212, 59, 0.4); }
    100% { box-shadow: 0 0 5px rgba(255, 212, 59, 0.2); }
}

/* Apply animations to elements */
.info-section, .team-member, .faq-section, .about-us-grid-item {
    animation: fadeIn 0.6s ease-out;
}

.nav-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease-out, height 0.6s ease-out;
}

.nav-btn:hover::after {
    width: 300px;
    height: 300px;
}

.team-member {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.team-pic {
    transition: transform 0.5s ease, border-color 0.3s ease;
}

.team-member:hover .team-pic {
    transform: scale(1.05) rotate(2deg);
}

.faq-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateX(5px);
}

.faq-item summary {
    transition: color 0.3s ease, background-color 0.3s ease;
}

.faq-item[open] {
    animation: scaleIn 0.3s ease-out;
}

.discord-cta {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.discord-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.discord-cta:hover::before {
    left: 100%;
}

.owner-box {
    animation: glowPulse 3s infinite, float 6s ease-in-out infinite;
}

.about-us-title::after {
    animation: slideIn 0.6s ease-out;
}

#animated-stats {
    animation: fadeIn 0.8s ease-out;
}

.about-us-grid-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-us-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Enhanced reviews carousel animations */
#reviews-carousel p {
    animation: fadeIn 0.6s ease-out;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#reviews-carousel p:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img[loading] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Enhanced theme toggle animation */
#theme-toggle {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
}

/* Logo animation */
.logo:hover {
    transform: scale(1.05);
}

/* FAQ upvote button animation */
.faq-upvote {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-upvote:hover {
    transform: scale(1.05);
}

.faq-upvote:active {
    transform: scale(0.95);
}

/* Team section title animation */
.team-title:hover {
    transform: scale(1.05);
}

/* Light mode specific animations */
body.light-mode .team-title::before {
    background: linear-gradient(90deg, transparent, #e6b800, transparent);
}

body.light-mode .team-section::before {
    background: radial-gradient(circle at center, rgba(230, 184, 0, 0.1) 0%, transparent 70%);
}

body.light-mode .team-section + div .nav-btn {
    background: linear-gradient(45deg, #fff, #f7f7fa);
    border-color: #e6b800;
}

body.light-mode .team-section + div .nav-btn:hover {
    box-shadow: 0 5px 15px rgba(230, 184, 0, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .team-title {
        font-size: 2.2rem;
        margin: 30px 0 20px 0;
    }
    
    .team-section {
        gap: 20px;
        padding: 15px;
    }
    
    .team-section + div .nav-btn {
        padding: 10px 24px;
        font-size: 1.1rem;
    }
}

/* Enhanced Back Button */
.team-section + div .nav-btn {
    background: linear-gradient(45deg, #23202b, #2d232e);
    padding: 12px 32px;
    font-size: 1.2rem;
    border: 2px solid #ffd43b;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.team-section + div .nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 212, 59, 0.2),
        transparent
    );
    transition: 0.5s;
}

.team-section + div .nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 212, 59, 0.3);
}

.team-section + div .nav-btn:hover::before {
    left: 100%;
}

/* Social Page Styles */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.social-card {
    background: #23202b;
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #ffd43b;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.social-card:hover::before {
    transform: scaleX(1);
}

.social-card h3 {
    color: #ffd43b;
    margin: 0 0 10px 0;
    font-size: 1.4rem;
}

.social-card p {
    margin: 0 0 15px 0;
    opacity: 0.9;
}

.social-stats {
    display: block;
    font-weight: bold;
    color: #ffd43b;
    font-size: 1.1rem;
}

/* Platform-specific colors */
.social-card.discord::before { background: #5865F2; }
.social-card.youtube::before { background: #FF0000; }
.social-card.twitter::before { background: #1DA1F2; }
.social-card.instagram::before { background: #E1306C; }

.social-card.discord:hover { box-shadow: 0 8px 25px rgba(88, 101, 242, 0.2); }
.social-card.youtube:hover { box-shadow: 0 8px 25px rgba(255, 0, 0, 0.2); }
.social-card.twitter:hover { box-shadow: 0 8px 25px rgba(29, 161, 242, 0.2); }
.social-card.instagram:hover { box-shadow: 0 8px 25px rgba(225, 48, 108, 0.2); }

/* Light mode adjustments */
body.light-mode .social-card {
    background: #fff;
    color: #23202b;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

body.light-mode .social-card h3 {
    color: #e6b800;
}

body.light-mode .social-stats {
    color: #e6b800;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .social-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .social-card {
        padding: 20px;
    }
}

.hero-area {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    box-sizing: border-box;
}

.thumbnail-background {
    display: flex;
    white-space: nowrap;
    min-width: 200%;
    align-items: center;
    justify-content: flex-start;
    animation: scroll-left 18s linear infinite;
    position: relative;
    background: rgba(0, 0, 0, 0.1);
    gap: 0;
    padding: 10px;
    border-radius: 10px;
}

.thumbnail-background img {
    height: 200px;
    width: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 16px 0 0;
    padding: 0;
    display: block;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.thumbnail-background img:last-child {
    margin-right: 0;
}

.hero-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1; /* Ensure text is above background */
    text-align: center;
    color: #fff;
    width: 90%;
    max-width: 800px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

main {
    position: relative; /* Keep relative for other sections */
    overflow: hidden;
    /* Remove height/min-height as hero-area now handles this */
    margin: 0; /* Ensure no default margin */
    padding: 0; /* Ensure no default padding */
    box-sizing: border-box; /* Ensure consistent box model */
}

body.light-mode .hero-area {
    background: #f7f7fa; /* Light mode background for hero area */
}

body.light-mode .thumbnail-background::after {
    background: rgba(255, 255, 255, 0.7); /* Adjusted for light mode */
}

body.light-mode .thumbnail-background {
    background: rgba(255, 255, 255, 0.1);
}

body.light-mode .thumbnail-background img {
    filter: brightness(0.8) grayscale(10%); /* More colorful for light mode */
    opacity: 0.5;
}

/* Responsive adjustments for thumbnail grid */
@media (max-width: 1200px) {
    .thumbnail-background {
        grid-template-columns: repeat(12, 1fr);
        grid-template-rows: repeat(2, 16vh);
    }
}

@media (max-width: 900px) {
    .thumbnail-background {
        grid-template-columns: repeat(8, 1fr);
        grid-template-rows: repeat(2, 14vh);
    }
}

@media (max-width: 768px) {
    .thumbnail-background {
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: repeat(2, 12vh);
    }
}

@media (max-width: 500px) {
    .thumbnail-background {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 10vh);
    }
}

.hero-logo {
    width: 250px; /* Adjust as needed */
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.4));
}

.hero-main-text {
    font-size: 4.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
    line-height: 1.1;
}

.hero-sub-text {
    font-size: 2.2rem;
    font-style: italic;
    margin-top: 0;
    margin-bottom: 40px;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.join-team-btn {
    background: #e014a1;
    color: #fff;
    font-size: 1.3rem;
    font-weight: bold;
    padding: 16px 40px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(224, 20, 161, 0.3);
}

.join-team-btn:hover {
    background: #ff33bb;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(224, 20, 161, 0.5);
}

@media (max-width: 768px) {
    .hero-main-text {
        font-size: 3rem;
    }
    .hero-sub-text {
        font-size: 1.5rem;
    }
    .join-team-btn {
        padding: 12px 30px;
        font-size: 1.1rem;
    }
    .hero-logo {
        width: 180px;
    }
}

body.light-mode .hero-main-text,
body.light-mode .hero-sub-text {
    color: #23202b;
    text-shadow: none;
}

body.light-mode .hero-text-overlay {
    background: rgba(255, 255, 255, 0.2);
}

body.light-mode .join-team-btn {
    background: #e014a1;
    color: #fff;
}

body.light-mode .join-team-btn:hover {
    background: #ff33bb;
    box-shadow: 0 8px 30px rgba(224, 20, 161, 0.3);
}

@keyframes scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.thumbnails-multiline {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 0;
    margin-bottom: 0;
    height: calc(5 * 200px + 4 * 6px);
    overflow: hidden;
}
.thumbnail-row {
    width: 100vw;
    overflow: hidden;
    position: relative;
    margin: 0;
}
.thumbnail-row:nth-child(1) .thumbnail-background {
    animation-duration: 18s;
}
.thumbnail-row:nth-child(2) .thumbnail-background {
    animation-duration: 20s;
}
.thumbnail-row:nth-child(3) .thumbnail-background {
    animation-duration: 16s;
}
.thumbnail-row:nth-child(4) .thumbnail-background {
    animation-duration: 22s;
}
.thumbnail-row:nth-child(5) .thumbnail-background {
    animation-duration: 14s;
}

.hamburger-fixed {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 1001;
    background: rgba(20, 24, 40, 0.8);
    border: 2px solid rgba(58, 65, 87, 0.6);
    font-size: 2.2rem;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hamburger-fixed:hover {
    background: rgba(20, 24, 40, 0.9);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

body.light-mode .hamburger-fixed {
    background: rgba(255, 255, 255, 0.8);
    color: #23202b;
    border-color: rgba(230, 184, 0, 0.6);
}

body.light-mode .hamburger-fixed:hover {
    background: rgba(255, 255, 255, 0.9);
}

.discord-messages {
  margin: 20px 0 16px 0;
  padding: 0 2px;
  max-height: 340px;
  overflow-y: auto;
  background: rgba(24,21,31,0.7);
  border-radius: 12px;
  box-shadow: 0 2px 12px #0002;
}
.discord-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 1rem;
}
.discord-message:last-child {
  border-bottom: none;
}
.msg-avatar img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: 0 1px 4px #0003;
  background: #23202b;
}
.msg-main {
  flex: 1;
  min-width: 0;
}
.msg-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.msg-user {
  font-weight: 600;
  color: #fff;
  font-size: 1.05em;
  margin-right: 2px;
  word-break: break-all;
}
.msg-role {
  font-size: 0.85em;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 8px;
  margin-right: 4px;
  margin-left: 2px;
  vertical-align: middle;
  letter-spacing: 0.5px;
}
.msg-role.creators {
  background: #e014a1;
  color: #fff;
}
.msg-role.var {
  background: #5865f2;
  color: #fff;
}
.msg-time {
  font-size: 0.82em;
  color: #b5b5b5;
  margin-left: 6px;
  font-weight: 400;
}
.msg-text {
  color: #e6e6e6;
  font-size: 1em;
  line-height: 1.5;
  word-break: break-word;
  white-space: pre-line;
}
body.light-mode .discord-messages {
  background: #f8fafc;
  box-shadow: 0 2px 12px #0001;
}
body.light-mode .discord-message {
  border-bottom: 1px solid #e2e8f0;
}
body.light-mode .msg-user {
  color: #23202b;
}
body.light-mode .msg-role.creators {
  background: #e014a1;
  color: #fff;
}
body.light-mode .msg-role.var {
  background: #ffd43b;
  color: #23202b;
}
body.light-mode .msg-time {
  color: #7b7b7b;
}
body.light-mode .msg-text {
  color: #23202b;
}

.discord-input-row {
  display: flex;
  align-items: center;
  background: rgba(30, 31, 34, 0.95);
  border-radius: 8px;
  padding: 0 16px;
  margin: 16px 12px 12px 12px;
  min-height: 48px;
  box-shadow: 0 1px 0 0 rgba(0,0,0,0.2);
  border: 1px solid rgba(79,84,92,0.3);
}
.discord-input-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 12px;
}
.discord-input-field {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 16px;
  padding: 12px 0;
  outline: none;
}
.discord-input-icon {
  margin-left: 12px;
  font-size: 22px;
  color: #b9bbbe;
  cursor: pointer;
  transition: color 0.2s;
  user-select: none;
  display: flex;
  align-items: center;
}
.discord-input-icon:hover {
  color: #fff;
}
.discord-input-send {
  background: #5865f2;
  border: none;
  border-radius: 6px;
  margin-left: 12px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #fff;
  transition: background 0.2s;
}
.discord-input-send:hover {
  background: #4752c4;
}

/* Thumbnail Hover Animation */
.thumbnails-multiline img, .thumbnail-background img {
  transition: transform 0.22s cubic-bezier(.4,1.7,.7,1), box-shadow 0.22s cubic-bezier(.4,1.7,.7,1);
}
.thumbnails-multiline img:hover, .thumbnail-background img:hover {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 8px 32px #23272a55, 0 2px 8px #5865f2aa;
  z-index: 2;
}

/* Flame Box Styling */
.flame-box {
    margin-top: 20px;
    background: #23202b;
    border: 2px solid #ffd43b;
    box-shadow: 0 8px 32px rgba(88, 101, 242, 0.3);
    animation: flameGlow 3s ease-in-out infinite alternate, float 6s ease-in-out infinite;
}

.flame-box:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 40px rgba(88, 101, 242, 0.5);
}

@keyframes flameGlow {
    0% { box-shadow: 0 8px 32px rgba(88, 101, 242, 0.3); }
    100% { box-shadow: 0 8px 32px rgba(88, 101, 242, 0.6), 0 0 20px rgba(88, 101, 242, 0.4); }
}

/* Floating animation for owner boxes */
.owner-box {
    animation: float 6s ease-in-out infinite;
}

.flame-box {
    animation: float 6s ease-in-out infinite, flameGlow 3s ease-in-out infinite alternate;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Global animation keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 5px rgba(255, 212, 59, 0.2); }
    50% { box-shadow: 0 0 20px rgba(255, 212, 59, 0.4); }
    100% { box-shadow: 0 0 5px rgba(255, 212, 59, 0.2); }
}

/* Apply animations to elements */
.info-section, .team-member, .faq-section, .about-us-grid-item {
    animation: fadeIn 0.6s ease-out;
}

.nav-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease-out, height 0.6s ease-out;
}

.nav-btn:hover::after {
    width: 300px;
    height: 300px;
}

.team-member {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.team-pic {
    transition: transform 0.5s ease, border-color 0.3s ease;
}

.team-member:hover .team-pic {
    transform: scale(1.05) rotate(2deg);
}

.faq-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateX(5px);
}

.faq-item summary {
    transition: color 0.3s ease, background-color 0.3s ease;
}

.faq-item[open] {
    animation: scaleIn 0.3s ease-out;
}

.discord-cta {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.discord-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.discord-cta:hover::before {
    left: 100%;
}

.owner-box {
    animation: glowPulse 3s infinite, float 6s ease-in-out infinite;
}

.about-us-title::after {
    animation: slideIn 0.6s ease-out;
}

#animated-stats {
    animation: fadeIn 0.8s ease-out;
}

.about-us-grid-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-us-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Enhanced reviews carousel animations */
#reviews-carousel p {
    animation: fadeIn 0.6s ease-out;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#reviews-carousel p:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img[loading] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Enhanced theme toggle animation */
#theme-toggle {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
}

/* Logo animation */
.logo:hover {
    transform: scale(1.05);
}

/* FAQ upvote button animation */
.faq-upvote {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-upvote:hover {
    transform: scale(1.05);
}

.faq-upvote:active {
    transform: scale(0.95);
}

/* Team section title animation */
.team-title:hover {
    transform: scale(1.05);
}

/* Light mode specific animations */
body.light-mode .team-title::before {
    background: linear-gradient(90deg, transparent, #e6b800, transparent);
}

body.light-mode .team-section::before {
    background: radial-gradient(circle at center, rgba(230, 184, 0, 0.1) 0%, transparent 70%);
}

body.light-mode .team-section + div .nav-btn {
    background: linear-gradient(45deg, #fff, #f7f7fa);
    border-color: #e6b800;
}

body.light-mode .team-section + div .nav-btn:hover {
    box-shadow: 0 5px 15px rgba(230, 184, 0, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .team-title {
        font-size: 2.2rem;
        margin: 30px 0 20px 0;
    }
    
    .team-section {
        gap: 20px;
        padding: 15px;
    }
    
    .team-section + div .nav-btn {
        padding: 10px 24px;
        font-size: 1.1rem;
    }
}

/* Enhanced Back Button */
.team-section + div .nav-btn {
    background: linear-gradient(45deg, #23202b, #2d232e);
    padding: 12px 32px;
    font-size: 1.2rem;
    border: 2px solid #ffd43b;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.team-section + div .nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 212, 59, 0.2),
        transparent
    );
    transition: 0.5s;
}

.team-section + div .nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 212, 59, 0.3);
}

.team-section + div .nav-btn:hover::before {
    left: 100%;
}

/* Social Page Styles */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.social-card {
    background: #23202b;
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #ffd43b;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.social-card:hover::before {
    transform: scaleX(1);
}

.social-card h3 {
    color: #ffd43b;
    margin: 0 0 10px 0;
    font-size: 1.4rem;
}

.social-card p {
    margin: 0 0 15px 0;
    opacity: 0.9;
}

.social-stats {
    display: block;
    font-weight: bold;
    color: #ffd43b;
    font-size: 1.1rem;
}

/* Platform-specific colors */
.social-card.discord::before { background: #5865F2; }
.social-card.youtube::before { background: #FF0000; }
.social-card.twitter::before { background: #1DA1F2; }
.social-card.instagram::before { background: #E1306C; }

.social-card.discord:hover { box-shadow: 0 8px 25px rgba(88, 101, 242, 0.2); }
.social-card.youtube:hover { box-shadow: 0 8px 25px rgba(255, 0, 0, 0.2); }
.social-card.twitter:hover { box-shadow: 0 8px 25px rgba(29, 161, 242, 0.2); }
.social-card.instagram:hover { box-shadow: 0 8px 25px rgba(225, 48, 108, 0.2); }

/* Light mode adjustments */
body.light-mode .social-card {
    background: #fff;
    color: #23202b;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

body.light-mode .social-card h3 {
    color: #e6b800;
}

body.light-mode .social-stats {
    color: #e6b800;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .social-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .social-card {
        padding: 20px;
    }
}

.hero-area {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    box-sizing: border-box;
}

.thumbnail-background {
    display: flex;
    white-space: nowrap;
    min-width: 200%;
    align-items: center;
    justify-content: flex-start;
    animation: scroll-left 18s linear infinite;
    position: relative;
    background: rgba(0, 0, 0, 0.1);
    gap: 0;
    padding: 10px;
    border-radius: 10px;
}

.thumbnail-background img {
    height: 200px;
    width: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 16px 0 0;
    padding: 0;
    display: block;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.thumbnail-background img:last-child {
    margin-right: 0;
}

.hero-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1; /* Ensure text is above background */
    text-align: center;
    color: #fff;
    width: 90%;
    max-width: 800px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

main {
    position: relative; /* Keep relative for other sections */
    overflow: hidden;
    /* Remove height/min-height as hero-area now handles this */
    margin: 0; /* Ensure no default margin */
    padding: 0; /* Ensure no default padding */
    box-sizing: border-box; /* Ensure consistent box model */
}

body.light-mode .hero-area {
    background: #f7f7fa; /* Light mode background for hero area */
}

body.light-mode .thumbnail-background::after {
    background: rgba(255, 255, 255, 0.7); /* Adjusted for light mode */
}

body.light-mode .thumbnail-background {
    background: rgba(255, 255, 255, 0.1);
}

body.light-mode .thumbnail-background img {
    filter: brightness(0.8) grayscale(10%); /* More colorful for light mode */
    opacity: 0.5;
}

/* Responsive adjustments for thumbnail grid */
@media (max-width: 1200px) {
    .thumbnail-background {
        grid-template-columns: repeat(12, 1fr);
        grid-template-rows: repeat(2, 16vh);
    }
}

@media (max-width: 900px) {
    .thumbnail-background {
        grid-template-columns: repeat(8, 1fr);
        grid-template-rows: repeat(2, 14vh);
    }
}

@media (max-width: 768px) {
    .thumbnail-background {
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: repeat(2, 12vh);
    }
}

@media (max-width: 500px) {
    .thumbnail-background {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 10vh);
    }
}

.hero-logo {
    width: 250px; /* Adjust as needed */
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.4));
}

.hero-main-text {
    font-size: 4.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
    line-height: 1.1;
}

.hero-sub-text {
    font-size: 2.2rem;
    font-style: italic;
    margin-top: 0;
    margin-bottom: 40px;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.join-team-btn {
    background: #e014a1;
    color: #fff;
    font-size: 1.3rem;
    font-weight: bold;
    padding: 16px 40px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(224, 20, 161, 0.3);
}

.join-team-btn:hover {
    background: #ff33bb;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(224, 20, 161, 0.5);
}

@media (max-width: 768px) {
    .hero-main-text {
        font-size: 3rem;
    }
    .hero-sub-text {
        font-size: 1.5rem;
    }
    .join-team-btn {
        padding: 12px 30px;
        font-size: 1.1rem;
    }
    .hero-logo {
        width: 180px;
    }
}

body.light-mode .hero-main-text,
body.light-mode .hero-sub-text {
    color: #23202b;
    text-shadow: none;
}

body.light-mode .hero-text-overlay {
    background: rgba(255, 255, 255, 0.2);
}

body.light-mode .join-team-btn {
    background: #e014a1;
    color: #fff;
}

body.light-mode .join-team-btn:hover {
    background: #ff33bb;
    box-shadow: 0 8px 30px rgba(224, 20, 161, 0.3);
}

@keyframes scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.thumbnails-multiline {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 0;
    margin-bottom: 0;
    height: calc(5 * 200px + 4 * 6px);
    overflow: hidden;
}
.thumbnail-row {
    width: 100vw;
    overflow: hidden;
    position: relative;
    margin: 0;
}
.thumbnail-row:nth-child(1) .thumbnail-background {
    animation-duration: 18s;
}
.thumbnail-row:nth-child(2) .thumbnail-background {
    animation-duration: 20s;
}
.thumbnail-row:nth-child(3) .thumbnail-background {
    animation-duration: 16s;
}
.thumbnail-row:nth-child(4) .thumbnail-background {
    animation-duration: 22s;
}
.thumbnail-row:nth-child(5) .thumbnail-background {
    animation-duration: 14s;
}

.hamburger-fixed {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 1001;
    background: rgba(20, 24, 40, 0.8);
    border: 2px solid rgba(58, 65, 87, 0.6);
    font-size: 2.2rem;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hamburger-fixed:hover {
    background: rgba(20, 24, 40, 0.9);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

body.light-mode .hamburger-fixed {
    background: rgba(255, 255, 255, 0.8);
    color: #23202b;
    border-color: rgba(230, 184, 0, 0.6);
}

body.light-mode .hamburger-fixed:hover {
    background: rgba(255, 255, 255, 0.9);
}

.discord-messages {
  margin: 20px 0 16px 0;
  padding: 0 2px;
  max-height: 340px;
  overflow-y: auto;
  background: rgba(24,21,31,0.7);
  border-radius: 12px;
  box-shadow: 0 2px 12px #0002;
}
.discord-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 1rem;
}
.discord-message:last-child {
  border-bottom: none;
}
.msg-avatar img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: 0 1px 4px #0003;
  background: #23202b;
}
.msg-main {
  flex: 1;
  min-width: 0;
}
.msg-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.msg-user {
  font-weight: 600;
  color: #fff;
  font-size: 1.05em;
  margin-right: 2px;
  word-break: break-all;
}
.msg-role {
  font-size: 0.85em;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 8px;
  margin-right: 4px;
  margin-left: 2px;
  vertical-align: middle;
  letter-spacing: 0.5px;
}
.msg-role.creators {
  background: #e014a1;
  color: #fff;
}
.msg-role.var {
  background: #5865f2;
  color: #fff;
}
.msg-time {
  font-size: 0.82em;
  color: #b5b5b5;
  margin-left: 6px;
  font-weight: 400;
}
.msg-text {
  color: #e6e6e6;
  font-size: 1em;
  line-height: 1.5;
  word-break: break-word;
  white-space: pre-line;
}
body.light-mode .discord-messages {
  background: #f8fafc;
  box-shadow: 0 2px 12px #0001;
}
body.light-mode .discord-message {
  border-bottom: 1px solid #e2e8f0;
}
body.light-mode .msg-user {
  color: #23202b;
}
body.light-mode .msg-role.creators {
  background: #e014a1;
  color: #fff;
}
body.light-mode .msg-role.var {
  background: #ffd43b;
  color: #23202b;
}
body.light-mode .msg-time {
  color: #7b7b7b;
}
body.light-mode .msg-text {
  color: #23202b;
}

.discord-input-row {
  display: flex;
  align-items: center;
  background: rgba(30, 31, 34, 0.95);
  border-radius: 8px;
  padding: 0 16px;
  margin: 16px 12px 12px 12px;
  min-height: 48px;
  box-shadow: 0 1px 0 0 rgba(0,0,0,0.2);
  border: 1px solid rgba(79,84,92,0.3);
}
.discord-input-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 12px;
}
.discord-input-field {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 16px;
  padding: 12px 0;
  outline: none;
}
.discord-input-icon {
  margin-left: 12px;
  font-size: 22px;
  color: #b9bbbe;
  cursor: pointer;
  transition: color 0.2s;
  user-select: none;
  display: flex;
  align-items: center;
}
.discord-input-icon:hover {
  color: #fff;
}
.discord-input-send {
  background: #5865f2;
  border: none;
  border-radius: 6px;
  margin-left: 12px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #fff;
  transition: background 0.2s;
}
.discord-input-send:hover {
  background: #4752c4;
}

/* Thumbnail Hover Animation */
.thumbnails-multiline img, .thumbnail-background img {
  transition: transform 0.22s cubic-bezier(.4,1.7,.7,1), box-shadow 0.22s cubic-bezier(.4,1.7,.7,1);
}
.thumbnails-multiline img:hover, .thumbnail-background img:hover {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 8px 32px #23272a55, 0 2px 8px #5865f2aa;
  z-index: 2;
}

/* Flame Box Styling */
.flame-box {
    margin-top: 20px;
    background: #23202b;
    border: 2px solid #ffd43b;
    box-shadow: 0 8px 32px rgba(88, 101, 242, 0.3);
    animation: flameGlow 3s ease-in-out infinite alternate, float 6s ease-in-out infinite;
}

.flame-box:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 40px rgba(88, 101, 242, 0.5);
}

@keyframes flameGlow {
    0% { box-shadow: 0 8px 32px rgba(88, 101, 242, 0.3); }
    100% { box-shadow: 0 8px 32px rgba(88, 101, 242, 0.6), 0 0 20px rgba(88, 101, 242, 0.4); }
}

/* Floating animation for owner boxes */
.owner-box {
    animation: float 6s ease-in-out infinite;
}

.flame-box {
    animation: float 6s ease-in-out infinite, flameGlow 3s ease-in-out infinite alternate;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Global animation keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 5px rgba(255, 212, 59, 0.2); }
    50% { box-shadow: 0 0 20px rgba(255, 212, 59, 0.4); }
    100% { box-shadow: 0 0 5px rgba(255, 212, 59, 0.2); }
}

/* Apply animations to elements */
.info-section, .team-member, .faq-section, .about-us-grid-item {
    animation: fadeIn 0.6s ease-out;
}

.nav-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease-out, height 0.6s ease-out;
}

.nav-btn:hover::after {
    width: 300px;
    height: 300px;
}

.team-member {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.team-pic {
    transition: transform 0.5s ease, border-color 0.3s ease;
}

.team-member:hover .team-pic {
    transform: scale(1.05) rotate(2deg);
}

.faq-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateX(5px);
}

.faq-item summary {
    transition: color 0.3s ease, background-color 0.3s ease;
}

.faq-item[open] {
    animation: scaleIn 0.3s ease-out;
}

.discord-cta {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.discord-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.discord-cta:hover::before {
    left: 100%;
}

.owner-box {
    animation: glowPulse 3s infinite, float 6s ease-in-out infinite;
}

.about-us-title::after {
    animation: slideIn 0.6s ease-out;
}

#animated-stats {
    animation: fadeIn 0.8s ease-out;
}

.about-us-grid-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-us-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Enhanced reviews carousel animations */
#reviews-carousel p {
    animation: fadeIn 0.6s ease-out;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#reviews-carousel p:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img[loading] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Enhanced theme toggle animation */
#theme-toggle {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
}

/* Logo animation */
.logo:hover {
    transform: scale(1.05);
}

/* FAQ upvote button animation */
.faq-upvote {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-upvote:hover {
    transform: scale(1.05);
}

.faq-upvote:active {
    transform: scale(0.95);
}

/* --- OVERRIDE: Make .flame-box identical to .owner-box --- */
.flame-box {
    background: linear-gradient(rgba(24,21,31,0.7), rgba(24,21,31,0.7)), url('background.png') center/cover no-repeat;
    border-left: 4px solid #ffd43b;
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 18px;
    margin-top: 8px;
    text-align: center;
    position: relative;
    color: #fff;
    overflow: hidden;
    transition: background 0.5s, color 0.5s, border-color 0.5s, box-shadow 0.5s;
    animation: glowPulse 3s infinite, float 6s ease-in-out infinite;
}

/* Team section title animation */
.team-title:hover {
    transform: scale(1.05);
}

/* Light mode specific animations */
body.light-mode .team-title::before {
    background: linear-gradient(90deg, transparent, #e6b800, transparent);
}

body.light-mode .team-section::before {
    background: radial-gradient(circle at center, rgba(230, 184, 0, 0.1) 0%, transparent 70%);
}

body.light-mode .team-section + div .nav-btn {
    background: linear-gradient(45deg, #fff, #f7f7fa);
    border-color: #e6b800;
}

body.light-mode .team-section + div .nav-btn:hover {
    box-shadow: 0 5px 15px rgba(230, 184, 0, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .team-title {
        font-size: 2.2rem;
        margin: 30px 0 20px 0;
    }
    
    .team-section {
        gap: 20px;
        padding: 15px;
    }
    
    .team-section + div .nav-btn {
        padding: 10px 24px;
        font-size: 1.1rem;
    }
}

/* Enhanced Back Button */
.team-section + div .nav-btn {
    background: linear-gradient(45deg, #23202b, #2d232e);
    padding: 12px 32px;
    font-size: 1.2rem;
    border: 2px solid #ffd43b;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.team-section + div .nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 212, 59, 0.2),
        transparent
    );
    transition: 0.5s;
}

.team-section + div .nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 212, 59, 0.3);
}

.team-section + div .nav-btn:hover::before {
    left: 100%;
}

/* Social Page Styles */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.social-card {
    background: #23202b;
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #ffd43b;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.social-card:hover::before {
    transform: scaleX(1);
}

.social-card h3 {
    color: #ffd43b;
    margin: 0 0 10px 0;
    font-size: 1.4rem;
}

.social-card p {
    margin: 0 0 15px 0;
    opacity: 0.9;
}

.social-stats {
    display: block;
    font-weight: bold;
    color: #ffd43b;
    font-size: 1.1rem;
}

/* Platform-specific colors */
.social-card.discord::before { background: #5865F2; }
.social-card.youtube::before { background: #FF0000; }
.social-card.twitter::before { background: #1DA1F2; }
.social-card.instagram::before { background: #E1306C; }

.social-card.discord:hover { box-shadow: 0 8px 25px rgba(88, 101, 242, 0.2); }
.social-card.youtube:hover { box-shadow: 0 8px 25px rgba(255, 0, 0, 0.2); }
.social-card.twitter:hover { box-shadow: 0 8px 25px rgba(29, 161, 242, 0.2); }
.social-card.instagram:hover { box-shadow: 0 8px 25px rgba(225, 48, 108, 0.2); }

/* Light mode adjustments */
body.light-mode .social-card {
    background: #fff;
    color: #23202b;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

body.light-mode .social-card h3 {
    color: #e6b800;
}

body.light-mode .social-stats {
    color: #e6b800;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .social-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .social-card {
        padding: 20px;
    }
}

.hero-area {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    box-sizing: border-box;
}

.thumbnail-background {
    display: flex;
    white-space: nowrap;
    min-width: 200%;
    align-items: center;
    justify-content: flex-start;
    animation: scroll-left 18s linear infinite;
    position: relative;
    background: rgba(0, 0, 0, 0.1);
    gap: 0;
    padding: 10px;
    border-radius: 10px;
}

.thumbnail-background img {
    height: 200px;
    width: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 16px 0 0;
    padding: 0;
    display: block;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.thumbnail-background img:last-child {
    margin-right: 0;
}

.hero-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1; /* Ensure text is above background */
    text-align: center;
    color: #fff;
    width: 90%;
    max-width: 800px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

main {
    position: relative; /* Keep relative for other sections */
    overflow: hidden;
    /* Remove height/min-height as hero-area now handles this */
    margin: 0; /* Ensure no default margin */
    padding: 0; /* Ensure no default padding */
    box-sizing: border-box; /* Ensure consistent box model */
}

body.light-mode .hero-area {
    background: #f7f7fa; /* Light mode background for hero area */
}

body.light-mode .thumbnail-background::after {
    background: rgba(255, 255, 255, 0.7); /* Adjusted for light mode */
}

body.light-mode .thumbnail-background {
    background: rgba(255, 255, 255, 0.1);
}

body.light-mode .thumbnail-background img {
    filter: brightness(0.8) grayscale(10%); /* More colorful for light mode */
    opacity: 0.5;
}

/* Responsive adjustments for thumbnail grid */
@media (max-width: 1200px) {
    .thumbnail-background {
        grid-template-columns: repeat(12, 1fr);
        grid-template-rows: repeat(2, 16vh);
    }
}

@media (max-width: 900px) {
    .thumbnail-background {
        grid-template-columns: repeat(8, 1fr);
        grid-template-rows: repeat(2, 14vh);
    }
}

@media (max-width: 768px) {
    .thumbnail-background {
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: repeat(2, 12vh);
    }
}

@media (max-width: 500px) {
    .thumbnail-background {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 10vh);
    }
}

.hero-logo {
    width: 250px; /* Adjust as needed */
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.4));
}

.hero-main-text {
    font-size: 4.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
    line-height: 1.1;
}

.hero-sub-text {
    font-size: 2.2rem;
    font-style: italic;
    margin-top: 0;
    margin-bottom: 40px;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.join-team-btn {
    background: #e014a1;
    color: #fff;
    font-size: 1.3rem;
    font-weight: bold;
    padding: 16px 40px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(224, 20, 161, 0.3);
}

.join-team-btn:hover {
    background: #ff33bb;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(224, 20, 161, 0.5);
}

@media (max-width: 768px) {
    .hero-main-text {
        font-size: 3rem;
    }
    .hero-sub-text {
        font-size: 1.5rem;
    }
    .join-team-btn {
        padding: 12px 30px;
        font-size: 1.1rem;
    }
    .hero-logo {
        width: 180px;
    }
}

body.light-mode .hero-main-text,
body.light-mode .hero-sub-text {
    color: #23202b;
    text-shadow: none;
}

body.light-mode .hero-text-overlay {
    background: rgba(255, 255, 255, 0.2);
}

body.light-mode .join-team-btn {
    background: #e014a1;
    color: #fff;
}

body.light-mode .join-team-btn:hover {
    background: #ff33bb;
    box-shadow: 0 8px 30px rgba(224, 20, 161, 0.3);
}

@keyframes scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.thumbnails-multiline {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 0;
    margin-bottom: 0;
    height: calc(5 * 200px + 4 * 6px);
    overflow: hidden;
}
.thumbnail-row {
    width: 100vw;
    overflow: hidden;
    position: relative;
    margin: 0;
}
.thumbnail-row:nth-child(1) .thumbnail-background {
    animation-duration: 18s;
}
.thumbnail-row:nth-child(2) .thumbnail-background {
    animation-duration: 20s;
}
.thumbnail-row:nth-child(3) .thumbnail-background {
    animation-duration: 16s;
}
.thumbnail-row:nth-child(4) .thumbnail-background {
    animation-duration: 22s;
}
.thumbnail-row:nth-child(5) .thumbnail-background {
    animation-duration: 14s;
}

.hamburger-fixed {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 1001;
    background: rgba(20, 24, 40, 0.8);
    border: 2px solid rgba(58, 65, 87, 0.6);
    font-size: 2.2rem;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hamburger-fixed:hover {
    background: rgba(20, 24, 40, 0.9);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

body.light-mode .hamburger-fixed {
    background: rgba(255, 255, 255, 0.8);
    color: #23202b;
    border-color: rgba(230, 184, 0, 0.6);
}

body.light-mode .hamburger-fixed:hover {
    background: rgba(255, 255, 255, 0.9);
}

.discord-messages {
  margin: 20px 0 16px 0;
  padding: 0 2px;
  max-height: 340px;
  overflow-y: auto;
  background: rgba(24,21,31,0.7);
  border-radius: 12px;
  box-shadow: 0 2px 12px #0002;
}
.discord-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 1rem;
}
.discord-message:last-child {
  border-bottom: none;
}
.msg-avatar img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: 0 1px 4px #0003;
  background: #23202b;
}
.msg-main {
  flex: 1;
  min-width: 0;
}
.msg-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.msg-user {
  font-weight: 600;
  color: #fff;
  font-size: 1.05em;
  margin-right: 2px;
  word-break: break-all;
}
.msg-role {
  font-size: 0.85em;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 8px;
  margin-right: 4px;
  margin-left: 2px;
  vertical-align: middle;
  letter-spacing: 0.5px;
}
.msg-role.creators {
  background: #e014a1;
  color: #fff;
}
.msg-role.var {
  background: #5865f2;
  color: #fff;
}
.msg-time {
  font-size: 0.82em;
  color: #b5b5b5;
  margin-left: 6px;
  font-weight: 400;
}
.msg-text {
  color: #e6e6e6;
  font-size: 1em;
  line-height: 1.5;
  word-break: break-word;
  white-space: pre-line;
}
body.light-mode .discord-messages {
  background: #f8fafc;
  box-shadow: 0 2px 12px #0001;
}
body.light-mode .discord-message {
  border-bottom: 1px solid #e2e8f0;
}
body.light-mode .msg-user {
  color: #23202b;
}
body.light-mode .msg-role.creators {
  background: #e014a1;
  color: #fff;
}
body.light-mode .msg-role.var {
  background: #ffd43b;
  color: #23202b;
}
body.light-mode .msg-time {
  color: #7b7b7b;
}
body.light-mode .msg-text {
  color: #23202b;
}

.discord-input-row {
  display: flex;
  align-items: center;
  background: rgba(30, 31, 34, 0.95);
  border-radius: 8px;
  padding: 0 16px;
  margin: 16px 12px 12px 12px;
  min-height: 48px;
  box-shadow: 0 1px 0 0 rgba(0,0,0,0.2);
  border: 1px solid rgba(79,84,92,0.3);
}
.discord-input-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 12px;
}
.discord-input-field {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 16px;
  padding: 12px 0;
  outline: none;
}
.discord-input-icon {
  margin-left: 12px;
  font-size: 22px;
  color: #b9bbbe;
  cursor: pointer;
  transition: color 0.2s;
  user-select: none;
  display: flex;
  align-items: center;
}
.discord-input-icon:hover {
  color: #fff;
}
.discord-input-send {
  background: #5865f2;
  border: none;
  border-radius: 6px;
  margin-left: 12px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #fff;
  transition: background 0.2s;
}
.discord-input-send:hover {
  background: #4752c4;
}

/* Thumbnail Hover Animation */
.thumbnails-multiline img, .thumbnail-background img {
  transition: transform 0.22s cubic-bezier(.4,1.7,.7,1), box-shadow 0.22s cubic-bezier(.4,1.7,.7,1);
}
.thumbnails-multiline img:hover, .thumbnail-background img:hover {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 8px 32px #23272a55, 0 2px 8px #5865f2aa;
  z-index: 2;
}

/* Flame Box Styling */
.flame-box {
    margin-top: 20px;
    background: #23202b;
    border: 2px solid #ffd43b;
    box-shadow: 0 8px 32px rgba(88, 101, 242, 0.3);
    animation: flameGlow 3s ease-in-out infinite alternate, float 6s ease-in-out infinite;
}

.flame-box:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 40px rgba(88, 101, 242, 0.5);
}

@keyframes flameGlow {
    0% { box-shadow: 0 8px 32px rgba(88, 101, 242, 0.3); }
    100% { box-shadow: 0 8px 32px rgba(88, 101, 242, 0.6), 0 0 20px rgba(88, 101, 242, 0.4); }
}

/* Floating animation for owner boxes */
.owner-box {
    animation: float 6s ease-in-out infinite;
}

.flame-box {
    animation: float 6s ease-in-out infinite, flameGlow 3s ease-in-out infinite alternate;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Global animation keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 5px rgba(255, 212, 59, 0.2); }
    50% { box-shadow: 0 0 20px rgba(255, 212, 59, 0.4); }
    100% { box-shadow: 0 0 5px rgba(255, 212, 59, 0.2); }
}

/* Apply animations to elements */
.info-section, .team-member, .faq-section, .about-us-grid-item {
    animation: fadeIn 0.6s ease-out;
}

.nav-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease-out, height 0.6s ease-out;
}

.nav-btn:hover::after {
    width: 300px;
    height: 300px;
}

.team-member {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.team-pic {
    transition: transform 0.5s ease, border-color 0.3s ease;
}

.team-member:hover .team-pic {
    transform: scale(1.05) rotate(2deg);
}

.faq-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateX(5px);
}

.faq-item summary {
    transition: color 0.3s ease, background-color 0.3s ease;
}

.faq-item[open] {
    animation: scaleIn 0.3s ease-out;
}

.discord-cta {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.discord-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.discord-cta:hover::before {
    left: 100%;
}

.owner-box {
    animation: glowPulse 3s infinite, float 6s ease-in-out infinite;
}

.about-us-title::after {
    animation: slideIn 0.6s ease-out;
}

#animated-stats {
    animation: fadeIn 0.8s ease-out;
}

.about-us-grid-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-us-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Enhanced reviews carousel animations */
#reviews-carousel p {
    animation: fadeIn 0.6s ease-out;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#reviews-carousel p:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

.thumbnail-grid-3x3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 18px;
  justify-items: center;
  align-items: center;
  width: 100%;
  max-width: 700px;
  margin: 0 auto 32px auto;
  padding: 18px 0;
}
.thumbnail-grid-3x3 img {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 4px 18px #23272a22;
  transition: transform 0.2s, box-shadow 0.2s;
  opacity: 0.95;
}
.thumbnail-grid-3x3 img:hover {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 8px 32px #23272a55, 0 2px 8px #5865f2aa;
  opacity: 1;
}

/* --- Verstärkter Hover-Effekt für Thumbnails --- */
.thumbnail-background img:hover {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 8px 32px #23272a55, 0 2px 8px #5865f2aa;
  opacity: 0.95;
  z-index: 2;
}

/* --- Parallax-Startpositionen für Reihen (per Klasse) --- */
.parallax-1 { --parallax-y: 0px; }
.parallax-2 { --parallax-y: 6px; }
.parallax-3 { --parallax-y: -8px; }
.parallax-4 { --parallax-y: 10px; }
.parallax-5 { --parallax-y: -5px; }

/* Passe die Wobble-Animation an, um die Parallax-Y-Variable zu berücksichtigen */
@keyframes scroll-left-wobble {
  0%   { transform: translateX(0) translateY(var(--parallax-y,0)); }
  10%  { transform: translateX(-5%) translateY(calc(var(--parallax-y,0) - 4px));}
  20%  { transform: translateX(-10%) translateY(var(--parallax-y,0));}
  30%  { transform: translateX(-15%) translateY(calc(var(--parallax-y,0) + 4px));}
  40%  { transform: translateX(-20%) translateY(var(--parallax-y,0));}
  50%  { transform: translateX(-25%) translateY(calc(var(--parallax-y,0) - 4px));}
  60%  { transform: translateX(-30%) translateY(var(--parallax-y,0));}
  70%  { transform: translateX(-35%) translateY(calc(var(--parallax-y,0) + 4px));}
  80%  { transform: translateX(-40%) translateY(var(--parallax-y,0));}
  90%  { transform: translateX(-45%) translateY(calc(var(--parallax-y,0) - 4px));}
  100% { transform: translateX(-50%) translateY(var(--parallax-y,0));}
}
@keyframes scroll-right-wobble {
  0%   { transform: translateX(-50%) translateY(var(--parallax-y,0)); }
  10%  { transform: translateX(-45%) translateY(calc(var(--parallax-y,0) + 4px));}
  20%  { transform: translateX(-40%) translateY(var(--parallax-y,0));}
  30%  { transform: translateX(-35%) translateY(calc(var(--parallax-y,0) - 4px));}
  40%  { transform: translateX(-30%) translateY(var(--parallax-y,0));}
  50%  { transform: translateX(-25%) translateY(calc(var(--parallax-y,0) + 4px));}
  60%  { transform: translateX(-20%) translateY(var(--parallax-y,0));}
  70%  { transform: translateX(-15%) translateY(calc(var(--parallax-y,0) - 4px));}
  80%  { transform: translateX(-10%) translateY(var(--parallax-y,0));}
  90%  { transform: translateX(-5%) translateY(calc(var(--parallax-y,0) + 4px));}
  100% { transform: translateX(0) translateY(var(--parallax-y,0));}
}

/* --- Improved thumbnail movement: wobble effect --- */
@keyframes scroll-left-wobble {
  0%   { transform: translateX(0) translateY(var(--parallax-y,0)); }
  10%  { transform: translateX(-5%) translateY(calc(var(--parallax-y,0) - 4px));}
  20%  { transform: translateX(-10%) translateY(var(--parallax-y,0));}
  30%  { transform: translateX(-15%) translateY(calc(var(--parallax-y,0) + 4px));}
  40%  { transform: translateX(-20%) translateY(var(--parallax-y,0));}
  50%  { transform: translateX(-25%) translateY(calc(var(--parallax-y,0) - 4px));}
  60%  { transform: translateX(-30%) translateY(var(--parallax-y,0));}
  70%  { transform: translateX(-35%) translateY(calc(var(--parallax-y,0) + 4px));}
  80%  { transform: translateX(-40%) translateY(var(--parallax-y,0));}
  90%  { transform: translateX(-45%) translateY(calc(var(--parallax-y,0) - 4px));}
  100% { transform: translateX(-50%) translateY(var(--parallax-y,0));}
}

@keyframes scroll-right-wobble {
  0%   { transform: translateX(-50%) translateY(var(--parallax-y,0)); }
  10%  { transform: translateX(-45%) translateY(calc(var(--parallax-y,0) + 4px));}
  20%  { transform: translateX(-40%) translateY(var(--parallax-y,0));}
  30%  { transform: translateX(-35%) translateY(calc(var(--parallax-y,0) - 4px));}
  40%  { transform: translateX(-30%) translateY(var(--parallax-y,0));}
  50%  { transform: translateX(-25%) translateY(calc(var(--parallax-y,0) + 4px));}
  60%  { transform: translateX(-20%) translateY(var(--parallax-y,0));}
  70%  { transform: translateX(-15%) translateY(calc(var(--parallax-y,0) - 4px));}
  80%  { transform: translateX(-10%) translateY(var(--parallax-y,0));}
  90%  { transform: translateX(-5%) translateY(calc(var(--parallax-y,0) + 4px));}
  100% { transform: translateX(0) translateY(var(--parallax-y,0));}
}

.thumbnail-background {
  animation-name: scroll-left-wobble !important;
}
.reverse-scroll {
  animation-name: scroll-right-wobble !important;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img[loading] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Enhanced theme toggle animation */
#theme-toggle {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
}

/* Logo animation */
.logo:hover {
    transform: scale(1.05);
}

/* FAQ upvote button animation */
.faq-upvote {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-upvote:hover {
    transform: scale(1.05);
}

.faq-upvote:active {
    transform: scale(0.95);
}

/* Team section title animation */
.team-title:hover {
    transform: scale(1.05);
}

/* Light mode specific animations */
body.light-mode .team-title::before {
    background: linear-gradient(90deg, transparent, #e6b800, transparent);
}

body.light-mode .team-section::before {
    background: radial-gradient(circle at center, rgba(230, 184, 0, 0.1) 0%, transparent 70%);
}

body.light-mode .team-section + div .nav-btn {
    background: linear-gradient(45deg, #fff, #f7f7fa);
    border-color: #e6b800;
}

body.light-mode .team-section + div .nav-btn:hover {
    box-shadow: 0 5px 15px rgba(230, 184, 0, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .team-title {
        font-size: 2.2rem;
        margin: 30px 0 20px 0;
    }
    
    .team-section {
        gap: 20px;
        padding: 15px;
    }
    
    .team-section + div .nav-btn {
        padding: 10px 24px;
        font-size: 1.1rem;
    }
}

/* Enhanced Back Button */
.team-section + div .nav-btn {
    background: linear-gradient(45deg, #23202b, #2d232e);
    padding: 12px 32px;
    font-size: 1.2rem;
    border: 2px solid #ffd43b;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.team-section + div .nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 212, 59, 0.2),
        transparent
    );
    transition: 0.5s;
}

.team-section + div .nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 212, 59, 0.3);
}

.team-section + div .nav-btn:hover::before {
    left: 100%;
}

/* Social Page Styles */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.social-card {
    background: #23202b;
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #ffd43b;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.social-card:hover::before {
    transform: scaleX(1);
}

.social-card h3 {
    color: #ffd43b;
    margin: 0 0 10px 0;
    font-size: 1.4rem;
}

.social-card p {
    margin: 0 0 15px 0;
    opacity: 0.9;
}

.social-stats {
    display: block;
    font-weight: bold;
    color: #ffd43b;
    font-size: 1.1rem;
}

/* Platform-specific colors */
.social-card.discord::before { background: #5865F2; }
.social-card.youtube::before { background: #FF0000; }
.social-card.twitter::before { background: #1DA1F2; }
.social-card.instagram::before { background: #E1306C; }

.social-card.discord:hover { box-shadow: 0 8px 25px rgba(88, 101, 242, 0.2); }
.social-card.youtube:hover { box-shadow: 0 8px 25px rgba(255, 0, 0, 0.2); }
.social-card.twitter:hover { box-shadow: 0 8px 25px rgba(29, 161, 242, 0.2); }
.social-card.instagram:hover { box-shadow: 0 8px 25px rgba(225, 48, 108, 0.2); }

/* Light mode adjustments */
body.light-mode .social-card {
    background: #fff;
    color: #23202b;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

body.light-mode .social-card h3 {
    color: #e6b800;
}

body.light-mode .social-stats {
    color: #e6b800;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .social-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .social-card {
        padding: 20px;
    }
}

.hero-area {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    box-sizing: border-box;
}

.thumbnail-background {
    display: flex;
    white-space: nowrap;
    min-width: 200%;
    align-items: center;
    justify-content: flex-start;
    animation: scroll-left 18s linear infinite;
    position: relative;
    background: rgba(0, 0, 0, 0.1);
    gap: 0;
    padding: 10px;
    border-radius: 10px;
}

.thumbnail-background img {
    height: 200px;
    width: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 16px 0 0;
    padding: 0;
    display: block;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.thumbnail-background img:last-child {
    margin-right: 0;
}

.hero-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1; /* Ensure text is above background */
    text-align: center;
    color: #fff;
    width: 90%;
    max-width: 800px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

main {
    position: relative; /* Keep relative for other sections */
    overflow: hidden;
    /* Remove height/min-height as hero-area now handles this */
    margin: 0; /* Ensure no default margin */
    padding: 0; /* Ensure no default padding */
    box-sizing: border-box; /* Ensure consistent box model */
}

body.light-mode .hero-area {
    background: #f7f7fa; /* Light mode background for hero area */
}

body.light-mode .thumbnail-background::after {
    background: rgba(255, 255, 255, 0.7); /* Adjusted for light mode */
}

body.light-mode .thumbnail-background {
    background: rgba(255, 255, 255, 0.1);
}

body.light-mode .thumbnail-background img {
    filter: brightness(0.8) grayscale(10%); /* More colorful for light mode */
    opacity: 0.5;
}

/* Responsive adjustments for thumbnail grid */
@media (max-width: 1200px) {
    .thumbnail-background {
        grid-template-columns: repeat(12, 1fr);
        grid-template-rows: repeat(2, 16vh);
    }
}

@media (max-width: 900px) {
    .thumbnail-background {
        grid-template-columns: repeat(8, 1fr);
        grid-template-rows: repeat(2, 14vh);
    }
}

@media (max-width: 768px) {
    .thumbnail-background {
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: repeat(2, 12vh);
    }
}

@media (max-width: 500px) {
    .thumbnail-background {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 10vh);
    }
}

.hero-logo {
    width: 250px; /* Adjust as needed */
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.4));
}

.hero-main-text {
    font-size: 4.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
    line-height: 1.1;
}

.hero-sub-text {
    font-size: 2.2rem;
    font-style: italic;
    margin-top: 0;
    margin-bottom: 40px;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.join-team-btn {
    background: #e014a1;
    color: #fff;
    font-size: 1.3rem;
    font-weight: bold;
    padding: 16px 40px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(224, 20, 161, 0.3);
}

.join-team-btn:hover {
    background: #ff33bb;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(224, 20, 161, 0.5);
}

@media (max-width: 768px) {
    .hero-main-text {
        font-size: 3rem;
    }
    .hero-sub-text {
        font-size: 1.5rem;
    }
    .join-team-btn {
        padding: 12px 30px;
        font-size: 1.1rem;
    }
    .hero-logo {
        width: 180px;
    }
}

body.light-mode .hero-main-text,
body.light-mode .hero-sub-text {
    color: #23202b;
    text-shadow: none;
}

body.light-mode .hero-text-overlay {
    background: rgba(255, 255, 255, 0.2);
}

body.light-mode .join-team-btn {
    background: #e014a1;
    color: #fff;
}

body.light-mode .join-team-btn:hover {
    background: #ff33bb;
    box-shadow: 0 8px 30px rgba(224, 20, 161, 0.3);
}

@keyframes scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.thumbnails-multiline {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 0;
    margin-bottom: 0;
    height: calc(5 * 200px + 4 * 6px);
    overflow: hidden;
}
.thumbnail-row {
    width: 100vw;
    overflow: hidden;
    position: relative;
    margin: 0;
}
.thumbnail-row:nth-child(1) .thumbnail-background {
    animation-duration: 18s;
}
.thumbnail-row:nth-child(2) .thumbnail-background {
    animation-duration: 20s;
}
.thumbnail-row:nth-child(3) .thumbnail-background {
    animation-duration: 16s;
}
.thumbnail-row:nth-child(4) .thumbnail-background {
    animation-duration: 22s;
}
.thumbnail-row:nth-child(5) .thumbnail-background {
    animation-duration: 14s;
}

.hamburger-fixed {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 1001;
    background: rgba(20, 24, 40, 0.8);
    border: 2px solid rgba(58, 65, 87, 0.6);
    font-size: 2.2rem;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hamburger-fixed:hover {
    background: rgba(20, 24, 40, 0.9);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

body.light-mode .hamburger-fixed {
    background: rgba(255, 255, 255, 0.8);
    color: #23202b;
    border-color: rgba(230, 184, 0, 0.6);
}

body.light-mode .hamburger-fixed:hover {
    background: rgba(255, 255, 255, 0.9);
}

.discord-messages {
  margin: 20px 0 16px 0;
  padding: 0 2px;
  max-height: 340px;
  overflow-y: auto;
  background: rgba(24,21,31,0.7);
  border-radius: 12px;
  box-shadow: 0 2px 12px #0002;
}
.discord-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 1rem;
}
.discord-message:last-child {
  border-bottom: none;
}
.msg-avatar img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: 0 1px 4px #0003;
  background: #23202b;
}
.msg-main {
  flex: 1;
  min-width: 0;
}
.msg-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.msg-user {
  font-weight: 600;
  color: #fff;
  font-size: 1.05em;
  margin-right: 2px;
  word-break: break-all;
}
.msg-role {
  font-size: 0.85em;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 8px;
  margin-right: 4px;
  margin-left: 2px;
  vertical-align: middle;
  letter-spacing: 0.5px;
}
.msg-role.creators {
  background: #e014a1;
  color: #fff;
}
.msg-role.var {
  background: #5865f2;
  color: #fff;
}
.msg-time {
  font-size: 0.82em;
  color: #b5b5b5;
  margin-left: 6px;
  font-weight: 400;
}
.msg-text {
  color: #e6e6e6;
  font-size: 1em;
  line-height: 1.5;
  word-break: break-word;
  white-space: pre-line;
}
body.light-mode .discord-messages {
  background: #f8fafc;
  box-shadow: 0 2px 12px #0001;
}
body.light-mode .discord-message {
  border-bottom: 1px solid #e2e8f0;
}
body.light-mode .msg-user {
  color: #23202b;
}
body.light-mode .msg-role.creators {
  background: #e014a1;
  color: #fff;
}
body.light-mode .msg-role.var {
  background: #ffd43b;
  color: #23202b;
}
body.light-mode .msg-time {
  color: #7b7b7b;
}
body.light-mode .msg-text {
  color: #23202b;
}

.discord-input-row {
  display: flex;
  align-items: center;
  background: rgba(30, 31, 34, 0.95);
  border-radius: 8px;
  padding: 0 16px;
  margin: 16px 12px 12px 12px;
  min-height: 48px;
  box-shadow: 0 1px 0 0 rgba(0,0,0,0.2);
  border: 1px solid rgba(79,84,92,0.3);
}
.discord-input-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 12px;
}
.discord-input-field {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 16px;
  padding: 12px 0;
  outline: none;
}
.discord-input-icon {
  margin-left: 12px;
  font-size: 22px;
  color: #b9bbbe;
  cursor: pointer;
  transition: color 0.2s;
  user-select: none;
  display: flex;
  align-items: center;
}
.discord-input-icon:hover {
  color: #fff;
}
.discord-input-send {
  background: #5865f2;
  border: none;
  border-radius: 6px;
  margin-left: 12px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #fff;
  transition: background 0.2s;
}
.discord-input-send:hover {
  background: #4752c4;
}

/* Thumbnail Hover Animation */
.thumbnails-multiline img, .thumbnail-background img {
  transition: transform 0.22s cubic-bezier(.4,1.7,.7,1), box-shadow 0.22s cubic-bezier(.4,1.7,.7,1);
}
.thumbnails-multiline img:hover, .thumbnail-background img:hover {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 8px 32px #23272a55, 0 2px 8px #5865f2aa;
  z-index: 2;
}

/* Flame Box Styling */
.flame-box {
    margin-top: 20px;
    background: #23202b;
    border: 2px solid #ffd43b;
    box-shadow: 0 0 32px 8px rgba(255, 87, 34, 0.25), 0 0 32px 8px rgba(255, 212, 59, 0.18), 0 8px 32px rgba(88, 101, 242, 0.3);
    animation: float 6s ease-in-out infinite, flameGlow 3s ease-in-out infinite alternate, flameFlicker 1.1s infinite;
    animation-delay: 0s, 3s, 0s;
}

@keyframes flameFlicker {
    0% { box-shadow: 0 0 32px 8px rgba(255, 87, 34, 0.25), 0 0 32px 8px rgba(255, 212, 59, 0.18), 0 8px 32px rgba(88, 101, 242, 0.3); }
    10% { box-shadow: 0 0 40px 12px rgba(255, 140, 0, 0.32), 0 0 36px 10px rgba(255, 212, 59, 0.22), 0 8px 32px rgba(88, 101, 242, 0.3); }
    20% { box-shadow: 0 0 36px 10px rgba(255, 87, 34, 0.32), 0 0 36px 10px rgba(255, 212, 59, 0.25), 0 8px 32px rgba(88, 101, 242, 0.3); }
    30% { box-shadow: 0 0 44px 16px rgba(255, 140, 0, 0.38), 0 0 36px 10px rgba(255, 212, 59, 0.28), 0 8px 32px rgba(88, 101, 242, 0.3); }
    40% { box-shadow: 0 0 38px 12px rgba(255, 87, 34, 0.28), 0 0 32px 8px rgba(255, 212, 59, 0.20), 0 8px 32px rgba(88, 101, 242, 0.3); }
    50% { box-shadow: 0 0 50px 20px rgba(255, 140, 0, 0.45), 0 0 40px 14px rgba(255, 212, 59, 0.32), 0 8px 32px rgba(88, 101, 242, 0.3); }
    60% { box-shadow: 0 0 36px 10px rgba(255, 87, 34, 0.32), 0 0 36px 10px rgba(255, 212, 59, 0.25), 0 8px 32px rgba(88, 101, 242, 0.3); }
    70% { box-shadow: 0 0 44px 16px rgba(255, 140, 0, 0.38), 0 0 36px 10px rgba(255, 212, 59, 0.28), 0 8px 32px rgba(88, 101, 242, 0.3); }
    80% { box-shadow: 0 0 38px 12px rgba(255, 87, 34, 0.28), 0 0 32px 8px rgba(255, 212, 59, 0.20), 0 8px 32px rgba(88, 101, 242, 0.3); }
    90% { box-shadow: 0 0 40px 12px rgba(255, 140, 0, 0.32), 0 0 36px 10px rgba(255, 212, 59, 0.22), 0 8px 32px rgba(88, 101, 242, 0.3); }
    100% { box-shadow: 0 0 32px 8px rgba(255, 87, 34, 0.25), 0 0 32px 8px rgba(255, 212, 59, 0.18), 0 8px 32px rgba(88, 101, 242, 0.3); }
}

@keyframes flameGlow {
    0% { box-shadow: 0 8px 32px rgba(88, 101, 242, 0.3); }
    100% { box-shadow: 0 8px 32px rgba(88, 101, 242, 0.6), 0 0 20px rgba(88, 101, 242, 0.4); }
}

/* Floating animation for owner boxes */
.owner-box {
    animation: float 6s ease-in-out infinite;
}

.flame-box {
    animation: float 6s ease-in-out infinite, flameGlow 3s ease-in-out infinite alternate;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Global animation keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 5px rgba(255, 212, 59, 0.2); }
    50% { box-shadow: 0 0 20px rgba(255, 212, 59, 0.4); }
    100% { box-shadow: 0 0 5px rgba(255, 212, 59, 0.2); }
}

/* Apply animations to elements */
.info-section, .team-member, .faq-section, .about-us-grid-item {
    animation: fadeIn 0.6s ease-out;
}

.nav-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease-out, height 0.6s ease-out;
}

.nav-btn:hover::after {
    width: 300px;
    height: 300px;
}

.team-member {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.team-pic {
    transition: transform 0.5s ease, border-color 0.3s ease;
}

.team-member:hover .team-pic {
    transform: scale(1.05) rotate(2deg);
}

.faq-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateX(5px);
}

.faq-item summary {
    transition: color 0.3s ease, background-color 0.3s ease;
}

.faq-item[open] {
    animation: scaleIn 0.3s ease-out;
}

.discord-cta {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.discord-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.discord-cta:hover::before {
    left: 100%;
}

.owner-box {
    animation: glowPulse 3s infinite, float 6s ease-in-out infinite;
}

.about-us-title::after {
    animation: slideIn 0.6s ease-out;
}

#animated-stats {
    animation: fadeIn 0.8s ease-out;
}

.about-us-grid-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-us-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Enhanced reviews carousel animations */
#reviews-carousel p {
    animation: fadeIn 0.6s ease-out;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#reviews-carousel p:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img[loading] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Enhanced theme toggle animation */
#theme-toggle {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
}

/* Logo animation */
.logo:hover {
    transform: scale(1.05);
}

/* FAQ upvote button animation */
.faq-upvote {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-upvote:hover {
    transform: scale(1.05);
}

.faq-upvote:active {
    transform: scale(0.95);
}

/* Team section title animation */
.team-title:hover {
    transform: scale(1.05);
}

/* Light mode specific animations */
body.light-mode .team-title::before {
    background: linear-gradient(90deg, transparent, #e6b800, transparent);
}

body.light-mode .team-section::before {
    background: radial-gradient(circle at center, rgba(230, 184, 0, 0.1) 0%, transparent 70%);
}

body.light-mode .team-section + div .nav-btn {
    background: linear-gradient(45deg, #fff, #f7f7fa);
    border-color: #e6b800;
}

body.light-mode .team-section + div .nav-btn:hover {
    box-shadow: 0 5px 15px rgba(230, 184, 0, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .team-title {
        font-size: 2.2rem;
        margin: 30px 0 20px 0;
    }
    
    .team-section {
        gap: 20px;
        padding: 15px;
    }
    
    .team-section + div .nav-btn {
        padding: 10px 24px;
        font-size: 1.1rem;
    }
}

/* Enhanced Back Button */
.team-section + div .nav-btn {
    background: linear-gradient(45deg, #23202b, #2d232e);
    padding: 12px 32px;
    font-size: 1.2rem;
    border: 2px solid #ffd43b;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.team-section + div .nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 212, 59, 0.2),
        transparent
    );
    transition: 0.5s;
}

.team-section + div .nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 212, 59, 0.3);
}

.team-section + div .nav-btn:hover::before {
    left: 100%;
}

/* Social Page Styles */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.social-card {
    background: #23202b;
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #ffd43b;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.social-card:hover::before {
    transform: scaleX(1);
}

.social-card h3 {
    color: #ffd43b;
    margin: 0 0 10px 0;
    font-size: 1.4rem;
}

.social-card p {
    margin: 0 0 15px 0;
    opacity: 0.9;
}

.social-stats {
    display: block;
    font-weight: bold;
    color: #ffd43b;
    font-size: 1.1rem;
}

/* Platform-specific colors */
.social-card.discord::before { background: #5865F2; }
.social-card.youtube::before { background: #FF0000; }
.social-card.twitter::before { background: #1DA1F2; }
.social-card.instagram::before { background: #E1306C; }

.social-card.discord:hover { box-shadow: 0 8px 25px rgba(88, 101, 242, 0.2); }
.social-card.youtube:hover { box-shadow: 0 8px 25px rgba(255, 0, 0, 0.2); }
.social-card.twitter:hover { box-shadow: 0 8px 25px rgba(29, 161, 242, 0.2); }
.social-card.instagram:hover { box-shadow: 0 8px 25px rgba(225, 48, 108, 0.2); }

/* Light mode adjustments */
body.light-mode .social-card {
    background: #fff;
    color: #23202b;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

body.light-mode .social-card h3 {
    color: #e6b800;
}

body.light-mode .social-stats {
    color: #e6b800;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .social-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .social-card {
        padding: 20px;
    }
}

.hero-area {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    box-sizing: border-box;
}

.thumbnail-background {
    display: flex;
    white-space: nowrap;
    min-width: 200%;
    align-items: center;
    justify-content: flex-start;
    animation: scroll-left 18s linear infinite;
    position: relative;
    background: rgba(0, 0, 0, 0.1);
    gap: 0;
    padding: 10px;
    border-radius: 10px;
}

.thumbnail-background img {
    height: 200px;
    width: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 16px 0 0;
    padding: 0;
    display: block;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.thumbnail-background img:last-child {
    margin-right: 0;
}

.hero-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1; /* Ensure text is above background */
    text-align: center;
    color: #fff;
    width: 90%;
    max-width: 800px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

main {
    position: relative; /* Keep relative for other sections */
    overflow: hidden;
    /* Remove height/min-height as hero-area now handles this */
    margin: 0; /* Ensure no default margin */
    padding: 0; /* Ensure no default padding */
    box-sizing: border-box; /* Ensure consistent box model */
}

body.light-mode .hero-area {
    background: #f7f7fa; /* Light mode background for hero area */
}

body.light-mode .thumbnail-background::after {
    background: rgba(255, 255, 255, 0.7); /* Adjusted for light mode */
}

body.light-mode .thumbnail-background {
    background: rgba(255, 255, 255, 0.1);
}

body.light-mode .thumbnail-background img {
    filter: brightness(0.8) grayscale(10%); /* More colorful for light mode */
    opacity: 0.5;
}

/* Responsive adjustments for thumbnail grid */
@media (max-width: 1200px) {
    .thumbnail-background {
        grid-template-columns: repeat(12, 1fr);
        grid-template-rows: repeat(2, 16vh);
    }
}

@media (max-width: 900px) {
    .thumbnail-background {
        grid-template-columns: repeat(8, 1fr);
        grid-template-rows: repeat(2, 14vh);
    }
}

@media (max-width: 768px) {
    .thumbnail-background {
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: repeat(2, 12vh);
    }
}

@media (max-width: 500px) {
    .thumbnail-background {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 10vh);
    }
}

.hero-logo {
    width: 250px; /* Adjust as needed */
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.4));
}

.hero-main-text {
    font-size: 4.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
    line-height: 1.1;
}

.hero-sub-text {
    font-size: 2.2rem;
    font-style: italic;
    margin-top: 0;
    margin-bottom: 40px;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.join-team-btn {
    background: #e014a1;
    color: #fff;
    font-size: 1.3rem;
    font-weight: bold;
    padding: 16px 40px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(224, 20, 161, 0.3);
}

.join-team-btn:hover {
    background: #ff33bb;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(224, 20, 161, 0.5);
}

@media (max-width: 768px) {
    .hero-main-text {
        font-size: 3rem;
    }
    .hero-sub-text {
        font-size: 1.5rem;
    }
    .join-team-btn {
        padding: 12px 30px;
        font-size: 1.1rem;
    }
    .hero-logo {
        width: 180px;
    }
}

body.light-mode .hero-main-text,
body.light-mode .hero-sub-text {
    color: #23202b;
    text-shadow: none;
}

body.light-mode .hero-text-overlay {
    background: rgba(255, 255, 255, 0.2);
}

body.light-mode .join-team-btn {
    background: #e014a1;
    color: #fff;
}

body.light-mode .join-team-btn:hover {
    background: #ff33bb;
    box-shadow: 0 8px 30px rgba(224, 20, 161, 0.3);
}

@keyframes scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.thumbnails-multiline {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 0;
    margin-bottom: 0;
    height: calc(5 * 200px + 4 * 6px);
    overflow: hidden;
}
.thumbnail-row {
    width: 100vw;
    overflow: hidden;
    position: relative;
    margin: 0;
}
.thumbnail-row:nth-child(1) .thumbnail-background {
    animation-duration: 18s;
}
.thumbnail-row:nth-child(2) .thumbnail-background {
    animation-duration: 20s;
}
.thumbnail-row:nth-child(3) .thumbnail-background {
    animation-duration: 16s;
}
.thumbnail-row:nth-child(4) .thumbnail-background {
    animation-duration: 22s;
}
.thumbnail-row:nth-child(5) .thumbnail-background {
    animation-duration: 14s;
}

.hamburger-fixed {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 1001;
    background: rgba(20, 24, 40, 0.8);
    border: 2px solid rgba(58, 65, 87, 0.6);
    font-size: 2.2rem;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hamburger-fixed:hover {
    background: rgba(20, 24, 40, 0.9);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

body.light-mode .hamburger-fixed {
    background: rgba(255, 255, 255, 0.8);
    color: #23202b;
    border-color: rgba(230, 184, 0, 0.6);
}

body.light-mode .hamburger-fixed:hover {
    background: rgba(255, 255, 255, 0.9);
}

.discord-messages {
  margin: 20px 0 16px 0;
  padding: 0 2px;
  max-height: 340px;
  overflow-y: auto;
  background: rgba(24,21,31,0.7);
  border-radius: 12px;
  box-shadow: 0 2px 12px #0002;
}
.discord-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 1rem;
}
.discord-message:last-child {
  border-bottom: none;
}
.msg-avatar img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: 0 1px 4px #0003;
  background: #23202b;
}
.msg-main {
  flex: 1;
  min-width: 0;
}
.msg-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.msg-user {
  font-weight: 600;
  color: #fff;
  font-size: 1.05em;
  margin-right: 2px;
  word-break: break-all;
}
.msg-role {
  font-size: 0.85em;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 8px;
  margin-right: 4px;
  margin-left: 2px;
  vertical-align: middle;
  letter-spacing: 0.5px;
}
.msg-role.creators {
  background: #e014a1;
  color: #fff;
}
.msg-role.var {
  background: #5865f2;
  color: #fff;
}
.msg-time {
  font-size: 0.82em;
  color: #b5b5b5;
  margin-left: 6px;
  font-weight: 400;
}
.msg-text {
  color: #e6e6e6;
  font-size: 1em;
  line-height: 1.5;
  word-break: break-word;
  white-space: pre-line;
}
body.light-mode .discord-messages {
  background: #f8fafc;
  box-shadow: 0 2px 12px #0001;
}
body.light-mode .discord-message {
  border-bottom: 1px solid #e2e8f0;
}
body.light-mode .msg-user {
  color: #23202b;
}
body.light-mode .msg-role.creators {
  background: #e014a1;
  color: #fff;
}
body.light-mode .msg-role.var {
  background: #ffd43b;
  color: #23202b;
}
body.light-mode .msg-time {
  color: #7b7b7b;
}
body.light-mode .msg-text {
  color: #23202b;
}

.discord-input-row {
  display: flex;
  align-items: center;
  background: rgba(30, 31, 34, 0.95);
  border-radius: 8px;
  padding: 0 16px;
  margin: 16px 12px 12px 12px;
  min-height: 48px;
  box-shadow: 0 1px 0 0 rgba(0,0,0,0.2);
  border: 1px solid rgba(79,84,92,0.3);
}
.discord-input-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 12px;
}
.discord-input-field {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 16px;
  padding: 12px 0;
  outline: none;
}
.discord-input-icon {
  margin-left: 12px;
  font-size: 22px;
  color: #b9bbbe;
  cursor: pointer;
  transition: color 0.2s;
  user-select: none;
  display: flex;
  align-items: center;
}
.discord-input-icon:hover {
  color: #fff;
}
.discord-input-send {
  background: #5865f2;
  border: none;
  border-radius: 6px;
  margin-left: 12px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #fff;
  transition: background 0.2s;
}
.discord-input-send:hover {
  background: #4752c4;
}

/* Thumbnail Hover Animation */
.thumbnails-multiline img, .thumbnail-background img {
  transition: transform 0.22s cubic-bezier(.4,1.7,.7,1), box-shadow 0.22s cubic-bezier(.4,1.7,.7,1);
}
.thumbnails-multiline img:hover, .thumbnail-background img:hover {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 8px 32px #23272a55, 0 2px 8px #5865f2aa;
  z-index: 2;
}

/* Flame Box Styling */
.flame-box {
    margin-top: 20px;
    background: #23202b;
    border: 2px solid #ffd43b;
    box-shadow: 0 0 32px 8px rgba(255, 87, 34, 0.25), 0 0 32px 8px rgba(255, 212, 59, 0.18), 0 8px 32px rgba(88, 101, 242, 0.3);
    animation: float 6s ease-in-out infinite, flameGlow 3s ease-in-out infinite alternate, flameFlicker 1.1s infinite;
    animation-delay: 0s, 3s, 0s;
}

@keyframes flameFlicker {
    0% { box-shadow: 0 0 32px 8px rgba(255, 87, 34, 0.25), 0 0 32px 8px rgba(255, 212, 59, 0.18), 0 8px 32px rgba(88, 101, 242, 0.3); }
    10% { box-shadow: 0 0 40px 12px rgba(255, 140, 0, 0.32), 0 0 36px 10px rgba(255, 212, 59, 0.22), 0 8px 32px rgba(88, 101, 242, 0.3); }
    20% { box-shadow: 0 0 36px 10px rgba(255, 87, 34, 0.32), 0 0 36px 10px rgba(255, 212, 59, 0.25), 0 8px 32px rgba(88, 101, 242, 0.3); }
    30% { box-shadow: 0 0 44px 16px rgba(255, 140, 0, 0.38), 0 0 36px 10px rgba(255, 212, 59, 0.28), 0 8px 32px rgba(88, 101, 242, 0.3); }
    40% { box-shadow: 0 0 38px 12px rgba(255, 87, 34, 0.28), 0 0 32px 8px rgba(255, 212, 59, 0.20), 0 8px 32px rgba(88, 101, 242, 0.3); }
    50% { box-shadow: 0 0 50px 20px rgba(255, 140, 0, 0.45), 0 0 40px 14px rgba(255, 212, 59, 0.32), 0 8px 32px rgba(88, 101, 242, 0.3); }
    60% { box-shadow: 0 0 36px 10px rgba(255, 87, 34, 0.32), 0 0 36px 10px rgba(255, 212, 59, 0.25), 0 8px 32px rgba(88, 101, 242, 0.3); }
    70% { box-shadow: 0 0 44px 16px rgba(255, 140, 0, 0.38), 0 0 36px 10px rgba(255, 212, 59, 0.28), 0 8px 32px rgba(88, 101, 242, 0.3); }
    80% { box-shadow: 0 0 38px 12px rgba(255, 87, 34, 0.28), 0 0 32px 8px rgba(255, 212, 59, 0.20), 0 8px 32px rgba(88, 101, 242, 0.3); }
    90% { box-shadow: 0 0 40px 12px rgba(255, 140, 0, 0.32), 0 0 36px 10px rgba(255, 212, 59, 0.22), 0 8px 32px rgba(88, 101, 242, 0.3); }
    100% { box-shadow: 0 0 32px 8px rgba(255, 87, 34, 0.25), 0 0 32px 8px rgba(255, 212, 59, 0.18), 0 8px 32px rgba(88, 101, 242, 0.3); }
}

@keyframes flameGlow {
    0% { box-shadow: 0 8px 32px rgba(88, 101, 242, 0.3); }
    100% { box-shadow: 0 8px 32px rgba(88, 101, 242, 0.6), 0 0 20px rgba(88, 101, 242, 0.4); }
}

/* Floating animation for owner boxes */
.owner-box {
    animation: float 6s ease-in-out infinite;
}

.flame-box {
    animation: float 6s ease-in-out infinite, flameGlow 3s ease-in-out infinite alternate;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Global animation keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 5px rgba(255, 212, 59, 0.2); }
    50% { box-shadow: 0 0 20px rgba(255, 212, 59, 0.4); }
    100% { box-shadow: 0 0 5px rgba(255, 212, 59, 0.2); }
}

/* Apply animations to elements */
.info-section, .team-member, .faq-section, .about-us-grid-item {
    animation: fadeIn 0.6s ease-out;
}

.nav-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease-out, height 0.6s ease-out;
}

.nav-btn:hover::after {
    width: 300px;
    height: 300px;
}

.team-member {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.team-pic {
    transition: transform 0.5s ease, border-color 0.3s ease;
}

.team-member:hover .team-pic {
    transform: scale(1.05) rotate(2deg);
}

.faq-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateX(5px);
}

.faq-item summary {
    transition: color 0.3s ease, background-color 0.3s ease;
}

.faq-item[open] {
    animation: scaleIn 0.3s ease-out;
}

.discord-cta {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.discord-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.discord-cta:hover::before {
    left: 100%;
}

.owner-box {
    animation: glowPulse 3s infinite, float 6s ease-in-out infinite;
}

.about-us-title::after {
    animation: slideIn 0.6s ease-out;
}

#animated-stats {
    animation: fadeIn 0.8s ease-out;
}

.about-us-grid-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-us-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Enhanced reviews carousel animations */
#reviews-carousel p {
    animation: fadeIn 0.6s ease-out;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#reviews-carousel p:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img[loading] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Enhanced theme toggle animation */
#theme-toggle {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
}

/* Logo animation */
.logo:hover {
    transform: scale(1.05);
}

/* FAQ upvote button animation */
.faq-upvote {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-upvote:hover {
    transform: scale(1.05);
}

.faq-upvote:active {
    transform: scale(0.95);
}

/* Team section title animation */
.team-title:hover {
    transform: scale(1.05);
}

/* Light mode specific animations */
body.light-mode .team-title::before {
    background: linear-gradient(90deg, transparent, #e6b800, transparent);
}

body.light-mode .team-section::before {
    background: radial-gradient(circle at center, rgba(230, 184, 0, 0.1) 0%, transparent 70%);
}

body.light-mode .team-section + div .nav-btn {
    background: linear-gradient(45deg, #fff, #f7f7fa);
    border-color: #e6b800;
}

body.light-mode .team-section + div .nav-btn:hover {
    box-shadow: 0 5px 15px rgba(230, 184, 0, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .team-title {
        font-size: 2.2rem;
        margin: 30px 0 20px 0;
    }
    
    .team-section {
        gap: 20px;
        padding: 15px;
    }
    
    .team-section + div .nav-btn {
        padding: 10px 24px;
        font-size: 1.1rem;
    }
}

/* Enhanced Back Button */
.team-section + div .nav-btn {
    background: linear-gradient(45deg, #23202b, #2d232e);
    padding: 12px 32px;
    font-size: 1.2rem;
    border: 2px solid #ffd43b;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.team-section + div .nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 212, 59, 0.2),
        transparent
    );
    transition: 0.5s;
}

.team-section + div .nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 212, 59, 0.3);
}

.team-section + div .nav-btn:hover::before {
    left: 100%;
}

/* Social Page Styles */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.social-card {
    background: #23202b;
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #ffd43b;
    transform: scaleX(0);
    transform-origin: left;
}

.social-card:hover::before {
    transform: scaleX(1);
    transition: transform 0.3s ease;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scrollbar from 200vw */
    box-sizing: border-box; /* Ensure consistent box model */
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #18151f;
    color: #fff;
    transition: background 0.5s, color 0.5s, border-color 0.5s, box-shadow 0.5s;
}

header {
    background: linear-gradient(180deg, #2d232e 0%, #18151f 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: background 0.5s, color 0.5s, border-color 0.5s, box-shadow 0.5s;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 32px;
    max-width: 800px;
    margin: 32px auto 0 auto;
    gap: 18px;
    position: relative;
    background: rgba(20, 24, 40, 0.3); /* noch transparenterer Hintergrund */
    border-radius: 40px;                /* starke Abrundung */
    border: 2px solid rgba(58, 65, 87, 0.6);          /* transparenterer Rand */
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.1);
    transition: background 0.5s, color 0.5s, border-color 0.5s, box-shadow 0.5s;
    margin-bottom: 40px;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 32px 0 24px 0;
}

.logo {
    height: 220px;
    width: auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    background: #fff1;
    transition: transform 0.5s ease;
}

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

.header-logo {
    height: 50px;
    width: 50px;
    margin-right: 28px;
    vertical-align: middle;
    display: block;
    border-radius: 22%;
    object-fit: cover;
    background: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 18px;
    margin: 0;
    padding: 0;
}

.nav-btn {
    display: flex;
    align-items: center;
    padding: 10px 26px;
    border-radius: 30px;
    background: #23202b;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    border: none;
    position: relative;
    overflow: hidden;
}

.nav-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease-out, height 0.6s ease-out;
}

.nav-btn:hover::after {
    width: 300px;
    height: 300px;
}

.nav-btn.highlight {
    background: #ffd43b;
    color: #23202b;
    box-shadow: 0 2px 8px #ffd43b44;
}

.nav-btn:hover {
    background: #ffd43b;
    color: #23202b;
}

@media (max-width: 700px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 10px;
    }
    .nav-links {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        margin-top: 10px;
    }
    .logo {
        height: 130px;
    }
    .logo-container {
        margin: 18px 0 12px 0;
    }
}

.info-section {
    max-width: 600px;
    margin: 0 auto;
    background: #23202b;
    border-radius: 16px;
    box-shadow: 0 2px 16px #0002;
    padding: 32px 24px;
    margin-top: 24px;
    color: #fff;
    transition: background 0.5s, color 0.5s, border-color 0.5s, box-shadow 0.5s;
    animation: fadeIn 0.6s ease-out;
}

.info-section h2 {
    color: #ffd43b;
    margin-top: 24px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.info-section h2::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(88, 101, 242, 0.4), transparent);
    animation: scanLine 3s ease-in-out infinite;
}

@keyframes scanLine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.info-section ul {
    padding-left: 22px;
    margin-bottom: 18px;
}

.info-section ul li {
    position: relative;
    padding-left: 25px;
    transition: all 0.3s ease;
}

.info-section ul li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #5865f2;
    animation: pulseArrow 2s ease-in-out infinite;
}

@keyframes pulseArrow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

.info-section ul li:hover {
    transform: translateX(10px);
    color: #5865f2;
}

.info-section ul li:hover::before {
    animation: bounceArrow 0.5s ease-in-out;
}

@keyframes bounceArrow {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

.discord-cta {
    display: inline-block;
    background: #ffd43b;
    color: #23202b;
    font-weight: bold;
    padding: 10px 28px;
    border-radius: 30px;
    text-decoration: none;
    margin: 10px 0 18px 0;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px #ffd43b44;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.discord-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.discord-cta:hover::before {
    left: 100%;
}

.discord-cta:hover {
    background: #fff;
    color: #23202b;
}

.owner-box {
    background: linear-gradient(rgba(24,21,31,0.7), rgba(24,21,31,0.7)), url('background.png') center/cover no-repeat;
    border-left: 4px solid #ffd43b;
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 18px;
    margin-top: 8px;
    text-align: center;
    position: relative;
    color: #fff;
    overflow: hidden;
    transition: background 0.5s, color 0.5s, border-color 0.5s, box-shadow 0.5s;
    animation: glowPulse 3s infinite, float 6s ease-in-out infinite;
}

.owner-box b, .owner-box span {
    display: block;
    margin: 0 auto;
}

.owner-box blockquote {
    margin: 10px 0 0 0;
    color: #ffd43b;
    font-style: italic;
    border-left: none;
    padding-left: 0;
}

.owner-pic {
    display: block;
    margin: 0 auto 10px auto;
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #ffd43b;
    box-shadow: 0 2px 8px #0004;
}

@media (max-width: 700px) {
    .info-section {
        padding: 16px 6px;
    }
}

#theme-toggle {
    margin-left: auto;
    background: #23202b;
    color: #ffd43b;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

#theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
}

#animated-stats {
    text-align: center;
    margin: 24px 0 0 0;
    font-size: 2.2rem;
    font-weight: bold;
    color: #ffd43b;
    letter-spacing: 2px;
    min-height: 40px;
    transition: color 0.3s;
    animation: fadeIn 0.8s ease-out;
}

.discord-widget {
    display: flex;
    justify-content: center;
    margin: 32px 0;
}
.custom-discord-widget {
    max-width: 900px;
    margin: 32px auto;
    background: rgba(24, 21, 31, 0.85);
    border-radius: 22px;
    box-shadow: 0 8px 40px 0 rgba(0,0,0,0.25), 0 1.5px 8px 0 rgba(0,0,0,0.10);
    backdrop-filter: blur(8px);
    padding: 0 0 18px 0;
    overflow: hidden;
}

.discord-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 32px 18px 32px;
    border-bottom: 1.5px solid rgba(255,255,255,0.07);
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.08);
    font-size: 1.18em;
    font-weight: 600;
    background: rgba(24,21,31,0.92);
}

.discord-content-row {
    display: flex;
    flex-direction: row;
    gap: 36px;
    flex-wrap: wrap;
}
.discord-channels {
    min-width: 220px;
    max-width: 270px;
    flex: 0 0 240px;
    overflow: hidden;
    padding: 16px 0 16px 0;
    border-right: 2px solid rgba(255,255,255,0.07);
    background: rgba(24,21,31,0.93);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.discord-messages {
    flex: 1 1 0;
    min-width: 420px;
    max-width: 900px;
    padding: 16px 0 16px 0;
    background: transparent;
    overflow-y: auto;
    max-height: 420px;
    scrollbar-width: thin;
    scrollbar-color: #23202b #18151f;
}
.discord-messages::-webkit-scrollbar {
    width: 8px;
    background: #18151f;
    border-radius: 8px;
}
.discord-messages::-webkit-scrollbar-thumb {
    background: #23202b;
    border-radius: 8px;
}
.channel {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px 8px 18px;
    border-radius: 8px;
    font-size: 1.04em;
    color: #b5b5b5;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    margin-bottom: 2px;
    font-weight: 500;
}
.channel.active {
    background: linear-gradient(90deg, #2563eb 60%, #1e293b 100%);
    color: #fff;
    box-shadow: 0 2px 8px #2563eb22;
}
.channel:not(.active):hover:not(.disabled) {
    background: rgba(37,99,235,0.10);
    color: #fff;
}
.channel.disabled {
    opacity: 0.45;
    pointer-events: none;
    filter: grayscale(0.7);
}
.channel-icon {
    font-size: 1.25em;
    margin-right: 8px;
    display: inline-block;
    width: 1.5em;
    text-align: center;
}
.discord-messages {
    margin: 20px 0 16px 0;
    border-radius: 0 0 18px 0;
    box-shadow: none;
    background: transparent;
}
.discord-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px 10px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 1rem;
}
.discord-message:last-child {
    border-bottom: none;
}
.msg-avatar img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    box-shadow: 0 1px 4px #0003;
    background: #23202b;
}
.msg-main {
    flex: 1;
    min-width: 0;
}
.msg-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}
.msg-user {
    font-weight: 600;
    color: #fff;
    font-size: 1.05em;
    margin-right: 2px;
    word-break: break-all;
}
.msg-role {
    font-size: 0.85em;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 8px;
    margin-right: 4px;
    margin-left: 2px;
    vertical-align: middle;
    letter-spacing: 0.5px;
}
.msg-role.creators {
    background: #e014a1;
    color: #fff;
}
.msg-role.var {
    background: #ffd43b;
    color: #23202b;
}
.msg-time {
    font-size: 0.82em;
    color: #b5b5b5;
    margin-left: 6px;
    font-weight: 400;
}
.msg-text {
    color: #e6e6e6;
    font-size: 1em;
    line-height: 1.5;
    word-break: break-word;
    white-space: pre-line;
}
.discord-join {
    text-align: center;
    margin-top: 18px;
}
.join-discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #5865f2, #4752c4);
    color: #fff;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
    font-size: 1.08em;
}
.join-discord-btn:hover {
    background: linear-gradient(135deg, #4752c4, #3c45a5);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(88, 101, 242, 0.4);
}
.discord-icon {
    font-size: 1.1rem;
}
body.light-mode .custom-discord-widget {
    background: rgba(255,255,255,0.97);
    box-shadow: 0 8px 40px 0 rgba(30,41,59,0.10), 0 1.5px 8px 0 rgba(30,41,59,0.08);
}
body.light-mode .discord-header {
    background: rgba(255,255,255,0.98);
    border-bottom: 1.5px solid #e2e8f0;
    color: #23202b;
}
body.light-mode .discord-channels {
    background: #f8fafc;
    border-right: 2px solid #e2e8f0;
}
body.light-mode .channel {
    color: #475569;
}
body.light-mode .channel.active {
    background: linear-gradient(90deg, #ffd43b 60%, #f8fafc 100%);
    color: #23202b;
    box-shadow: 0 2px 8px #ffd43b22;
}
body.light-mode .channel:not(.active):hover:not(.disabled) {
    background: rgba(255,212,59,0.10);
    color: #23202b;
}
body.light-mode .discord-messages {
    background: transparent;
    box-shadow: none;
}
body.light-mode .discord-message {
    border-bottom: 1px solid #e2e8f0;
}
body.light-mode .msg-user {
    color: #23202b;
}
body.light-mode .msg-role.creators {
    background: #e014a1;
    color: #fff;
}
body.light-mode .msg-role.var {
    background: #ffd43b;
    color: #23202b;
}
body.light-mode .msg-time {
    color: #7b7b7b;
}
body.light-mode .msg-text {
    color: #23202b;
}
@media (max-width: 1400px) {
    .custom-discord-widget {
        max-width: 99vw;
        margin: 12px 0;
    }
    .discord-messages {
        min-width: 0;
        max-width: 100vw;
    }
}
@media (max-width: 900px) {
    .discord-content-row {
        flex-direction: column;
        gap: 0;
        flex-wrap: nowrap;
    }
    .discord-channels, .discord-messages {
        max-width: 100%;
        min-width: 0;
        flex: unset;
        padding: 0;
    }
    .discord-header {
        padding: 16px 10px 12px 10px;
        font-size: 1em;
    }
    .discord-input-row {
        margin: 12px 6px 0 6px;
        padding: 8px 10px;
    }
}

.team-title {
    text-align: center;
    margin: 40px 0 24px 0;
    font-size: 2.8rem;
    color: #ffd43b;
    position: relative;
    padding-bottom: 20px;
    text-shadow: 0 2px 10px rgba(255, 212, 59, 0.3);
}

.team-title::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #ffd43b, transparent);
    border-radius: 2px;
}

.team-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto 32px auto;
    padding: 20px;
    position: relative;
}

.team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 212, 59, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.team-member {
    background: #23202b;
    border-radius: 18px;
    box-shadow: 0 2px 16px #0002;
    padding: 28px 24px 20px 24px;
    text-align: center;
    width: 220px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transition: background 0.5s, color 0.5s, border-color 0.5s, box-shadow 0.5s;
    animation: fadeIn 0.6s ease-out;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.team-pic {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 22%;
    border: 3px solid #ffd43b;
    margin-bottom: 16px;
    background: #18151f;
    transition: transform 0.5s ease, border-color 0.3s ease;
    position: relative;
}

/* Add dot for profile images with "zahl" in filename */
.team-pic[src*="zahl"]::after {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #ffd43b;
    border-radius: 50%;
    border: 3px solid #23202b;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

body.light-mode .team-pic[src*="zahl"]::after {
    background: #e6b800;
    border-color: #fff;
}

.team-member:hover .team-pic {
    transform: scale(1.05) rotate(2deg);
}

.team-member h2 {
    margin: 0 0 8px 0;
    font-size: 1.3rem;
    color: #ffd43b;
}

.team-role {
    color: #fff;
    font-size: 1.05rem;
    margin: 0;
    opacity: 0.85;
}

body.light-mode .team-title {
    color: #d97706;
    text-shadow: 0 2px 10px rgba(217, 119, 6, 0.15);
}
body.light-mode .team-title::before {
    background: linear-gradient(90deg, transparent, #e6b800, transparent);
}
body.light-mode .team-section::before {
    background: radial-gradient(circle at center, rgba(230, 184, 0, 0.1) 0%, transparent 70%);
}
body.light-mode .team-section + div .nav-btn {
    background: linear-gradient(45deg, #fff, #f7f7fa);
    border-color: #e6b800;
}
body.light-mode .team-section + div .nav-btn:hover {
    box-shadow: 0 5px 15px rgba(230, 184, 0, 0.2);
}
body.light-mode .team-member {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: #1e293b;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 16px rgba(148, 163, 184, 0.1);
}
body.light-mode .team-pic {
    border: 3px solid #d97706;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.2);
}
body.light-mode .team-role {
    color: #475569;
}

body, header, .navbar, .info-section, .owner-box, .team-member, .team-title, .team-pic, .nav-btn {
    transition: background 0.5s, color 0.5s, border-color 0.5s, box-shadow 0.5s;
}

#theme-animation {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}
#theme-animation.active {
    opacity: 1;
}
.theme-anim-svg {
    width: 200px;
    height: 200px;
    filter: drop-shadow(0 0 60px #ffd43b88) drop-shadow(0 0 20px #fff8);
    transform-style: preserve-3d;
    animation: totem-pop-spin-3d 0.5s cubic-bezier(.5,2,.5,1) forwards, totem-pulse 0.5s 0.5s cubic-bezier(.5,2,.5,1) 2 alternate, fade-out-spin-3d 1s 1.5s linear forwards;
}
.theme-anim-svg.moon {
    filter: drop-shadow(0 0 60px #6ec6ff88) drop-shadow(0 0 20px #fff8);
}
@keyframes totem-pop-spin-3d {
    0% { transform: perspective(600px) scale(0.1) rotateY(0deg); opacity: 0; }
    60% { transform: perspective(600px) scale(1.2) rotateY(90deg); opacity: 1; }
    100% { transform: perspective(600px) scale(1) rotateY(0deg); opacity: 1; }
}
@keyframes totem-pulse {
    0% { transform: perspective(600px) scale(1) rotateY(0deg); }
    100% { transform: perspective(600px) scale(1.12) rotateY(0deg); }
}
@keyframes fade-out-spin-3d {
    0% { opacity: 1; transform: perspective(600px) scale(1) rotateY(0deg); }
    100% { opacity: 0; transform: perspective(600px) scale(0.5) rotateY(120deg) translateY(80px); }
}
.totem-particles {
    position: absolute;
    left: 50%;
    top: 50%;
    pointer-events: none;
    z-index: 10000;
}
.totem-particle {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    opacity: 0.85;
    background: var(--color, #ffd43b);
    box-shadow: 0 0 16px 4px var(--color-glow, #ffd43b88);
    animation: particle-fly 1.2s cubic-bezier(.5,2,.5,1) forwards;
}
.totem-particle.moon {
    background: #6ec6ff;
    box-shadow: 0 0 16px 4px #6ec6ff88;
}
@keyframes particle-fly {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
    60% { opacity: 1; }
    100% {
        transform: translate(var(--tx, 0), var(--ty, 0)) scale(1.2) rotate(var(--rot, 0deg));
        opacity: 0;
    }
}

.faq-section {
    max-width: 600px;
    margin: 40px auto 32px auto;
    background: #23202b;
    border-radius: 16px;
    box-shadow: 0 2px 16px #0002;
    padding: 32px 24px;
    color: #fff;
    animation: fadeIn 0.6s ease-out;
}
.faq-section h2 {
    color: #ffd43b;
    margin-top: 0;
    margin-bottom: 18px;
    text-align: center;
}
.faq-item {
    margin-bottom: 18px;
    border-radius: 8px;
    background: #18151f;
    box-shadow: 0 1px 6px #0001;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.6s ease-out;
}
.faq-item:hover {
    transform: translateX(5px);
}
.faq-item summary {
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 14px 18px;
    outline: none;
    color: #ffd43b;
    background: none;
    border: none;
    transition: color 0.3s ease, background-color 0.3s ease;
}
.faq-item[open] {
    animation: scaleIn 0.3s ease-out;
}
.faq-item p {
    margin: 0;
    padding: 0 18px 14px 18px;
    color: #fff;
    font-size: 1rem;
    opacity: 0.95;
}
body.light-mode .faq-section {
    background: #fff;
    color: #23202b;
}
body.light-mode .faq-section h2 {
    color: #e6b800;
}
body.light-mode .faq-item {
    background: #f7f7fa;
    box-shadow: 0 1px 6px #e6b80022;
}
body.light-mode .faq-item summary {
    color: #e6b800;
}
body.light-mode .faq-item[open] summary {
    color: #23202b;
}
body.light-mode .faq-item p {
    color: #23202b;
}

body.no-theme-anim #theme-animation {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: none !important;
}

.faq-upvote {
    display: inline-flex;
    align-items: center;
    background: #23202b;
    color: #ffd43b;
    border: none;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 1.1rem;
    font-weight: bold;
    margin: 10px 0 0 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 4px #0002;
    gap: 8px;
    pointer-events: auto;
    cursor: pointer;
    animation: fadeIn 0.6s ease-out;
}
.faq-upvote:hover {
    transform: scale(1.05);
}
.faq-upvote:active {
    transform: scale(0.95);
}
.faq-upvote.voted {
    background: #888 !important;
    color: #fff !important;
    opacity: 0.7;
    pointer-events: auto !important;
    cursor: pointer !important;
}
.faq-upvote .upvote-count {
    font-size: 1rem;
    margin-left: 4px;
}
.faq-missing {
    margin-top: 32px;
    padding: 18px 16px;
    background: #18151f;
    border-radius: 10px;
    text-align: center;
    color: #ffd43b;
    font-size: 1.1rem;
    box-shadow: 0 1px 8px #0001;
}
.faq-missing a {
    color: #ffd43b;
    text-decoration: underline;
    font-weight: bold;
}
body.light-mode .faq-upvote {
    background: #f7f7fa;
    color: #e6b800;
}
body.light-mode .faq-upvote:hover {
    background: #e6b800;
    color: #fff;
}
body.light-mode .faq-missing {
    background: #fffbe6;
    color: #e6b800;
}
body.light-mode .faq-missing a {
    color: #e6b800;
}

.about-us-section {
    max-width: 1000px;
    margin: 40px auto 60px auto;
    padding: 0 20px;
    color: #fff;
}

.about-us-title {
    text-align: center;
    margin: 0 0 40px 0;
    font-size: 2.8rem;
    color: #e014a1;
    position: relative;
    animation: slideIn 0.6s ease-out;
}
.about-us-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 6px;
    background: #e014a1;
    margin: 10px auto 0 auto;
    border-radius: 3px;
    animation: slideIn 0.6s ease-out;
}

.about-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.about-us-grid-item {
    background: #18151f;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    padding: 28px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.6s ease-out;
}

.about-us-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.about-us-grid-item h2 {
    color: #e014a1;
    margin-top: 0;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* Specific H2 colors for the grid items */
.about-us-grid-item.top-right h2,
.about-us-grid-item.bottom-right h2 {
    color: #6ec6ff;
}

.about-us-grid-item p, .about-us-grid-item li {
    font-size: 1rem;
    line-height: 1.6;
    color: #fff;
}

.about-us-grid-item ul {
    padding-left: 20px;
    color: #fff;
}

#animated-stats {
    font-size: 2.5rem;
    font-weight: bold;
    color: #6ec6ff;
    margin-bottom: 15px;
    text-align: left;
}

#animated-stats span {
    display: block;
    font-size: 1rem;
    font-weight: normal;
    color: #ccc;
}

#reviews-carousel {
    margin: 40px 0;
    padding: 20px;
    background: #23202b;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

#reviews-carousel p {
    background: #18151f;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-style: italic;
    line-height: 1.6;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    animation: fadeIn 0.6s ease-out;
}

#reviews-carousel p:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

#reviews-carousel p::before {
    content: '"';
    font-size: 4rem;
    color: #e014a1;
    opacity: 0.2;
    position: absolute;
    top: -10px;
    left: 10px;
    font-family: Georgia, serif;
}

#reviews-carousel .review-author {
    display: block;
    margin-top: 12px;
    font-weight: bold;
    color: #e014a1;
    font-style: normal;
}

.about-us-grid .owner-box {
    background: none;
    border-left: none;
    padding: 0;
    text-align: left;
    box-shadow: none;
}
.about-us-grid .owner-box b,
.about-us-grid .owner-box span {
     display: inline;
     margin: 0;
     color: #fff;
}

.about-us-grid .owner-box blockquote {
    margin: 10px 0;
    color: #fff;
    font-style: normal;
    border-left: 4px solid #e014a1;
    padding-left: 10px;
}

/* Specific styles for the layout */
.about-us-grid .top-left, .about-us-grid .bottom-right {
    grid-column: span 1;
}
.about-us-grid .top-right, .about-us-grid .bottom-left {
     grid-column: span 1;
}

@media (min-width: 768px) {
     .about-us-grid {
         grid-template-columns: 1.5fr 1fr;
         grid-template-areas:
             'top-left top-right'
             'perks reviews';
     }
     .about-us-grid-item.bottom-left {
         grid-area: perks;
     }
     .about-us-grid-item.bottom-right {
         grid-area: reviews;
     }
     .about-us-grid-item.top-left {
         grid-area: top-left;
     }
     .about-us-grid-item.top-right {
         grid-area: top-right;
     }
}

body.light-mode .about-us-section h2 {
    color: #e014a1;
}
body.light-mode .about-us-grid-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 16px rgba(148, 163, 184, 0.1);
    border-radius: 16px;
}
body.light-mode .about-us-title {
     color: #e014a1;
}
body.light-mode .about-us-grid-item p, body.light-mode .about-us-grid-item li {
    color: #000;
}
body.light-mode #animated-stats {
    color: #6ec6ff;
}
body.light-mode #animated-stats span {
    /* Removed as the span is no longer used in HTML */
}
body.light-mode #reviews-carousel {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
body.light-mode #reviews-carousel p {
    background: #f7f7fa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
body.light-mode #reviews-carousel p:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
body.light-mode #reviews-carousel p::before {
    color: #e014a1;
}
body.light-mode #reviews-carousel .review-author {
    color: #e014a1;
}
body.light-mode .about-us-grid .owner-box blockquote {
    border-left-color: #e014a1;
    color: #000;
}

/* Global animation keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 5px rgba(255, 212, 59, 0.2); }
    50% { box-shadow: 0 0 20px rgba(255, 212, 59, 0.4); }
    100% { box-shadow: 0 0 5px rgba(255, 212, 59, 0.2); }
}

/* Apply animations to elements */
.info-section, .team-member, .faq-section, .about-us-grid-item {
    animation: fadeIn 0.6s ease-out;
}

.nav-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease-out, height 0.6s ease-out;
}

.nav-btn:hover::after {
    width: 300px;
    height: 300px;
}

.team-member {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.team-pic {
    transition: transform 0.5s ease, border-color 0.3s ease;
}

.team-member:hover .team-pic {
    transform: scale(1.05) rotate(2deg);
}

.faq-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateX(5px);
}

.faq-item summary {
    transition: color 0.3s ease, background-color 0.3s ease;
}

.faq-item[open] {
    animation: scaleIn 0.3s ease-out;
}

.discord-cta {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.discord-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.discord-cta:hover::before {
    left: 100%;
}

.owner-box {
    animation: glowPulse 3s infinite, float 6s ease-in-out infinite;
}

.about-us-title::after {
    animation: slideIn 0.6s ease-out;
}

#animated-stats {
    animation: fadeIn 0.8s ease-out;
}

.about-us-grid-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-us-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Enhanced reviews carousel animations */
#reviews-carousel p {
    animation: fadeIn 0.6s ease-out;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#reviews-carousel p:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img[loading] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Enhanced theme toggle animation */
#theme-toggle {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
}

/* Logo animation */
.logo:hover {
    transform: scale(1.05);
}

/* FAQ upvote button animation */
.faq-upvote {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-upvote:hover {
    transform: scale(1.05);
}

.faq-upvote:active {
    transform: scale(0.95);
}

/* Team section title animation */
.team-title:hover {
    transform: scale(1.05);
}

/* Light mode specific animations */
body.light-mode .team-title::before {
    background: linear-gradient(90deg, transparent, #e6b800, transparent);
}

body.light-mode .team-section::before {
    background: radial-gradient(circle at center, rgba(230, 184, 0, 0.1) 0%, transparent 70%);
}

body.light-mode .team-section + div .nav-btn {
    background: linear-gradient(45deg, #fff, #f7f7fa);
    border-color: #e6b800;
}

body.light-mode .team-section + div .nav-btn:hover {
    box-shadow: 0 5px 15px rgba(230, 184, 0, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .team-title {
        font-size: 2.2rem;
        margin: 30px 0 20px 0;
    }
    
    .team-section {
        gap: 20px;
        padding: 15px;
    }
    
    .team-section + div .nav-btn {
        padding: 10px 24px;
        font-size: 1.1rem;
    }
}

/* Enhanced Back Button */
.team-section + div .nav-btn {
    background: linear-gradient(45deg, #23202b, #2d232e);
    padding: 12px 32px;
    font-size: 1.2rem;
    border: 2px solid #ffd43b;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.team-section + div .nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 212, 59, 0.2),
        transparent
    );
    transition: 0.5s;
}

.team-section + div .nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 212, 59, 0.3);
}

.team-section + div .nav-btn:hover::before {
    left: 100%;
}

/* Social Page Styles */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.social-card {
    background: #23202b;
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #ffd43b;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.social-card:hover::before {
    transform: scaleX(1);
}

.social-card h3 {
    color: #ffd43b;
    margin: 0 0 10px 0;
    font-size: 1.4rem;
}

.social-card p {
    margin: 0 0 15px 0;
    opacity: 0.9;
}

.social-stats {
    display: block;
    font-weight: bold;
    color: #ffd43b;
    font-size: 1.1rem;
}

/* Platform-specific colors */
.social-card.discord::before { background: #5865F2; }
.social-card.youtube::before { background: #FF0000; }
.social-card.twitter::before { background: #1DA1F2; }
.social-card.instagram::before { background: #E1306C; }

.social-card.discord:hover { box-shadow: 0 8px 25px rgba(88, 101, 242, 0.2); }
.social-card.youtube:hover { box-shadow: 0 8px 25px rgba(255, 0, 0, 0.2); }
.social-card.twitter:hover { box-shadow: 0 8px 25px rgba(29, 161, 242, 0.2); }
.social-card.instagram:hover { box-shadow: 0 8px 25px rgba(225, 48, 108, 0.2); }

/* Light mode adjustments */
body.light-mode .social-card {
    background: #fff;
    color: #23202b;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

body.light-mode .social-card h3 {
    color: #e6b800;
}

body.light-mode .social-stats {
    color: #e6b800;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .social-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .social-card {
        padding: 20px;
    }
}

.hero-area {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    box-sizing: border-box;
}

.thumbnail-background {
    display: flex;
    white-space: nowrap;
    min-width: 200%;
    align-items: center;
    justify-content: flex-start;
    animation: scroll-left 18s linear infinite;
    position: relative;
    background: rgba(0, 0, 0, 0.1);
    gap: 0;
    padding: 10px;
    border-radius: 10px;
}

.thumbnail-background img {
    height: 200px;
    width: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 16px 0 0;
    padding: 0;
    display: block;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.thumbnail-background img:last-child {
    margin-right: 0;
}

.hero-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1; /* Ensure text is above background */
    text-align: center;
    color: #fff;
    width: 90%;
    max-width: 800px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

main {
    position: relative; /* Keep relative for other sections */
    overflow: hidden;
    /* Remove height/min-height as hero-area now handles this */
    margin: 0; /* Ensure no default margin */
    padding: 0; /* Ensure no default padding */
    box-sizing: border-box; /* Ensure consistent box model */
}

body.light-mode .hero-area {
    background: #f7f7fa; /* Light mode background for hero area */
}

body.light-mode .thumbnail-background::after {
    background: rgba(255, 255, 255, 0.7); /* Adjusted for light mode */
}

body.light-mode .thumbnail-background {
    background: rgba(255, 255, 255, 0.1);
}

body.light-mode .thumbnail-background img {
    filter: brightness(0.8) grayscale(10%); /* More colorful for light mode */
    opacity: 0.5;
}

/* Responsive adjustments for thumbnail grid */
@media (max-width: 1200px) {
    .thumbnail-background {
        grid-template-columns: repeat(12, 1fr);
        grid-template-rows: repeat(2, 16vh);
    }
}

@media (max-width: 900px) {
    .thumbnail-background {
        grid-template-columns: repeat(8, 1fr);
        grid-template-rows: repeat(2, 14vh);
    }
}

@media (max-width: 768px) {
    .thumbnail-background {
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: repeat(2, 12vh);
    }
}

@media (max-width: 500px) {
    .thumbnail-background {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 10vh);
    }
}

.hero-logo {
    width: 250px; /* Adjust as needed */
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.4));
}

.hero-main-text {
    font-size: 4.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
    line-height: 1.1;
}

.hero-sub-text {
    font-size: 2.2rem;
    font-style: italic;
    margin-top: 0;
    margin-bottom: 40px;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.join-team-btn {
    background: #e014a1;
    color: #fff;
    font-size: 1.3rem;
    font-weight: bold;
    padding: 16px 40px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(224, 20, 161, 0.3);
}

.join-team-btn:hover {
    background: #ff33bb;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(224, 20, 161, 0.5);
}

@media (max-width: 768px) {
    .hero-main-text {
        font-size: 3rem;
    }
    .hero-sub-text {
        font-size: 1.5rem;
    }
    .join-team-btn {
        padding: 12px 30px;
        font-size: 1.1rem;
    }
    .hero-logo {
        width: 180px;
    }
}

body.light-mode .hero-main-text,
body.light-mode .hero-sub-text {
    color: #23202b;
    text-shadow: none;
}

body.light-mode .hero-text-overlay {
    background: rgba(255, 255, 255, 0.2);
}

body.light-mode .join-team-btn {
    background: #e014a1;
    color: #fff;
}

body.light-mode .join-team-btn:hover {
    background: #ff33bb;
    box-shadow: 0 8px 30px rgba(224, 20, 161, 0.3);
}

@keyframes scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.thumbnails-multiline {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 0;
    margin-bottom: 0;
    height: calc(5 * 200px + 4 * 6px);
    overflow: hidden;
}
.thumbnail-row {
    width: 100vw;
    overflow: hidden;
    position: relative;
    margin: 0;
}
.thumbnail-row:nth-child(1) .thumbnail-background {
    animation-duration: 18s;
}
.thumbnail-row:nth-child(2) .thumbnail-background {
    animation-duration: 20s;
}
.thumbnail-row:nth-child(3) .thumbnail-background {
    animation-duration: 16s;
}
.thumbnail-row:nth-child(4) .thumbnail-background {
    animation-duration: 22s;
}
.thumbnail-row:nth-child(5) .thumbnail-background {
    animation-duration: 14s;
}

.hamburger-fixed {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 1001;
    background: rgba(20, 24, 40, 0.8);
    border: 2px solid rgba(58, 65, 87, 0.6);
    font-size: 2.2rem;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hamburger-fixed:hover {
    background: rgba(20, 24, 40, 0.9);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

body.light-mode .hamburger-fixed {
    background: rgba(255, 255, 255, 0.8);
    color: #23202b;
    border-color: rgba(230, 184, 0, 0.6);
}

body.light-mode .hamburger-fixed:hover {
    background: rgba(255, 255, 255, 0.9);
}

.discord-messages {
  margin: 20px 0 16px 0;
  padding: 0 2px;
  max-height: 340px;
  overflow-y: auto;
  background: rgba(24,21,31,0.7);
  border-radius: 12px;
  box-shadow: 0 2px 12px #0002;
}
.discord-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 1rem;
}
.discord-message:last-child {
  border-bottom: none;
}
.msg-avatar img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: 0 1px 4px #0003;
  background: #23202b;
}
.msg-main {
  flex: 1;
  min-width: 0;
}
.msg-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.msg-user {
  font-weight: 600;
  color: #fff;
  font-size: 1.05em;
  margin-right: 2px;
  word-break: break-all;
}
.msg-role {
  font-size: 0.85em;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 8px;
  margin-right: 4px;
  margin-left: 2px;
  vertical-align: middle;
  letter-spacing: 0.5px;
}
.msg-role.creators {
  background: #e014a1;
  color: #fff;
}
.msg-role.var {
  background: #5865f2;
  color: #fff;
}
.msg-time {
  font-size: 0.82em;
  color: #b5b5b5;
  margin-left: 6px;
  font-weight: 400;
}
.msg-text {
  color: #e6e6e6;
  font-size: 1em;
  line-height: 1.5;
  word-break: break-word;
  white-space: pre-line;
}
body.light-mode .discord-messages {
  background: #f8fafc;
  box-shadow: 0 2px 12px #0001;
}
body.light-mode .discord-message {
  border-bottom: 1px solid #e2e8f0;
}
body.light-mode .msg-user {
  color: #23202b;
}
body.light-mode .msg-role.creators {
  background: #e014a1;
  color: #fff;
}
body.light-mode .msg-role.var {
  background: #ffd43b;
  color: #23202b;
}
body.light-mode .msg-time {
  color: #7b7b7b;
}
body.light-mode .msg-text {
  color: #23202b;
}

.discord-input-row {
  display: flex;
  align-items: center;
  background: rgba(30, 31, 34, 0.95);
  border-radius: 8px;
  padding: 0 16px;
  margin: 16px 12px 12px 12px;
  min-height: 48px;
  box-shadow: 0 1px 0 0 rgba(0,0,0,0.2);
  border: 1px solid rgba(79,84,92,0.3);
}
.discord-input-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 12px;
}
.discord-input-field {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 16px;
  padding: 12px 0;
  outline: none;
}
.discord-input-icon {
  margin-left: 12px;
  font-size: 22px;
  color: #b9bbbe;
  cursor: pointer;
  transition: color 0.2s;
  user-select: none;
  display: flex;
  align-items: center;
}
.discord-input-icon:hover {
  color: #fff;
}
.discord-input-send {
  background: #5865f2;
  border: none;
  border-radius: 6px;
  margin-left: 12px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #fff;
  transition: background 0.2s;
}
.discord-input-send:hover {
  background: #4752c4;
}

/* Thumbnail Hover Animation */
.thumbnails-multiline img, .thumbnail-background img {
  transition: transform 0.22s cubic-bezier(.4,1.7,.7,1), box-shadow 0.22s cubic-bezier(.4,1.7,.7,1);
}
.thumbnails-multiline img:hover, .thumbnail-background img:hover {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 8px 32px #23272a55, 0 2px 8px #5865f2aa;
  z-index: 2;
}

/* Flame Box Styling */
.flame-box {
    margin-top: 20px;
    background: #23202b;
    border: 2px solid #ffd43b;
    box-shadow: 0 0 32px 8px rgba(255, 87, 34, 0.25), 0 0 32px 8px rgba(255, 212, 59, 0.18), 0 8px 32px rgba(88, 101, 242, 0.3);
    animation: float 6s ease-in-out infinite, flameGlow 3s ease-in-out infinite alternate, flameFlicker 1.1s infinite;
    animation-delay: 0s, 3s, 0s;
}

@keyframes flameFlicker {
    0% { box-shadow: 0 0 32px 8px rgba(255, 87, 34, 0.25), 0 0 32px 8px rgba(255, 212, 59, 0.18), 0 8px 32px rgba(88, 101, 242, 0.3); }
    10% { box-shadow: 0 0 40px 12px rgba(255, 140, 0, 0.32), 0 0 36px 10px rgba(255, 212, 59, 0.22), 0 8px 32px rgba(88, 101, 242, 0.3); }
    20% { box-shadow: 0 0 36px 10px rgba(255, 87, 34, 0.32), 0 0 36px 10px rgba(255, 212, 59, 0.25), 0 8px 32px rgba(88, 101, 242, 0.3); }
    30% { box-shadow: 0 0 44px 16px rgba(255, 140, 0, 0.38), 0 0 36px 10px rgba(255, 212, 59, 0.28), 0 8px 32px rgba(88, 101, 242, 0.3); }
    40% { box-shadow: 0 0 38px 12px rgba(255, 87, 34, 0.28), 0 0 32px 8px rgba(255, 212, 59, 0.20), 0 8px 32px rgba(88, 101, 242, 0.3); }
    50% { box-shadow: 0 0 50px 20px rgba(255, 140, 0, 0.45), 0 0 40px 14px rgba(255, 212, 59, 0.32), 0 8px 32px rgba(88, 101, 242, 0.3); }
    60% { box-shadow: 0 0 36px 10px rgba(255, 87, 34, 0.32), 0 0 36px 10px rgba(255, 212, 59, 0.25), 0 8px 32px rgba(88, 101, 242, 0.3); }
    70% { box-shadow: 0 0 44px 16px rgba(255, 140, 0, 0.38), 0 0 36px 10px rgba(255, 212, 59, 0.28), 0 8px 32px rgba(88, 101, 242, 0.3); }
    80% { box-shadow: 0 0 38px 12px rgba(255, 87, 34, 0.28), 0 0 32px 8px rgba(255, 212, 59, 0.20), 0 8px 32px rgba(88, 101, 242, 0.3); }
    90% { box-shadow: 0 0 40px 12px rgba(255, 140, 0, 0.32), 0 0 36px 10px rgba(255, 212, 59, 0.22), 0 8px 32px rgba(88, 101, 242, 0.3); }
    100% { box-shadow: 0 0 32px 8px rgba(255, 87, 34, 0.25), 0 0 32px 8px rgba(255, 212, 59, 0.18), 0 8px 32px rgba(88, 101, 242, 0.3); }
}

@keyframes flameGlow {
    0% { box-shadow: 0 8px 32px rgba(88, 101, 242, 0.3); }
    50% { box-shadow: 0 8px 32px rgba(88, 101, 242, 0.6), 0 0 20px rgba(88, 101, 242, 0.4); }
    100% { box-shadow: 0 8px 32px rgba(88, 101, 242, 0.3); }
}

/* Floating animation for owner boxes */
.owner-box {
    animation: float 6s ease-in-out infinite;
}

.flame-box {
    animation: float 6s ease-in-out infinite, flameGlow 3s ease-in-out infinite alternate;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Global animation keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 5px rgba(255, 212, 59, 0.2); }
    50% { box-shadow: 0 0 20px rgba(255, 212, 59, 0.4); }
    100% { box-shadow: 0 0 5px rgba(255, 212, 59, 0.2); }
}

/* Apply animations to elements */
.info-section, .team-member, .faq-section, .about-us-grid-item {
    animation: fadeIn 0.6s ease-out;
}

.nav-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease-out, height 0.6s ease-out;
}

.nav-btn:hover::after {
    width: 300px;
    height: 300px;
}

.team-member {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.team-pic {
    transition: transform 0.5s ease, border-color 0.3s ease;
}

.team-member:hover .team-pic {
    transform: scale(1.05) rotate(2deg);
}

.faq-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateX(5px);
}

.faq-item summary {
    transition: color 0.3s ease, background-color 0.3s ease;
}

.faq-item[open] {
    animation: scaleIn 0.3s ease-out;
}

.discord-cta {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.discord-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.discord-cta:hover::before {
    left: 100%;
}

.owner-box {
    animation: glowPulse 3s infinite, float 6s ease-in-out infinite;
}

.about-us-title::after {
    animation: slideIn 0.6s ease-out;
}

#animated-stats {
    animation: fadeIn 0.8s ease-out;
}

.about-us-grid-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-us-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Enhanced reviews carousel animations */
#reviews-carousel p {
    animation: fadeIn 0.6s ease-out;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#reviews-carousel p:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img[loading] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Enhanced theme toggle animation */
#theme-toggle {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
}

/* Logo animation */
.logo:hover {
    transform: scale(1.05);
}

/* FAQ upvote button animation */
.faq-upvote {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-upvote:hover {
    transform: scale(1.05);
}

.faq-upvote:active {
    transform: scale(0.95);
}

/* Team section title animation */
.team-title:hover {
    transform: scale(1.05);
}

/* Light mode specific animations */
body.light-mode .team-title::before {
    background: linear-gradient(90deg, transparent, #e6b800, transparent);
}

body.light-mode .team-section::before {
    background: radial-gradient(circle at center, rgba(230, 184, 0, 0.1) 0%, transparent 70%);
}

body.light-mode .team-section + div .nav-btn {
    background: linear-gradient(45deg, #fff, #f7f7fa);
    border-color: #e6b800;
}

body.light-mode .team-section + div .nav-btn:hover {
    box-shadow: 0 5px 15px rgba(230, 184, 0, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .team-title {
        font-size: 2.2rem;
        margin: 30px 0 20px 0;
    }
    
    .team-section {
        gap: 20px;
        padding: 15px;
    }
    
    .team-section + div .nav-btn {
        padding: 10px 24px;
        font-size: 1.1rem;
    }
}

/* Enhanced Back Button */
.team-section + div .nav-btn {
    background: linear-gradient(45deg, #23202b, #2d232e);
    padding: 12px 32px;
    font-size: 1.2rem;
    border: 2px solid #ffd43b;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.team-section + div .nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 212, 59, 0.2),
        transparent
    );
    transition: 0.5s;
}

.team-section + div .nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 212, 59, 0.3);
}

.team-section + div .nav-btn:hover::before {
    left: 100%;
}

/* Social Page Styles */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.social-card {
    background: #23202b;
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #ffd43b;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.social-card:hover::before {
    transform: scaleX(1);
}

.social-card h3 {
    color: #ffd43b;
    margin: 0 0 10px 0;
    font-size: 1.4rem;
}

.social-card p {
    margin: 0 0 15px 0;
    opacity: 0.9;
}

.social-stats {
    display: block;
    font-weight: bold;
    color: #ffd43b;
    font-size: 1.1rem;
}

/* Platform-specific colors */
.social-card.discord::before { background: #5865F2; }
.social-card.youtube::before { background: #FF0000; }
.social-card.twitter::before { background: #1DA1F2; }
.social-card.instagram::before { background: #E1306C; }

.social-card.discord:hover { box-shadow: 0 8px 25px rgba(88, 101, 242, 0.2); }
.social-card.youtube:hover { box-shadow: 0 8px 25px rgba(255, 0, 0, 0.2); }
.social-card.twitter:hover { box-shadow: 0 8px 25px rgba(29, 161, 242, 0.2); }
.social-card.instagram:hover { box-shadow: 0 8px 25px rgba(225, 48, 108, 0.2); }

/* Light mode adjustments */
body.light-mode .social-card {
    background: #fff;
    color: #23202b;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

body.light-mode .social-card h3 {
    color: #e6b800;
}

body.light-mode .social-stats {
    color: #e6b800;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .social-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .social-card {
        padding: 20px;
    }
}

.hero-area {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    box-sizing: border-box;
}

.thumbnail-background {
    display: flex;
    white-space: nowrap;
    min-width: 200%;
    align-items: center;
    justify-content: flex-start;
    animation: scroll-left 18s linear infinite;
    position: relative;
    background: rgba(0, 0, 0, 0.1);
    gap: 0;
    padding: 10px;
    border-radius: 10px;
}

.thumbnail-background img {
    height: 200px;
    width: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 16px 0 0;
    padding: 0;
    display: block;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.thumbnail-background img:last-child {
    margin-right: 0;
}

.hero-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1; /* Ensure text is above background */
    text-align: center;
    color: #fff;
    width: 90%;
    max-width: 800px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

main {
    position: relative; /* Keep relative for other sections */
    overflow: hidden;
    /* Remove height/min-height as hero-area now handles this */
    margin: 0; /* Ensure no default margin */
    padding: 0; /* Ensure no default padding */
    box-sizing: border-box; /* Ensure consistent box model */
}

body.light-mode .hero-area {
    background: #f7f7fa; /* Light mode background for hero area */
}

body.light-mode .thumbnail-background::after {
    background: rgba(255, 255, 255, 0.7); /* Adjusted for light mode */
}

body.light-mode .thumbnail-background {
    background: rgba(255, 255, 255, 0.1);
}

body.light-mode .thumbnail-background img {
    filter: brightness(0.8) grayscale(10%); /* More colorful for light mode */
    opacity: 0.5;
}

/* Responsive adjustments for thumbnail grid */
@media (max-width: 1200px) {
    .thumbnail-background {
        grid-template-columns: repeat(12, 1fr);
        grid-template-rows: repeat(2, 16vh);
    }
}

@media (max-width: 900px) {
    .thumbnail-background {
        grid-template-columns: repeat(8, 1fr);
        grid-template-rows: repeat(2, 14vh);
    }
}

@media (max-width: 768px) {
    .thumbnail-background {
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: repeat(2, 12vh);
    }
}

@media (max-width: 500px) {
    .thumbnail-background {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 10vh);
    }
}

.hero-logo {
    width: 250px; /* Adjust as needed */
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.4));
}

.hero-main-text {
    font-size: 4.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
    line-height: 1.1;
}

.hero-sub-text {
    font-size: 2.2rem;
    font-style: italic;
    margin-top: 0;
    margin-bottom: 40px;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.join-team-btn {
    background: #e014a1;
    color: #fff;
    font-size: 1.3rem;
    font-weight: bold;
    padding: 16px 40px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(224, 20, 161, 0.3);
}

.join-team-btn:hover {
    background: #ff33bb;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(224, 20, 161, 0.5);
}

@media (max-width: 768px) {
    .hero-main-text {
        font-size: 3rem;
    }
    .hero-sub-text {
        font-size: 1.5rem;
    }
    .join-team-btn {
        padding: 12px 30px;
        font-size: 1.1rem;
    }
    .hero-logo {
        width: 180px;
    }
}

body.light-mode .hero-main-text,
body.light-mode .hero-sub-text {
    color: #23202b;
    text-shadow: none;
}

body.light-mode .hero-text-overlay {
    background: rgba(255, 255, 255, 0.2);
}

body.light-mode .join-team-btn {
    background: #e014a1;
    color: #fff;
}

body.light-mode .join-team-btn:hover {
    background: #ff33bb;
    box-shadow: 0 8px 30px rgba(224, 20, 161, 0.3);
}

@keyframes scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.thumbnails-multiline {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 0;
    margin-bottom: 0;
    height: calc(5 * 200px + 4 * 6px);
    overflow: hidden;
}
.thumbnail-row {
    width: 100vw;
    overflow: hidden;
    position: relative;
    margin: 0;
}
.thumbnail-row:nth-child(1) .thumbnail-background {
    animation-duration: 18s;
}
.thumbnail-row:nth-child(2) .thumbnail-background {
    animation-duration: 20s;
}
.thumbnail-row:nth-child(3) .thumbnail-background {
    animation-duration: 16s;
}
.thumbnail-row:nth-child(4) .thumbnail-background {
    animation-duration: 22s;
}
.thumbnail-row:nth-child(5) .thumbnail-background {
    animation-duration: 14s;
}

.hamburger-fixed {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 1001;
    background: rgba(20, 24, 40, 0.8);
    border: 2px solid rgba(58, 65, 87, 0.6);
    font-size: 2.2rem;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hamburger-fixed:hover {
    background: rgba(20, 24, 40, 0.9);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

body.light-mode .hamburger-fixed {
    background: rgba(255, 255, 255, 0.8);
    color: #23202b;
    border-color: rgba(230, 184, 0, 0.6);
}

body.light-mode .hamburger-fixed:hover {
    background: rgba(255, 255, 255, 0.9);
}

.discord-messages {
  margin: 20px 0 16px 0;
  padding: 0 2px;
  max-height: 340px;
  overflow-y: auto;
  background: rgba(24,21,31,0.7);
  border-radius: 12px;
  box-shadow: 0 2px 12px #0002;
}
.discord-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 1rem;
}
.discord-message:last-child {
  border-bottom: none;
}
.msg-avatar img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: 0 1px 4px #0003;
  background: #23202b;
}
.msg-main {
  flex: 1;
  min-width: 0;
}
.msg-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.msg-user {
  font-weight: 600;
  color: #fff;
  font-size: 1.05em;
  margin-right: 2px;
  word-break: break-all;
}
.msg-role {
  font-size: 0.85em;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 8px;
  margin-right: 4px;
  margin-left: 2px;
  vertical-align: middle;
  letter-spacing: 0.5px;
}
.msg-role.creators {
  background: #e014a1;
  color: #fff;
}
.msg-role.var {
  background: #5865f2;
  color: #fff;
}
.msg-time {
  font-size: 0.82em;
  color: #b5b5b5;
  margin-left: 6px;
  font-weight: 400;
}
.msg-text {
  color: #e6e6e6;
  font-size: 1em;
  line-height: 1.5;
  word-break: break-word;
  white-space: pre-line;
}
body.light-mode .discord-messages {
  background: #f8fafc;
  box-shadow: 0 2px 12px #0001;
}
body.light-mode .discord-message {
  border-bottom: 1px solid #e2e8f0;
}
body.light-mode .msg-user {
  color: #23202b;
}
body.light-mode .msg-role.creators {
  background: #e014a1;
  color: #fff;
}
body.light-mode .msg-role.var {
  background: #ffd43b;
  color: #23202b;
}
body.light-mode .msg-time {
  color: #7b7b7b;
}
body.light-mode .msg-text {
  color: #23202b;
}

.discord-input-row {
  display: flex;
  align-items: center;
  background: rgba(30, 31, 34, 0.95);
  border-radius: 8px;
  padding: 0 16px;
  margin: 16px 12px 12px 12px;
  min-height: 48px;
  box-shadow: 0 1px 0 0 rgba(0,0,0,0.2);
  border: 1px solid rgba(79,84,92,0.3);
}
.discord-input-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 12px;
}
.discord-input-field {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 16px;
  padding: 12px 0;
  outline: none;
}
.discord-input-icon {
  margin-left: 12px;
  font-size: 22px;
  color: #b9bbbe;
  cursor: pointer;
  transition: color 0.2s;
  user-select: none;
  display: flex;
  align-items: center;
}
.discord-input-icon:hover {
  color: #fff;
}
.discord-input-send {
  background: #5865f2;
  border: none;
  border-radius: 6px;
  margin-left: 12px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #fff;
  transition: background 0.2s;
}
.discord-input-send:hover {
  background: #4752c4;
}

/* Thumbnail Hover Animation */
.thumbnails-multiline img, .thumbnail-background img {
  transition: transform 0.22s cubic-bezier(.4,1.7,.7,1), box-shadow 0.22s cubic-bezier(.4,1.7,.7,1);
}
.thumbnails-multiline img:hover, .thumbnail-background img:hover {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 8px 32px #23272a55, 0 2px 8px #5865f2aa;
  z-index: 2;
}

/* Flame Box Styling */
.flame-box {
    margin-top: 20px;
    background: #23202b;
    border: 2px solid #ffd43b;
    box-shadow: 0 0 32px 8px rgba(255, 87, 34, 0.25), 0 0 32px 8px rgba(255, 212, 59, 0.18), 0 8px 32px rgba(88, 101, 242, 0.3);
    animation: float 6s ease-in-out infinite, flameGlow 3s ease-in-out infinite alternate, flameFlicker 1.1s infinite;
    animation-delay: 0s, 3s, 0s;
}

@keyframes flameFlicker {
    0% { box-shadow: 0 0 32px 8px rgba(255, 87, 34, 0.25), 0 0 32px 8px rgba(255, 212, 59, 0.18), 0 8px 32px rgba(88, 101, 242, 0.3); }
    10% { box-shadow: 0 0 40px 12px rgba(255, 140, 0, 0.32), 0 0 36px 10px rgba(255, 212, 59, 0.22), 0 8px 32px rgba(88, 101, 242, 0.3); }
    20% { box-shadow: 0 0 36px 10px rgba(255, 87, 34, 0.32), 0 0 36px 10px rgba(255, 212, 59, 0.25), 0 8px 32px rgba(88, 101, 242, 0.3); }
    30% { box-shadow: 0 0 44px 16px rgba(255, 140, 0, 0.38), 0 0 36px 10px rgba(255, 212, 59, 0.28), 0 8px 32px rgba(88, 101, 242, 0.3); }
    40% { box-shadow: 0 0 38px 12px rgba(255, 87, 34, 0.28), 0 0 32px 8px rgba(255, 212, 59, 0.20), 0 8px 32px rgba(88, 101, 242, 0.3); }
    50% { box-shadow: 0 0 50px 20px rgba(255, 140, 0, 0.45), 0 0 40px 14px rgba(255, 212, 59, 0.32), 0 8px 32px rgba(88, 101, 242, 0.3); }
    60% { box-shadow: 0 0 36px 10px rgba(255, 87, 34, 0.32), 0 0 36px 10px rgba(255, 212, 59, 0.25), 0 8px 32px rgba(88, 101, 242, 0.3); }
    70% { box-shadow: 0 0 44px 16px rgba(255, 140, 0, 0.38), 0 0 36px 10px rgba(255, 212, 59, 0.28), 0 8px 32px rgba(88, 101, 242, 0.3); }
    80% { box-shadow: 0 0 38px 12px rgba(255, 87, 34, 0.28), 0 0 32px 8px rgba(255, 212, 59, 0.20), 0 8px 32px rgba(88, 101, 242, 0.3); }
    90% { box-shadow: 0 0 40px 12px rgba(255, 140, 0, 0.32), 0 0 36px 10px rgba(255, 212, 59, 0.22), 0 8px 32px rgba(88, 101, 242, 0.3); }
    100% { box-shadow: 0 0 32px 8px rgba(255, 87, 34, 0.25), 0 0 32px 8px rgba(255, 212, 59, 0.18), 0 8px 32px rgba(88, 101, 242, 0.3); }
}

@keyframes flameGlow {
    0% { box-shadow: 0 8px 32px rgba(88, 101, 242, 0.3); }
    50% { box-shadow: 0 8px 32px rgba(88, 101, 242, 0.6), 0 0 20px rgba(88, 101, 242, 0.4); }
    100% { box-shadow: 0 8px 32px rgba(88, 101, 242, 0.3); }
}

/* Floating animation for owner boxes */
.owner-box {
    animation: glowPulse 3s infinite, float 6s ease-in-out infinite;
}

.flame-box {
    animation: float 6s ease-in-out infinite, flameGlow 3s ease-in-out infinite alternate, flameFlicker 1.1s infinite;
    animation-delay: 0s, 3s, 0s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Global animation keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 5px rgba(255, 212, 59, 0.2); }
    50% { box-shadow: 0 0 20px rgba(255, 212, 59, 0.4); }
    100% { box-shadow: 0 0 5px rgba(255, 212, 59, 0.2); }
}

/* Apply animations to elements */
.info-section, .team-member, .faq-section, .about-us-grid-item {
    animation: fadeIn 0.6s ease-out;
}

.nav-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease-out, height 0.6s ease-out;
}

.nav-btn:hover::after {
    width: 300px;
    height: 300px;
}

.team-member {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.team-pic {
    transition: transform 0.5s ease, border-color 0.3s ease;
}

.team-member:hover .team-pic {
    transform: scale(1.05) rotate(2deg);
}

.faq-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateX(5px);
}

.faq-item summary {
    transition: color 0.3s ease, background-color 0.3s ease;
}

.faq-item[open] {
    animation: scaleIn 0.3s ease-out;
}

.discord-cta {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.discord-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.discord-cta:hover::before {
    left: 100%;
}

.owner-box {
    animation: glowPulse 3s infinite, float 6s ease-in-out infinite;
}

.about-us-title::after {
    animation: slideIn 0.6s ease-out;
}

#animated-stats {
    animation: fadeIn 0.8s ease-out;
}

.about-us-grid-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-us-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Enhanced reviews carousel animations */
#reviews-carousel p {
    animation: fadeIn 0.6s ease-out;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#reviews-carousel p:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img[loading] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Enhanced theme toggle animation */
#theme-toggle {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
}

/* Logo animation */
.logo:hover {
    transform: scale(1.05);
}

/* FAQ upvote button animation */
.faq-upvote {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-upvote:hover {
    transform: scale(1.05);
}

.faq-upvote:active {
    transform: scale(0.95);
}

/* Team section title animation */
.team-title:hover {
    transform: scale(1.05);
}

/* Light mode specific animations */
body.light-mode .team-title::before {
    background: linear-gradient(90deg, transparent, #e6b800, transparent);
}

body.light-mode .team-section::before {
    background: radial-gradient(circle at center, rgba(230, 184, 0, 0.1) 0%, transparent 70%);
}

body.light-mode .team-section + div .nav-btn {
    background: linear-gradient(45deg, #fff, #f7f7fa);
    border-color: #e6b800;
}

body.light-mode .team-section + div .nav-btn:hover {
    box-shadow: 0 5px 15px rgba(230, 184, 0, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .team-title {
        font-size: 2.2rem;
        margin: 30px 0 20px 0;
    }
    
    .team-section {
        gap: 20px;
        padding: 15px;
    }
    
    .team-section + div .nav-btn {
        padding: 10px 24px;
        font-size: 1.1rem;
    }
}

/* Enhanced Back Button */
.team-section + div .nav-btn {
    background: linear-gradient(45deg, #23202b, #2d232e);
    padding: 12px 32px;
    font-size: 1.2rem;
    border: 2px solid #ffd43b;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.team-section + div .nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 212, 59, 0.2),
        transparent
    );
    transition: 0.5s;
}

.team-section + div .nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 212, 59, 0.3);
}

.team-section + div .nav-btn:hover::before {
    left: 100%;
}

/* Social Page Styles */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.social-card {
    background: #23202b;
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #ffd43b;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.social-card:hover::before {
    transform: scaleX(1);
}

.social-card h3 {
    color: #ffd43b;
    margin: 0 0 10px 0;
    font-size: 1.4rem;
}

.social-card p {
    margin: 0 0 15px 0;
    opacity: 0.9;
}

.social-stats {
    display: block;
    font-weight: bold;
    color: #ffd43b;
    font-size: 1.1rem;
}

/* Platform-specific colors */
.social-card.discord::before { background: #5865F2; }
.social-card.youtube::before { background: #FF0000; }
.social-card.twitter::before { background: #1DA1F2; }
.social-card.instagram::before { background: #E1306C; }

.social-card.discord:hover { box-shadow: 0 8px 25px rgba(88, 101, 242, 0.2); }
.social-card.youtube:hover { box-shadow: 0 8px 25px rgba(255, 0, 0, 0.2); }
.social-card.twitter:hover { box-shadow: 0 8px 25px rgba(29, 161, 242, 0.2); }
.social-card.instagram:hover { box-shadow: 0 8px 25px rgba(225, 48, 108, 0.2); }

/* Light mode adjustments */
body.light-mode .social-card {
    background: #fff;
    color: #23202b;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

body.light-mode .social-card h3 {
    color: #e6b800;
}

body.light-mode .social-stats {
    color: #e6b800;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .social-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .social-card {
        padding: 20px;
    }
}

.hero-area {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    box-sizing: border-box;
}

.thumbnail-background {
    display: flex;
    white-space: nowrap;
    min-width: 200%;
    align-items: center;
    justify-content: flex-start;
    animation: scroll-left 18s linear infinite;
    position: relative;
    background: rgba(0, 0, 0, 0.1);
    gap: 0;
    padding: 10px;
    border-radius: 10px;
}

.thumbnail-background img {
    height: 200px;
    width: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 16px 0 0;
    padding: 0;
    display: block;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.thumbnail-background img:last-child {
    margin-right: 0;
}

.hero-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1; /* Ensure text is above background */
    text-align: center;
    color: #fff;
    width: 90%;
    max-width: 800px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

main {
    position: relative; /* Keep relative for other sections */
    overflow: hidden;
    /* Remove height/min-height as hero-area now handles this */
    margin: 0; /* Ensure no default margin */
    padding: 0; /* Ensure no default padding */
    box-sizing: border-box; /* Ensure consistent box model */
}

body.light-mode .hero-area {
    background: #f7f7fa; /* Light mode background for hero area */
}

body.light-mode .thumbnail-background::after {
    background: rgba(255, 255, 255, 0.7); /* Adjusted for light mode */
}

body.light-mode .thumbnail-background {
    background: rgba(255, 255, 255, 0.1);
}

body.light-mode .thumbnail-background img {
    filter: brightness(0.8) grayscale(10%); /* More colorful for light mode */
    opacity: 0.5;
}

/* Responsive adjustments for thumbnail grid */
@media (max-width: 1200px) {
    .thumbnail-background {
        grid-template-columns: repeat(12, 1fr);
        grid-template-rows: repeat(2, 16vh);
    }
}

@media (max-width: 900px) {
    .thumbnail-background {
        grid-template-columns: repeat(8, 1fr);
        grid-template-rows: repeat(2, 14vh);
    }
}

@media (max-width: 768px) {
    .thumbnail-background {
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: repeat(2, 12vh);
    }
}

@media (max-width: 500px) {
    .thumbnail-background {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 10vh);
    }
}

.hero-logo {
    width: 250px; /* Adjust as needed */
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.4));
}

.hero-main-text {
    font-size: 4.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
    line-height: 1.1;
}

.hero-sub-text {
    font-size: 2.2rem;
    font-style: italic;
    margin-top: 0;
    margin-bottom: 40px;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.join-team-btn {
    background: #e014a1;
    color: #fff;
    font-size: 1.3rem;
    font-weight: bold;
    padding: 16px 40px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(224, 20, 161, 0.3);
}

.join-team-btn:hover {
    background: #ff33bb;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(224, 20, 161, 0.5);
}

@media (max-width: 768px) {
    .hero-main-text {
        font-size: 3rem;
    }
    .hero-sub-text {
        font-size: 1.5rem;
    }
    .join-team-btn {
        padding: 12px 30px;
        font-size: 1.1rem;
    }
    .hero-logo {
        width: 180px;
    }
}

body.light-mode .hero-main-text,
body.light-mode .hero-sub-text {
    color: #23202b;
    text-shadow: none;
}

body.light-mode .hero-text-overlay {
    background: rgba(255, 255, 255, 0.2);
}

body.light-mode .join-team-btn {
    background: #e014a1;
    color: #fff;
}

body.light-mode .join-team-btn:hover {
    background: #ff33bb;
    box-shadow: 0 8px 30px rgba(224, 20, 161, 0.3);
}

@keyframes scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.thumbnails-multiline {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 0;
    margin-bottom: 0;
    height: calc(5 * 200px + 4 * 6px);
    overflow: hidden;
}
.thumbnail-row {
    width: 100vw;
    overflow: hidden;
    position: relative;
    margin: 0;
}
.thumbnail-row:nth-child(1) .thumbnail-background {
    animation-duration: 18s;
}
.thumbnail-row:nth-child(2) .thumbnail-background {
    animation-duration: 20s;
}
.thumbnail-row:nth-child(3) .thumbnail-background {
    animation-duration: 16s;
}
.thumbnail-row:nth-child(4) .thumbnail-background {
    animation-duration: 22s;
}
.thumbnail-row:nth-child(5) .thumbnail-background {
    animation-duration: 14s;
}

.hamburger-fixed {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 1001;
    background: rgba(20, 24, 40, 0.8);
    border: 2px solid rgba(58, 65, 87, 0.6);
    font-size: 2.2rem;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hamburger-fixed:hover {
    background: rgba(20, 24, 40, 0.9);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

body.light-mode .hamburger-fixed {
    background: rgba(255, 255, 255, 0.8);
    color: #23202b;
    border-color: rgba(230, 184, 0, 0.6);
}

body.light-mode .hamburger-fixed:hover {
    background: rgba(255, 255, 255, 0.9);
}

.discord-messages {
  margin: 20px 0 16px 0;
  padding: 0 2px;
  max-height: 340px;
  overflow-y: auto;
  background: rgba(24,21,31,0.7);
  border-radius: 12px;
  box-shadow: 0 2px 12px #0002;
}
.discord-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 1rem;
}
.discord-message:last-child {
  border-bottom: none;
}
.msg-avatar img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: 0 1px 4px #0003;
  background: #23202b;
}
.msg-main {
  flex: 1;
  min-width: 0;
}
.msg-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.msg-user {
  font-weight: 600;
  color: #fff;
  font-size: 1.05em;
  margin-right: 2px;
  word-break: break-all;
}
.msg-role {
  font-size: 0.85em;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 8px;
  margin-right: 4px;
  margin-left: 2px;
  vertical-align: middle;
  letter-spacing: 0.5px;
}
.msg-role.creators {
  background: #e014a1;
  color: #fff;
}
.msg-role.var {
  background: #5865f2;
  color: #fff;
}
.msg-time {
  font-size: 0.82em;
  color: #b5b5b5;
  margin-left: 6px;
  font-weight: 400;
}
.msg-text {
  color: #e6e6e6;
  font-size: 1em;
  line-height: 1.5;
  word-break: break-word;
  white-space: pre-line;
}
body.light-mode .discord-messages {
  background: #f8fafc;
  box-shadow: 0 2px 12px #0001;
}
body.light-mode .discord-message {
  border-bottom: 1px solid #e2e8f0;
}
body.light-mode .msg-user {
  color: #23202b;
}
body.light-mode .msg-role.creators {
  background: #e014a1;
  color: #fff;
}
body.light-mode .msg-role.var {
  background: #ffd43b;
  color: #23202b;
}
body.light-mode .msg-time {
  color: #7b7b7b;
}
body.light-mode .msg-text {
  color: #23202b;
}

.discord-input-row {
  display: flex;
  align-items: center;
  background: rgba(30, 31, 34, 0.95);
  border-radius: 8px;
  padding: 0 16px;
  margin: 16px 12px 12px 12px;
  min-height: 48px;
  box-shadow: 0 1px 0 0 rgba(0,0,0,0.2);
  border: 1px solid rgba(79,84,92,0.3);
}
.discord-input-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 12px;
}
.discord-input-field {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 16px;
  padding: 12px 0;
  outline: none;
}
.discord-input-icon {
  margin-left: 12px;
  font-size: 22px;
  color: #b9bbbe;
  cursor: pointer;
  transition: color 0.2s;
  user-select: none;
  display: flex;
  align-items: center;
}
.discord-input-icon:hover {
  color: #fff;
}
.discord-input-send {
  background: #5865f2;
  border: none;
  border-radius: 6px;
  margin-left: 12px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #fff;
  transition: background 0.2s;
}
.discord-input-send:hover {
  background: #4752c4;
}

/* Thumbnail Hover Animation */
.thumbnails-multiline img, .thumbnail-background img {
  transition: transform 0.22s cubic-bezier(.4,1.7,.7,1), box-shadow 0.22s cubic-bezier(.4,1.7,.7,1);
}
.thumbnails-multiline img:hover, .thumbnail-background img:hover {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 8px 32px #23272a55, 0 2px 8px #5865f2aa;
  z-index: 2;
}

/* Flame Box Styling */
.flame-box {
    margin-top: 20px;
    background: #23202b;
    border: 2px solid #ffd43b;
    box-shadow: 0 0 32px 8px rgba(255, 87, 34, 0.25), 0 0 32px 8px rgba(255, 212, 59, 0.18), 0 8px 32px rgba(88, 101, 242, 0.3);
    animation: float 6s ease-in-out infinite, flameGlow 3s ease-in-out infinite alternate, flameFlicker 1.1s infinite;
    animation-delay: 0s, 3s, 0s;
}

@keyframes flameFlicker {
    0% { box-shadow: 0 0 32px 8px rgba(255, 87, 34, 0.25), 0 0 32px 8px rgba(255, 212, 59, 0.18), 0 8px 32px rgba(88, 101, 242, 0.3); }
    10% { box-shadow: 0 0 40px 12px rgba(255, 140, 0, 0.32), 0 0 36px 10px rgba(255, 212, 59, 0.22), 0 8px 32px rgba(88, 101, 242, 0.3); }
    20% { box-shadow: 0 0 36px 10px rgba(255, 87, 34, 0.32), 0 0 36px 10px rgba(255, 212, 59, 0.25), 0 8px 32px rgba(88, 101, 242, 0.3); }
    30% { box-shadow: 0 0 44px 16px rgba(255, 140, 0, 0.38), 0 0 36px 10px rgba(255, 212, 59, 0.28), 0 8px 32px rgba(88, 101, 242, 0.3); }
    40% { box-shadow: 0 0 38px 12px rgba(255, 87, 34, 0.28), 0 0 32px 8px rgba(255, 212, 59, 0.20), 0 8px 32px rgba(88, 101, 242, 0.3); }
    50% { box-shadow: 0 0 50px 20px rgba(255, 140, 0, 0.45), 0 0 40px 14px rgba(255, 212, 59, 0.32), 0 8px 32px rgba(88, 101, 242, 0.3); }
    60% { box-shadow: 0 0 36px 10px rgba(255, 87, 34, 0.32), 0 0 36px 10px rgba(255, 212, 59, 0.25), 0 8px 32px rgba(88, 101, 242, 0.3); }
    70% { box-shadow: 0 0 44px 16px rgba(255, 140, 0, 0.38), 0 0 36px 10px rgba(255, 212, 59, 0.28), 0 8px 32px rgba(88, 101, 242, 0.3); }
    80% { box-shadow: 0 0 38px 12px rgba(255, 87, 34, 0.28), 0 0 32px 8px rgba(255, 212, 59, 0.20), 0 8px 32px rgba(88, 101, 242, 0.3); }
    90% { box-shadow: 0 0 40px 12px rgba(255, 140, 0, 0.32), 0 0 36px 10px rgba(255, 212, 59, 0.22), 0 8px 32px rgba(88, 101, 242, 0.3); }
    100% { box-shadow: 0 0 32px 8px rgba(255, 87, 34, 0.25), 0 0 32px 8px rgba(255, 212, 59, 0.18), 0 8px 32px rgba(88, 101, 242, 0.3); }
}

@keyframes flameGlow {
    0% { box-shadow: 0 8px 32px rgba(88, 101, 242, 0.3); }
    50% { box-shadow: 0 8px 32px rgba(88, 101, 242, 0.6), 0 0 20px rgba(88, 101, 242, 0.4); }
    100% { box-shadow: 0 8px 32px rgba(88, 101, 242, 0.3); }
}

/* Floating animation for owner boxes */
.owner-box {
    animation: glowPulse 3s infinite, float 6s ease-in-out infinite;
}

.flame-box {
    animation: float 6s ease-in-out infinite, flameGlow 3s ease-in-out infinite alternate, flameFlicker 1.1s infinite;
    animation-delay: 0s, 3s, 0s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Global animation keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 5px rgba(255, 212, 59, 0.2); }
    50% { box-shadow: 0 0 20px rgba(255, 212, 59, 0.4); }
    100% { box-shadow: 0 0 5px rgba(255, 212, 59, 0.2); }
}

/* Apply animations to elements */
.info-section, .team-member, .faq-section, .about-us-grid-item {
    animation: fadeIn 0.6s ease-out;
}

.nav-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease-out, height 0.6s ease-out;
}

.nav-btn:hover::after {
    width: 300px;
    height: 300px;
}

.team-member {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.team-pic {
    transition: transform 0.5s ease, border-color 0.3s ease;
}

.team-member:hover .team-pic {
    transform: scale(1.05) rotate(2deg);
}

.faq-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateX(5px);
}

.faq-item summary {
    transition: color 0.3s ease, background-color 0.3s ease;
}

.faq-item[open] {
    animation: scaleIn 0.3s ease-out;
}

.discord-cta {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.discord-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.discord-cta:hover::before {
    left: 100%;
}

.owner-box {
    animation: glowPulse 3s infinite, float 6s ease-in-out infinite;
}

.about-us-title::after {
    animation: slideIn 0.6s ease-out;
}

#animated-stats {
    animation: fadeIn 0.8s ease-out;
}

.about-us-grid-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-us-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Enhanced reviews carousel animations */
#reviews-carousel p {
    animation: fadeIn 0.6s ease-out;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#reviews-carousel p:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img[loading] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Enhanced theme toggle animation */
#theme-toggle {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
}

/* Logo animation */
.logo:hover {
    transform: scale(1.05);
}

/* FAQ upvote button animation */
.faq-upvote {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-upvote:hover {
    transform: scale(1.05);
}

.faq-upvote:active {
    transform: scale(0.95);
}

/* Team section title animation */
.team-title:hover {
    transform: scale(1.05);
}

/* Light mode specific animations */
body.light-mode .team-title::before {
    background: linear-gradient(90deg, transparent, #e6b800, transparent);
}

body.light-mode .team-section::before {
    background: radial-gradient(circle at center, rgba(230, 184, 0, 0.1) 0%, transparent 70%);
}

body.light-mode .team-section + div .nav-btn {
    background: linear-gradient(45deg, #fff, #f7f7fa);
    border-color: #e6b800;
}

body.light-mode .team-section + div .nav-btn:hover {
    box-shadow: 0 5px 15px rgba(230, 184, 0, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .team-title {
        font-size: 2.2rem;
        margin: 30px 0 20px 0;
    }
    
    .team-section {
        gap: 20px;
        padding: 15px;
    }
    
    .team-section + div .nav-btn {
        padding: 10px 24px;
    }
}


/* --- OVERRIDE: Make .flame-box identical to .owner-box --- */
.flame-box {
    background: linear-gradient(rgba(24,21,31,0.7), rgba(24,21,31,0.7)), url('background.png') center/cover no-repeat;
    border: 0px solid #ffd43b;
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 18px;
    margin-top: 8px;
    text-align: center;
    text-align: justify;
    position: relative;
    color: #fff;
    overflow: hidden;
    transition: background 0.5s, color 0.5s, border-color 0.5s, box-shadow 0.5s;
    animation: glowPulse 3s infinite, float 6s ease-in-out infinite;
}

/* --- OVERRIDE: Seamless thumbnail scroll and more rounded corners --- */
.thumbnail-background {
    width: max-content !important;
    min-width: unset !important;
    animation-duration: 30s !important;
    padding: 0 !important;
}
.thumbnail-background img {
    border-radius: 18px !important;
    margin: 0 8px 0 0 !important;
    padding: 0 !important;
}

/* --- Reverse scroll for every 2nd and 4th row --- */
@keyframes scroll-right {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}
.reverse-scroll {
    animation-name: scroll-right !important;
}


.thumbnail-background.thumbnail-background-large img {
    width: 600px;
    max-width: 95vw;
    aspect-ratio: 16/9;
    height: auto;
    border-radius: 22px !important;
    object-fit: cover;
  }
  
  @media (max-width: 1200px) {
    .thumbnail-background.thumbnail-background-large img {
      width: 400px;
      max-width: 90vw;
    }
  }
  
  @media (max-width: 900px) {
    .thumbnail-background.thumbnail-background-large img {
      width: 220px;
      max-width: 90vw;
    }
  }
  
  @media (max-width: 600px) {
    .thumbnail-background.thumbnail-background-large img {
      width: 120px;
      max-width: 98vw;
    }
  }

/* 1. Slide-In für Überschriften */
h1, .about-us-title, .team-title {
  animation: slideDownIn 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes slideDownIn {
  from { opacity: 0; transform: translateY(-40px); }
  to { opacity: 1; transform: translateY(0); }
}

h2 {
  animation: slideLeftIn 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes slideLeftIn {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* 2. Scale-In für Buttons */
.join-team-btn, .faq-upvote, .discord-cta, .nav-btn {
  animation: popIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes popIn {
  0% { opacity: 0; transform: scale(0.8); }
  60% { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}

/* 3. Staggered Fade-In für Social Cards */
.social-card {
  opacity: 0;
  animation: fadeInStagger 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.social-card:nth-child(1) { animation-delay: 0.1s; }
.social-card:nth-child(2) { animation-delay: 0.25s; }
.social-card:nth-child(3) { animation-delay: 0.4s; }
.social-card:nth-child(4) { animation-delay: 0.55s; }
@keyframes fadeInStagger {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 4. GlowPulse für About-Us-Grid-Items bei Hover */
.about-us-grid-item {
  transition: box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s;
}
.about-us-grid-item:hover {
  animation: glowPulse 1.2s infinite alternate;
  box-shadow: 0 0 24px 0 #ffd43b66, 0 2px 16px #e014a144;
  z-index: 2;
}

/* 5. Thumbnails: Scale-In beim Laden, Glow beim Hover */
.thumbnail-background img, .thumbnails-multiline img {
  opacity: 0;
  transform: scale(0.92);
  animation: thumbIn 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.thumbnail-background img.loaded, .thumbnails-multiline img.loaded {
  opacity: 1;
  transform: scale(1);
}
@keyframes thumbIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
.thumbnail-background img:hover, .thumbnails-multiline img:hover {
  box-shadow: 0 0 32px 8px #ffd43b55, 0 2px 8px #e014a1aa;
  z-index: 2;
  filter: brightness(1.08) saturate(1.1);
}

/* 6. Parallax/Scroll-Animation für hero-area */
.hero-area {
  will-change: transform;
  animation: heroParallaxIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes heroParallaxIn {
  from { opacity: 0; transform: translateY(60px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}


/* 1. Slide-In für Überschriften */
h1, .about-us-title, .team-title {
  animation: slideDownIn 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes slideDownIn {
  from { opacity: 0; transform: translateY(-40px); }
  to { opacity: 1; transform: translateY(0); }
}

h2 {
  animation: slideLeftIn 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes slideLeftIn {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* 2. Scale-In für Buttons */
.join-team-btn, .faq-upvote, .discord-cta, .nav-btn {
  animation: popIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes popIn {
  0% { opacity: 0; transform: scale(0.8); }
  60% { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}

/* 3. Staggered Fade-In für Social Cards */
.social-card {
  opacity: 0;
  animation: fadeInStagger 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.social-card:nth-child(1) { animation-delay: 0.1s; }
.social-card:nth-child(2) { animation-delay: 0.25s; }
.social-card:nth-child(3) { animation-delay: 0.4s; }
.social-card:nth-child(4) { animation-delay: 0.55s; }
@keyframes fadeInStagger {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 4. GlowPulse für About-Us-Grid-Items bei Hover */
.about-us-grid-item {
  transition: box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s;
}
.about-us-grid-item:hover {
  animation: glowPulse 1.2s infinite alternate;
  box-shadow: 0 0 24px 0 #ffd43b66, 0 2px 16px #e014a144;
  z-index: 2;
}

/* 5. Thumbnails: Scale-In beim Laden, Glow beim Hover */
.thumbnail-background img, .thumbnails-multiline img {
  opacity: 0;
  transform: scale(0.92);
  animation: thumbIn 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.thumbnail-background img.loaded, .thumbnails-multiline img.loaded {
  opacity: 1;
  transform: scale(1);
}
@keyframes thumbIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
.thumbnail-background img:hover, .thumbnails-multiline img:hover {
  box-shadow: 0 0 32px 8px #ffd43b55, 0 2px 8px #e014a1aa;
  z-index: 2;
  filter: brightness(1.08) saturate(1.1);
}

/* 6. Parallax/Scroll-Animation für hero-area */
.hero-area {
  will-change: transform;
  animation: heroParallaxIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes heroParallaxIn {
  from { opacity: 0; transform: translateY(60px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* --- Neue Animationen für mehr Lebendigkeit --- */

/* 1. Slide-In für Überschriften */
:root {
    --anim-duration: 0.7s;
    --anim-ease: cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  /* Für h1, .about-us-title, .team-title */
  h1, .about-us-title, .team-title {
    animation: slideDownIn var(--anim-duration) var(--anim-ease) forwards;
  }
  
  @keyframes slideDownIn {
    from {
      opacity: 0;
      transform: translateY(-40px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Für h2 */
  h2 {
    animation: slideLeftIn var(--anim-duration) var(--anim-ease) forwards;
  }
  
  @keyframes slideLeftIn {
    from {
      opacity: 0;
      transform: translateX(-40px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  
  /* 2. Scale-In für Buttons */
  .join-team-btn, .faq-upvote, .discord-cta, .nav-btn {
    animation: popIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
  }
  @keyframes popIn {
    0% { opacity: 0; transform: scale(0.8); }
    60% { opacity: 1; transform: scale(1.08); }
    100% { opacity: 1; transform: scale(1); }
  }
  
  /* 3. Staggered Fade-In für Social Cards */
  .social-card {
    opacity: 0;
    animation: fadeInStagger 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
  }
  .social-card:nth-child(1) { animation-delay: 0.1s; }
  .social-card:nth-child(2) { animation-delay: 0.25s; }
  .social-card:nth-child(3) { animation-delay: 0.4s; }
  .social-card:nth-child(4) { animation-delay: 0.55s; }
  @keyframes fadeInStagger {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  /* 4. GlowPulse für About-Us-Grid-Items bei Hover */
  .about-us-grid-item {
    transition: box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s;
  }
  .about-us-grid-item:hover {
    animation: glowPulse 1.2s infinite alternate;
    box-shadow: 0 0 24px 0 #ffd43b66, 0 2px 16px #e014a144;
    z-index: 2;
  }
  
  /* 5. Thumbnails: Scale-In beim Laden, Glow beim Hover */
  .thumbnail-background img, .thumbnails-multiline img {
    opacity: 0;
    transform: scale(0.92);
    animation: thumbIn 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }
  .thumbnail-background img.loaded, .thumbnails-multiline img.loaded {
    opacity: 1;
    transform: scale(1);
  }
  @keyframes thumbIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
  }
  .thumbnail-background img:hover, .thumbnails-multiline img:hover {
    box-shadow: 0 0 32px 8px #ffd43b55, 0 2px 8px #e014a1aa;
    z-index: 2;
    filter: brightness(1.08) saturate(1.1);
  }
  
  /* 6. Parallax/Scroll-Animation für hero-area */
  .hero-area {
    will-change: transform;
    animation: heroParallaxIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) both;
  }
  @keyframes heroParallaxIn {
    from { opacity: 0; transform: translateY(60px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
  
html, body {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}
html::-webkit-scrollbar, body::-webkit-scrollbar {
  display: none !important;
}

body.light-mode {
  background: #f7f7fa;
  color: #23202b;
}
body.light-mode header {
  background: linear-gradient(180deg, #fffbe6 0%, #f7f7fa 100%);
  box-shadow: 0 2px 8px rgba(200,200,200,0.18);
}
body.light-mode .navbar {
  background: rgba(255,255,255,0.92);
  border: 2px solid #e2e8f0;
  box-shadow: 0 4px 24px 0 rgba(200,200,200,0.10);
}
body.light-mode .info-section {
  background: #fff;
  color: #23202b;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 2px 16px #e2e8f033;
}
body.light-mode .owner-box {
  background: #f9fafb;
  color: #23202b;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 2px 8px #e2e8f022;
}
body.light-mode .nav-btn {
  background: #f1f5f9;
  color: #23202b;
  box-shadow: 0 1px 4px rgba(200,200,200,0.10);
}
body.light-mode .nav-btn.highlight,
body.light-mode .nav-btn:hover {
  background: #ffd43b;
  color: #23202b;
  box-shadow: 0 2px 8px #ffd43b44;
}

.perks-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.perk {
    background-color: #1f1f1f;
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    flex: 1 1 calc(50% - 10px);
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

#perks {
    padding: 60px 20px;
    background-color: #0f0f0f;
    text-align: center;
  }
  
  #perks h2 {
    font-size: 2.5em;
    color: #ffffff;
    margin-bottom: 10px;
  }
  
  .section-subtitle {
    color: #bbbbbb;
    font-size: 1.2em;
    margin-bottom: 40px;
  }
  .perks-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* genau 2 Spalten */
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
  }
  
  
  .perk-box {
    background: linear-gradient(135deg, #1c1c1c, #2a2a2a);
    border: 1px solid #3a3a3a;
    border-radius: 15px;
    padding: 25px;
    color: #ffffff;
    font-weight: bold;
    font-size: 1.1em;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
  }

  .nav-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    padding: 14px 48px;
  }
  
  .perk-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
  }
  .owners-container {
    position: relative;
    background-image: url('../background.png');  /* Hintergrundbild hier */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 40px;              /* Etwas mehr Abstand innen */
    border-radius: 12px;
    color: white;
    overflow: hidden;
    display: flex;
    gap: 30px;                 /* Abstand zwischen den beiden Boxen */
  }
  
  .owners-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);  /* leichtes dunkles Overlay */
    border-radius: 12px;
    pointer-events: none;
    z-index: 0;
  }
  
  .owner-box {
    position: relative;
    background: rgba(0, 0, 0, 100); /* leichter transparenter schwarzer Hintergrund */
    padding: 20px;
    border-radius: 10px;
    flex: 1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    color: white; /* weiße Schrift für guten Kontrast */
    z-index: 1;
  }
  
  
  
  .owner-box img.owner-pic {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    border: 2px solid white;
  }
  
  .about-us-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 Spalten */
    grid-template-rows: auto;
    gap: 30px;
  }
  
  .perks-boxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* genau 2 Spalten */
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
  }
  
  
  .numbers {
    grid-column: 2 / 3;
  }
  
  /* Mission quer über beide Spalten */
  .mission {
    grid-column: 1 / 3; /* von Spalte 1 bis 3 = beide Spalten */
  }
  
  /* Untere Reihe: Owners links, Reviews rechts */
  .owners-container {
    grid-column: 1 / 2;
    display: flex;
    gap: 20px;
  }
  
  .reviews {
    grid-column: 2 / 3;
  }
  
  /* Optional: Owners-Boxen innerhalb flex */
  .owner-box {
    flex: 1;
    background: rgba(255,255,255,0.15);
    padding: 20px;
    border-radius: 10px;
    color: black;
  }
  
  /* Beispiel Styling für den Review-Container */
  #reviews-carousel p {
    margin-bottom: 10px;
  }
  
  .mission {
    display: flex;
    flex-direction: column;
    justify-content: center; /* vertikal zentrieren */
    text-align: center;      /* horizontal zentrieren */
  }
  
  .quote-nav {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    transition: transform 0.2s ease, color 0.2s ease;
    padding: 4px 8px;
    border-radius: 4px;
    will-change: transform, color;
  }
  
  .quote-nav:hover,
  .quote-nav:focus {
    transform: scale(1.3);
    color: #ff4444;
    outline: none;
    box-shadow: 0 0 8px rgba(255, 68, 68, 0.6);
  }
  
  .owner-box {
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
  pointer-events: auto;

  height: 150px;          /* fixe Höhe, nach Bedarf anpassen */
  overflow: hidden;       /* damit kein Inhalt herausragt */
  padding: 10px 20px;
  box-sizing: border-box;
  line-height: 1.2;
  font-size: 1rem;
}

.owner-box b,
.owner-box span,
.owner-box blockquote {
  margin: 0;
  padding: 0;
}

.owner-box {
    max-width: 900px;     /* sehr breit */
    width: 90%;           /* fast volle Breite */
    min-height: 100px;    /* Mindesthöhe, kleiner */
    margin: 0 auto;
    text-align: center;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    pointer-events: auto;
    color: black;
    background-color: #f0f0f0;  /* Nur zum Debuggen */
    border: 1px solid #ccc;      /* Nur zum Debuggen */
    padding: 10px 20px;
    box-sizing: border-box;
    overflow: hidden;
    background-color: black;
  }
  

  
  /* Blockquote evtl. kleinere Schrift */
  .owner-box blockquote {
    font-size: 0.9rem;
  }
  
  .about-us-section {
    width: 100%;
    padding: 40px 20px;
    box-sizing: border-box;
  }
  
  .about-us-text {
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: center;
  }
  
  .about-us-text h2 {
    margin-bottom: 15px;
  }
  
  .about-us-text p {
    line-height: 1.6;
  }
  
  .reviews {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
  }
  
  .reviews h2 {
    margin-bottom: 15px;
  }
  
  #reviews-carousel p {
    margin: 10px 0;
  }
  
  .about-us-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 Spalten */
    gap: 20px;
    color: black;
  }
  
  /* 1. Box (Perks) und 2. Box (Numbers) je 1 Spalte breit */
  .perks, .numbers {
    /* keine Änderung nötig, default 1 Spalte */
  }
  
  /* Alle anderen Boxen volle Breite (2 Spalten) */
  
  
  
  /* Container für Owner + Reviews */
.owners-reviews-row {
    display: flex;
    gap: 20px;           /* Abstand zwischen den Boxen */
    flex-wrap: wrap;      /* Bei kleinen Bildschirmen untereinander */
    align-items: flex-start;
  }
  
  /* Owner-Container */
  .owners-container {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  /* Optional: gleiche Breite für Owner + Reviews */
  .owners-container,
  .reviews {
    flex: 1 1 300px;      /* flexible Breite, minimal 300px */
  }
  
  /* Eltern-Container der beiden Items */
.about-us-grid {
    display: flex;           /* macht alle direkten Kinder nebeneinander */
    flex-wrap: wrap;         /* falls Platz zu klein, umbrechen */
    gap: 20px;               /* optional: Abstand zwischen den Items */
  }
  
  /* Owners + Reviews nur nebeneinander, andere Items bleiben normal */
  .about-us-grid-item.owners-container,
  .about-us-grid-item.reviews {
    flex: 1 1 100%;           /* nimmt ca. Hälfte der Breite ein */
    box-sizing: border-box;
  }
  .about-us-grid-item.owners-container,
  .about-us-grid-item.perks {
    flex: 1 1 45%;           /* nimmt ca. Hälfte der Breite ein */
    box-sizing: border-box;
  }
  
  .owner-box {
    margin-top: 50px;
    max-height: 200px;    /* Höhe begrenzen */
    padding: 20px;        /* optional für Abstand innen */
    overflow: hidden;     /* Inhalt wird abgeschnitten, kein Scroll */
    margin-bottom: 50px;
    background-color: black;
  }

  
  .owners-container > .owner-box {
    background: linear-gradient(180deg, #2d232e 0%, #18151f 100%);
    border-radius: 10px;        /* abgerundete Ecken */
    padding: 15px;              /* Innenabstand */
    max-height: 250px;          /* Höhe begrenzen */
    overflow: hidden;           /* Inhalt abschneiden, falls zu groß */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* leichter Schatten */
  }
  
  .about-us-grid-item owners {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 50px;
    margin-bottom: 50px;
    background-color: black;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    color: white;
    font-size: 1.2rem;
    line-height: 1.6;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -webkit-user-select: none;
    -webkit-user-select: none;
    -webkit-user-select: none;
  }

  .about-us-grid-item.mission {
    grid-column: 1 / -1; /* nimmt die ganze Grid-Breite */
    width: 100%
}

.navbar {
    width: 100% !important;
    max-width: 700px !important;
}


        /* Footer Styles */
        footer {
            background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
            color: #b9bbbe;
            padding: 40px 20px 20px;
            margin-top: 80px;
            border-top: 2px solid #5865f2;
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            text-align: center;
        }

        .footer-links {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 20px;
            margin-bottom: 25px;
            flex-wrap: wrap;
        }

        .footer-links a {
            color: #b9bbbe;
            text-decoration: none;
            font-size: 14px;
            transition: color 0.3s ease;
        }

        .footer-links a:hover {
            color: #5865f2;
        }

        .footer-links .separator {
            color: #4a4a4a;
        }

        .footer-description {
            font-size: 13px;
            color: #8e9297;
            margin-bottom: 25px;
            line-height: 1.6;
            max-width: 700px;
            margin-left: auto;
            margin-right: auto;
        }

        .footer-socials {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-bottom: 25px;
        }

        .footer-social-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 20px;
            border-radius: 8px;
            text-decoration: none;
            font-weight: 600;
            font-size: 14px;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
        }

        .footer-social-btn.youtube {
            background: #FF0000;
            color: white;
        }

        .footer-social-btn.youtube:hover {
            background: #cc0000;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
        }

        .footer-social-btn.discord {
            background: #5865f2;
            color: white;
        }

        .footer-social-btn.discord:hover {
            background: #4752c4;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
        }

        .footer-social-btn.instagram {
            background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
            color: white;
        }

        .footer-social-btn.instagram:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(225, 48, 108, 0.3);
        }

        .footer-social-btn i {
            font-size: 16px;
        }

        .footer-copyright {
            font-size: 12px;
            color: #72767d;
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid #2a2a2a;
        }

        @media (max-width: 768px) {
            .footer-socials {
                flex-direction: column;
                align-items: center;
            }

            .footer-social-btn {
                width: 200px;
                justify-content: center;
            }

            .footer-links {
                flex-direction: column;
                gap: 10px;
            }

            .footer-links .separator {
                display: none;
            }
        }

         :root {
        --bg-page: #0d1117;
        --bg-popup: #161b27;
        --bg-card: #1e2536;
        --border: #2a3248;
        --accent: #5b6dff;
        --accent-hover: #7080ff;
        --accent-dim: rgba(91, 109, 255, .15);
        --text-main: #e8ecf4;
        --text-muted: #8a93ae;
        --link: #7b8fff;
        --shadow: 0 32px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .04);
      }

      .overlay{
        display:none;
        position:fixed;
        top:0;
        left:0;
        width:100%;
        height:100%;
        background:rgba(0,0,0,0.85);
        align-items:center;
        justify-content:center;
        z-index:9999;
        }

      /* POPUP BOX */
      .popup {
        background: var(--bg-popup);
        border: 1px solid var(--border);
        border-radius: 20px;
        width: 100%;
        max-width: 440px;
        padding: 2.5rem 2rem 2rem;
        box-shadow: var(--shadow);
        animation: popIn .45s cubic-bezier(.34, 1.56, .64, 1) both;
        position: relative;
        overflow: hidden;
      }

      /* subtle top glow stripe */
      .popup::before {
        content: '';
        position: absolute;
        top: 0;
        left: 10%;
        right: 10%;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(91, 109, 255, .6), transparent);
      }

      @keyframes popIn {
        from {
          opacity: 0;
          transform: scale(.88) translateY(20px);
        }

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

      /* ── Icon ── */
      .icon-wrap {
        width: 62px;
        height: 62px;
        background: #0d1117;
        border: 1px solid var(--border);
        border-radius: 50%;
        display: grid;
        place-items: center;
        margin: 0 auto 1.4rem;
        box-shadow: 0 0 0 6px rgba(91, 109, 255, .08);
      }

      .icon-wrap svg {
        width: 30px;
        height: 30px;
      }

      /* ── Headings ── */
      .popup h1 {
        text-align: center;
        font-size: 1.55rem;
        font-weight: 700;
        color: var(--text-main);
        letter-spacing: -.4px;
        margin-bottom: .35rem;
      }

      .popup .subtitle {
        text-align: center;
        font-size: .85rem;
        color: var(--text-muted);
        margin-bottom: 1.6rem;
      }

      /* ── Policy card ── */
      .policy-card {
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 1.1rem 1.2rem;
        font-size: .82rem;
        color: var(--text-muted);
        line-height: 1.65;
        margin-bottom: 1.4rem;
      }

      .policy-card p+p {
        margin-top: .75rem;
      }

      .policy-card a {
        color: var(--link);
        text-decoration: none;
        font-weight: 500;
      }

      .policy-card a:hover {
        text-decoration: underline;
      }

      /* ── Checkbox row ── */
      .check-row {
        display: flex;
        align-items: center;
        gap: .75rem;
        margin-bottom: 1.4rem;
        cursor: pointer;
        user-select: none;
      }

      .check-row input[type="checkbox"] {
        display: none;
      }

      .custom-box {
        width: 20px;
        height: 20px;
        border: 2px solid var(--border);
        border-radius: 5px;
        background: var(--bg-card);
        flex-shrink: 0;
        display: grid;
        place-items: center;
        transition: border-color .2s, background .2s;
      }

      .custom-box svg {
        width: 11px;
        height: 11px;
        stroke: #fff;
        stroke-width: 2.5;
        opacity: 0;
        transform: scale(.5);
        transition: opacity .2s, transform .2s;
      }

      .check-row input:checked~.custom-box {
        border-color: var(--accent);
        background: var(--accent);
      }

      .check-row input:checked~.custom-box svg {
        opacity: 1;
        transform: scale(1);
      }

      .check-label {
        font-size: .82rem;
        color: var(--text-muted);
        line-height: 1.4;
      }

      /* ── Button ── */
      #continueBtn {
        width: 100%;
        padding: .88rem;
        border: none;
        border-radius: 12px;
        background: var(--accent);
        color: #fff;
        font-family: inherit;
        font-size: .92rem;
        font-weight: 600;
        cursor: pointer;
        letter-spacing: .2px;
        transition: background .2s, transform .15s, box-shadow .2s;
        box-shadow: 0 4px 20px rgba(91, 109, 255, .35);
      }

      #continueBtn:hover:not(:disabled) {
        background: var(--accent-hover);
        transform: translateY(-1px);
        box-shadow: 0 6px 28px rgba(91, 109, 255, .5);
      }

      #continueBtn:active:not(:disabled) {
        transform: translateY(0);
      }

      #continueBtn:disabled {
        opacity: .45;
        cursor: not-allowed;
        box-shadow: none;
      }

      a.card-link {
    text-decoration: none;
}

@media (max-width: 1090px) {
    .navbar {
        width: auto !important;
        max-width: 100% !important;
    }
}
@media (max-width: 425px) {
    .perks-boxes {
        grid-template-columns: repeat(1, 1fr);
        margin: 0;
    }
}
