:root {
    --bg-dark-space: #0A0A18; 
    --color-primary: #7F5AF0;
    --color-secondary: #00E0FF;
    --color-tertiary: #2CB67D;
    --text-light: #E0E0E0;
    --text-headers: #FFFFFF;
    --glass-bg: rgba(10, 10, 24, 0.85);
    --glass-border: rgba(255, 255, 255, 0.15);
    --discord-blue: #5865F2;
    --shadow-deep: 0 10px 25px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; 
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark-space);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(
        45deg, 
        var(--color-primary), 
        var(--bg-dark-space) 50%, 
        var(--color-secondary)
    );
    background-size: 300% 300%;
    animation: animatedGradient 20s ease infinite;
    filter: blur(100px); 
    opacity: 0.3; 
    transition: background-position 0.4s ease;
}

body.bg-shift-primary::before {
    background-position: 0% 50%; 
    animation: none; 
}
body.bg-shift-secondary::before {
    background-position: 100% 50%; 
    animation: none;
}


@keyframes animatedGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.page-wrapper {
    position: relative;
    z-index: 2;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.navbar {
    position: fixed; 
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 20px 5%; 
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease;
}

.navbar.scrolled {
    background-color: var(--glass-bg);
    backdrop-filter: blur(20px); 
    border-bottom: 1px solid rgba(127, 90, 240, 0.2); 
    padding: 15px 5%; 
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.4); 
}

.navbar-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-headers);
    text-decoration: none;
    text-shadow: 0 0 5px var(--color-secondary);
}

.navbar-links {
    display: flex;
    gap: 30px;
}

.navbar-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-links a:hover {
    color: var(--color-secondary);
    text-shadow: 0 0 5px var(--color-secondary);
}

.cta-button-nav {
    display: inline-block;
    background: var(--color-primary);
    color: var(--text-headers);
    padding: 8px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button-nav:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--color-primary);
}

.hero {
    text-align: center;
    padding: 200px 0 150px 0; 
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative; 
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="3" height="3" viewBox="0 0 3 3"><circle cx="1.5" cy="1.5" r="0.5" fill="rgba(255, 255, 255, 0.1)"/> </svg>');
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
    animation: backgroundMove 30s linear infinite;
}

@keyframes backgroundMove {
    from { background-position: 0 0; }
    to { background-position: 300px 300px; }
}

.text-3d-wrapper {
    position: relative;
    z-index: 2; 
    perspective: 500px; 
    margin-bottom: 15px;
}

.text-3d {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--text-headers);
    line-height: 1.2;
    text-shadow: 
        0 0 5px var(--color-primary),
        1px 1px 0 var(--color-primary),
        3px 3px 0 var(--bg-dark-space),
        5px 5px 0 rgba(0, 0, 0, 0.3);
    transform: rotateX(2deg) rotateY(0deg) translateZ(0);
    transition: transform 0.5s ease;
}

.text-3d-wrapper:hover .text-3d {
    transform: rotateX(0deg) rotateY(3deg) translateZ(5px);
}

.hero p {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 40px auto; 
    z-index: 2;
}

.hero-discord-btn {
    display: inline-block;
    background-color: var(--discord-blue); 
    color: var(--text-headers);
    padding: 16px 24px; 
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem; 
    font-weight: 700;
    letter-spacing: 1px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.4); 
    animation: pulse 2s infinite; 
    z-index: 2;
}

.hero-discord-btn i {
    margin-right: 10px;
}

.hero-discord-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(88, 101, 242, 0.6);
    animation: none; 
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-light);
    font-size: 1.5rem;
    text-decoration: none;
    opacity: 0.7;
    animation: pulse-scroll 2s infinite;
    transition: color 0.3s ease;
    z-index: 2;
}
.scroll-indicator:hover {
    color: var(--color-secondary);
    opacity: 1;
}
@keyframes pulse-scroll {
    0% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
    100% { transform: translateX(-50%) translateY(0); }
}


#activities {
    padding: 50px 0;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.activity-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.activity-card::before,
.profile-card::before { 
    content: '';
    position: absolute;
    top: var(--mouse-y, 50%);
    left: var(--mouse-x, 50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--color-primary), transparent 80%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    filter: blur(20px);
}

