:root {
    --bg: #0a0a0a;
    --bg-elevated: #111111;
    --bg-card: #141414;
    --bg-hover: #1a1a1a;
    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(255,255,255,0.14);
    --text: #ffffff;
    --text-muted: #a0a0a0;
    --text-dim: #555555;
    --accent: #e8e8e8;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.icon { width: 20px; height: 20px; flex-shrink: 0; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 32px; height: 32px; }
.icon-2xl { width: 48px; height: 48px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.grid { display: grid; }
.hidden { display: none; }
.text-center { text-align: center; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.rounded-xl { border-radius: 16px; }
.rounded-2xl { border-radius: 20px; }
.rounded-full { border-radius: 9999px; }
.transition { transition: all 0.3s var(--ease-smooth); }

.glass { background: rgba(255,255,255,0.02); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid var(--border); }
.glass:hover { border-color: var(--border-hover); }
.glass-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; transition: all 0.4s var(--ease-smooth); }
.glass-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.08); }

/* ===== NAVBAR ===== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 20px 0; transition: all 0.4s ease; }
.nav.scrolled { padding: 14px 0; background: rgba(10,10,10,0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.nav-brand { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.5px; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.nav-brand span { color: var(--text-muted); font-weight: 400; }
.nav-brand .logo-icon { width: 28px; height: 28px; background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02)); border: 1px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.nav-brand .logo-icon svg { width: 16px; height: 16px; stroke-width: 2; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-link { font-size: 14px; font-weight: 500; color: var(--text-muted); text-decoration: none; position: relative; padding: 4px 0; transition: color 0.3s ease; cursor: pointer; }
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--text); transition: width 0.3s var(--ease-smooth); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-cta { padding: 10px 24px; background: var(--text); color: var(--bg); border-radius: 100px; font-size: 13px; font-weight: 600; text-decoration: none; border: none; cursor: pointer; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 6px; }
.nav-cta:hover { opacity: 0.85; transform: translateY(-1px); }
.nav-cta .icon { stroke-width: 2.5; }

.mobile-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; padding: 8px; transition: transform 0.3s ease; }
.mobile-toggle:hover { transform: rotate(90deg); }
.mobile-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-elevated); border-bottom: 1px solid var(--border); padding: 20px 24px; flex-direction: column; gap: 16px; animation: slideDown 0.3s ease; }
.mobile-menu.open { display: flex; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.mobile-menu a { color: var(--text-muted); text-decoration: none; font-size: 16px; font-weight: 500; padding: 8px 0; transition: color 0.3s ease; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.mobile-menu a:hover { color: var(--text); }

/* ===== HERO ===== */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; padding: 120px 0 80px; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255,255,255,0.04), transparent), radial-gradient(ellipse 60% 40% at 80% 60%, rgba(255,255,255,0.02), transparent); }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px); background-size: 60px 60px; mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent); animation: gridMove 20s linear infinite; }
@keyframes gridMove { 0% { transform: translate(0,0); } 100% { transform: translate(60px,60px); } }

.hero-orb { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.5; animation: orbFloat 10s ease-in-out infinite; }
.hero-orb-1 { width: 500px; height: 500px; background: rgba(255,255,255,0.04); top: 5%; left: 10%; animation-delay: 0s; }
.hero-orb-2 { width: 400px; height: 400px; background: rgba(255,255,255,0.025); bottom: 10%; right: 10%; animation-delay: -5s; }
.hero-orb-3 { width: 300px; height: 300px; background: rgba(255,255,255,0.02); top: 40%; left: 60%; animation-delay: -2.5s; }
@keyframes orbFloat { 0%, 100% { transform: translate(0, 0) scale(1); } 25% { transform: translate(40px, -30px) scale(1.08); } 50% { transform: translate(-20px, 20px) scale(0.95); } 75% { transform: translate(30px, 10px) scale(1.03); } }

