/* Index Page Specific Styles */

@keyframes fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
    animation: fade-in 0.6s ease-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}
.animate-float {
    animation: float 3s ease-in-out infinite;
}

.font-display {
    font-family: 'Orbitron', sans-serif;
}

.font-sans {
    font-family: 'Poppins', sans-serif;
}

.font-body {
    font-family: 'Inter', sans-serif;
}

/* Card styling */
.bg-card-glass {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    left: 0;
    top: 80px;
    height: calc(100vh - 80px);
    width: 250px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.2s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border-left: 3px solid #3b82f6;
}

/* Main content offset untuk sidebar */
.main-content {
    margin-left: 250px;
    transition: margin-left 0.3s ease;
}

/* Section spacing */
section {
    scroll-margin-top: 100px;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Job Navigation Animations */
.job-nav-btn {
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    cursor: pointer;
}

.job-nav-btn:hover:not(:disabled) {
    transform: scale(1.1);
}

.job-nav-btn.active {
    transform: scale(1.15);
}

.job-nav-btn:disabled {
    cursor: not-allowed;
    pointer-events: none;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slideIn {
    animation: slideIn 0.4s ease-out;
}

.path-detail {
    transition: all 0.3s ease;
}

.path-detail.hidden {
    display: none;
}

/* Coming Soon Button */
.job-nav-btn[data-job="advanced-novice"] {
    opacity: 0.6;
    cursor: not-allowed;
    position: relative;
}

.job-nav-btn[data-job="advanced-novice"]:hover {
    opacity: 0.8;
}

.job-nav-btn[data-job="advanced-novice"]::after {
    content: '🔒';
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    padding: 2px 6px;
    font-size: 10px;
    border-radius: 0 8px 0 8px;
}

/* Back to Top Button Animation */
#backToTop.show {
    opacity: 1;
    pointer-events: all;
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth Scroll Indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(59, 130, 246, 0.1);
    z-index: 9999;
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--scroll);
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: width 0.1s ease-out;
}

/* Active Sidebar Enhancement */
.sidebar-nav a.active {
    background: rgba(59, 130, 246, 0.15);
    border-left: 3px solid #3b82f6;
    padding-left: 8px;
}

/* Sidebar icons pulse effect */
.sidebar-nav a.active span:first-child {
    animation: pulse 2s infinite;
}

/* News card hover effect */
.news-card {
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Job detail animations */
.job-detail {
    animation: fadeIn 0.5s ease-in-out;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.job-detail.hidden {
    display: none !important;
}

.job-nav-btn.active {
    border-color: rgba(59, 130, 246, 0.5) !important;
    transform: scale(1.05);
}
.job-nav-btn {
    transition: all 0.3s ease;
}

/* Remove white background dari gambar */
.job-detail img {
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
    background: transparent;
    object-fit: contain;
    max-width: 100%;
    max-height: 600px;
    width: auto;
    height: auto;
    display: block;
}

/* Prevent image breaking in job path details */
.job-detail img {
    max-width: 100%;
    max-height: 600px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.job-nav-btn img {
    background: transparent;
}

/* Section container supaya di atas background overlay */
section {
    position: relative;
    z-index: 1;
}

/* Darken background untuk contrast - REMOVED to prevent box/item appearing */

/* Path button animations */
.path-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.path-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.path-btn:hover::before {
    left: 100%;
}

.path-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.path-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Basic Stats Progress Bars - Elegant Design */
.basic-stats-container {
    margin-bottom: 0;
    padding: 1rem 0 0.5rem 0;
}

.stat-item {
    margin-bottom: 0.75rem;
}

.stat-item .flex {
    margin-bottom: 0.5rem;
}

.stat-bar {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 3px;
    overflow: visible;
    position: relative;
    border: none;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.stat-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    position: relative;
    overflow: visible;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

/* Stat colors based on value - Elegant gradients */
.stat-str {
    background: linear-gradient(90deg, #10b981 0%, #059669 50%, #047857 100%);
}

.stat-str.animate {
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.5), 0 0 24px rgba(16, 185, 129, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.1);
}

.stat-agi {
    background: linear-gradient(90deg, #ec4899 0%, #db2777 50%, #be185d 100%);
}

.stat-agi.animate {
    box-shadow: 0 0 12px rgba(236, 72, 153, 0.5), 0 0 24px rgba(236, 72, 153, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.1);
}

.stat-vit {
    background: linear-gradient(90deg, #f97316 0%, #ea580c 50%, #c2410c 100%);
}

.stat-vit.animate {
    box-shadow: 0 0 12px rgba(249, 115, 22, 0.5), 0 0 24px rgba(249, 115, 22, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.1);
}

.stat-int {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
}

.stat-int.animate {
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.5), 0 0 24px rgba(59, 130, 246, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.1);
}

.stat-dex {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
}

.stat-dex.animate {
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.5), 0 0 24px rgba(239, 68, 68, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.1);
}

.stat-luk {
    background: linear-gradient(90deg, #10b981 0%, #059669 50%, #047857 100%);
}

.stat-luk.animate {
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.5), 0 0 24px rgba(16, 185, 129, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Stat value integrated in bar */
.stat-bar-fill {
    position: relative;
}

.stat-bar-fill .stat-value {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    text-shadow: 
        0 0 4px rgba(0, 0, 0, 0.8),
        0 0 8px rgba(0, 0, 0, 0.6),
        0 0 12px rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    z-index: 10;
    pointer-events: none;
    white-space: nowrap;
}

.stat-value.animate {
    animation: statValuePulse 0.6s ease-in-out;
}

@keyframes statValuePulse {
    0%, 100% {
        transform: translateY(-50%) scale(1);
    }
    50% {
        transform: translateY(-50%) scale(1.15);
    }
}

/* Stat label */
.stat-item span:first-child {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: capitalize;
}

/* Selected path animation */
.path-btn.bg-red-500\/20 {
    animation: pulse-red 2s ease-in-out infinite;
}

.path-btn.bg-blue-500\/20 {
    animation: pulse-blue 2s ease-in-out infinite;
}

.path-btn.bg-yellow-500\/20 {
    animation: pulse-yellow 2s ease-in-out infinite;
}

.path-btn.bg-purple-500\/20 {
    animation: pulse-purple 2s ease-in-out infinite;
}

.path-btn.bg-orange-500\/20 {
    animation: pulse-orange 2s ease-in-out infinite;
}

.path-btn.bg-green-500\/20 {
    animation: pulse-green 2s ease-in-out infinite;
}

.path-btn.bg-pink-500\/20 {
    animation: pulse-pink 2s ease-in-out infinite;
}

@keyframes pulse-red {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 0 20px 5px rgba(239, 68, 68, 0.2); }
}

@keyframes pulse-blue {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
    50% { box-shadow: 0 0 20px 5px rgba(59, 130, 246, 0.2); }
}

@keyframes pulse-yellow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.4); }
    50% { box-shadow: 0 0 20px 5px rgba(234, 179, 8, 0.2); }
}

@keyframes pulse-purple {
    0%, 100% { box-shadow: 0 0 0 0 rgba(147, 51, 234, 0.4); }
    50% { box-shadow: 0 0 20px 5px rgba(147, 51, 234, 0.2); }
}

@keyframes pulse-orange {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 140, 0, 0.4); }
    50% { box-shadow: 0 0 20px 5px rgba(255, 140, 0, 0.2); }
}

