/* ===== 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;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    position: relative;
    cursor: none;
}

/* ===== CUSTOM CURSOR ===== */
.cursor-tracker {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(107, 78, 255, 0.2) 0%, rgba(20, 10, 50, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    filter: blur(40px);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.cursor-trail {
    position: fixed;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: screen;
    transform: translate(-50%, -50%);
    transition: 0.05s linear;
    box-shadow: 0 0 20px var(--primary);
}

/* ===== GRID OVERLAY ===== */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(107, 78, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(107, 78, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 1;
}

/* ===== 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);
}

/* ===== TOOLS SECTION ===== */
/* ... kode yang sudah ada ... */

/* Tool Banner Styles */
.tool-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 24px 24px 0 0;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 1rem;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
}

.tool-card:hover .tool-banner {
    transform: translateY(0);
}

.banner-icon {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
}

.banner-text {
    flex: 1;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.banner-tag {
    background: rgba(255, 255, 255, 0.25);
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    backdrop-filter: blur(5px);
}

/* Alternative banner positions */
.tool-banner.bottom {
    top: auto;
    bottom: 0;
    border-radius: 0 0 24px 24px;
    transform: translateY(100%);
}

.tool-banner.left {
    width: 60px;
    height: 100%;
    flex-direction: column;
    padding: 1.5rem 0;
    border-radius: 24px 0 0 24px;
    transform: translateX(-100%);
}

.tool-banner.left .banner-icon {
    margin-bottom: 0.5rem;
}

.tool-banner.left .banner-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    margin: 0.5rem 0;
}

.tool-banner.right {
    width: 60px;
    height: 100%;
    flex-direction: column;
    padding: 1.5rem 0;
    border-radius: 0 24px 24px 0;
    transform: translateX(100%);
    right: 0;
    left: auto;
}

.tool-banner.right .banner-icon {
    margin-bottom: 0.5rem;
}

.tool-banner.right .banner-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    margin: 0.5rem 0;
}

/* Banner glow effect */
.tool-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.tool-card:hover .tool-banner::before {
    transform: translateX(100%);
}

/* Banner with different colors */
.tool-banner.premium {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
}

.tool-banner.pro {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
}

.tool-banner.new {
    background: linear-gradient(135deg, #00ff87, #60efff);
}

.tool-banner.hot {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
}

/* Banner badge animation */
@keyframes bannerPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.tool-banner:hover .banner-tag {
    animation: bannerPulse 1s ease infinite;
}

/* Responsive banner */
@media (max-width: 768px) {
    .tool-banner {
        height: 50px;
    }
    
    .tool-banner.left, .tool-banner.right {
        width: 40px;
    }
    
    .banner-text {
        font-size: 0.8rem;
    }
    
    .banner-tag {
        padding: 0.1rem 0.6rem;
        font-size: 0.6rem;
    }
}
/* ===== AI SECTION ===== */
.ai-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glow);
    border-radius: 40px;
    padding: 2rem;
}

.ai-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.core-animation {
    position: relative;
    width: 300px;
    height: 300px;
}

.core-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary);
    border-radius: 50%;
    animation: pulseRing 2s ease-out infinite;
}

.core-ring-2 {
    position: absolute;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border: 2px solid var(--secondary);
    border-radius: 50%;
    animation: pulseRing 2s ease-out infinite 0.5s;
}

.core-center {
    position: absolute;
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    background: radial-gradient(circle at 30% 30%, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes pulseRing {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.5; }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 30px var(--primary); }
    50% { box-shadow: 0 0 60px var(--secondary); }
}

.ai-interface {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ai-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 30px;
}

.ai-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.ai-status.online {
    background: #00ff88;
    box-shadow: 0 0 20px #00ff88;
    animation: blink 1s infinite;
}

.ai-name {
    font-weight: 600;
}

.ai-badge {
    background: var(--primary);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-left: auto;
}

.ai-chat {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 30px;
    padding: 1.5rem;
    min-height: 200px;
    max-height: 300px;
    overflow-y: auto;
}

.chat-message {
    margin-bottom: 1rem;
}

.message-content {
    background: rgba(107, 78, 255, 0.2);
    padding: 0.8rem 1.2rem;
    border-radius: 20px;
    display: inline-block;
    max-width: 80%;
    border: 1px solid var(--border-glow);
}