.hero-badge { display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px; border-radius: 100px; background: var(--bg-elevated); border: 1px solid var(--border); font-size: 13px; color: var(--text-muted); margin-bottom: 40px; animation: fadeInUp 0.8s ease 0.2s both; }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: pulse 2s ease-in-out infinite; box-shadow: 0 0 8px rgba(34,197,94,0.4); }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInScale { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

.hero-title { font-family: var(--font-display); font-size: clamp(44px, 8vw, 96px); font-weight: 700; line-height: 1.05; letter-spacing: -3px; margin-bottom: 16px; animation: fadeInUp 0.8s ease 0.4s both; }
.hero-title .grad { background: linear-gradient(135deg, #fff 0%, #888 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-name { font-family: var(--font-display); font-size: clamp(24px, 4vw, 40px); font-weight: 500; color: var(--text-muted); margin-bottom: 20px; letter-spacing: -0.5px; animation: fadeInUp 0.8s ease 0.5s both; }

.hero-typing-wrap { display: flex; align-items: center; gap: 8px; margin-bottom: 40px; animation: fadeInUp 0.8s ease 0.55s both; min-height: 36px; }
.hero-typing-label { font-size: 16px; font-weight: 500; color: var(--text-dim); white-space: nowrap; }
.hero-typing-text { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--text); position: relative; display: inline-block; }
.hero-typing-cursor { display: inline-block; width: 3px; height: 24px; background: var(--text); margin-left: 4px; vertical-align: middle; animation: cursorBlink 0.8s step-end infinite; }
@keyframes cursorBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-desc { font-size: 18px; color: var(--text-muted); max-width: 520px; line-height: 1.8; margin-bottom: 48px; animation: fadeInUp 0.8s ease 0.8s both; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; animation: fadeInUp 0.8s ease 1s both; }
.btn-primary { padding: 16px 36px; background: var(--text); color: var(--bg); border-radius: 100px; font-size: 14px; font-weight: 600; text-decoration: none; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; transition: all 0.4s var(--ease-smooth); position: relative; overflow: hidden; }
.btn-primary::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); transform: translateX(-100%); transition: transform 0.6s ease; }
.btn-primary:hover::before { transform: translateX(100%); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(255,255,255,0.12); }
.btn-primary:active { transform: translateY(-1px); }
.btn-primary .icon { stroke-width: 2.5; }
.btn-secondary { padding: 16px 36px; background: transparent; color: var(--text); border-radius: 100px; font-size: 14px; font-weight: 600; text-decoration: none; border: 1.5px solid var(--border); cursor: pointer; display: inline-flex; align-items: center; gap: 10px; transition: all 0.4s var(--ease-smooth); }
.btn-secondary:hover { border-color: var(--border-hover); background: rgba(255,255,255,0.04); transform: translateY(-3px); }

.hero-avatar-wrap { margin-top: 60px; animation: fadeInScale 1s ease 1.2s both; display: flex; justify-content: center; position: relative; }
.hero-avatar { width: 140px; height: 140px; border-radius: 50%; background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.02)); border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; animation: avatarFloat 6s ease-in-out infinite; }
.hero-avatar svg { width: 56px; height: 56px; color: var(--text-muted); }
@keyframes avatarFloat { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-14px) rotate(2deg); } }
.hero-avatar-ring { position: absolute; inset: -8px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.06); animation: ringPulse 3s ease-in-out infinite; }
.hero-avatar-ring-2 { position: absolute; inset: -16px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.03); animation: ringPulse 3s ease-in-out infinite 0.5s; }
@keyframes ringPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.05); opacity: 0.5; } }
.hero-avatar .status { position: absolute; bottom: 10px; right: 10px; width: 18px; height: 18px; border-radius: 50%; background: #22c55e; border: 3px solid var(--bg); animation: statusPulse 2s ease-in-out infinite; }
@keyframes statusPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); } 50% { box-shadow: 0 0 0 6px rgba(34,197,94,0); } }

.scroll-hint { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--text-dim); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; animation: fadeIn 1s ease 2s both; }
.scroll-hint .mouse { width: 22px; height: 36px; border: 1.5px solid var(--text-dim); border-radius: 14px; display: flex; justify-content: center; padding-top: 8px; }
.scroll-hint .mouse::after { content: ''; width: 4px; height: 6px; background: var(--text-dim); border-radius: 2px; animation: scrollDot 2s infinite; }
@keyframes scrollDot { 0%, 100% { opacity: 1; transform: translateY(0); } 50% { opacity: 0.3; transform: translateY(8px); } }