@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { box-shadow: 0 0 20px 5px rgba(34, 197, 94, 0.2); }
}

@keyframes pulse-pink {
    0%, 100% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.4); }
    50% { box-shadow: 0 0 20px 5px rgba(236, 72, 153, 0.2); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 200px;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .job-nav-btn {
        min-width: 70px;
        padding: 6px;
    }
    
    .job-nav-btn img {
        width: 40px;
        height: 40px;
    }
    
    .job-nav-btn p {
        font-size: 10px;
    }
    
    #backToTop {
        bottom: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
    }
    
    /* Social media icons smaller on mobile */
    .sidebar .absolute.bottom-6 {
        bottom: 8px;
    }
    
    .sidebar .absolute.bottom-6 a {
        width: 36px;
        height: 36px;
    }
    
    /* Mobile overlay when sidebar is open */
    .mobile-overlay {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 99;
        display: none;
    }
    
    .mobile-overlay.show {
        display: block;
    }
}

/* Very small mobile */
@media (max-width: 480px) {
    .sidebar {
        width: 180px;
    }
    
    .job-nav-btn {
        min-width: 60px;
        padding: 4px;
    }
    
    .job-nav-btn img {
        width: 36px;
        height: 36px;
    }
    
    .job-nav-btn p {
        font-size: 8px;
    }
}

/* Server Time Display */
#serverTime {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Stat Cards Floating Animation - lebih smooth dan dinamis */
@keyframes cardFloat {
    0%, 100% { 
        transform: translateY(0px) rotateZ(0deg); 
    }
    25% { 
        transform: translateY(-8px) rotateZ(0.5deg); 
    }
    50% { 
        transform: translateY(-12px) rotateZ(0deg); 
    }
    75% { 
        transform: translateY(-8px) rotateZ(-0.5deg); 
    }
}

.card-float {
    animation: cardFloat 4s ease-in-out infinite;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-float:hover {
    transform: translateY(-15px) scale(1.03) !important;
    animation-play-state: paused;
}

/* Hero Buttons dengan efek lebih dinamis */
.hero-btn-primary {
    position: relative;
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-btn-primary::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.8), rgba(139, 92, 246, 0.8), rgba(59, 130, 246, 0.8));
    background-size: 200% 200%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: border-glow 2s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.hero-btn-primary:hover::before {
    opacity: 1;
}

@keyframes border-glow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-btn-secondary {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-btn-secondary:hover {
    transform: translateY(-3px);
}

/* Stat Cards dengan glow effect saat hover */
.stat-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    background-size: 200% 100%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.stat-card:hover::after {
    opacity: 1;
    animation: shimmer-border 2s linear infinite;
}

@keyframes shimmer-border {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

