/* --- VARIABLES --- */
:root {
    --bg-dark: #09090b;
    --panel-bg: #18181b;
    --pink: #ec4899;
    --blue: #06b6d4;
    --gold: #fbbf24;
    --text-white: #f8fafc;
    --text-gray: #a1a1aa;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

.font-tech { font-family: 'Space Grotesk', sans-serif; }
.font-mono { font-family: monospace; }

/* --- BACKGROUND GRID --- */
.cyber-grid {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px; z-index: -2;
}
.vignette {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, transparent 20%, var(--bg-dark) 90%);
    z-index: -1; pointer-events: none;
}

/* --- UTILS --- */
.text-pink { color: var(--pink); text-shadow: 0 0 10px rgba(236, 72, 153, 0.5); }
.text-blue { color: var(--blue); text-shadow: 0 0 10px rgba(6, 182, 212, 0.5); }
.text-gold { color: var(--gold); text-shadow: 0 0 10px rgba(251, 191, 36, 0.5); }
.bg-darker { background-color: #050505; }
.bg-dark-glass { background: rgba(24, 24, 27, 0.8); backdrop-filter: blur(10px); }

.border-y-gold { border-top: 1px solid rgba(251, 191, 36, 0.2); border-bottom: 1px solid rgba(251, 191, 36, 0.2); }
.border-end-gold { border-right: 1px solid rgba(251, 191, 36, 0.2); }
@media (max-width: 768px) { .border-end-gold { border-right: none; border-bottom: 1px solid rgba(251,191,36,0.2); padding-bottom: 20px; } }

/* --- HERO --- */
.web-hero { padding: 120px 0 100px;margin-top: 50px; position: relative; }
.badge-web {
    border: 1px solid var(--gold); color: var(--gold); padding: 8px 16px; border-radius: 4px;
    font-family: 'Space Grotesk'; display: inline-block; margin-bottom: 20px; background: rgba(251, 191, 36, 0.1);
}

.btn-web {
    background: linear-gradient(90deg, var(--pink), var(--gold)); color: white; padding: 12px 35px; border-radius: 4px; font-weight: 700; border: none; transition: 0.3s; text-decoration: none;
}
.btn-web:hover { transform: translateY(-2px); box-shadow: 0 0 20px rgba(251, 191, 36, 0.4); color: white; }

.btn-outline-web {
    border: 2px solid var(--blue); color: var(--text-white); padding: 12px 35px; border-radius: 4px; text-decoration: none; font-weight: 700; transition: 0.3s;
}
.btn-outline-web:hover { background: var(--blue); color: black; }

/* 3D STACK ANIMATION */
.stack-container { position: relative; width: 300px; height: 300px; margin: 0 auto; perspective: 1000px; }
.layer {
    width: 200px; height: 60px; position: absolute; left: 50%; transform: translateX(-50%);
    display: flex; align-items: center; justify-content: center; border-radius: 8px; font-weight: bold;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); transition: 0.5s;
}
.layer-front { top: 20px; background: #111; border: 2px solid var(--pink); color: var(--pink); z-index: 3; animation: hover 3s infinite alternate; }
.layer-back { top: 120px; background: #111; border: 2px solid var(--blue); color: var(--blue); z-index: 2; animation: hover 3s infinite alternate 0.5s; }
.layer-db { top: 220px; background: #111; border: 2px solid var(--gold); color: var(--gold); z-index: 1; animation: hover 3s infinite alternate 1s; }

.data-lines { position: absolute; top: 0; left: 50%; width: 2px; height: 100%; background: transparent; }
.line { position: absolute; width: 2px; background: #333; left: 0; }
.l1 { height: 40px; top: 80px; }
.l2 { height: 40px; top: 180px; }

@keyframes hover { 0% { transform: translateX(-50%) translateY(0); } 100% { transform: translateX(-50%) translateY(-10px); } }

/* --- CODE LAB --- */
.lab-console { background: #111; border: 1px solid #333; border-radius: 8px; overflow: hidden; max-width: 900px; margin: 0 auto; }
.lab-tabs { display: flex; background: #000; border-bottom: 1px solid #333; }
.tab-btn { flex: 1; background: transparent; border: none; color: #777; padding: 15px; cursor: pointer; transition: 0.3s; font-weight: bold; }
.tab-btn:hover { color: white; }
.tab-btn.active { background: #111; color: white; border-bottom: 2px solid var(--gold); }

.bg-editor { background: #1e1e1e; min-height: 300px; border-right: 1px solid #333; }
.editor-header { display: flex; align-items: center; margin-bottom: 15px; }
.dot { width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; }
.red { background: #ef4444; } .yellow { background: #eab308; } .green { background: #22c55e; }

.bg-preview { background: #f0f0f0; min-height: 300px; position: relative; }
.visual-box { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }

/* Content Styles for JS Injection */
.demo-btn { background: var(--pink); color: white; padding: 10px 20px; border-radius: 4px; border: none; cursor: pointer; }
.demo-api { color: var(--blue); font-family: monospace; background: #000; padding: 10px; border-radius: 4px; }
.demo-full { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); text-align: center; }

/* --- TRACK CARDS --- */
.track-card {
    background: var(--panel-bg); padding: 30px; border-radius: 12px; text-align: center; border: 1px solid #333; transition: 0.3s; position: relative; overflow: hidden; height: 100%;
}
.track-card:hover { transform: translateY(-10px); }
.border-pink:hover { border-color: var(--pink); }
.border-blue:hover { border-color: var(--blue); }
.border-gold:hover { border-color: var(--gold); }

.scale-up { transform: scale(1.05); z-index: 2; box-shadow: 0 0 30px rgba(251, 191, 36, 0.1); }
.popular-badge { position: absolute; top: 0; right: 0; background: var(--gold); color: black; padding: 5px 15px; font-size: 0.8rem; font-weight: bold; border-radius: 0 0 0 8px; }

.track-icon { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin: 0 auto 20px; }
.bg-pink-soft { background: rgba(236, 72, 153, 0.1); color: var(--pink); }
.bg-blue-soft { background: rgba(6, 182, 212, 0.1); color: var(--blue); }
.bg-gold-soft { background: rgba(251, 191, 36, 0.1); color: var(--gold); }

.skill-tags span { display: inline-block; background: #222; padding: 4px 10px; border-radius: 20px; font-size: 0.8rem; margin: 2px; color: #ccc; }

.btn-track { display: block; width: 100%; padding: 10px; border-radius: 4px; text-decoration: none; font-weight: bold; transition: 0.3s; }
.btn-outline-pink { border: 1px solid var(--pink); color: var(--pink); } .btn-outline-pink:hover { background: var(--pink); color: white; }
.btn-outline-blue { border: 1px solid var(--blue); color: var(--blue); } .btn-outline-blue:hover { background: var(--blue); color: white; }
.btn-gold { background: var(--gold); color: black; } .btn-gold:hover { background: #f59e0b; }

/* --- CAREER --- */
.ticker-item { background: #111; padding: 15px; border-left: 4px solid; margin-bottom: 10px; display: flex; justify-content: space-between; border-radius: 4px; }
.project-showcase { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.p-card { background: #222; padding: 15px 25px; border-radius: 8px; color: #ccc; border: 1px solid #333; }
.p-card i { margin-right: 5px; color: var(--gold); }