/* ===== SECTIONS ===== */
.section { padding: 120px 0; }
.section-header { text-align: center; margin-bottom: 72px; }
.section-label { font-size: 12px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; }
.section-title { font-family: var(--font-display); font-size: clamp(36px, 5vw, 52px); font-weight: 700; letter-spacing: -1.5px; line-height: 1.1; }
.section-title .grad { background: linear-gradient(135deg, #fff 0%, #777 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-desc { color: var(--text-muted); max-width: 500px; margin: 20px auto 0; font-size: 16px; line-height: 1.7; }

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.about-text h3 { font-family: var(--font-display); font-size: 30px; font-weight: 600; margin-bottom: 24px; letter-spacing: -0.5px; }
.about-text p { color: var(--text-muted); line-height: 1.9; margin-bottom: 20px; font-size: 15px; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; }
.stat-card { padding: 24px; border-radius: 18px; background: var(--bg-card); border: 1px solid var(--border); text-align: center; transition: all 0.4s var(--ease-smooth); position: relative; overflow: hidden; }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); transform: translateX(-100%); transition: transform 0.6s ease; }
.stat-card:hover::before { transform: translateX(100%); }
.stat-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: 0 16px 32px rgba(0,0,0,0.3); }
.stat-card .num { font-family: var(--font-display); font-size: 32px; font-weight: 700; margin-bottom: 6px; }
.stat-card .num .grad { background: linear-gradient(135deg, #fff 0%, #999 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-card .label { font-size: 12px; color: var(--text-muted); letter-spacing: 0.5px; }

.skills-list { display: flex; flex-direction: column; gap: 14px; }
.skill-item { display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: 16px; background: var(--bg-card); border: 1px solid var(--border); transition: all 0.4s var(--ease-smooth); cursor: default; position: relative; overflow: hidden; }
.skill-item::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent); opacity: 0; transition: opacity 0.3s ease; }
.skill-item:hover::before { opacity: 1; }
.skill-item:hover { border-color: var(--border-hover); transform: translateX(6px); background: var(--bg-hover); }
.skill-icon-wrap { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; }
.skill-item:hover .skill-icon-wrap { background: rgba(255,255,255,0.06); transform: scale(1.1); }
.skill-icon-wrap .icon { color: var(--text-muted); }
.skill-info { flex: 1; }
.skill-name { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.skill-bar { height: 5px; background: rgba(255,255,255,0.04); border-radius: 3px; overflow: hidden; }
.skill-fill { height: 100%; background: linear-gradient(90deg, rgba(255,255,255,0.6), rgba(255,255,255,0.2)); border-radius: 3px; transition: width 1.4s var(--ease-smooth); position: relative; }
.skill-fill::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 20px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3)); animation: barShine 2s ease-in-out infinite; }
@keyframes barShine { 0% { transform: translateX(-20px); opacity: 0; } 50% { opacity: 1; } 100% { transform: translateX(20px); opacity: 0; } }
.skill-pct { font-size: 12px; color: var(--text-muted); font-weight: 600; min-width: 36px; text-align: right; }

/* ===== TOOLS ===== */
.tools-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.tool-card { padding: 40px; border-radius: 24px; background: var(--bg-card); border: 1px solid var(--border); cursor: pointer; transition: all 0.5s var(--ease-smooth); position: relative; overflow: hidden; }
.tool-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.05), transparent 40%); opacity: 0; transition: opacity 0.4s ease; pointer-events: none; }
.tool-card:hover::before { opacity: 1; }
.tool-card:hover { border-color: var(--border-hover); transform: translateY(-8px); box-shadow: 0 32px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06); }
.tool-icon-wrap { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); transition: all 0.4s var(--ease-smooth); }
.tool-card:hover .tool-icon-wrap { transform: scale(1.12) rotate(-5deg); border-color: var(--border-hover); background: rgba(255,255,255,0.06); }
.tool-icon-wrap .icon { color: var(--text-muted); transition: color 0.3s ease; }
.tool-card:hover .tool-icon-wrap .icon { color: var(--text); }
.tool-name { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-bottom: 10px; }
.tool-desc { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 24px; }
.tool-action { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-muted); transition: all 0.4s ease; }
.tool-card:hover .tool-action { color: var(--text); gap: 12px; }
.tool-action .icon { transition: transform 0.4s var(--ease-smooth); }
.tool-card:hover .tool-action .icon { transform: translateX(6px); }

