*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Poppins', sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    line-height: 1.7;
    overflow-x: hidden;
}
h1, h2, h3 {
    font-family: 'Orbitron', sans-serif;
    color: #ffffff;
    margin-bottom: 0.8em;
    letter-spacing: 1px;
}
h2 {
    font-size: 2.3rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    color: #ff7675;
    text-shadow: 0 0 10px rgba(255, 118, 117, 0.3);
}
h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #ff7675, #feca57);
    margin: 12px auto 0;
    border-radius: 2px;
    opacity: 0.8;
}
h2 .icon {
    margin-right: 12px;
    font-size: 0.8em;
    vertical-align: middle;
    display: inline-block;
    transform: translateY(-1px);
    color: #feca57;
}
h3 {
    font-size: 1.4rem;
    color: #e8e8e8;
    margin-bottom: 0.6em;
    font-weight: 600;
}
p {
    margin-bottom: 1.1em;
    color: #bdbdbd;
}
a {
    color: #ff8a80;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #ff5252;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
.code-font {
    font-family: 'Source Code Pro', monospace;
    color: #feca57;
    font-size: 0.9em;
    background: rgba(255,255,255,0.07);
    padding: 2px 5px;
    border-radius: 4px;
}
.code-highlight {
    color: #b8e994;
    font-weight: 500;
}

.hero {
    min-height: 65vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 50px 20px 40px 20px;
    position: relative;
    background: linear-gradient(rgba(18, 18, 18, 0.8), rgba(18, 18, 18, 0.95)), url('images/background.jpg') no-repeat center center/cover;
    background-color: #151515;
    border-bottom: 2px solid rgba(255, 118, 117, 0.3);
    opacity: 0; /* Start hidden */
}
.hero.visible-onload { /* Class added by JS */
    opacity: 1;
    transition: opacity 1s ease-out;
}
.hero .group-logo {
    width: 135px;
    height: 135px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 25px;
    border: 4px solid #feca57;
    box-shadow: 0 0 28px rgba(254, 202, 87, 0.5);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55), box-shadow 0.3s ease;
}
.hero .group-logo:hover {
    transform: scale(1.09) rotate(3deg);
    box-shadow: 0 0 40px rgba(254, 202, 87, 0.7);
}
.hero .group-name {
    font-size: clamp(2.2rem, 6vw, 3.6rem);
    margin-bottom: 0.4em;
    text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.7);
}
.hero .dragon-emoji {
    display: inline-block;
    animation: pulse 2.5s infinite ease-in-out;
}
.hero .group-tagline {
    font-size: 1.1rem;
    color: #bbb;
    margin-top: 5px;
}
.scroll-down-indicator {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease, color 0.3s ease;
}
.scroll-down-indicator svg {
    width: 26px;
    height: 26px;
    margin-bottom: 4px;
    animation: bounce 2s infinite ease-out;
}
.scroll-down-indicator:hover {
    color: rgba(255, 255, 255, 0.8);
}

#main-content {
    /* Add potential padding if needed */
}

#about {
    padding: 80px 0;
    background-color: #161616;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.about-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.elegant-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}
.about-text {
    flex: 1 1 60%;
    max-width: 60%;
}
.about-text h2 {
    text-align: left;
    display: block;
    transform: none;
    left: auto;
    margin-bottom: 30px;
    font-size: 2.4rem;
}
.about-text h2::after {
    display: none;
}
.about-text h2 .icon {
    font-family: sans-serif;
    color: #ff7675;
    font-size: 0.7em;
    margin-right: 15px;
}
.lead-paragraph {
    font-size: 1.2rem;
    color: #e5e5e5;
    font-weight: 400;
    margin-bottom: 1.5em;
    line-height: 1.7;
}
.elegant-divider {
    border: none;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.15);
    margin: 40px 0;
}
.principles-title {
    text-align: left;
    font-size: 1.5rem;
    color: #e8e8e8;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}
.principles-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 30px;
}
.principles-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-size: 1.05rem;
    color: #c5c5c5;
}
.list-icon {
    margin-right: 12px;
    color: #ff8a80;
    font-size: 1.1em;
    line-height: 1;
}
.motto-ref {
    font-size: 0.95rem;
    font-style: italic;
    color: #999;
    text-align: left;
    margin-top: 20px;
    margin-bottom: 0;
}
.about-visual {
    flex: 1 1 40%;
    max-width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.about-visual img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.structure-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 45px;
}
.member-card {
    background-color: rgba(35, 35, 35, 0.75);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px 15px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out, background-color 0.3s ease-out;
    position: relative;
    overflow: hidden;
}
.member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ff7675, #feca57, #ff7675, transparent);
    transition: left 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 3;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    opacity: 0.75;
}
.member-card:hover {
    transform: translateY(-9px) scale(1.035);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
    background-color: rgba(50, 50, 50, 0.85);
    border-color: rgba(255, 118, 117, 0.5);
}
.member-card:hover::before {
    left: 100%;
}
.member-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 12px auto;
    border: 2px solid #666;
    transition: border-color 0.3s ease, transform 0.3s ease;
    position: relative;
    z-index: 5;
}
.member-card:hover .member-photo {
    border-color: #ff8a80;
    transform: scale(1.07);
}
.member-name {
    font-size: 1.05rem;
    color: #f5f5f5;
    margin-bottom: 6px;
    position: relative;
    z-index: 5;
}
.member-role {
    font-family: 'Source Code Pro', monospace;
    color: #b8e994;
    font-size: 0.78rem;
    margin-bottom: 0;
    word-wrap: break-word;
    padding: 3px 7px;
    background-color: rgba(0, 0, 0, 0.35);
    border-radius: 4px;
    display: inline-block;
    line-height: 1.4;
    position: relative;
    z-index: 5;
    max-width: 90%;
}
.leader {
    width: clamp(220px, 30%, 260px);
    padding: 20px 18px;
}
.leader .member-photo {
    width: 90px;
    height: 90px;
}
.leader .member-name {
    font-size: 1.15rem;
}
.sub-members {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 960px;
}
.sub-members .member-card {
    width: calc(25% - 15px);
    min-width: 160px;
}

