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

:root {
    --bg-dark: #0a0a0f;
    --bg-card: rgba(15, 17, 23, 0.7);
    --border: rgba(255, 255, 255, 0.08);
    --accent-cyan: #00f5ff;
    --accent-purple: #a855f7;
    --accent-pink: #ec4899;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b80;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0a0a0f;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    cursor: none;
}

/* Particle Canvas */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Custom Cursor */
.custom-cursor {
    width: 12px;
    height: 12px;
    background: var(--accent-cyan);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease, width 0.2s, height 0.2s;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px var(--accent-cyan);
}

.custom-cursor.cursor-hover {
    width: 28px;
    height: 28px;
    background: rgba(0, 245, 255, 0.2);
    backdrop-filter: blur(4px);
    border: 2px solid var(--accent-cyan);
}

/* App Container */
.app {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    position: sticky;
    top: 20px;
    z-index: 100;
    margin-bottom: 30px;
}

.header-content {
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 60px;
    padding: 8px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(0, 245, 255, 0.2);
    transition: all 0.3s ease;
}

.header-content:hover {
    border-color: rgba(0, 245, 255, 0.5);
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-vortex {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #ffffff, var(--accent-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-vault {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
}

.nav {
    display: flex;
    gap: 8px;
}

.nav-btn {
    background: transparent;
    border: none;
    padding: 10px 20px;
    border-radius: 40px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn i {
    font-size: 14px;
}

.nav-btn:hover {
    color: var(--accent-cyan);
    background: rgba(0, 245, 255, 0.1);
}

.nav-btn.active {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: #0a0a0f;
}

/* Main */
.main {
    flex: 1;
    padding: 20px 0;
}

/* Pages */
.page {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.page.active {
    display: block;
}

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

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 60px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-cyan);
    margin-bottom: 30px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.gradient {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple), var(--accent-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(0, 245, 255, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.15);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 245, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--accent-cyan);
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    border: none;
    padding: 14px 36px;
    border-radius: 40px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #0a0a0f;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.3);
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 245, 255, 0.5);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Search & Filters */
.search-filters {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 245, 255, 0.1);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50px;
    padding: 14px 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.1);
}

.search-box i {
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    outline: none;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.search-cursor {
    color: var(--accent-cyan);
    font-size: 18px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50px;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    flex: 1;
    min-width: 140px;
}

.filter-group i {
    color: var(--accent-cyan);
    font-size: 14px;
}

.filter-group select {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    cursor: pointer;
    outline: none;
}

.filter-group select option {
    background: #0a0a0f;
}

/* Codes Grid */
.codes-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.code-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 24px;
    border: 1px solid rgba(0, 245, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.code-card:hover {
    transform: translateX(8px);
    border-color: var(--accent-cyan);
    background: rgba(0, 245, 255, 0.05);
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.code-title {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.code-title i {
    color: var(--accent-cyan);
    font-size: 18px;
}

.code-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge-category {
    background: rgba(0, 245, 255, 0.15);
    border: 1px solid rgba(0, 245, 255, 0.3);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-cyan);
}

.badge-language {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-purple);
}

.code-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.code-source {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
}

.code-source i {
    color: var(--accent-pink);
    font-size: 12px;
}

.empty-state {
    text-align: center;
    padding: 60px;
    color: rgba(255, 255, 255, 0.4);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Detail Page */
.detail-container {
    max-width: 900px;
    margin: 0 auto;
}

.loading-state {
    text-align: center;
    padding: 80px;
    color: rgba(255, 255, 255, 0.5);
}

.loading-state i {
    font-size: 48px;
    margin-bottom: 16px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 40px;
    padding: 12px 24px;
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(0, 245, 255, 0.1);
    transform: translateX(-5px);
}

.detail-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 28px;
    padding: 32px;
    border: 1px solid rgba(0, 245, 255, 0.15);
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-title h1 {
    font-size: 28px;
    margin-bottom: 12px;
}

.detail-actions {
    display: flex;
    gap: 12px;
}

.copy-btn, .download-btn {
    background: transparent;
    border: 1px solid;
    padding: 10px 20px;
    border-radius: 40px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-btn {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.copy-btn:hover {
    background: var(--accent-cyan);
    color: #0a0a0f;
    transform: scale(1.02);
}

.download-btn {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

.download-btn:hover {
    background: var(--accent-purple);
    color: #0a0a0f;
    transform: scale(1.02);
}

.detail-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.detail-category, .detail-language {
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
}

.detail-category {
    background: rgba(0, 245, 255, 0.15);
    border: 1px solid rgba(0, 245, 255, 0.3);
    color: var(--accent-cyan);
}

.detail-language {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: var(--accent-purple);
}

.detail-description, .detail-source {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
}

.detail-description h3, .detail-source h3, .detail-code h3 {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-cyan);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.detail-description p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    font-size: 14px;
}

.detail-source a {
    color: var(--accent-pink);
    text-decoration: none;
    word-break: break-all;
}

.detail-source a:hover {
    text-decoration: underline;
}

.detail-code {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    overflow: hidden;
}

.detail-code pre {
    padding: 24px;
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.6;
    color: var(--accent-cyan);
    font-family: 'Fira Code', 'Courier New', monospace;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 500px;
    overflow-y: auto;
}

/* Contact */
.contact-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 40px 20px;
}

.contact-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 40px;
    padding: 48px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    border: 1px solid rgba(0, 245, 255, 0.15);
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-5px);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.contact-icon i {
    font-size: 36px;
    color: #0a0a0f;
}

.contact-card h2 {
    font-size: 28px;
    margin-bottom: 12px;
}

.contact-card p {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 32px;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    border-radius: 60px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-btn.wa {
    background: linear-gradient(135deg, #075e54, #128c7e);
    color: white;
}

.contact-btn.tg {
    background: linear-gradient(135deg, #0088cc, #00a3e0);
    color: white;
}

.contact-btn:hover {
    transform: translateX(10px);
}

.contact-btn i:first-child {
    font-size: 28px;
}

.btn-text {
    flex: 1;
    text-align: left;
}

.btn-text strong {
    font-size: 16px;
    display: block;
}

.btn-text small {
    font-size: 12px;
    opacity: 0.8;
}

.contact-btn i:last-child {
    font-size: 20px;
    transition: all 0.3s ease;
}

.contact-btn:hover i:last-child {
    transform: translateX(5px);
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer p {
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: #0a0a0f;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    z-index: 1000;
    animation: toastFade 2.5s ease forwards;
    display: flex;
    align-items: center;
    gap: 10px;
}

@keyframes toastFade {
    0% { opacity: 0; transform: translateX(50px); }
    15% { opacity: 1; transform: translateX(0); }
    85% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(50px); }
}

/* Reveal on Scroll */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .app {
        padding: 16px;
    }
    
    .custom-cursor {
        display: none;
    }
    
    body {
        cursor: auto;
    }
    
    .header-content {
        flex-direction: column;
        gap: 12px;
        padding: 12px 20px;
        border-radius: 28px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-stats {
        gap: 12px;
    }
    
    .stat-card {
        padding: 12px 20px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .detail-header {
        flex-direction: column;
    }
    
    .detail-actions {
        width: 100%;
    }
    
    .copy-btn, .download-btn {
        flex: 1;
        justify-content: center;
    }
    
    .contact-card {
        padding: 32px 24px;
    }
}