/* ===== RESET & VARIABLES ===== */
:root {
    --primary: #6b4eff;
    --primary-glow: #8a6cff;
    --secondary: #ff36ab;
    --dark: #0a0a0f;
    --darker: #050308;
    --light: #e0e0ff;
    --gray: #b0aae0;
    --card-bg: rgba(20, 10, 40, 0.7);
    --border-glow: rgba(150, 120, 255, 0.3);
    --font-main: 'Space Grotesk', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    -webkit-tap-highlight-color: transparent;
}

/* Allow text selection only in input fields */
input, textarea, .ai-input, .ai-chat .message-content {
    user-select: text !important;
    -webkit-user-select: text !important;
}

/* Hide scrollbar but keep functionality */
html {
    scroll-behavior: smooth;
    overflow-y: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar {
    display: none;
    width: 0;
    background: transparent;
}

body {
    font-family: var(--font-main);
    background: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    position: relative;
    cursor: none;
}

/* ===== CUSTOM CURSOR ===== */
.custom-cursor-outer {
    position: fixed;
    width: 32px;
    height: 32px;
    border: 2px solid #6b4eff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, border-color 0.2s;
    box-shadow: 0 0 15px rgba(107, 78, 255, 0.5);
    backdrop-filter: blur(2px);
}

.custom-cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: #6b4eff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 100000;
    transform: translate(-50%, -50%);
    transition: width 0.1s ease, height 0.1s ease;
    box-shadow: 0 0 8px #6b4eff;
}

.custom-cursor-outer.active {
    width: 56px !important;
    height: 56px !important;
    border-width: 2px;
    background: rgba(107, 78, 255, 0.15);
    border-color: #ff36ab;
}

.custom-cursor-dot.active {
    width: 3px !important;
    height: 3px !important;
    background: #ff36ab;
}

body:not(:hover) .custom-cursor-outer,
body:not(:hover) .custom-cursor-dot {
    opacity: 0;
}

/* ===== BACKGROUND ENHANCED ===== */
.enhanced-grid-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.enhanced-grid-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.08;
    transition: transform 0.1s ease-out;
}

.enhanced-grid-line.horizontal {
    width: 100%;
    height: 1px;
    left: 0;
}

.enhanced-grid-line.vertical {
    width: 1px;
    height: 100%;
    top: 0;
}

.enhanced-grid-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(107, 78, 255, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(60px);
    transform: translate(-50%, -50%);
    transition: transform 0.03s linear;
}

.enhanced-cursor-glow {
    position: fixed;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(107, 78, 255, 0.12) 0%, rgba(20, 10, 50, 0) 80%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9995;
    filter: blur(80px);
    transform: translate(-50%, -50%);
    transition: transform 0.02s linear;
    mix-blend-mode: screen;
}

.enhanced-particle {
    position: fixed;
    width: 3px;
    height: 3px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.15;
    box-shadow: 0 0 15px var(--primary);
    transition: transform 0.1s ease-out;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: rgba(10, 5, 25, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glow);
    border-radius: 60px;
    z-index: 1000;
    padding: 0.5rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.accent {
    color: var(--secondary);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: white;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: 0.3s;
}

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

.discord-btn {
    background: #5865F2;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.discord-btn:hover {
    background: #4752c4;
    transform: scale(1.05);
    box-shadow: 0 0 20px #5865F2;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== SECTIONS ===== */
.section {
    min-height: 100vh;
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HOME SECTION ===== */
.home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    background: rgba(107, 78, 255, 0.2);
    border: 1px solid var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    display: inline-block;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    color: var(--primary-glow);
}

.glitch-title {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    position: relative;
    color: white;
    text-shadow: 0.05em 0 0 var(--secondary), -0.05em -0.025em 0 var(--primary);
    animation: glitch 725ms infinite;
}

@keyframes glitch {
    0%, 100% { text-shadow: 0.05em 0 0 var(--secondary), -0.05em -0.025em 0 var(--primary); }
    25% { text-shadow: -0.05em -0.025em 0 var(--secondary), 0.025em 0.05em 0 var(--primary); }
    50% { text-shadow: 0.025em 0.05em 0 var(--secondary), 0.05em 0 0 var(--primary); }
    75% { text-shadow: -0.025em 0 0 var(--secondary), -0.025em -0.05em 0 var(--primary); }
}

.subtitle {
    font-size: 1.8rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
    min-height: 60px;
}

.typed-text {
    color: var(--primary-glow);
}

.cursor {
    display: inline-block;
    width: 3px;
    background: var(--primary);
    animation: blink 1s infinite;
}

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

.description {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.home-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray);
}

.home-cta {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(107, 78, 255, 0.5);
}

.btn.secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: white;
}