.ai-input-area {
    display: flex;
    gap: 1rem;
}

.ai-input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-glow);
    border-radius: 40px;
    color: white;
    font-size: 1rem;
}

.ai-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary);
}

.ai-send {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
}

.ai-send:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--primary);
}

.ai-commands {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cmd-chip {
    padding: 0.4rem 1rem;
    background: rgba(107, 78, 255, 0.2);
    border: 1px solid var(--border-glow);
    border-radius: 30px;
    color: white;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.9rem;
}

.cmd-chip:hover {
    background: var(--primary);
    transform: scale(1.05);
}

/* ===== 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;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .home-grid,
    .ai-container {
        grid-template-columns: 1fr;
    }
    
    .home-image {
        order: -1;
    }
    
    .glitch-title {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        width: 95%;
        padding: 0.5rem 1rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 90%;
        background: var(--card-bg);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        padding: 2rem;
        border-radius: 30px;
        transition: 0.3s;
        border: 1px solid var(--border-glow);
    }
    
    .nav-menu.active {
        left: 5%;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .discord-btn span {
        display: none;
    }
    
    .glitch-title {
        font-size: 3rem;
    }
    
    .subtitle {
        font-size: 1.5rem;
    }
    
    .home-stats {
        flex-wrap: wrap;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .cursor-tracker,
    .cursor-trail {
        display: none;
    }
    
    body {
        cursor: auto;
    }
    
    .image-frame {
        width: 250px;
        height: 250px;
    }
    
    .glitch-title {
        font-size: 2.5rem;
    }
}

/* ===== ENHANCED GRID BACKGROUND & ANIMATIONS ===== */
/* FIXED VERSION - NO CONFLICTS */

/* Grid Container */
.enhanced-grid-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Grid Lines */
.enhanced-grid-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.08;
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.enhanced-grid-line.horizontal {
    width: 100%;
    height: 1px;
    left: 0;
}

.enhanced-grid-line.vertical {
    width: 1px;
    height: 100%;
    top: 0;
}

/* Grid Glow Effect */
.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;
    will-change: transform;
    mix-blend-mode: screen;
}

/* Particles */
.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;
    will-change: transform;
}

/* Enhanced Cursor Glow */
.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;
    will-change: transform;
    mix-blend-mode: screen;
}

/* ===== SCROLL REVEAL ANIMATIONS - FIXED ===== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform, opacity;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Different reveal directions */
.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform, opacity;
}

.scroll-reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform, opacity;
}

.scroll-reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform, opacity;
}

.scroll-reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Stagger children */
.stagger-container {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.stagger-container.revealed {
    opacity: 1;
}

.stagger-container > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition-delay: calc(0.1s * var(--item-index, 0));
}

.stagger-container.revealed > * {
    opacity: 1;
    transform: translateY(0);
}

/* ===== SMOOTH ANIMATIONS - FIXED ===== */
/* Hanya tambahkan effect, jangan override animasi yang sudah ada */

/* Smooth hover enhancements */
.tool-card:hover {
    transform: translateY(-12px) scale(1.02) !important;
    box-shadow: 0 25px 45px rgba(107, 78, 255, 0.35) !important;
}