#rules {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.rules-list {
    list-style: none;
    padding: 0;
    max-width: 700px;
    margin: 0 auto;
    counter-reset: rule-counter;
}
.rules-list li {
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.6), rgba(35, 35, 35, 0.7));
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    padding: 16px 25px;
    border-radius: 10px;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    font-size: 1.0rem;
    position: relative;
    overflow: hidden;
}
.rule-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-right: 18px;
    font-size: 1.1rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: transform 0.3s ease, background-color 0.3s ease;
    flex-shrink: 0;
}
.rule-icon.rule-negative { color: #fff; background-color: rgba(255, 82, 82, 0.7); }
.rule-icon.rule-positive { color: #fff; background-color: rgba(32, 191, 107, 0.7); }
.rule-icon.rule-warning { color: #333; background-color: rgba(254, 202, 87, 0.8); }
.rule-icon.rule-neutral { color: #fff; background-color: rgba(108, 122, 137, 0.7); }
.rules-list li:hover {
    background: linear-gradient(135deg, rgba(55, 55, 55, 0.7), rgba(45, 45, 45, 0.8));
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.rules-list li:hover .rule-icon {
    transform: rotate(10deg) scale(1.1);
}
.rules-footer {
    text-align: center;
    margin-top: 35px;
    font-style: italic;
    color: #feca57;
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

#join {
    text-align: center;
    padding: 80px 20px;
    background: #161616;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
#join h2 {
    color: #fff;
    margin-bottom: 30px;
}
#join h2::after {
    background: linear-gradient(90deg, #a7d7a7, #ff8a80);
}
.join-description {
    max-width: 650px;
    margin: 0 auto 40px auto;
    font-size: 1.1rem;
    color: #d0d0d0;
}
.join-invite-card {
    display: flex;
    align-items: center;
    max-width: 550px;
    margin: 0 auto 35px auto;
    padding: 20px;
    background-color: #222;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.join-group-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}
.join-group-info {
    flex-grow: 1;
    text-align: left;
}
.join-group-name {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 4px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}
.join-group-desc {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 0;
    line-height: 1.4;
}
.join-button {
    display: inline-block;
    padding: 10px 25px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    color: #fff;
    background-color: #00a884; /* Warna hijau WA */
    border: none;
    border-radius: 20px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-left: auto; /* Dorong ke kanan */
    white-space: nowrap; /* Agar teks tidak wrap */
}
.join-button:hover {
    background-color: #008a6b;
    transform: scale(1.05);
    color: #fff;
}
.join-reminder {
    max-width: 600px;
    margin: 0 auto;
    font-size: 0.9rem;
    color: #888;
}
.join-reminder a {
    color: #ffab73;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: rgba(255, 171, 115, 0.4);
}
.join-reminder a:hover {
    color: #ff8a80;
    text-decoration-color: rgba(255, 138, 128, 0.7);
}

footer {
    text-align: center;
    padding: 35px 20px;
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: #999;
    background-color: #101010;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.15); opacity: 1; }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-on-load, .animate-on-scroll {
    opacity: 0;
}
.hero.animate-on-load,
#about.animate-on-scroll,
#structure.animate-on-scroll,
#rules.animate-on-scroll,
#join.animate-on-scroll,
footer.animate-on-scroll,
.member-card.animate-on-scroll,
.rules-list li.animate-on-scroll,
.join-invite-card.animate-on-scroll,
.rules-footer.animate-on-scroll,
.motto-ref.animate-on-scroll,
.principles-list li.animate-on-scroll,
.principles-title.animate-on-scroll,
.lead-paragraph.animate-on-scroll,
.about-visual img.animate-on-scroll,
.join-button.animate-on-scroll, /* Animasikan tombol juga */
.join-reminder.animate-on-scroll,
.join-description.animate-on-scroll,
.about-text p.animate-on-scroll /* Jika perlu animasi per paragraf */
 {
    opacity: 0; /* Default untuk JS */
}
.hero.visible-onload,
.visible {
    animation: slideInUp 0.7s ease-out forwards;
}
.hero .group-logo.animate-on-load,
.hero .group-name.animate-on-load,
.hero .group-tagline.animate-on-load,
.hero .scroll-down-indicator.animate-on-load {
    animation: slideInUp 0.8s ease-out forwards; /* Apply to elements */
}
.hero .scroll-down-indicator.animate-on-load {
    animation: fadeIn 1s 1.2s ease-out forwards; /* Fade in for indicator */
}

.delay-1 { animation-delay: 0.1s !important; }
.delay-2 { animation-delay: 0.2s !important; }
.delay-3 { animation-delay: 0.3s !important; }
.delay-4 { animation-delay: 0.4s !important; }
.delay-5 { animation-delay: 0.5s !important; }
.delay-6 { animation-delay: 0.55s !important; }
.delay-7 { animation-delay: 0.6s !important; }
.delay-8 { animation-delay: 0.65s !important; }
.delay-9 { animation-delay: 0.7s !important; }
.delay-10 { animation-delay: 0.75s !important; }
.delay-11 { animation-delay: 0.8s !important; }

@media (max-width: 992px) {
    .elegant-layout { gap: 40px; }
    .about-text { flex-basis: 55%; max-width: 55%; }
    .about-visual { flex-basis: 45%; max-width: 45%; }
    .about-text h2 { font-size: 2.2rem; }
    .lead-paragraph { font-size: 1.1rem; }
    .sub-members { max-width: 720px; gap: 18px; }
    .sub-members .member-card { width: calc(33.333% - 12px); }
    .leader { width: clamp(200px, 40%, 240px); }
    .join-invite-card { max-width: 90%; }
}

@media (max-width: 768px) {
    h2 { font-size: 2rem; margin-bottom: 50px; }
    .hero { min-height: 60vh; }
    .elegant-layout { flex-direction: column; gap: 40px; }
    .about-text { max-width: 100%; order: 1; text-align: center; }
    .about-visual { max-width: 70%; order: 2; margin-top: 20px; }
    .about-text h2 { text-align: center; }
    .principles-title { text-align: center; }
    .principles-list li { justify-content: center; }
    .motto-ref { text-align: center; }
    .sub-members { max-width: 520px; gap: 20px; }
    .sub-members .member-card { width: calc(50% - 10px); }
    .leader { width: clamp(200px, 50%, 280px); }
    .rules-list { max-width: 90%; }
    #join { padding: 60px 15px; }
    .join-invite-card { flex-direction: column; text-align: center; padding: 25px; }
    .join-group-icon { margin: 0 auto 15px auto; }
    .join-group-info { text-align: center; margin-bottom: 20px; }
    .join-button { margin-left: 0; width: 80%; }
}

@media (max-width: 480px) {
    h1.group-name { font-size: 1.8rem; }
    h2 { font-size: 1.8rem; margin-bottom: 40px; }
    .hero { min-height: 60vh; }
    .hero .group-logo { width: 100px; height: 100px; }
    .scroll-down-indicator { display: none; }
    #about { padding: 60px 15px; }
    .lead-paragraph { font-size: 1.05rem; }
    .principles-title { font-size: 1.3rem; }
    .principles-list li { font-size: 1rem; }
    .about-visual { max-width: 80%; }
    .structure-container { gap: 30px; }
    .sub-members { gap: 15px; max-width: 90%; }
    .sub-members .member-card { width: 100%; }
    .leader { width: 90%; }
    .member-card { padding: 15px 12px; }
    .member-photo { width: 70px; height: 70px; }
    .member-name { font-size: 1rem; }
    .member-role { font-size: 0.75rem; }
    .rules-list { max-width: 95%; }
    .rules-list li { padding: 12px 18px; font-size: 0.9rem; }
    .rule-icon { width: 25px; height: 25px; font-size: 1rem; margin-right: 12px; }
    .rules-footer { font-size: 1rem; margin-top: 25px; }
    #join { padding: 50px 10px; }
    #join h2 { font-size: 1.8rem; }
    .join-description { font-size: 1rem; margin-bottom: 30px; }
    .join-invite-card { padding: 20px; }
    .join-group-icon { width: 50px; height: 50px; }
    .join-group-name { font-size: 1.1rem; }
    .join-group-desc { font-size: 0.85rem; }
    .join-button { width: 90%; padding: 12px 20px; font-size: 0.9rem; }
    .join-reminder { font-size: 0.85rem; margin-top: 25px; }
}