.activity-card:hover,
.profile-card:hover { 
    transform: translateY(-5px);
    border-color: var(--color-secondary);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.activity-card:hover::before,
.profile-card:hover::before { 
    opacity: 0.2;
}

.activity-card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}
.activity-card:nth-child(1) .icon { color: var(--color-primary); }
.activity-card:nth-child(2) .icon { color: var(--color-secondary); }
.activity-card:nth-child(3) .icon { color: var(--color-tertiary); } 

.activity-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-headers);
    margin-bottom: 10px;
}

#team {
    padding: 50px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-headers);
    margin-bottom: 40px;
}

.team-grid {
    display: grid;
    gap: 30px;
    margin: 0 auto; 
    max-width: 1000px;
}
.top-management-grid {
    grid-template-columns: repeat(3, 1fr); 
}
.division-grid {
    grid-template-columns: repeat(5, 1fr); 
    gap: 20px;
}
.division-title-spacing {
    margin-top: 80px;
}

.profile-card.fade-in:nth-child(1) { transition-delay: 0.0s; }
.profile-card.fade-in:nth-child(2) { transition-delay: 0.05s; }
.profile-card.fade-in:nth-child(3) { transition-delay: 0.1s; }
.profile-card.fade-in:nth-child(4) { transition-delay: 0.15s; }
.profile-card.fade-in:nth-child(5) { transition-delay: 0.2s; }
.profile-card.fade-in:nth-child(6) { transition-delay: 0.25s; }
.profile-card.fade-in:nth-child(7) { transition-delay: 0.3s; }
.profile-card.fade-in:nth-child(8) { transition-delay: 0.35s; }
.profile-card.fade-in:nth-child(9) { transition-delay: 0.4s; }
.profile-card.fade-in:nth-child(10) { transition-delay: 0.45s; }


.profile-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px 15px;
    text-align: center;
    text-decoration: none; 
    color: var(--text-light); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; 
    overflow: hidden; 
}

.profile-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%; 
    object-fit: cover;
    margin-bottom: 10px;
    border: 3px solid var(--color-primary); 
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); 
}

.profile-card[data-bg-color="primary"] img { border-color: var(--color-primary); }
.profile-card[data-bg-color="secondary"] img { border-color: var(--color-secondary); }
.profile-card[data-bg-color="tertiary"] img { border-color: var(--color-tertiary); }
.profile-card[data-bg-color="discord"] img { border-color: var(--discord-blue); }

.profile-card[data-bg-color="secondary"]:hover { border-color: var(--color-secondary); }
.profile-card[data-bg-color="tertiary"]:hover { border-color: var(--color-tertiary); }
.profile-card[data-bg-color="discord"]:hover { border-color: var(--discord-blue); }

.profile-card[data-bg-color="secondary"]::before { background: radial-gradient(circle, var(--color-secondary), transparent 80%); }
.profile-card[data-bg-color="tertiary"]::before { background: radial-gradient(circle, var(--color-tertiary), transparent 80%); }
.profile-card[data-bg-color="discord"]::before { background: radial-gradient(circle, var(--discord-blue), transparent 80%); }

.profile-card h3 {
    font-size: 1.1rem;
    color: var(--text-headers);
    margin-bottom: 0px;
}

.profile-card .member-name {
    font-size: 1.15rem; /* Ukuran yang disesuaikan */
    font-weight: 700;
    color: var(--text-headers);
    margin-bottom: 5px;
    display: block;
}
.profile-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.8;
}

#co-founder-card[href="#"] {
    cursor: default; 
}


#details {
    padding: 80px 0;
    margin-top: 50px;
}

.tab-container {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-deep);
}

.tab-header {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2); 
}

.tab-button {
    background: transparent;
    border: none;
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap; 
}

.tab-button:hover {
    color: var(--color-secondary);
}

.tab-button.active {
    background: var(--color-primary);
    box-shadow: 0 0 10px rgba(127, 90, 240, 0.5);
    color: var(--text-headers);
}

.tab-content-wrapper {
    overflow: hidden;
    position: relative;
    min-height: 300px;
}