.tool-panel { display: none; }
.tool-panel.active { display: block; animation: panelIn 0.5s var(--ease-smooth); }
@keyframes panelIn { from { opacity: 0; transform: translateY(30px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.tool-panel-inner { max-width: 540px; margin: 0 auto; }
.tool-back { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 14px; background: var(--bg-card); border: 1px solid var(--border); color: var(--text-muted); font-size: 14px; font-weight: 500; cursor: pointer; margin-bottom: 32px; transition: all 0.3s ease; }
.tool-back:hover { color: var(--text); border-color: var(--border-hover); transform: translateX(-4px); }
.tool-back .icon { transition: transform 0.3s ease; }
.tool-back:hover .icon { transform: translateX(-3px); }
.tool-input-group { display: flex; gap: 12px; margin-bottom: 28px; }
.tool-input { flex: 1; padding: 16px 20px; border-radius: 16px; background: var(--bg-card); border: 1px solid var(--border); color: var(--text); font-size: 14px; font-family: inherit; outline: none; transition: all 0.3s ease; }
.tool-input::placeholder { color: var(--text-dim); }
.tool-input:focus { border-color: var(--border-hover); box-shadow: 0 0 0 4px rgba(255,255,255,0.03); }
.tool-btn { padding: 16px 28px; border-radius: 16px; background: var(--text); color: var(--bg); border: none; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: all 0.3s ease; display: flex; align-items: center; gap: 8px; position: relative; overflow: hidden; }
.tool-btn::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); transform: translateX(-100%); transition: transform 0.5s ease; }
.tool-btn:hover::before { transform: translateX(100%); }
.tool-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,255,255,0.08); }
.tool-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.tool-btn:disabled::before { display: none; }

.loading-box { padding: 48px; text-align: center; border-radius: 24px; background: var(--bg-card); border: 1px solid var(--border); animation: fadeInScale 0.4s ease; }
.spinner { width: 44px; height: 44px; border: 2.5px solid var(--border); border-top-color: var(--text); border-radius: 50%; animation: spin 0.9s linear infinite; margin: 0 auto 20px; }
@keyframes spin { to { transform: rotate(360deg); } }