.btn.secondary:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* ===== HOME IMAGE ===== */
.image-frame {
    position: relative;
    width: 350px;
    height: 350px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
    box-shadow: 0 0 50px var(--primary);
    animation: float 6s ease-in-out infinite;
}

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

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.frame-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, var(--primary), transparent, var(--secondary), transparent);
    animation: rotate 4s linear infinite;
    opacity: 0.5;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.float-item {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    border: 1px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    animation: floatItem 8s infinite;
}

.float-item:nth-child(1) { top: 20%; right: 10%; animation-delay: 0s; }
.float-item:nth-child(2) { bottom: 30%; left: 5%; animation-delay: 2s; }
.float-item:nth-child(3) { top: 50%; right: 0; animation-delay: 4s; }

@keyframes floatItem {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(20px, -20px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* ===== TOOLS SECTION ===== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.tool-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glow);
    border-radius: 24px;
    padding: 2rem;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.tool-card::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: 0.5s;
}

.tool-card:hover::before {
    left: 100%;
}

.tool-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(107, 78, 255, 0.3);
}

.tool-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.tool-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.tool-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.tool-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.tool-version {
    color: var(--primary);
}

.tool-size {
    color: var(--gray);
}

.download-btn {
    width: 100%;
    padding: 0.8rem;
    background: transparent;
    border: 2px solid var(--primary);
    color: white;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.download-btn:hover {
    background: var(--primary);
    transform: scale(1.02);
}

/* ===== CONTACT SECTION ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glow);
    border-radius: 30px;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: white;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.contact-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(107, 78, 255, 0.3);
}

.contact-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--gray);
    margin-bottom: 1rem;
}

.contact-hover {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    transition: 0.3s;
    opacity: 0;
}

.contact-card:hover .contact-hover {
    bottom: 0;
    opacity: 1;
}

/* ===== FOOTER ===== */
.footer {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 2rem 0;
    border-top: 1px solid var(--border-glow);
}

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

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

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: white;
}

.store-btn {
    background: linear-gradient(135deg, #00ffcc, #0099ff);
    color: #0a0a0f;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.store-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #00ffcc;
    background: linear-gradient(135deg, #00ffcc, #0066ff);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .home-grid, .ai-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .home-image {
        order: -1;
    }
    .glitch-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        width: 95%;
        padding: 0.5rem 1rem;
    }
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 90%;
        background: rgba(10, 5, 25, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        padding: 2rem;
        border-radius: 30px;
        transition: 0.3s;
        border: 1px solid var(--border-glow);
        z-index: 1000;
    }
    .nav-menu.active {
        left: 5%;
    }
    .menu-toggle {
        display: block;
    }
    .discord-btn span {
        display: none;
    }
    .discord-btn {
        padding: 0.5rem 0.8rem;
    }
    .glitch-title {
        font-size: 2.5rem;
    }
    .subtitle {
        font-size: 1.2rem;
    }
    .home-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }
    .section-header h2 {
        font-size: 2rem;
    }
    .image-frame {
        width: 250px;
        height: 250px;
    }
    .tools-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .custom-cursor-outer, .custom-cursor-dot {
        display: none;
    }
    body {
        cursor: auto;
    }
    .glitch-title {
        font-size: 2rem;
    }
    .container {
        padding: 0 15px;
    }
    .section {
        padding: 60px 0;
    }
}
/* ===== SCROLL REVEAL ANIMATIONS ===== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.9, 0.4, 1.1), 
                transform 0.7s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

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

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.9, 0.4, 1.1), 
                transform 0.7s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.scroll-reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.9, 0.4, 1.1), 
                transform 0.7s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.scroll-reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger animation untuk grid */
.stagger-container > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    transition-delay: calc(0.08s * var(--item-index, 0));
}

.stagger-container.revealed > * {
    opacity: 1;
    transform: translateY(0);
}

/* Delay untuk stat items */
.stat-item {
    transition-delay: calc(0.1s * var(--stat-index, 0));
}
/* ===== EXTRA BACKGROUND ANIMATIONS ===== */

/* 1. Animated gradient orb yang berubah warna */
.animated-orb {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(107, 78, 255, 0.4), rgba(255, 54, 171, 0.2), transparent);
    filter: blur(80px);
    animation: orbFloat 12s ease-in-out infinite, orbColor 8s ease infinite;
    pointer-events: none;
    z-index: 0;
}

.animated-orb-2 {
    position: fixed;
    bottom: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 255, 204, 0.3), rgba(0, 153, 255, 0.1), transparent);
    filter: blur(100px);
    animation: orbFloat2 15s ease-in-out infinite, orbColor2 10s ease infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    33% { transform: translate(100px, -50px) scale(1.2); opacity: 0.8; }
    66% { transform: translate(-50px, 80px) scale(0.9); opacity: 0.5; }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    50% { transform: translate(-80px, -100px) scale(1.3) rotate(10deg); }
}