.tab-content {
    display: none;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateX(20px);
    
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.tab-content.active-tab {
    display: grid;
    opacity: 1;
    transform: translateX(0);
    position: static; 
}

.content-text h3 {
    font-size: 2rem;
    color: var(--color-secondary);
    margin-bottom: 15px;
}

.content-text ul {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

.content-text ul li {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 15px;
    margin-bottom: 8px;
    border-radius: 5px;
    border-left: 3px solid var(--color-tertiary);
}

.content-visual {
    text-align: center;
}

.content-visual i {
    font-size: 8rem;
    color: var(--color-primary);
    opacity: 0.2;
}


#join {
    padding: 100px 0;
}

.cta-box {
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    padding: 60px 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 0 30px rgba(127, 90, 240, 0.3);
}

.cta-box h2 {
    font-size: 2.5rem;
    color: var(--text-headers);
    margin-bottom: 15px;
}

.cta-box p {
    font-size: 1.1rem;
    color: var(--text-headers);
    opacity: 0.9;
    margin-bottom: 30px;
}

.cta-button-main {
    display: inline-block;
    background: var(--text-headers);
    color: var(--bg-dark-space);
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

.cta-button-main:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: none;
}

.footer {
    padding: 60px 0 0 0; 
    border-top: 1px solid var(--glass-border);
    margin-top: 100px;
    background: rgba(10, 10, 24, 0.3); 
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; 
    gap: 40px;
    padding-bottom: 40px;
}

.footer-column.brand .footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-headers);
    text-decoration: none;
    text-shadow: 0 0 5px var(--color-secondary);
    margin-bottom: 15px;
    display: inline-block;
}

.footer-column.brand p {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.6;
    max-width: 350px;
}

.footer-column h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-secondary); 
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--color-primary); 
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.8rem; 
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--color-secondary); 
    transform: scale(1.1);
}

.disabled-link {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none; 
}

.footer-copyright {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid var(--glass-border);
    opacity: 0.7;
    font-size: 0.9rem;
}


.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.activity-card.fade-in:nth-child(2) { transition-delay: 0.2s; }
.activity-card.fade-in:nth-child(3) { transition-delay: 0.4s; }


@media (max-width: 768px) {
    
    .navbar {
        justify-content: space-between; 
        padding: 15px 20px;
    }
    .navbar-links {
        display: none; 
    }
    .navbar.scrolled {
        border-bottom: none;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
    }
    .cta-button-nav {
        padding: 6px 14px;
        font-size: 0.9rem;
    }


    .hero {
        padding: 100px 0 60px 0; 
    }
    .text-3d {
        font-size: 2.5rem; 
        text-shadow: 
            0 0 3px var(--color-primary),
            1px 1px 0 var(--color-primary); 
        transform: none;
    }
    .text-3d-wrapper:hover .text-3d {
        transform: none;
    }
    .hero p {
        font-size: 0.9rem;
        margin-bottom: 30px;
    }
    .hero-discord-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
        animation: pulse 1.5s infinite;
        box-shadow: 0 0 10px rgba(88, 101, 242, 0.4);
    }
    .scroll-indicator {
        display: none;
    }
    
    #activities, #details, #join {
        padding: 40px 0;
    }
    .footer {
        margin-top: 60px;
    }

    .section-title, .cta-box h2 {
        font-size: 1.8rem;
    }
    .activities-grid {
        grid-template-columns: 1fr; 
        gap: 20px;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 15px;
        max-width: 100%; 
    }
    .profile-card {
        padding: 20px 10px;
    }
    .profile-card img {
        width: 80px;
        height: 80px;
        margin-bottom: 5px;
    }
    .profile-card h3 {
        font-size: 0.9rem;
    }
    .profile-card .member-name {
    font-size: 0.9rem; /* Ukuran yang disesuaikan di mobile */
    margin-bottom: 0px;
    }
    .profile-card p {
        font-size: 0.75rem;
    }

    .tab-header {
        justify-content: flex-start;
        overflow-x: scroll; 
        padding: 5px;
    }
    .tab-button {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    .tab-content {
        grid-template-columns: 1fr;
    }
    .content-visual {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr; 
        gap: 20px;
    }

    body::before { display: none; }
    .hero::before { display: none; }

    .navbar.scrolled,
    .activity-card,
    .profile-card,
    .tab-container {
        backdrop-filter: none;
        background-color: rgba(10, 10, 24, 0.95); 
        box-shadow: none !important;
    }
}