.result-card { padding: 28px; border-radius: 24px; background: var(--bg-card); border: 1px solid var(--border); animation: fadeInScale 0.5s ease; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.result-item { padding: 14px; border-radius: 14px; background: rgba(255,255,255,0.02); transition: all 0.3s ease; }
.result-item:hover { background: rgba(255,255,255,0.04); transform: translateY(-2px); }
.result-item .label { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.result-item .value { font-size: 14px; font-weight: 600; word-break: break-all; }
.result-avatar { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02)); border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.result-avatar img { width: 100%; height: 100%; object-fit: cover; }

.screenshot-img { width: 100%; border-radius: 16px; border: 1px solid var(--border); margin-bottom: 18px; transition: transform 0.3s ease; }
.screenshot-img:hover { transform: scale(1.02); }
.spotify-cover { width: 100px; height: 100px; border-radius: 14px; background: linear-gradient(135deg, rgba(29,185,84,0.15), rgba(29,185,84,0.03)); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.spotify-cover img { width: 100%; height: 100%; object-fit: cover; }

.video-thumb { width: 100%; border-radius: 16px; border: 1px solid var(--border); margin-bottom: 20px; cursor: pointer; transition: transform 0.3s ease; position: relative; overflow: hidden; }
.video-thumb:hover { transform: scale(1.02); }
.video-thumb img { width: 100%; border-radius: 16px; display: block; }
.play-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.3); border-radius: 16px; opacity: 0; transition: opacity 0.3s ease; }
.video-thumb:hover .play-overlay { opacity: 1; }
.play-overlay svg { width: 60px; height: 60px; color: #fff; }

.download-btn { width: 100%; padding: 14px; border-radius: 14px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.3s ease; font-family: inherit; }
.download-btn:hover { background: rgba(255,255,255,0.06); border-color: var(--border-hover); transform: translateY(-2px); }
.download-btn .icon { transition: transform 0.3s ease; }
.download-btn:hover .icon { transform: scale(1.2); }

.error-box { padding: 28px; border-radius: 24px; background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2); text-align: center; animation: fadeInScale 0.4s ease; }
.error-box .icon { color: #ef4444; margin-bottom: 12px; }
.error-box p { color: #ef4444; font-size: 14px; font-weight: 500; }

/* ===== PROJECTS ===== */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.project-card { border-radius: 24px; overflow: hidden; background: var(--bg-card); border: 1px solid var(--border); transition: all 0.5s var(--ease-smooth); cursor: pointer; position: relative; text-decoration: none; color: inherit; display: block; }
.project-card::after { content: ''; position: absolute; inset: 0; border-radius: 24px; border: 1px solid transparent; transition: border-color 0.3s ease; pointer-events: none; }
.project-card:hover::after { border-color: rgba(255,255,255,0.08); }
.project-card:hover { border-color: var(--border-hover); transform: translateY(-10px); box-shadow: 0 40px 80px rgba(0,0,0,0.5); }
.project-thumb { height: 240px; background: linear-gradient(135deg, rgba(255,255,255,0.07), rgba(255,255,255,0.01)); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; transition: all 0.5s ease; padding: 0; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-smooth); }
.project-card:hover .project-thumb { background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02)); }
.project-card:hover .project-thumb img { transform: scale(1.08); }
.project-thumb .icon { width: 64px; height: 64px; color: rgba(255,255,255,0.15); transition: all 0.5s ease; }
.project-card:hover .project-thumb .icon { transform: scale(1.15); color: rgba(255,255,255,0.25); }
.project-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,10,0.7) 0%, transparent 50%); pointer-events: none; transition: opacity 0.4s ease; }
.project-card:hover .project-thumb::after { opacity: 0.5; }
.project-body { padding: 28px; }
.project-name { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-bottom: 10px; transition: color 0.3s ease; }
.project-card:hover .project-name { background: linear-gradient(135deg, #fff 0%, #999 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.project-desc { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 18px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.project-tag { padding: 6px 14px; border-radius: 100px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); font-size: 11px; font-weight: 500; color: var(--text-muted); transition: all 0.3s ease; }
.project-card:hover .project-tag { background: rgba(255,255,255,0.05); border-color: var(--border-hover); }
.project-btn { width: 100%; padding: 14px; border-radius: 14px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.3s ease; font-family: inherit; }
.project-btn:hover { background: rgba(255,255,255,0.06); border-color: var(--border-hover); transform: translateY(-2px); }
.project-btn .icon { transition: transform 0.3s ease; }
.project-btn:hover .icon { transform: scale(1.2); }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; max-width: 960px; margin: 0 auto; }
.contact-info h3 { font-family: var(--font-display); font-size: 30px; font-weight: 600; margin-bottom: 20px; }
.contact-info p { color: var(--text-muted); line-height: 1.8; margin-bottom: 40px; font-size: 15px; }
.contact-item { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.contact-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--bg-card); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.3s ease; }
.contact-item:hover .contact-icon { border-color: var(--border-hover); transform: scale(1.08); background: var(--bg-hover); }
.contact-icon .icon { color: var(--text-muted); transition: color 0.3s ease; }
.contact-item:hover .contact-icon .icon { color: var(--text); }
.contact-item .label { font-size: 12px; color: var(--text-dim); margin-bottom: 4px; letter-spacing: 0.5px; }
.contact-item .value { font-size: 14px; font-weight: 500; }
.socials { display: flex; gap: 14px; margin-top: 40px; }
.social-btn { width: 48px; height: 48px; border-radius: 14px; background: var(--bg-card); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-muted); text-decoration: none; transition: all 0.4s var(--ease-smooth); }
.social-btn:hover { color: var(--text); border-color: var(--border-hover); transform: translateY(-4px) scale(1.08); box-shadow: 0 12px 24px rgba(0,0,0,0.3); background: var(--bg-hover); }
.social-btn .icon { transition: transform 0.3s ease; }
.social-btn:hover .icon { transform: rotate(-10deg) scale(1.1); }
.contact-form-placeholder { padding: 48px 36px; border-radius: 24px; background: var(--bg-card); border: 1px solid var(--border); text-align: center; transition: border-color 0.3s ease; }
.contact-form-placeholder:hover { border-color: var(--border-hover); }
.contact-form-placeholder .icon-wrap { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,0.03); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; animation: floatIcon 3s ease-in-out infinite; }
@keyframes floatIcon { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.contact-form-placeholder h4 { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.contact-form-placeholder p { color: var(--text-muted); font-size: 14px; line-height: 1.7; }

/* ===== FOOTER ===== */
.footer { padding: 56px 0 32px; border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.footer-brand span { color: var(--text-muted); font-weight: 400; }
.footer-links { display: flex; gap: 28px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 13px; transition: all 0.3s ease; position: relative; cursor: pointer; }
.footer-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px; background: var(--text); transition: width 0.3s ease; }
.footer-links a:hover { color: var(--text); }
.footer-links a:hover::after { width: 100%; }
.footer-copy { text-align: center; padding-top: 32px; margin-top: 32px; border-top: 1px solid var(--border); color: var(--text-dim); font-size: 12px; letter-spacing: 0.5px; }

/* ===== REVEAL ANIMATION ===== */
.reveal { opacity: 0; transform: translateY(50px); transition: all 0.9s var(--ease-smooth); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ===== CURSOR GLOW ===== */
.cursor-glow { position: fixed; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.015), transparent 70%); pointer-events: none; z-index: 0; transform: translate(-50%, -50%); transition: opacity 0.3s ease; }

/* ===== SCREENSHOT MODE SELECTOR ===== */
.ss-mode-selector { display: flex; gap: 10px; margin-bottom: 20px; }
.ss-mode-btn { flex: 1; padding: 12px 16px; border-radius: 14px; background: var(--bg-card); border: 1px solid var(--border); color: var(--text-muted); font-size: 13px; font-weight: 500; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.3s var(--ease-smooth); font-family: inherit; }
.ss-mode-btn:hover { border-color: var(--border-hover); color: var(--text); background: var(--bg-hover); }
.ss-mode-btn.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.ss-mode-btn.active .icon { stroke: var(--bg); }

/* ===== DONASI MODAL ===== */
.donasi-overlay { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.donasi-overlay.active { opacity: 1; visibility: visible; }
.donasi-modal { position: relative; width: 100%; max-width: 480px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 24px; padding: 40px 32px 32px; text-align: center; transform: scale(0.9) translateY(20px); transition: transform 0.4s var(--ease-smooth); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6); }
.donasi-overlay.active .donasi-modal { transform: scale(1) translateY(0); }
.donasi-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 10px; background: var(--bg-hover); border: 1px solid var(--border); color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; }
.donasi-close:hover { color: var(--text); border-color: var(--border-hover); background: rgba(255, 255, 255, 0.06); transform: rotate(90deg); }
.donasi-icon-wrap { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(239, 68, 68, 0.1)); border: 1px solid rgba(245, 158, 11, 0.3); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; animation: floatIcon 3s ease-in-out infinite; }
.donasi-icon-wrap .icon { color: #f59e0b; }
.donasi-title { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 12px; color: var(--text); }
.donasi-desc { font-size: 14px; color: var(--text-muted); line-height: 1.8; margin-bottom: 28px; max-width: 380px; margin-left: auto; margin-right: auto; }
.donasi-desc strong { color: var(--text); font-weight: 600; }
.donasi-qr-wrap { display: flex; justify-content: center; margin-bottom: 12px; cursor: pointer; position: relative; }
.donasi-qr-wrap::after { content: 'Klik untuk memperbesar'; position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); background: rgba(0, 0, 0, 0.75); color: #fff; padding: 6px 14px; border-radius: 8px; font-size: 11px; font-weight: 500; letter-spacing: 0.3px; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; white-space: nowrap; }
.donasi-qr-wrap:hover::after { opacity: 1; }
.donasi-qr { width: 200px; height: 200px; border-radius: 20px; border: 1px solid var(--border); object-fit: cover; transition: transform 0.3s ease; }
.donasi-qr:hover { transform: scale(1.05); }
.donasi-qr-actions { display: flex; gap: 10px; justify-content: center; margin-bottom: 12px; }
.donasi-qr-btn { padding: 10px 16px; border-radius: 12px; background: var(--bg-card); border: 1px solid var(--border); color: var(--text-muted); font-size: 12px; font-weight: 500; cursor: pointer; display: flex; align-items: center; gap: 6px; transition: all 0.3s var(--ease-smooth); font-family: inherit; text-decoration: none; }
.donasi-qr-btn:hover { border-color: var(--border-hover); color: var(--text); background: var(--bg-hover); transform: translateY(-2px); }
.donasi-qr-btn .icon { transition: transform 0.3s ease; }
.donasi-qr-btn:hover .icon { transform: scale(1.15); }
.donasi-qr-label { font-size: 11px; color: var(--text-dim); letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 28px; }
.donasi-actions { display: flex; gap: 12px; margin-bottom: 16px; }
.donasi-btn { flex: 1; padding: 14px 20px; border-radius: 14px; font-size: 13px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.3s var(--ease-smooth); font-family: inherit; text-decoration: none; border: 1px solid transparent; }
.donasi-btn-primary { background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff; border: none; }
.donasi-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3); opacity: 0.95; }
.donasi-btn-secondary { background: var(--bg-card); color: var(--text); border: 1px solid var(--border); }
.donasi-btn-secondary:hover { border-color: var(--border-hover); background: var(--bg-hover); transform: translateY(-2px); }
.donasi-btn-close-bottom { width: 100%; padding: 12px; border-radius: 14px; background: transparent; border: 1px solid var(--border); color: var(--text-muted); font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.3s ease; font-family: inherit; }
.donasi-btn-close-bottom:hover { color: var(--text); border-color: var(--border-hover); background: rgba(255, 255, 255, 0.03); }