.tool-card:hover .tool-icon {
    transform: scale(1.15) rotate(8deg);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.contact-card:hover {
    transform: translateY(-12px) scale(1.03) !important;
}

.contact-card:hover i {
    transform: scale(1.2) rotate(360deg);
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Button enhancements */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease-out, height 0.6s ease-out;
    z-index: -1;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

/* Smooth cursor effects */
.cursor-trail {
    transition: all 0.02s linear !important;
    filter: blur(2px);
    mix-blend-mode: screen;
}

.cursor-tracker {
    transition: all 0.08s ease-out !important;
}

/* Smooth underline */
.nav-link::after {
    transition: width 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
}

/* ===== FIX FOR AI CORE ANIMATION ===== */
/* Prevent AI core from moving down */
.ai-visual {
    transform: none !important;
    animation: none !important;
}

.core-animation {
    transform: none !important;
    animation: none !important;
}

/* Ensure AI core rings stay in place */
.core-ring, .core-ring-2, .core-center {
    transform-origin: center center !important;
}

/* Override any parallax on AI elements */
.ai-container * {
    transform: none !important;
}

/* ===== RESPONSIVE FIXES ===== */
@media (max-width: 768px) {
    .enhanced-grid-line {
        opacity: 0.04;
    }
    
    .enhanced-cursor-glow {
        width: 400px;
        height: 400px;
        filter: blur(50px);
    }
    
    .enhanced-grid-glow {
        width: 250px;
        height: 250px;
        filter: blur(40px);
    }
}
body {
  margin: 0;
  font-family: Arial, sans-serif;
}
/* ===== MUSIC PLAYER BUTTON ===== */
.music-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: linear-gradient(135deg, #1DB954, #1ed760);
    border: none;
    border-radius: 60px;
    padding: 0.8rem 1.5rem;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    z-index: 999999; /* Higher z-index */
    box-shadow: 0 10px 30px rgba(29, 185, 84, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.music-toggle i {
    font-size: 1.2rem;
    animation: musicNote 2s infinite;
}

@keyframes musicNote {
    0%, 100% {
        transform: rotate(0) scale(1);
    }
    25% {
        transform: rotate(-10deg) scale(1.1);
    }
    50% {
        transform: rotate(10deg) scale(1.1);
    }
    75% {
        transform: rotate(-5deg) scale(1.05);
    }
}

.music-toggle:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 20px 40px rgba(29, 185, 84, 0.6);
}

.music-toggle:hover .music-text {
    letter-spacing: 1px;
}

.music-text {
    transition: letter-spacing 0.3s ease;
}

/* Music Modal - FIXED VERSION */
.music-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 9999999; /* Very high z-index */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.music-modal.show {
    opacity: 1;
    visibility: visible;
}

.music-modal-content {
    background: rgba(20, 10, 40, 0.98);
    backdrop-filter: blur(20px);
    border: 3px solid #1DB954;
    border-radius: 40px;
    padding: 2rem;
    max-width: 700px; /* Lebih besar */
    width: 90%;
    transform: scale(0.7) translateY(50px);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 0 100px rgba(29, 185, 84, 0.5);
}

.music-modal.show .music-modal-content {
    transform: scale(1) translateY(0);
}

.music-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.music-modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.music-modal-title i {
    font-size: 2rem;
    animation: spin 4s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.music-modal-title h3 {
    color: white;
    font-size: 1.8rem;
    background: linear-gradient(135deg, #fff, #1DB954);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.music-modal-close {
    background: transparent;
    border: none;
    color: var(--gray);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-modal-close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

/* Spotify Iframe Container - FIXED */
.music-modal-body {
    position: relative;
    z-index: 2;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
    background: #000; /* Background hitam saat loading */
    min-height: 352px; /* Fixed height sesuai iframe */
    width: 100%;
}

.music-modal-body iframe {
    display: block;
    width: 100%;
    height: 352px;
    border: none;
    transition: transform 0.3s ease;
}

.music-modal-body:hover iframe {
    transform: scale(1.02);
}

.music-modal-footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-top: 0.5rem;
}

.music-modal-footer p {
    color: var(--gray);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.music-modal-footer p::before {
    content: '🎧';
    animation: headphone 2s infinite;
}

@keyframes headphone {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .music-toggle {
        bottom: 100px;
        left: 20px;
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        z-index: 999999;
    }
    
    .music-toggle .music-text {
        display: none;
    }
    
    .music-toggle i {
        margin: 0;
        font-size: 1.5rem;
    }
    
    .music-modal-content {
        padding: 1.5rem;
        width: 95%;
    }
    
    .music-modal-title h3 {
        font-size: 1.3rem;
    }
    
    .music-modal-body {
        min-height: 300px;
    }
    
    .music-modal-body iframe {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .music-toggle {
        bottom: 90px;
        left: 10px;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        padding: 0;
        justify-content: center;
    }
    
    .music-toggle i {
        margin: 0;
    }
    
    .music-modal-content {
        padding: 1rem;
    }
    
    .music-modal-body {
        min-height: 250px;
    }
    
    .music-modal-body iframe {
        height: 250px;
    }
}