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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0a0f1c 0%, #1a2332 50%, #0f1419 100%);
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
    opacity: 0;
    animation: fadeIn 0.8s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

html {
    scroll-behavior: smooth;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 15, 28, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    animation: slideDown 0.8s ease-out 0.2s both;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    animation: logoFloat 3s ease-in-out infinite;
}

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

.logo-image {
    height: 45px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05) rotate(5deg);
}

.brand-text {
    font-weight: bold;
    font-size: 1.2rem;
    color: #00bcd4;
    margin-left: 10px;
    text-shadow: 0 0 10px rgba(0, 188, 212, 0.3);
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #00bcd4, #2196f3);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: #00bcd4;
    transform: translateY(-2px);
}

.nav-btn {
    background: linear-gradient(45deg, #00bcd4, #2196f3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(10, 15, 28, 0.95);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(0, 188, 212, 0.3);
    border-radius: 12px;
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 0.8rem 1.2rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0.3rem;
}

.dropdown-link:hover {
    background: linear-gradient(45deg, #00bcd4, #2196f3);
    color: white;
    transform: translateX(3px);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.mobile-menu-toggle:hover {
    transform: scale(1.1);
}

/* Staff Section */
.staff {
    padding: 150px 2rem 100px;
    min-height: 100vh;
}

.staff-container {
    max-width: 1400px;
    margin: 0 auto;
}

.staff-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: bold;
    text-align: center;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #fff, #00bcd4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 188, 212, 0.3);
    opacity: 0;
    animation: titleSlideUp 1s ease-out 0.5s both;
}

@keyframes titleSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.staff-description {
    font-size: 1.2rem;
    line-height: 1.6;
    text-align: center;
    color: #a0aec0;
    max-width: 800px;
    margin: 0 auto 4rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.7s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.staff-categories {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.staff-category {
    background: rgba(26, 35, 50, 0.3);
    border: 2px solid rgba(0, 188, 212, 0.2);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: categoryFadeIn 0.8s ease-out both;
}

@keyframes categoryFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.staff-category:nth-child(1) {
    animation-delay: 0.9s;
}

.staff-category:nth-child(2) {
    animation-delay: 1.1s;
}

.staff-category:hover {
    border-color: rgba(0, 188, 212, 0.4);
    background: rgba(26, 35, 50, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 188, 212, 0.1);
}

.category-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.8rem;
    font-weight: bold;
    color: #00bcd4;
    margin-bottom: 2rem;
    text-align: center;
    justify-content: center;
}

.category-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px rgba(0, 188, 212, 0.5));
    animation: iconPulse 2s ease-in-out infinite;
}

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

.staff-grid {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    overflow-x: visible;
    padding: 1rem 0;
}

.staff-grid::-webkit-scrollbar {
    height: 8px;
}

.staff-grid::-webkit-scrollbar-track {
    background: rgba(26, 35, 50, 0.5);
    border-radius: 10px;
}

.staff-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #00bcd4, #2196f3);
    border-radius: 10px;
}

.staff-grid::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #2196f3, #00bcd4);
}

.staff-card {
    background: rgba(26, 35, 50, 0.6);
    border: 2px solid rgba(0, 188, 212, 0.3);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    min-width: 280px;
    max-width: 320px;
    flex: 1;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: cardSlideIn 0.6s ease-out both;
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.staff-card:nth-child(1) {
    animation-delay: 1.2s;
}

.staff-card:nth-child(2) {
    animation-delay: 1.4s;
}

.staff-card:nth-child(3) {
    animation-delay: 1.6s;
}

.staff-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 188, 212, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.staff-card:hover::before {
    opacity: 1;
}

.staff-card > * {
    position: relative;
    z-index: 2;
}

.staff-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: #00bcd4;
    box-shadow: 0 20px 40px rgba(0, 188, 212, 0.2);
}

.staff-avatar {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

/* container bulat tetap sama */
.avatar-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #00bcd4, #2196f3);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid rgba(0, 188, 212, 0.3);
  box-shadow: 0 10px 30px rgba(0, 188, 212, 0.3);
  transition: all 0.3s ease;
}

/* styling untuk <img> di dalam placeholder */
.avatar-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* sembunyikan teks inisial saat gambar berhasil tampil */
.avatar-image + .avatar-text {
  visibility: hidden;
}

/* jika gambar gagal, class ini akan men-trigger fallback (teks inisial) */
.avatar-placeholder.has-fallback .avatar-text {
  visibility: visible;
}

.staff-card:hover .avatar-placeholder {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(0, 188, 212, 0.4);
}

.avatar-text {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.staff-info {
    text-align: center;
}

.staff-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.staff-role {
    font-size: 1rem;
    color: #00bcd4;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.staff-social {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 200px;
    justify-content: center;
    border: 2px solid transparent;
}

.social-link.instagram {
    background: linear-gradient(45deg, #E4405F, #C13584);
    color: white;
}

.social-link.tiktok {
    background: linear-gradient(45deg, #000000, #333333);
    color: white;
}

.social-link.discord {
  background: linear-gradient(135deg, #5865F2, #4E5D94);
  color: white;
}

.social-link:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.social-icon {
    width: 20px;
    height: 20px;
    filter: brightness(1.2);
    transition: transform 0.3s ease;
}

.social-link:hover .social-icon {
    transform: rotate(10deg);
}

/* Footer */
.footer {
    padding: 3rem 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(0, 188, 212, 0.3);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 1.8s both;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 188, 212, 0.1);
    color: #00bcd4;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 188, 212, 0.3);
}

.footer-btn:hover {
    background: rgba(0, 188, 212, 0.2);
    color: white;
    transform: translateY(-2px);
}

.footer-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.footer-btn:hover .footer-icon {
    transform: rotate(10deg);
}

.copyright {
    color: #a0aec0;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        padding: 0 1rem;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 15, 28, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 1rem 2rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        border-radius: 0 0 15px 15px;
    }
    
    .nav-menu.mobile-active {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .staff {
        padding: 120px 1rem 80px;
    }
    
    .staff-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .staff-description {
        font-size: 1rem;
        margin-bottom: 3rem;
        padding: 0 1rem;
    }
    
    .staff-categories {
        gap: 3rem;
    }
    
    .staff-category {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    .category-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        flex-wrap: wrap;
    }
    
    .staff-grid {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding: 0.5rem;
    }
    
    .staff-card {
        min-width: unset;
        max-width: 100%;
        width: 100%;
        max-width: 350px;
        padding: 1.5rem;
        margin: 0;
    }
    
    .avatar-placeholder {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .staff-name {
        font-size: 1.3rem;
        hyphens: auto;
        word-break: break-word;
    }
    
    .social-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .staff-category {
        margin: 0;
        padding: 1rem;
    }
    
    .staff-card {
        padding: 1.2rem;
    }
    
    .staff-name {
        font-size: 1.2rem;
        line-height: 1.3;
    }
    
    .category-title {
        font-size: 1.3rem;
    }
}