@keyframes orbColor {
    0%, 100% { background: radial-gradient(circle, rgba(107, 78, 255, 0.4), rgba(255, 54, 171, 0.2), transparent); }
    33% { background: radial-gradient(circle, rgba(255, 54, 171, 0.4), rgba(107, 78, 255, 0.2), transparent); }
    66% { background: radial-gradient(circle, rgba(0, 255, 204, 0.4), rgba(107, 78, 255, 0.2), transparent); }
}

@keyframes orbColor2 {
    0%, 100% { background: radial-gradient(circle, rgba(0, 255, 204, 0.3), rgba(0, 153, 255, 0.1), transparent); }
    50% { background: radial-gradient(circle, rgba(255, 54, 171, 0.3), rgba(107, 78, 255, 0.1), transparent); }
}

/* 2. Floating geometric shapes */
.floating-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.15;
}

.shape-1 {
    top: 15%;
    left: 5%;
    width: 80px;
    height: 80px;
    background: transparent;
    border: 2px solid var(--primary);
    transform: rotate(45deg);
    animation: shapeFloat 8s ease-in-out infinite;
}

.shape-2 {
    bottom: 20%;
    right: 8%;
    width: 60px;
    height: 60px;
    background: var(--secondary);
    border-radius: 50%;
    opacity: 0.1;
    animation: shapeFloat2 10s ease-in-out infinite;
}

.shape-3 {
    top: 50%;
    left: 85%;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid #00ffcc;
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    animation: shapeFloat3 12s ease-in-out infinite;
}

.shape-4 {
    bottom: 40%;
    left: 10%;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 30px;
    opacity: 0.05;
    animation: shapeFloat4 14s ease-in-out infinite;
}

@keyframes shapeFloat {
    0%, 100% { transform: translate(0, 0) rotate(45deg); }
    50% { transform: translate(30px, -40px) rotate(90deg); }
}

@keyframes shapeFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-40px, -30px) scale(1.2); }
}

@keyframes shapeFloat3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-20px, 50px) rotate(20deg); }
}

@keyframes shapeFloat4 {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    33% { transform: translate(40px, -20px) rotate(120deg) scale(1.1); }
    66% { transform: translate(-30px, 30px) rotate(240deg) scale(0.9); }
}

/* 3. Waving grid lines */
.enhanced-grid-line.horizontal {
    animation: waveHorizontal 8s ease-in-out infinite;
}

.enhanced-grid-line.vertical {
    animation: waveVertical 8s ease-in-out infinite;
}

@keyframes waveHorizontal {
    0%, 100% { transform: translateX(0); opacity: 0.08; }
    50% { transform: translateX(20px); opacity: 0.15; }
}

@keyframes waveVertical {
    0%, 100% { transform: translateY(0); opacity: 0.08; }
    50% { transform: translateY(15px); opacity: 0.12; }
}

/* 4. Scanline effect */
.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        rgba(107, 78, 255, 0.03) 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 9998;
    animation: scanMove 10s linear infinite;
}

@keyframes scanMove {
    0% { background-position: 0 0; }
    100% { background-position: 0 30px; }
}

/* 5. Vignette effect */
.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 40%, rgba(0, 0, 0, 0.5) 100%);
    pointer-events: none;
    z-index: 9997;
}

/* 6. Noise overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48ZmlsdGVyIGlkPSJmIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iLjUiIG51bU9jdGF2ZXM9IjMiLz48L2ZpbHRlcj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWx0ZXI9InVybCgjZikiIG9wYWNpdHk9IjAuMDQiLz48L3N2Zz4=');
    background-repeat: repeat;
    pointer-events: none;
    z-index: 9996;
    opacity: 0.3;
}

/* 7. Enhanced particles animation */
.enhanced-particle {
    animation: particleDrift 15s linear infinite;
}

@keyframes particleDrift {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    20% {
        opacity: 0.3;
    }
    80% {
        opacity: 0.2;
    }
    100% {
        transform: translateY(-200px) translateX(50px);
        opacity: 0;
    }
}

/* 8. Glowing border animation untuk cards saat hover */
.tool-card, .contact-card {
    position: relative;
    overflow: hidden;
}

.tool-card::after, .contact-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary), var(--secondary), #00ffcc, var(--primary));
    border-radius: inherit;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
}

.tool-card:hover::after, .contact-card:hover::after {
    opacity: 1;
    animation: borderGlow 2s linear infinite;
}

@keyframes borderGlow {
    0%, 100% { filter: blur(5px); }
    50% { filter: blur(10px); }
}