/* ===== QR ZOOM MODAL ===== */
.qr-zoom-overlay { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; cursor: pointer; }
.qr-zoom-overlay.active { opacity: 1; visibility: visible; }
.qr-zoom-image { max-width: 90vw; max-height: 85vh; border-radius: 24px; border: 2px solid rgba(255, 255, 255, 0.1); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8); transform: scale(0.8); transition: transform 0.4s var(--ease-smooth); object-fit: contain; }
.qr-zoom-overlay.active .qr-zoom-image { transform: scale(1); }
.qr-zoom-close { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 20px; transition: all 0.3s ease; z-index: 10; }
.qr-zoom-close:hover { background: rgba(255, 255, 255, 0.15); transform: rotate(90deg); }

/* ===== TOAST NOTIFIKASI ===== */
.toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(120px); z-index: 99999; display: flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 14px; background: #22c55e; color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 12px 32px rgba(34, 197, 94, 0.4); transition: transform 0.4s var(--ease-smooth); pointer-events: none; }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast .icon { stroke-width: 2.5; color: #fff; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    .hero { padding: 100px 0 60px; }
    .hero-title { font-size: 40px; letter-spacing: -1px; }
    .hero-name { font-size: 20px; }
    .hero-typing-wrap { flex-direction: column; align-items: flex-start; gap: 4px; }
    .hero-typing-text { font-size: 18px; }
    .hero-desc { font-size: 15px; }
    .hero-btns { flex-direction: column; width: 100%; }
    .hero-btns .btn-primary, .hero-btns .btn-secondary { width: 100%; justify-content: center; }
    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .tools-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .section { padding: 80px 0; }
    .section-header { margin-bottom: 48px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .footer-inner { flex-direction: column; text-align: center; }
    .result-grid { grid-template-columns: 1fr; }
    .tool-input-group { flex-direction: column; }
    .tool-btn { width: 100%; justify-content: center; }
    .cursor-glow { display: none; }
    .donasi-modal { padding: 32px 20px 24px; border-radius: 20px; }
    .donasi-actions { flex-direction: column; }
    .donasi-qr { width: 160px; height: 160px; }
    .donasi-title { font-size: 20px; }
    .donasi-qr-actions { flex-direction: row; flex-wrap: wrap; }
    .donasi-qr-btn { flex: 1; justify-content: center; min-width: 120px; }
    .qr-zoom-image { max-width: 95vw; max-height: 80vh; border-radius: 20px; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .about-grid { gap: 48px; }
    .tools-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { gap: 48px; }
}
@media (min-width: 1440px) {
    .container { max-width: 1320px; }
}