/* 9. Background star twinkle */
@keyframes starTwinkle {
    0%, 100% { opacity: 0.1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.2); }
}

/* 10. Responsif - kurangi animasi di HP */
@media (max-width: 768px) {
    .animated-orb, .animated-orb-2 {
        width: 300px;
        height: 300px;
        filter: blur(50px);
    }
    .floating-shape {
        display: none;
    }
    .scanline, .vignette {
        display: none;
    }
}
/* ===== PROJECTS SECTION ===== */
.projects-section {
    background: radial-gradient(circle at 20% 40%, rgba(107, 78, 255, 0.05), transparent);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glow);
    border-radius: 24px;
    overflow: hidden;
    transition: 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 25px 45px rgba(107, 78, 255, 0.35);
}

/* Preview Image Container */
.project-preview {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a0a2e, #0a0515);
    cursor: pointer;
}

.project-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.3s ease;
}

.project-card:hover .project-preview-img {
    transform: scale(1.08);
    filter: brightness(1.05);
}

/* Preview Overlay (zoom icon) */
.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s ease;
    backdrop-filter: blur(4px);
}

.project-preview:hover .preview-overlay {
    opacity: 1;
}

.preview-overlay i {
    font-size: 3rem;
    color: white;
    background: rgba(107, 78, 255, 0.8);
    border-radius: 50%;
    padding: 15px;
    transform: scale(0.8);
    transition: 0.2s;
}

.project-preview:hover .preview-overlay i {
    transform: scale(1);
}

/* Fallback jika gambar gagal load */
.project-preview-img.error {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2a1a4e, #1a0a2e);
}

.project-preview-img.error::after {
    content: '🎨';
    font-size: 4rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Project Info */
.project-info {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff, var(--primary-glow));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.project-desc {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    font-size: 0.8rem;
}

.project-tech {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tech-tag {
    background: rgba(107, 78, 255, 0.2);
    border: 1px solid var(--primary);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    color: var(--primary-glow);
}

.project-date {
    color: var(--gray);
    font-size: 0.7rem;
}

/* Download Button for Project */
.project-download-btn {
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    font-size: 0.95rem;
}

.project-download-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(107, 78, 255, 0.5);
    gap: 15px;
}

/* Lightbox Modal untuk preview besar */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    cursor: pointer;
}

.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 16px;
    border: 2px solid var(--primary);
    box-shadow: 0 0 50px rgba(107, 78, 255, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: 0.2s;
}

.lightbox-close:hover {
    color: var(--secondary);
    transform: scale(1.1);
}

/* Responsive Projects */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .project-preview {
        height: 180px;
    }
}
/* ===== PROJECT BUTTONS (Download + Visit) ===== */
.project-buttons {
    display: flex;
    gap: 12px;
    margin-top: 1rem;
}

.project-download-btn,
.project-visit-btn {
    flex: 1;
    padding: 0.8rem;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    text-align: center;
}

.project-download-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
}

.project-download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(107, 78, 255, 0.5);
    gap: 12px;
}

.project-visit-btn {
    background: transparent;
    border: 2px solid #00ffcc;
    color: #00ffcc;
}

.project-visit-btn:hover {
    background: #00ffcc;
    color: #0a0a0f;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 255, 204, 0.3);
    gap: 12px;
}

/* Responsive - stack buttons on mobile */
@media (max-width: 480px) {
    .project-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .project-download-btn,
    .project-visit-btn {
        width: 100%;
    }
}
/* ===== PROJECT BUTTONS ===== */
.project-buttons {
    display: flex;
    gap: 12px;
    margin-top: 1rem;
}

.project-buttons.two-buttons {
    display: flex;
    gap: 12px;
}

.project-buttons.single-button {
    display: flex;
}

.project-buttons.single-button .project-download-btn,
.project-buttons.single-button .project-visit-btn {
    flex: 1;
}

.project-download-btn,
.project-visit-btn {
    padding: 0.8rem;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    text-align: center;
}

/* Tombol Download */
.project-download-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    flex: 1;
}

.project-download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(107, 78, 255, 0.5);
    gap: 12px;
}

/* Tombol Visit Site */
.project-visit-btn {
    background: transparent;
    border: 2px solid #00ffcc;
    color: #00ffcc;
    flex: 1;
}

.project-visit-btn:hover {
    background: #00ffcc;
    color: #0a0a0f;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 255, 204, 0.3);
    gap: 12px;
}

/* Responsive - stack on mobile */
@media (max-width: 480px) {
    .project-buttons.two-buttons,
    .project-buttons.single-button {
        flex-direction: column;
        gap: 10px;
    }
    
    .project-download-btn,
    .project-visit-btn {
        width: 100%;
    }
}